/* 
    Premium "Theme Purple" Modern Design System
    Focus: High-density, Slate/Purple palette, modern typography, and clean layouts.
*/

:root {
    --primary-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --theme-purple: #6366f1; /* Modern Indigo/Purple */
    --theme-purple-hover: #4f46e5;
    --theme-purple-soft: rgba(99, 102, 241, 0.05);
    --theme-purple-border: rgba(99, 102, 241, 0.1);
    --border-soft: #f1f5f9;
    --radius-std: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

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


/* Base Overrides */
body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 15px !important; /* Clean, not accidentally huge */
    line-height: 1.6;
}

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

/* Modern Sticky Header */
header#header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header#header .navbar {
    padding: 0.75rem 0 !important;
    margin-left: 0 !important; /* Reset legacy margin */
}

.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background: var(--theme-purple-soft);
    color: var(--theme-purple) !important;
}

/* Premium Buttons */
#contact-us-btn, .btn-primary, .genius-btn {
    background: linear-gradient(135deg, var(--theme-purple), #8b5cf6) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-std) !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    line-height: normal !important;
}

#contact-us-btn:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.45) !important;
    background: linear-gradient(135deg, #8b5cf6, var(--theme-purple)) !important;
}

/* Clean Form Controls */
.form-control {
    border-radius: var(--radius-sm) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
}

.form-control:focus {
    border-color: var(--theme-purple) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
}

/* Modern Section Titles */
.section-title h2 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    display: inline-block;
}

.section-title .subtitle {
    color: var(--theme-purple) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}

/* Cards & Content Blocks */
.best-course-v2, .course-item, .info-box, .popular-course-item {
    background: #fff !important;
    border-radius: var(--radius-std) !important;
    border: 1px solid var(--border-soft) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.best-course-v2:hover, .course-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--theme-purple-soft) !important;
}

/* Footer Modernization */
footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
}

footer h2, footer h3 {
    color: #fff !important;
}

/* Utility Classes */
.text-purple { color: var(--theme-purple) !important; }
.bg-purple { background-color: var(--theme-purple) !important; }
.rounded-std { border-radius: var(--radius-std) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-premium { box-shadow: var(--shadow-premium) !important; }
.letter-spacing-1 { letter-spacing: 1px !important; }
.grayscale { filter: grayscale(100%); transition: filter 0.3s ease; }
.grayscale-hover:hover { filter: grayscale(0%); }
.text-main { color: var(--text-main) !important; }

/* Font Size Overrides for Senior Dev High-Density Feel */
.small { font-size: 0.85rem !important; }
.fs-6 { font-size: 1rem !important; }
.display-4 { font-size: 3rem !important; font-weight: 800 !important; }

@media (max-width: 768px) {
    .display-4 { font-size: 2.25rem !important; }
}
