* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #1a1a1a;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Optimize scrolling performance */
main, section {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 2rem 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: box-shadow;
    transition: box-shadow 0.2s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--black);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 400;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.nav-menu a::after {
    display: none;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 7rem 2rem 4rem;
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 400;
    color: #666;
    display: block;
}

/* Sections */
.section {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--black);
    position: relative;
    z-index: 2;
}

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

.about-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.about-text {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: #333;
    font-weight: 400;
}

/* Work Section */
.work {
    background-color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.work-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: opacity 0.3s ease;
}

.work-item:last-child {
    border-bottom: none;
}

.work-item:hover {
    opacity: 0.6;
}

.work-number {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.work-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0.75rem;
}

.work-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
    display: inline-block;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-content {
    max-width: 600px;
}

.contact-text {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    margin-bottom: 0.75rem;
    color: #333;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.6;
}

.contact-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.contact-link:hover {
    opacity: 0.6;
}

.contact-link::after {
    display: none;
}

/* Footer */
.footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    background-color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.75rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 0;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 1rem;
    }
    
    .section {
        padding: 1.25rem 1.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1.25rem 0;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1rem 1.5rem;
    }
}
