/* 1. VARIABLES */
:root {
    --bg-main: #0b1121;
    --bg-card: #151e32;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-hover: #2563eb;
    --border: #1e293b;
    --input-bg: #0f172a;
    --nav-bg: rgba(11, 17, 33, 0.85);
    --gradient-1: #1e3a8a;
    --gradient-2: #0b1121;
}
/* =========================================================
   CUSTOM SCROLLBAR (Matches Chat Page)
   ========================================================= */
::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
} 

::-webkit-scrollbar-track { 
    background: var(--bg-main); 
} 

::-webkit-scrollbar-thumb { 
    background: #334155; 
    border-radius: 10px; 
    border: 2px solid var(--bg-main); 
} 

::-webkit-scrollbar-thumb:hover { 
    background: #475569; 
}

.light-theme {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-light: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --input-bg: #f1f5f9;
    --nav-bg: rgba(248, 250, 252, 0.85);
    --gradient-1: #e0f2fe;
    --gradient-2: #f8fafc;
}

/* 2. BASE RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; transition: background 0.3s; overflow-x: hidden; position: relative; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.text-center { text-align: center; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.w-100 { width: 100%; display: block; text-align: center; }

/* 3. FIXED ANIMATED BACKGROUND */
.bg-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-mesh { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--accent), var(--gradient-2)); background-size: 400% 400%; animation: meshGradient 15s ease infinite; opacity: 0.15; }
@keyframes meshGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; }
.bg-animated-shape { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: floatAnimation 15s infinite alternate ease-in-out; }
.shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(59, 130, 246, 0.4); }
.shape-2 { top: 40%; right: -10%; width: 600px; height: 600px; background: rgba(139, 92, 246, 0.3); animation-delay: -5s; }
.shape-3 { bottom: -10%; left: 20%; width: 400px; height: 400px; background: rgba(14, 165, 233, 0.3); animation-delay: -10s; }
@keyframes floatAnimation { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

/* 4. NAVBAR & ACTIONS */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; text-decoration: none; }

.brand-img-nav { height: 55px; width: auto; object-fit: contain; margin-right: 15px; background: transparent; }
.brand-text-nav { font-size: 2rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.5px; }
.theme-accent { color: var(--accent-light); }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-item { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); transition: 0.3s; padding: 5px 0; position: relative; }
.nav-item:hover { color: var(--text-main); }
.nav-item.active { color: var(--accent); }
.nav-item.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--accent); border-radius: 2px; }

.nav-login-btn { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; transition: 0.3s; }
.nav-login-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
.nav-actions { display: flex; align-items: center; gap: 15px; }

.theme-btn-box { background-color: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.theme-btn-box:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }

.btn-get-started { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; transition: 0.3s; display: flex; gap: 8px; align-items: center; border: none; }
.btn-get-started:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }

