/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
    --color-teal-dark: #1a3a3a;
    --color-teal: #2d5555;
    --color-mint: #7ec4c1;
    --color-peach: #f4d4b8;
    --color-peach-light: #fef5e7;
    --color-lavender: #d4c5d8;
    --color-silver: #e8e8e8;
    --color-gold: #d4a574;
    
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: var(--color-silver);
}

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

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-mint);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--color-peach-light);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-mint);
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.essay-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-teal-dark);
    margin-bottom: var(--spacing-md);
}

.intro-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    color: var(--color-teal);
}

/* ========================================
   LAYOUT - SECTIONS
   ======================================== */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ========================================
   PARALLAX BACKGROUNDS
   ======================================== */

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(180deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
}
.hero-section .parallax-bg {
    animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10%);
    }
}

.hero-content {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin-top: 2rem;     /* Space above video */
    margin-bottom: 3rem; 

}
.video-container {
    margin-top: 2rem;     /* Space above video */
    margin-bottom: 3rem; 
 /* Space below video (before intro) - INCREASED */
}


.hero-intro-text {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 25;
    opacity: 1;  /* Start visible for scroll animation to work */
}

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


.hero-intro-text p {
    font-family: var(--font-body); 
    color: var(--color-peach-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    text-align: left;
    margin: 0;

}


/* Mobile adjustment */
@media (max-width: 768px) {
    .hero-cat-face img {
        max-width: 200px;
    }
}
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-mint);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-mint) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}


@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}
  
/* Glitch in effect for text */

@keyframes glitchIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.8);
    }
    20% {
        opacity: 0.5;
        filter: blur(5px) hue-rotate(90deg);
        transform: scale(1.1) translateX(-10px);
    }
    40% {
        opacity: 0.7;
        filter: blur(3px) hue-rotate(-90deg);
        transform: scale(0.9) translateX(10px);
    }
    60% {
        opacity: 0.9;
        filter: blur(2px);
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}



.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-mint);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-mint) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ========================================
   CONCEPT SECTION
   ======================================== */

.concept-section {
    background: linear-gradient(180deg, var(--color-peach-light) 0%, var(--color-peach) 100%);
}

.text-content {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}



/* ========================================
   VIDEO SECTION
   ======================================== */

.video-section {
    background: linear-gradient(180deg, var(--color-mint) 0%, var(--color-teal) 100%);
}

.video-container {
    position: relative;
    z-index: 10;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* ========================================
   ESSAY SECTION
   ======================================== */

.essay-section {
    background: linear-gradient(180deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
    min-height: auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.essay-section .parallax-bg {
    animation: scrollUp 20s linear infinite;
}

.essay-content {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.essay-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.essay-text p strong {
    color: var(--color-teal);
    font-weight: 600;
}





/* ========================================
   DOCUMENTATION SECTION
   ======================================== */

.docs-section {
    background: linear-gradient(180deg, var(--color-silver) 0%, #fff 100%);
    min-height: auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.docs-content {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: 16px;
}

.docs-content h2 {
    color: var(--color-teal);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.docs-content h2:first-child {
    margin-top: 0;
}

.tools-list,
.chat-links {
    list-style: none;
    padding-left: 0;
}

.tools-list li,
.chat-links li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    font-size: 1.05rem;
}

.tools-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-mint);
    font-weight: bold;
}

.chat-links li {
    margin-bottom: var(--spacing-xs);
}

.chat-links a {
    color: var(--color-teal);
    text-decoration: underline;
    font-weight: 500;
}

.chat-links a:hover {
    color: var(--color-mint);
}

.file-info {
    color: #666;
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}



/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-teal-dark);
    color: var(--color-mint);
    text-align: center;
    padding: var(--spacing-md);
    font-size: 0.9rem;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    
    .hero-intro-text {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .hero-intro-text p {
        font-size: 0.95rem;
    }
    
    
    .essay-content {
        padding: var(--spacing-md);
    }
    
    .essay-text p {
        font-size: 1rem;
    }
}
    


@media (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
}
    

