:root {
    --bg-color: #0a0a0c;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --accent-color: #00e5ff;
    --grid-color: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    
    /* Technical grid background */
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center top;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    line-height: 1.2;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(10, 10, 12, 0.75);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: padding 0.3s ease;
}

.nav-brand {
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 101;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 160px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-top: 160px;
}

.section-label {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.section-label::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--text-secondary);
}

/* Hero Section */
#hero {
    position: relative;
    padding-top: 160px;
    min-height: 100vh;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-statement {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 95%;
    font-weight: 300;
}

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

/* Hero Image Frame */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    width: 380px;
    height: 380px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-container:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
    transition: filter 0.8s ease, transform 0.5s ease; 
    transform: scale(1.05);
}

.hero-image-container:hover .hero-image {
    filter: grayscale(0%) contrast(1.0) brightness(0.95);
}

/* Editorial Content Formatting */
.editorial-text {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.editorial-text:last-child {
    margin-bottom: 0;
}

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

/* Work Section */
.work-statement {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Contact Section */
.contact-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.email-link {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: var(--text-primary);
    font-weight: 300;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.email-link:hover {
    color: var(--accent-color);
}

.email-link:hover::after {
    transform-origin: bottom left;
    transform: scaleX(0);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav {
        padding: 1.2rem 2rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-statement {
        margin: 0 auto;
    }

    .section-label {
        justify-content: center;
    }

    .section-label::before {
        display: none;
    }

    .hero-image-wrapper {
        order: -1;
    }
    
    .hero-image-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 100px 0;
        min-height: auto;
    }
    section:not(:last-child)::after {
        margin-top: 100px;
    }
    
    .hero-image-container {
        width: 220px;
        height: 220px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}