/* 5. HERO SECTION */
.hero { text-align: center; padding: 130px 20px 100px; position: relative; z-index: 10; }
.badge { display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; color: var(--accent-light); border: 1px solid rgba(59, 130, 246, 0.4); padding: 8px 20px; border-radius: 50px; margin-bottom: 30px; background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
.hero-title { font-size: 4.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1.5px; }
.text-gradient { background: linear-gradient(to right, #60a5fa, #a855f7); background-clip: text; -webkit-background-clip: text; color: transparent; }
.text-accent { color: var(--accent-light); }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }
.btn-primary { background: var(--accent); color: white; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3); display: flex; align-items: center; gap: 10px;}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5); }
.btn-outline { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* 6. SHARED CARDS */
.section { padding: 90px 0; position: relative; z-index: 10; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 60px; font-size: 1.15rem; }

.premium-card, .pricing-card { background: var(--bg-card); border-radius: 24px; position: relative; padding: 3px; transition: 0.4s ease; text-align: left; z-index: 1; }
.card-content { background: var(--bg-card); border-radius: 21px; padding: 40px; height: 100%; position: relative; z-index: 2; }
.animated-border { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, var(--border), var(--border), var(--border)); border-radius: 24px; z-index: 0; transition: 0.4s; }
.premium-card:hover .animated-border, .pricing-card:hover .animated-border { background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6); background-size: 300% 300%; animation: gradientMove 4s ease infinite; }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.grid-premium { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.premium-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-icon { width: 65px; height: 65px; background: rgba(59, 130, 246, 0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent); margin-bottom: 25px; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular { transform: scale(1.03); z-index: 5; }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.pulse-border { background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6); background-size: 300% 300%; animation: gradientMove 4s ease infinite; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; font-size: 0.75rem; font-weight: 800; padding: 6px 20px; border-radius: 20px; letter-spacing: 1px; z-index: 10; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }
.plan-name { font-size: 0.9rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; }
.price { font-size: 3.5rem; font-weight: 900; margin: 15px 0 25px; letter-spacing: -1px; }
.price span { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.features-list { list-style: none; margin-bottom: 35px; text-align: left; }
.features-list li { margin-bottom: 15px; font-size: 1rem; display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.features-list li i { color: var(--text-main); font-size: 1rem; }

/* 8. CONTACT */
.animated-contact-wrapper { max-width: 750px; margin: 0 auto; position: relative; border-radius: 24px; background: linear-gradient(45deg, #3b82f6, #8b5cf6, #10b981, #3b82f6); padding: 3px; background-size: 300% 300%; animation: gradientMove 6s ease infinite; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.animated-contact-box { background: var(--bg-card); padding: 50px; border-radius: 21px; width: 100%; height: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group label { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); display: flex; gap: 8px; align-items: center; }
.form-group label i { color: var(--accent); }
.form-group input, .form-group textarea { background: var(--input-bg); border: 1px solid var(--border); color: var(--text-main); padding: 15px; border-radius: 12px; font-size: 1rem; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }

/* 9. FOOTER */
.footer { 
    background: var(--bg-main);
    border-top: 1px solid var(--border); 
    padding: 60px 0 0; 
    position: relative; 
    z-index: 50; 
    margin-top: 50px; 
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; padding: 0 20px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; line-height: 1.6; font-family: inherit; }
.footer-heading { font-size: 0.8rem; font-weight: 800; color: var(--text-main); letter-spacing: 1px; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: var(--text-muted); font-weight: 500; transition: 0.2s; font-family: inherit; }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

/* --- UPGRADED SOCIAL ICONS --- */
.footer-social-wrapper { display: flex; flex-direction: column; }
.footer-social { display: flex; gap: 15px; flex-wrap: wrap; }

.footer-social a {
    display: inline-block;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: transparent;
    border: none;
}

/* 1. Base Real Colors (Always visible) */
.footer-social a.social-tw { color: #1DA1F2; }
.footer-social a.social-ig { color: #E1306C; }
.footer-social a.social-li { color: #0A66C2; }
.footer-social a.social-fb { color: #1877F2; }
.footer-social a.social-gh { color: #c9d1d9; }
.light-theme .footer-social a.social-gh { color: #333333; }
.footer-social a.social-dc { color: #5865F2; }

/* 2. Float Animation & Glow Effect on Mouse Hover */
.footer-social a.social-tw:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(29, 161, 242, 0.5)); }
.footer-social a.social-ig:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(225, 48, 108, 0.5)); }
.footer-social a.social-li:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(10, 102, 194, 0.5)); }
.footer-social a.social-fb:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(24, 119, 242, 0.5)); }
.footer-social a.social-gh:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(201, 209, 217, 0.3)); }
.footer-social a.social-dc:hover { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 5px 10px rgba(88, 101, 242, 0.5)); }
/* ----------------------------- */

.footer-bottom { text-align: center; padding: 25px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; background: rgba(0,0,0,0.2); }

/* 10. DYNAMIC LEARNING TRACKS */
.side-track { position: fixed; top: 0; width: 14vw; height: 100vh; z-index: 1; pointer-events: none; overflow: hidden; display: flex; justify-content: center; }
.left-track { left: 0; border-right: 1px solid rgba(255,255,255,0.02); background: linear-gradient(90deg, rgba(15,23,42,0.5), transparent); }
.right-track { right: 0; border-left: 1px solid rgba(255,255,255,0.02); background: linear-gradient(-90deg, rgba(15,23,42,0.5), transparent); }
.light-theme .left-track { border-right: 1px solid rgba(0,0,0,0.02); background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); }
.light-theme .right-track { border-left: 1px solid rgba(0,0,0,0.02); background: linear-gradient(-90deg, rgba(255,255,255,0.5), transparent); }

