/* =========================================
   1. VARIABLES & VIBRANT THEME
   ========================================= */
:root {
    --bg-body: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #6366f1; /* Indigo */
    --accent: #a855f7;  /* Purple */
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-body); 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. ANIMATED BACKGROUNDS (Blobs)
   ========================================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #ffffff;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #e0e7ff; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #fae8ff; animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 400px; height: 400px; background: #f0f9ff; animation-delay: -10s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* =========================================
   3. STICKERS (Floating Elements)
   ========================================= */
.sticker {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
    animation: floatSticker 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

@keyframes floatSticker {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* =========================================
   4. LAYOUT & NAVIGATION
   ========================================= */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 1; 
}

.section-padding { padding: 100px 0; }

.navbar { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(12px); 
    padding: 15px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    transition: 0.3s;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--text-main); z-index: 1001; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-weight: 600; color: var(--text-muted); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger Menu (Hidden on Desktop) */
.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1001;
}

/* =========================================
   5. BUTTONS & UI ELEMENTS
   ========================================= */
.btn {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s var(--ease-bounce);
    border: none;
    cursor: pointer;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4); }
.btn:active { transform: translateY(-1px); }

.btn-secondary { 
    background: white; 
    color: var(--text-main); 
    border: 2px solid #e2e8f0; 
    box-shadow: none; 
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.badge { 
    display: inline-block;
    background: #f1f5f9; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    margin-right: 6px; 
    color: var(--text-muted); 
    margin-bottom: 6px;
}

/* =========================================
   6. CARDS & GRID
   ========================================= */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover { 
    transform: translateY(-10px); 
    background: white; 
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
}

/* =========================================
   7. FORMS (Inputs & Textareas)
   ========================================= */
input, textarea, select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
    color: var(--text-main);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* =========================================
   8. FAQ ACCORDION
   ========================================= */
details { overflow: hidden; }
summary { outline: none; user-select: none; }
details[open] summary ~ * { animation: sweep .3s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }

/* =========================================
   9. TYPOGRAPHY
   ========================================= */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; color: var(--text-main); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; letter-spacing: -1px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
p { font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; }

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: auto;
    text-align: center;
}
footer a:hover { color: #fff; text-decoration: underline; }

/* =========================================
   11. 📱 MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .container { padding: 0 25px; }
    .sticker { opacity: 0.3; transform: scale(0.7); } 
}

@media (max-width: 768px) {
    /* 1. Show Mobile Toggle */
    .mobile-menu-icon { display: block; }

    /* 2. Slide-out Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    /* Class added by JS to show menu */
    .nav-links.active { right: 0; }

    .nav-links li { margin: 15px 0; }
    .nav-links a { font-size: 1.2rem; }

    /* 3. Typography Adjustments */
    h1 { font-size: 2.5rem; letter-spacing: -1px; }
    h2 { font-size: 2rem; }
    p { font-size: 1rem; }

    /* 4. Layout Adjustments */
    .hero-section { text-align: center; padding-top: 100px; padding-bottom: 60px; height: auto; min-height: auto;}
    .grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* 5. Hide floating stickers on small screens (too cluttered) */
    .sticker { display: none; }
    
    /* 6. Button Stacking */
    .hero-section .btn, .hero-section .btn-secondary { width: 100%; margin: 5px 0; }
    
    /* 7. Section Padding */
    .section-padding { padding: 60px 0; }
}