:root {
    --bg-dark: #07090e;
    --bg-card: rgba(20, 25, 40, 0.6);
    --bg-nav: rgba(7, 9, 14, 0.8);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 0;
    text-align: center;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

.announcement-banner.hidden {
    display: none;
}

.announcement-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.announcement-banner .badge {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.announcement-banner a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-banner a:hover {
    text-decoration: underline;
    color: var(--accent-blue);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    position: absolute;
    right: 2rem;
}

.close-btn:hover {
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-blue);
}

.secondary-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.amazon-btn {
    background: #FF9900;
    color: #111;
    gap: 0.5rem;
}

.amazon-btn:hover {
    background: #E88A00;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    transform: translateY(-2px);
}

.flipkart-btn {
    background: #047BD5;
    color: white;
    gap: 0.5rem;
}

.flipkart-btn:hover {
    background: #0368B5;
    box-shadow: 0 4px 15px rgba(4, 123, 213, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: var(--bg-dark);
}

body {
    padding-top: 80px; /* offset for fixed navbar */
}

.navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.2rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: calc(100vh - 80px); /* Fill screen minus navbar */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite alternate;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.tutor-img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.glow-bg-purple {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--accent-purple);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.stat-box p {
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
}

/* Book Section */
.book-section {
    background: rgba(20, 25, 40, 0.3);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.book-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-content .badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.book-content .badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    margin-bottom: 1rem;
}

.book-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.book-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-img {
    width: 100%;
    max-width: 350px;
    z-index: 2;
    border-radius: 12px;
}

.glow-bg-blue {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.book-actions .btn {
    flex: 1;
    min-width: 160px;
    margin-bottom: 0.5rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

/* Courses (Playlists) Section */
.courses .section-header {
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.playlist-card, .testimonial-card {
    padding: 0;
}

.testimonial-card {
    padding: 2.5rem 2rem;
}

.playlist-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.playlist-thumb::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.playlist-card:hover .playlist-thumb::after {
    background: rgba(0,0,0,0.5);
}

.playlist-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.play-overlay {
    position: relative;
    z-index: 2;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.card:hover .play-overlay {
    opacity: 1;
}

/* Playlist Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: translateY(50px);
}

.close-modal-btn {
    position: absolute;
    top: -3rem;
    left: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.close-modal-btn:hover {
    color: var(--accent-blue);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* FAQs */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 1.5rem 2rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-purple);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem;
    background: rgba(7, 9, 14, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.footer-links-col h4, .footer-contact-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links-col ul, .footer-contact-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col a, .footer-contact-col a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links-col a:hover, .footer-contact-col a:hover {
    color: var(--accent-blue);
}

.footer-contact-col i {
    color: var(--accent-purple);
    width: 20px;
    margin-right: 0.5rem;
}

.footer-contact-col li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.copyright {
    text-align: center;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.playlist-card:hover .play-overlay {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .headline { font-size: 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-content {
        order: 2;
    }
    .book-visual {
        order: 1;
    }
    .book-actions {
        justify-content: center;
    }
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    
    /* Mobile Navbar & Hamburger */
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a { font-size: 1.5rem; }
    
    .sub-btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
    
    /* Mobile Hero Layout */
    .hero { 
        min-height: calc(100vh - 80px); 
        padding-top: 0; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-visual { display: none; }
    
    .logo { font-size: 1.3rem; }
    .headline { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .subheadline { font-size: 1.1rem; }
    .card { padding: 1.5rem; }
    .hero-actions { flex-direction: column; }
    .book-actions .btn { width: 100%; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-desc {
        margin: 1rem auto 1.5rem;
    }
    .footer-contact-col li {
        justify-content: center;
    }
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }
    .close-modal-btn {
        top: 1rem;
        right: 1rem;
        left: auto;
        background: rgba(255,255,255,0.1);
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }
}

/* Testimonial Auto Scroll Marquee */
.testimonials-scroller {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
}
.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}
.testimonials-track:hover {
    animation-play-state: paused;
}
.testimonials-track .card {
    width: 350px; /* Fixed width for marquee items */
    white-space: normal;
    flex-shrink: 0;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}
