/* style.css */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.8s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5% 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.logo {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    pointer-events: auto;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, text-shadow 0.3s ease !important;
}

.logo a:hover {
    transform: scale(1.15) rotate(-1deg);
    opacity: 1 !important;
    text-shadow: 0 5px 20px rgba(255, 255, 255, 0.5) !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    pointer-events: auto;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 0.5;
}

/* Typography & Layout */
.section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.color-dots-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .year {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #1abc9c;
    margin-top: 1rem;
    letter-spacing: 4px;
}

.color-dots {
    display: flex;
    gap: 1.5rem;
}

.dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.4) rotate(90deg);
}

.dot:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ASCII HUD Overlay */
.ascii-hud {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 10;
    line-height: 1.4;
    transition: color 0.1s ease;
    white-space: pre;
}

.ascii-hud .hud-line {
    letter-spacing: 1px;
}

/* About Section */
.about-container {
    max-width: 800px;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Skills Chips */
.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-chip {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.project-card {
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.project-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
    pointer-events: none;
}

.card-bg-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
    z-index: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.card-bg-img[alt="Agonia"] {
    object-fit: cover;
    object-position: 20% center;
}

@media (max-width: 768px) {
    .card-bg-img[alt="Agonia"] {
        object-position: center center;
    }
}

.project-card:hover .card-bg-img {
    opacity: 0.8;
    transform: scale(1.05);
}

.project-card:hover {
    border-color: #555;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-color-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px currentColor;
}

.project-content {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-content h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-category {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 8rem 5% 4rem;
}

.footer-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 6rem;
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.contact-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.contact-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright {
    font-size: 0.85rem;
    color: #555;
}

/* Simple Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Editorial Layout for Project Pages */
.project-hero {
    padding: 10rem 5% 4rem;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-hero .hero-text {
    margin-bottom: 4rem;
}

.project-hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 200;
    letter-spacing: -3px;
    color: #fff;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.project-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #888;
    text-transform: uppercase;
}

.project-hero .hero-image {
    width: 100%;
}

.project-hero .hero-image img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain; /* Guarantees no stretching or cropping */
    display: block;
    margin: 0 auto;
}

.editorial-layout {
    background: #000;
    color: #fff;
    padding-bottom: 4rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 5%;
    border-bottom: 1px solid #1a1a1a;
    background: #000;
}

.meta-item .meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1rem;
    font-weight: 300;
    color: #ccc;
    line-height: 1.5;
}

.story-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 6rem;
}

.story-section.reverse {
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
    max-width: 450px;
}

.huge-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 3rem;
    color: #fff;
}

.text-blocks p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #999;
    line-height: 1.7;
}

.text-blocks strong {
    display: block;
    color: #fff;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.story-image {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

.story-image.dual-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    align-items: center;
    justify-items: center;
}

.story-image.dual-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.contained-image-section {
    width: 100%;
    padding: 0 5%;
    margin: 6rem 0;
    text-align: center;
}

.image-frame {
    background-color: #050505;
    border: 1px solid #151515;
    padding: clamp(2rem, 5vw, 6rem);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 2px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.caption {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    font-weight: 300;
    font-style: italic;
    max-width: 700px;
    margin-inline: auto;
}

.footer-minimal {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #1a1a1a;
}

.next-project {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.next-project:hover {
    color: #666;
}

@media (max-width: 900px) {
    .meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-section, .story-section.reverse {
        flex-direction: column;
        gap: 4rem;
        padding: 5rem 5%;
    }
    
    .story-image.dual-image {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        width: 100%;
    }
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.detail-box h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.mt-5 {
    margin-top: 5rem;
}

.project-content-block {
    margin-bottom: 4rem;
}

.text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.text-grid p {
    font-weight: 300;
    color: var(--text-secondary);
}

.text-grid strong {
    color: var(--text-primary);
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    background-color: #111;
}

.gallery-img:hover {
    transform: scale(1.02);
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .color-dots-container {
        align-items: flex-start;
        width: 100%;
    }
    
    .dot-preview {
        right: auto;
        left: 0;
        align-items: flex-start;
        text-align: left;
    }

    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 0;
        min-height: auto;
        flex-direction: column;
        background-color: #111;
        border: 1px solid #222;
    }
    
    .project-card::before {
        display: none;
    }
    
    .card-bg-img {
        position: relative;
        height: 250px;
        opacity: 0.9;
        border-radius: 18px 18px 0 0;
    }
    
    .project-card:hover .card-bg-img {
        transform: none;
        opacity: 1;
    }
    
    .project-card:hover {
        transform: translateY(-4px);
    }
    
    .project-color-indicator {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .project-content {
        position: relative;
        transform: none;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.4rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .text-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: clamp(3rem, 12vw, 4rem);
    }
    
    .ascii-hud {
        display: none;
    }
}

/* Hover Zoom Effect for specific detail images */
.zoom-on-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-radius 0.4s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 10;
}

.zoom-on-hover:hover {
    transform: scale(1.6);
    z-index: 9999;
    /* Solid black background prevents the shadow from showing through transparent PNGs */
    background-color: #000;
    /* Massive 9999px box-shadow creates a perfect dark overlay that follows the image's z-index precisely */
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 9999px rgba(0,0,0,0.85);
    border-radius: 12px;
}

/* Dot Preview Tooltip */
.dot-preview {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: right;
    margin-top: 1.5rem;
    pointer-events: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.dot-preview.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dot-preview img {
    width: 480px;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.dot-preview span {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 300;
    white-space: nowrap;
}


