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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0D0D12;
    color: #C8C8D0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Aurora Background Layer */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D4AA, #7B68EE, #FF6B9D);
    background-size: 400% 400%;
    opacity: 0.08;
    z-index: -2;
    animation: aurora-shift 40s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aurora-shift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Geometric Field Layer */
.geometric-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    color: #1A1A2E;
}

.geometric-field .shape {
    fill: none;
    stroke: #1A1A2E;
    stroke-width: 1px;
}

/* Wordmark */
.wordmark {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #C8C8D0;
    opacity: 0.5;
    z-index: 10;
    transition: opacity 0.3s ease;
    cursor: default;
}

.wordmark:hover {
    opacity: 1;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    min-height: auto;
    margin-bottom: clamp(4rem, 8vh, 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(135deg, #00D4AA, #7B68EE, #FF6B9D);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 400% 400%;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #C8C8D0;
    opacity: 0;
    animation: fadeInUp 400ms ease-out 800ms forwards;
}

/* Breathing Pause Sections */
.breathing-pause {
    min-height: 60vh;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.code-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    line-height: 1.6;
    color: #00D4AA;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 600ms ease-out forwards;
}

.breathing-statement {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(135deg, #00D4AA, #7B68EE, #FF6B9D);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 400% 400%;
    animation: aurora-shift 12s ease-in-out infinite;
    text-align: center;
    position: relative;
}

.angle-bracket {
    color: rgba(123, 104, 238, 0.12);
    margin: 0 1rem;
    font-size: 0.8em;
}

/* Content Cards */
.content-card {
    min-height: auto;
    padding: 0;
    margin-bottom: clamp(4rem, 8vh, 8rem);
}

.card {
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 0;
    opacity: 0.7;
    transform: scale(0.97);
    filter: blur(1px);
    will-change: transform, opacity, filter;
    transition: opacity 500ms ease-out, transform 500ms ease-out, filter 500ms ease-out;
}

.card.in-focus {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #E8E8F0;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #A0A0B0;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card p {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #C8C8D0;
    margin-bottom: 1rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.code-card {
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Code Display */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    line-height: 1.6;
    color: #00D4AA;
    background: rgba(0, 212, 170, 0.04);
    padding: 1.5rem;
    border-left: 2px solid rgba(0, 212, 170, 0.3);
    display: block;
    overflow-x: auto;
    margin: 0;
}

/* Inline code */
code:not(.code-block) {
    font-family: 'JetBrains Mono', monospace;
    color: #7B68EE;
    background: transparent;
}

/* Kinetic Typography */
.kinetic-text {
    display: inline-block;
}

.kinetic-text.animating {
    animation: kinetic-enter 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kinetic-enter {
    from {
        opacity: 0;
        transform: translateY(30px) skewX(8deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewX(0);
    }
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Closing Section */
.closing {
    min-height: 100vh;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.closing-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(135deg, #00D4AA, #7B68EE, #FF6B9D);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 400% 400%;
    animation: aurora-shift 12s ease-in-out infinite;
}

.closing-signature {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 0.95vw, 0.95rem);
    color: #00D4AA;
    line-height: 1.6;
}

/* Scroll Behavior */
@media (prefers-reduced-motion: reduce) {
    body {
        scroll-behavior: auto;
    }

    .aurora-bg {
        animation: none;
        opacity: 0.04;
    }

    .breathing-statement {
        animation: none;
    }

    .closing-title {
        animation: none;
    }

    .kinetic-text {
        opacity: 1;
        transform: none;
    }

    .card {
        opacity: 1;
        transform: scale(1);
        filter: none;
        transition: none;
    }

    .hero-subtitle,
    .code-display {
        animation: none;
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 0 1rem;
    }

    .section {
        margin-bottom: clamp(2rem, 6vh, 4rem);
    }

    .breathing-pause {
        min-height: 40vh;
    }

    .hero,
    .closing {
        min-height: 80vh;
    }

    .card {
        padding: clamp(1.5rem, 3vw, 2rem);
    }

    .geometric-field {
        opacity: 0.8;
    }

    .wordmark {
        top: 1rem;
        left: 1rem;
        font-size: 0.65rem;
    }

    .kinetic-text {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .hero-subtitle,
    .code-display {
        animation: none !important;
        opacity: 1;
    }

    @keyframes kinetic-enter {
        from {
            opacity: 1;
            transform: none;
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* Geometric shapes styling */
.geometric-shapes polygon,
.geometric-shapes polyline {
    fill: none;
    stroke: #1A1A2E;
    stroke-width: 1px;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .card h2 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .code-block {
        font-size: 0.75rem;
        padding: 1rem;
    }
}
