﻿
:root {
    /* Theme 1: Royal Purple & Electric Blue */
    --theme1-primary: #8B5CF6;
    --theme1-secondary: #3B82F6;
    --theme1-accent: #A78BFA;
    --theme1-gradient: linear-gradient(145deg, #8B5CF6, #3B82F6);
    --theme1-glow: 0 0 30px rgba(139, 92, 246, 0.4);
    /* Theme 2: Ruby Red & Amber */
    --theme2-primary: #EF4444;
    --theme2-secondary: #F59E0B;
    --theme2-accent: #F87171;
    --theme2-gradient: linear-gradient(145deg, #EF4444, #F59E0B);
    --theme2-glow: 0 0 30px rgba(239, 68, 68, 0.4);
    /* Theme 3: Emerald & Teal */
    --theme3-primary: #10B981;
    --theme3-secondary: #06B6D4;
    --theme3-accent: #34D399;
    --theme3-gradient: linear-gradient(145deg, #10B981, #06B6D4);
    --theme3-glow: 0 0 30px rgba(16, 185, 129, 0.4);
    /* Theme 4: Rose Gold & Pink */
    --theme4-primary: #EC4899;
    --theme4-secondary: #F97316;
    --theme4-accent: #F472B6;
    --theme4-gradient: linear-gradient(145deg, #EC4899, #F97316);
    --theme4-glow: 0 0 30px rgba(236, 72, 153, 0.4);
    /* Neutral Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #111118;
    --bg-card: #1A1A24;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0FF;
    --text-soft: #A0A0C0;
    --text-muted: #6B6B8B;
    /* Effects */
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --border-glow: 1px solid rgba(139, 92, 246, 0.3);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

    .preloader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: 'Ananda Namaste', 'Playfair Display', serif;
    font-size: 4rem;
    background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary), var(--theme3-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--theme1-primary);
    border-right-color: var(--theme2-primary);
    border-bottom-color: var(--theme3-primary);
    border-left-color: var(--theme4-primary);
    border-radius: 50%;
    animation: preloaderSpin 1.2s linear infinite;
}

.preloader-text {
    margin-top: 2rem;
    color: var(--text-soft);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ========== THEME CLASSES ========== */
.theme-1 {
    background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2A 100%);
    position: relative;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

    .theme-1::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 60%), radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
        pointer-events: none;
    }

.theme-2 {
    background: linear-gradient(135deg, #1A0F0F 0%, #2A1A1A 100%);
    position: relative;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

    .theme-2::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.15) 0%, transparent 60%), radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
        pointer-events: none;
    }

.theme-3 {
    background: linear-gradient(135deg, #0F1A1A 0%, #1A2A2A 100%);
    position: relative;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

    .theme-3::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.15) 0%, transparent 60%), radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
        pointer-events: none;
    }

.theme-4 {
    background: linear-gradient(135deg, #1A0F1A 0%, #2A1A2A 100%);
    position: relative;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

    .theme-4::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 60% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 60%), radial-gradient(circle at 40% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
        pointer-events: none;
    }

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 120px;
        height: 4px;
        border-radius: 4px;
        transition: width var(--transition-base);
    }

.theme-1 .section-title::after {
    background: var(--theme1-gradient);
    box-shadow: var(--theme1-glow);
}

.theme-2 .section-title::after {
    background: var(--theme2-gradient);
    box-shadow: var(--theme2-glow);
}

.theme-3 .section-title::after {
    background: var(--theme3-gradient);
    box-shadow: var(--theme3-glow);
}

.theme-4 .section-title::after {
    background: var(--theme4-gradient);
    box-shadow: var(--theme4-glow);
}

.section-title:hover::after {
    width: 180px;
}

.gradient-text {
    background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Theme-aware gradient text */
.theme-1 .gradient-text {
    background: var(--theme1-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-2 .gradient-text {
    background: var(--theme2-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-3 .gradient-text {
    background: var(--theme3-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.theme-4 .gradient-text {
    background: var(--theme4-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-base);
}

    .logo-wrapper:hover {
        transform: scale(1.02);
    }

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 5px 20px rgba(139, 92, 246, 0.5));
    transition: filter var(--transition-base);
}

.logo-wrapper:hover .logo-img {
    filter: drop-shadow(0 5px 30px rgba(139, 92, 246, 0.8));
}

.academy-name {
    font-family: 'Ananda Namaste', 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary), var(--theme3-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.7rem;
    color: var(--text-soft);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.navbar-nav {
    gap: 0.25rem;
}

    .navbar-nav .nav-link {
        color: var(--text-secondary) !important;
        font-weight: 500;
        padding: 0.6rem 1.2rem !important;
        border-radius: 40px;
        transition: all var(--transition-fast);
    }

        .navbar-nav .nav-link:hover {
            background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary));
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.5);
        }

        .navbar-nav .nav-link.active {
            background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary));
            color: white !important;
        }

.dropdown-menu {
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-fast);
}

    .dropdown-item:hover {
        background: linear-gradient(145deg, var(--theme1-primary), var(--theme2-primary));
        color: white;
        transform: translateX(5px);
    }

