:root {
    /* Light Mode (Default) */
    --bg-color: #f5f5f5;
    --text-color: #0c0c0c;
    --accent-color: #ff3e00;
    --secondary-text: #666;
    --border-color: rgba(12, 12, 12, 0.1);
    --cursor-size: 10px;
}

body.dark-mode {
    --bg-color: #0c0c0c;
    --text-color: #f5f5f5;
    --secondary-text: #999;
    --border-color: rgba(245, 245, 245, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                color 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

#hover-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 450px;
    overflow: hidden;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nav */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#site-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 24px;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-intro {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
}

.hero-statement {
    font-family: 'Syne', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.hero-statement span {
    display: inline-block;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 80px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item .label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.meta-item .value {
    font-size: 20px;
    font-weight: 400;
}

.scroll-discover {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.discover-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.discover-line {
    width: 60px;
    height: 1px;
    background-color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.discover-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    animation: scrollLine 2s infinite cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Sections */
section {
    padding: 120px 0;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-text);
    margin-bottom: 60px;
    display: block;
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 200px 100px;
    align-items: baseline;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.project-item .title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.project-item .agency {
    font-size: 16px;
    color: var(--secondary-text);
}

.project-item .year {
    font-size: 16px;
    text-align: right;
}

.projects-list:hover .project-item:not(:hover) {
    opacity: 0.2;
}

/* Awards */
.awards-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.awards-counters {
    display: flex;
    gap: 40px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.counter-value {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 700;
}

.counter-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.award-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
}

.award-item .year {
    color: var(--secondary-text);
}

.award-item .project {
    font-weight: 700;
}

/* Footer */
#main-footer {
    padding-bottom: 40px;
}

.footer-cta {
    margin-bottom: 120px;
}

.cta-link {
    font-family: 'Syne', sans-serif;
    font-size: clamp(48px, 8vw, 160px);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    line-height: 0.8;
    transition: color 0.3s ease;
    display: block;
    word-break: break-word;
}

.cta-link:hover {
    color: var(--secondary-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--text-color);
    padding-top: 40px;
}

.footer-socials {
    display: flex;
    gap: 30px;
}

.social-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: var(--secondary-text);
    text-transform: uppercase;
}

/* Project Detail View */
#project-detail {
    padding-top: 180px;
    padding-bottom: 200px;
}

.detail-header {
    margin-bottom: 100px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-bottom: 40px;
}

.back-btn:hover .btn-icon {
    transform: translateX(-5px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    background-color: var(--border-color); /* Skeleton / placeholder */
    position: relative;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(1.05);
}

.gallery-item img.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* Web Design Cards */
.web-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    width: 100%;
    grid-column: span 2;
}

.web-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    text-decoration: none;
    color: var(--text-color);
    align-items: center;
}

.web-card .preview-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.web-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.web-card:hover img {
    transform: scale(1.05);
}

.web-card .info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.web-card .site-title {
    font-family: 'Syne', sans-serif;
    font-size: 64px;
    font-weight: 700;
    text-transform: uppercase;
}

.web-card .visit-cta {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.web-card .visit-cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.web-card:hover .visit-cta::after {
    transform: translateX(10px);
}

/* Mobile */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    #main-nav {
        padding: 20px;
    }

    #site-logo {
        font-size: 20px;
    }

    .hero-statement {
        font-size: clamp(32px, 10vw, 48px);
        line-height: 1;
        margin-bottom: 40px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .hero-statement span {
        display: block;
    }

    .hero-statement br {
        display: none;
    }

    .hero-meta {
        flex-direction: column;
        gap: 30px;
    }

    .scroll-discover {
        left: 20px;
        bottom: 20px;
    }

    section {
        padding: 80px 0;
    }

    .section-label {
        margin-bottom: 40px;
    }

    .project-item {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 30px 0;
    }

    .project-item .agency {
        grid-column: 1;
        font-size: 14px;
    }

    .project-item .year {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }

    .awards-header {
        flex-direction: column;
        gap: 30px;
    }

    .awards-counters {
        width: 100%;
        justify-content: space-between;
        gap: 20px;
    }

    .award-item {
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 16px;
    }

    .award-item .year {
        font-size: 12px;
    }

    .footer-cta {
        margin-bottom: 80px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-copy {
        align-items: flex-start;
    }

    .project-item .title {
        font-size: clamp(20px, 7vw, 32px);
        word-break: normal;
        overflow-wrap: break-word;
    }

    .cta-link {
        font-size: clamp(32px, 10vw, 56px);
        line-height: 1;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .web-list {
        gap: 60px;
    }
    
    .web-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .web-card .site-title {
        font-size: 32px;
    }

    #custom-cursor, #hover-image-container {
        display: none !important;
    }

    #main-nav {
        padding: 20px;
        width: 100%;
        max-width: 100vw;
    }

    #detail-title {
        font-size: clamp(24px, 8vw, 36px);
    }

    #project-detail {
        padding-top: 120px;
    }
}