.track-inner { display: flex; flex-direction: column; gap: 40px; width: 100%; align-items: center; padding: 20px 0; }
.track-item { width: 100px; height: 100px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); display: flex; justify-content: center; align-items: center; font-size: 3rem; color: var(--accent-light); opacity: 0.5; box-shadow: 0 0 30px rgba(59, 130, 246, 0.1); flex-shrink: 0; }

.slide-down { animation: scrollDown 25s linear infinite; }
.slide-up { animation: scrollUp 25s linear infinite; }

@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

@media (max-width: 1300px) { .side-track { display: none; } }
@media (max-width: 900px) { .nav-links { display: none; } .grid-premium, .pricing-grid, .form-row, .footer-content { grid-template-columns: 1fr; } .hero-title { font-size: 3.2rem; } .pricing-card.popular { transform: scale(1); } .pricing-card.popular:hover { transform: translateY(-10px); } }

/* =========================================================
   LAPTOP & DESKTOP FIXES (HOME PAGE)
   ========================================================= */
@media screen and (min-width: 769px) {
    /* Make Laptop Home Navbar Logo/Text match Index Page exactly */
    .navbar .nav-brand { gap: 10px !important; display: flex !important; align-items: center !important; text-decoration: none; }
    .navbar .brand-img-nav { height: 45px !important; width: auto !important; } 
    .navbar .brand-text-nav { font-size: 1.6rem !important; font-weight: 800 !important; margin: 0 !important; }
    
    /* Ensure Laptop Hero Buttons are perfectly side-by-side */
    .hero-buttons { flex-direction: row !important; display: flex !important; justify-content: center !important; gap: 20px !important; }
}

/* =========================================================
   MOBILE FIXES (HOME PAGE)
   ========================================================= */
@media screen and (max-width: 768px) {
    /* Hide decorative tracks for performance on mobile */
    .side-track { display: none; }
    
    /* Navbar Flex Control */
    .navbar { padding: 12px 15px !important; flex-wrap: nowrap !important; justify-content: space-between !important; align-items: center !important; }
    .nav-links { display: none; }
    
    /* Razor-thin gap between logo and text on mobile */
    .navbar .nav-brand { gap: 3px !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; text-decoration: none; }
    .navbar .brand-img-nav { height: 38px !important; width: auto !important; }
    .navbar .brand-text-nav { font-size: 1.45rem !important; margin-bottom: 0 !important; padding: 0 !important; font-weight: 800 !important; }
    
    /* Proper gap between theme box and launch app */
    .nav-actions { gap: 10px !important; margin-left: auto !important; }
    .theme-btn-box { width: 38px !important; height: 38px !important; padding: 0 !important; border-radius: 8px !important; }
    .launch-btn { padding: 8px 14px !important; font-size: 0.9rem !important; border-radius: 8px !important; }

    /* Hero Text Adjustments */
    .hero { padding: 100px 15px 40px; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.05rem; }

    /* Stack Hero Buttons (Sign in top, Guest bottom) ONLY on mobile */
    .hero-buttons { 
        flex-direction: column !important; 
        align-items: center !important;
        gap: 15px !important; 
        width: 100% !important;
    }
    .hero-buttons a { 
        width: 100% !important; 
        max-width: 280px !important; 
        font-size: 1rem !important; 
        padding: 14px 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* Form & Footer Mobile Adjustments */
    .form-row { flex-direction: column; gap: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
/* =========================================================
   CUSTOM TOAST MESSAGES FOR PAYMENT ALERTS
   ========================================================= */
#toast { visibility: hidden; min-width: 280px; background-color: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); text-align: center; border-radius: 50px; padding: 14px 24px; position: fixed; z-index: 9999; left: 50%; bottom: -50px; transform: translateX(-50%); font-size: 0.95rem; font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,0.4); opacity: 0; transition: 0.3s; display: flex; align-items: center; gap: 12px; justify-content: center; }
#toast.show { visibility: visible; opacity: 1; bottom: 30px; }