/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.01em;
}
h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}
p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}
a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover {
    opacity: 0.7;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Sections */
section {
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    padding: var(--spacing-xl) var(--spacing-md);
}

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

/* Hero Section */
.section-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-content {
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: white;
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

/* About Section */
.section-about {
    background: var(--bg-gray);
    display: flex;
    align-items: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

/* Portfolio Section */
.section-portfolio {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Contact Section */
.section-contact {
    background: var(--text-dark);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

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

.contact-content h2 {
    color: white;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.contact-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.contact-link {
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: white;
    color: var(--text-dark);
    opacity: 1;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: var(--spacing-md);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}