* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica",
        "Arial", sans-serif;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    scroll-snap-align: start;
    background: linear-gradient(
        to bottom,
        #ffeb3b 0%,
        #ffeb3b 80%,
        #ffeb3b 100%
    );
}

.title-container {
    text-align: center;
}

.title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    text-transform: lowercase;
}

.section-9 .subtitle {
    color: #4caf50;
}

.typed-text {
    display: inline-block;
    min-width: 0.5em;
}

.typed-text.positive {
    color: #4caf50;
}

.typed-text.negative {
    color: #af2a09;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    font-weight: 400;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.glitch {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-image {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30vh;
    width: auto;
    transition: opacity 0.1s ease;
}

.social-links {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 3rem;
    height: auto;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.section-1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    scroll-snap-align: start;
    background: linear-gradient(to bottom, #ffeb3b 0%, #ff8c00 100%);
}

.section-text {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    color: #000;
    text-align: center;
    max-width: 80%;
}

.section-text .section-cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
}

/* Sections 2-9 */
.section-2,
.section-3,
.section-4,
.section-5,
.section-6,
.section-7,
.section-8,
.section-9 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    scroll-snap-align: start;
}

.section-2 {
    background: linear-gradient(to bottom, #ff8c00 0%, #cc5500 100%);
}

.section-3 {
    background: linear-gradient(to bottom, #cc5500 0%, #800020 100%);
}

.section-4 {
    background: linear-gradient(to bottom, #800020 0%, #8b0000 100%);
}

.section-5 {
    background: linear-gradient(to bottom, #8b0000 0%, #006400 100%);
}

.section-6 {
    background: linear-gradient(to bottom, #006400 0%, #32cd32 100%);
}

.section-7 {
    background: linear-gradient(to bottom, #32cd32 0%, #90ee90 100%);
}

.section-8 {
    background: linear-gradient(to bottom, #90ee90 0%, #90ee90 100%);
}

.section-9 {
    background: linear-gradient(to bottom, #90ee90 0%, #ffffff 100%);
}

.section-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.section-image {
    position: absolute;
    bottom: 0;
    height: 30vh;
    width: auto;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.section-image.visible {
    opacity: 1;
}

.section-2 .section-image {
    left: 50%;
    transform: translateX(-50%);
}

.section-3 .section-image,
.section-4 .section-image,
.section-7 .section-image {
    left: 0;
}

.section-5 .section-image,
.section-8 .section-image {
    left: 50%;
    transform: translateX(-50%);
}

.section-6 .section-image {
    right: 0;
    left: auto;
}

.tfw-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #000;
    text-align: center;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

.tfw-cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
}

.text-green {
    color: #4caf50;
}

.text-red {
    color: #af2a09;
}
