:root {
    --bg-color: #080808;
    --text-primary: #ECECEC;
    --text-secondary: #888888;
    --accent-color: #3b82f6;
    --font-main: 'Space Grotesk', sans-serif;
    --container-width: 1440px;
    --gutter: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Page Transition Effects */
body {
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page exit transition for navigation links */
.page-transition {
    animation: pageFadeOut 0.4s ease-in forwards;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Typography & Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-padding {
    padding: 120px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-weight: 500;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: white;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 4rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 9rem);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.overflow-hide {
    overflow: hidden;
}

.anim-text {
    display: block;
    transform: translateY(120%);
    will-change: transform;
}

.text-muted {
    color: var(--text-secondary);
}

.hero-desc {
    max-width: 500px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0; /* Handled by JS */
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: var(--text-secondary);
}

/* About Section */
.grid-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    border-radius: 8px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 120%; /* Taller for parallax effect */
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
    filter: grayscale(20%);
    background: linear-gradient(to bottom, gray, rgb(53, 53, 53));
    transition: filter 0.5s ease;
}

.image-container:hover img {
    filter: grayscale(0%);
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.text-block p {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    opacity: 0.1; /* Start dimmed for animation */
    transition: opacity 0.3s;
}

/* Footer */
.footer {
    border-top: 1px solid #1a1a1a;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.footer-label {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.email-link {
    display: block;
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 4rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.email-link:hover {
    color: var(--accent-color);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a:hover {
    color: var(--text-primary);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .image-container {
        height: 50vh;
        order: -1;
    }

    .footer-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    :root {
        --gutter: 1.5rem;
    }
    
    .navbar {
        padding: 1.5rem var(--gutter);
        mix-blend-mode: normal;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-item {
        font-size: 0.9rem;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .scroll-indicator {
        left: var(--gutter);
        bottom: 1.5rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .grid-layout {
        gap: 3rem;
    }
    
    .image-container {
        height: 40vh;
        border-radius: 6px;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .text-block p {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 1.5rem;
    }
    
    .footer {
        min-height: 60vh;
    }
    
    .footer-label {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    
    .email-link {
        font-size: clamp(1.5rem, 8vw, 3rem);
        margin-bottom: 3rem;
        word-break: break-all;
    }
    
    .footer-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }
    
    .socials {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --gutter: 1rem;
    }
    
    .navbar {
        padding: 1rem var(--gutter);
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-item {
        font-size: 0.85rem;
    }
    
    .hero {
        padding-top: 5rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .grid-layout {
        gap: 2rem;
    }
    
    .image-container {
        height: 35vh;
    }
    
    .text-block p {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        margin-bottom: 1.2rem;
    }
    
    .footer {
        min-height: 50vh;
    }
    
    .email-link {
        font-size: clamp(1.2rem, 10vw, 2.5rem);
        margin-bottom: 2rem;
        word-break: break-all;
    }
    
    .socials {
        gap: 1rem;
        font-size: 0.8rem;
    }
}
