:root {
    /* Color Palette - Kerala Theme */
    --bg-dark: #08120c;
    --primary: #10b981;
    --primary-light: #34d399;
    --secondary: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #a7f3d0;
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition-smooth: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

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

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Hide scrollbars for fullpage feeling */
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Backgrounds Container */
.backgrounds-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.bg-layer {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.15);
    transition: opacity 1.2s ease-in-out, visibility 1.2s, transform 10s cubic-bezier(0.1, 1, 0.1, 1);
}

.bg-layer.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.bg-1 { background-image: url('https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?q=100&w=3000&auto=format&fit=crop'); }
.bg-2 { background-image: url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?q=100&w=3000&auto=format&fit=crop'); }
.bg-3 { background-image: url('https://images.unsplash.com/photo-1596394516093-501ba68a0ba6?q=100&w=3000&auto=format&fit=crop'); }
.bg-4 { background-image: url('https://images.unsplash.com/photo-1540518614846-7eded433c457?q=100&w=3000&auto=format&fit=crop'); }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(4, 10, 6, 0.95) 0%, rgba(4, 10, 6, 0.6) 40%, rgba(4, 10, 6, 0.2) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 20;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.slide-content {
    max-width: 600px;
    width: 100%;
}

.slide-content.right-align {
    margin-left: auto;
    margin-right: 0;
}

.slide-content.center-align {
    margin: 0 auto;
    text-align: center;
    max-width: 900px;
}

/* Typography & UI */
.title { font-size: 4.5rem; line-height: 1.1; font-weight: 700; margin-bottom: 24px; letter-spacing: -1px; }
.title-line { display: block; }
.subtitle { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 40px; }
.italic-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 0.85rem; color: var(--secondary); margin-bottom: 24px; backdrop-filter: blur(10px); }

/* Buttons */
.btn { padding: 12px 28px; border-radius: 30px; font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition-smooth); display: inline-flex; justify-content: center; align-items: center; }
.btn-primary { background: var(--text-main); color: var(--bg-dark); }
.btn-primary:hover { background: var(--primary-light); color: var(--bg-dark); transform: scale(1.05); }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 30px 5%; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.3s; cursor: pointer; }
.nav-dot.active { background: var(--primary); transform: scale(1.3); }

/* Glass Panel for Text */
.glass-panel {
    background: linear-gradient(135deg, rgba(8, 18, 12, 0.7) 0%, rgba(8, 18, 12, 0.4) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.benefits-list { list-style: none; margin-top: 20px; }
.benefits-list li { margin-bottom: 12px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.benefits-list li span { color: var(--primary-light); }

/* Features Grid (Slide 4) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.feature-card { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-title { font-size: 1.5rem; }
.section-title { font-size: 4rem; }

/* Scroll Indicator */
.scroll-indicator { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 100; color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }
.mouse { width: 24px; height: 36px; border: 2px solid rgba(255,255,255,0.6); border-radius: 12px; display: flex; justify-content: center; padding-top: 4px; }
.wheel { width: 4px; height: 8px; background: rgba(255,255,255,0.6); border-radius: 2px; animation: scrollDown 2s infinite; }

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Fireflies Canvas */
#canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 5; pointer-events: none; }
.star { position: absolute; background: #fbbf24; border-radius: 50%; opacity: 0; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); animation: twinkle infinite ease-in-out; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); } 50% { opacity: 0.6; transform: scale(1) translateY(-10px); } }

/* Slide child animations based on active state */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1); }
.slide.active .fade-in { opacity: 1; transform: translateY(0); }
.slide.active .delay-1 { transition-delay: 0.2s; }
.slide.active .delay-2 { transition-delay: 0.4s; }
.slide.active .delay-3 { transition-delay: 0.6s; }
.slide.active .delay-4 { transition-delay: 0.8s; }
