/* Import Modern Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --body-bg: #fafafa;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --grad-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    --grad-dark-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 27, 75, 0.8) 100%);
    
    /* Shadows & Border Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--body-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Scroll Effects */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Navigation Bar */
.navbar-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    padding: 15px 0;
}

.navbar-premium.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 45px;
    transition: var(--transition-smooth);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 15px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Buttons */
.btn-premium {
    background-color: var(--primary); /* Fallback */
    background: var(--grad-primary);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: white !important;
}

.btn-secondary-premium {
    background-color: var(--secondary); /* Fallback */
    background: var(--grad-secondary);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.btn-secondary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(243, 244, 255, 1) 0%, rgba(250, 250, 250, 1) 90%);
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-shape-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: 1;
}

.hero-shape-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0) 70%);
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards (Standard & Glassmorphism) */
.premium-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.academy-card {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}

.academy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(79, 70, 229, 0.2);
}

.academy-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.academy-card:hover .academy-icon {
    background: var(--primary);
    color: white;
}

/* Parallax Banner */
.parallax-banner {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    color: white;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

.parallax-banner .container {
    position: relative;
    z-index: 2;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    display: none;
    transform-origin: bottom right;
    animation: fadeInUp 0.3s ease forwards;
}

.whatsapp-chat-box.show {
    display: block !important;
}

.hover-link {
    transition: var(--transition-fast);
}

.hover-link:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}

.whatsapp-header {
    background: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.whatsapp-body {
    padding: 20px;
    background: #ece5dd;
    max-height: 250px;
    overflow-y: auto;
}

.whatsapp-message {
    background: white;
    padding: 10px 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.whatsapp-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.whatsapp-input-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.whatsapp-input-btn:hover {
    background: #20ba5a;
    color: white;
}

/* Main Dashboard Shell */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark);
    color: white;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar .nav-link-db {
    color: var(--gray-300);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar .nav-link-db:hover,
.sidebar .nav-link-db.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--primary);
}

.dashboard-content {
    flex-grow: 1;
    background: #f1f5f9;
    padding: 40px;
}

/* Glassmorphism Dark Dashboard Elements (when applicable) */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 24px;
}

.dashboard-stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition-smooth);
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Instructor Bio Section */
.instructor-card img {
    height: 320px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary);
}

/* Timetable & Meeting Card */
.meeting-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.meeting-header {
    background: var(--grad-primary);
    color: white;
    padding: 18px 24px;
}

.meeting-body {
    padding: 24px;
}

/* Responsive sidebar helper */
@media (max-width: 991.98px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .dashboard-content {
        padding: 20px;
    }
}

/* ==========================================
   Premium UI Extensions
   ========================================== */

/* Premium Custom Accordion */
.accordion-item.border-light {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.accordion-item.border-light:hover {
    border-color: rgba(79, 70, 229, 0.3) !important;
    box-shadow: var(--shadow-md);
}
.accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 24px;
    background: white !important;
    color: var(--dark) !important;
    box-shadow: none !important;
    border: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.02) !important;
    border-bottom: 1px solid var(--gray-100) !important;
}
.accordion-button::after {
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition-smooth);
}
.accordion-button:not(.collapsed)::after {
    filter: none;
}
.accordion-body {
    background: white;
    padding: 24px;
}

/* Interactive Control Deck */
.control-deck {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    padding: 20px;
}

/* Glass Ticket Details */
.glass-ticket {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Glowing Badge & HSL Badges */
.badge-tint-primary {
    background-color: rgba(79, 70, 229, 0.08) !important;
    color: var(--primary) !important;
}
.badge-tint-secondary {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: var(--secondary) !important;
}
.badge-tint-accent {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: var(--accent) !important;
}
.badge-tint-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

/* Card Glow Accent */
.glow-card {
    position: relative;
    overflow: hidden;
}
.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
}

.glow-card-secondary::before {
    background: var(--grad-secondary);
}

.glow-card-accent::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
