/* ============================================
   CSS Variables & Design System
   ============================================ */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);
    --color-accent: #e8e8e8;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    transition: opacity var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition-normal);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: grayscale(20%);
    transform: scale(1.05);
    animation: heroImageZoom 20s ease-in-out infinite alternate;
}

@keyframes heroImageZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--spacing-md);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-name-wrapper {
    overflow: hidden;
}

.hero-name {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.name-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealName 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.first-name {
    font-size: clamp(4rem, 15vw, 12rem);
    animation-delay: 0.3s;
}

.last-name {
    font-size: clamp(3.5rem, 12vw, 10rem);
    animation-delay: 0.5s;
    color: var(--color-accent);
    /* Outline effect for visual contrast */
    -webkit-text-stroke: 2px var(--color-text);
    -webkit-text-fill-color: transparent;
}

@keyframes revealName {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.tagline-line {
    width: 60px;
    height: 1px;
    background: var(--color-text-secondary);
}

.hero-tagline p {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-number {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-intro {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
}

.about-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 50ch;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Work Section
   ============================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.work-item:hover {
    transform: translateY(-8px);
}

.work-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-normal);
}

.work-item:hover .work-placeholder {
    transform: scale(1.05);
}

.work-info {
    padding: var(--spacing-md);
    background: var(--color-bg-secondary);
}

.work-info h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.work-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--color-bg-secondary);
    text-align: center;
}

.contact .section-header {
    justify-content: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.contact-intro {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    max-width: 40ch;
    color: var(--color-text-secondary);
}

.contact-email {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.contact-socials {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-stats {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .contact-socials {
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .tagline-line {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat {
        align-items: center;
    }
}