/* ========== FIXED BUTTONS - ENHANCED VISIBILITY ========== */
.btn-theme, .btn-outline-theme {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    border-radius: 50px;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-theme {
    padding: 0.85rem 2.2rem;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white !important;
    background: var(--theme1-gradient);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.5);
}

    .btn-theme::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: -1;
    }

    .btn-theme:hover::before {
        transform: translateX(0);
    }

    .btn-theme:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    }

.btn-outline-theme {
    padding: 0.8rem 2.2rem;
    background: transparent;
    border: 2px solid var(--theme1-primary);
    color: white !important;
    background: rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(5px);
}

    .btn-outline-theme:hover {
        background: var(--theme1-gradient);
        border-color: transparent;
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.5);
    }

/* Small button variant */
.btn-theme-sm, .btn-outline-theme-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* ========== MOBILE NAVIGATION TOGGLE - ENHANCED ========== */
.navbar-toggler {
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.6rem;
    border-radius: 12px;
    transition: all var(--transition-base);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .navbar-toggler:hover {
        background: var(--theme1-gradient);
        border-color: transparent;
        transform: scale(1.05);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(139, 92, 246, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    display: inline-block;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Menu */
.navbar-collapse {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1rem;
    margin-top: 1rem;
    border: var(--border-light);
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Mobile Action Buttons */
.mobile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: var(--border-light);
}

    .mobile-actions .btn-theme,
    .mobile-actions .btn-outline-theme {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

/* Cards */
.card-modern {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 2rem;
    transition: all var(--transition-base);
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: var(--border-light);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

    .card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    .card-modern:hover {
        transform: translateY(-10px);
        border-color: rgba(255, 255, 255, 0.2);
    }

.theme-1 .card-modern:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.theme-2 .card-modern:hover {
    box-shadow: 0 20px 40px -10px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.3);
}

.theme-3 .card-modern:hover {
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.theme-4 .card-modern:hover {
    box-shadow: 0 20px 40px -10px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.3);
}

.card-modern:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
    display: inline-block;
}

.theme-1 .card-icon {
    color: var(--theme1-primary);
}

.theme-2 .card-icon {
    color: var(--theme2-primary);
}

.theme-3 .card-icon {
    color: var(--theme3-primary);
}

.theme-4 .card-icon {
    color: var(--theme4-primary);
}

.card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0A0F 0%, #1A1A2A 100%);
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.2) 0%, transparent 40%), radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
    pointer-events: none;
    animation: particlesMove 25s ease-in-out infinite;
}

@keyframes particlesMove {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 40px;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Navigation */
.policy-footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    padding: 1rem;
}

    .policy-footer-nav a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

        .policy-footer-nav a:hover {
            color: var(--theme1-primary);
        }

        .policy-footer-nav a i {
            font-size: 0.8rem;
        }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: var(--border-light);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme1-primary), var(--theme2-primary), var(--theme3-primary), transparent);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 35px;
        height: 2px;
        background: var(--theme1-gradient);
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        color: var(--text-soft);
        text-decoration: none;
        transition: all var(--transition-fast);
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--theme1-primary);
            transform: translateX(5px);
        }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: all var(--transition-base);
    margin-right: 0.5rem;
    border: var(--border-light);
    text-decoration: none;
    font-size: 1rem;
}

    .social-link:hover {
        background: var(--theme1-gradient);
        color: white;
        transform: translateY(-5px) rotate(360deg);
        border-color: transparent;
        box-shadow: var(--theme1-glow);
    }

/* Footer Credit */
.footer-credit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.marmelos-logo {
    height: 28px;
    width: auto;
    filter: grayscale(100%) brightness(70%);
    transition: all var(--transition-base);
}

    .marmelos-logo:hover {
        filter: grayscale(0%) brightness(100%);
        transform: scale(1.05);
    }

.credit-text {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.heart-icon {
    color: var(--theme2-primary);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ========== UTILITY CLASSES ========== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid for course cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .btn-theme, .btn-outline-theme {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 45px;
    }

    .academy-name {
        font-size: 1.4rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

