/* ============================================
   CANVAS BASANTA RITU SCHOOL - BOOTSTRAP CUSTOM THEME
   Elegant Luxury Education Design System
   ============================================ */

/* ============================================
   ELEGANT COLOR PALETTE
   ============================================ */
:root {
    /* Primary Colors - Deep Royal Purple & Plum */
    --primary-dark: #2d1b69;
    --primary: #4a2c7e;
    --primary-light: #6b46c1;
    --primary-lighter: #8b5cf6;
    
    /* Secondary Colors - Elegant Gold & Amber */
    --secondary-dark: #b8860b;
    --secondary: #d4af37;
    --secondary-light: #f4d03f;
    --secondary-lighter: #ffd700;
    
    /* Accent Colors - Rich Rose Gold & Burgundy */
    --accent-primary: #c9184a;
    --accent-secondary: #b5838d;
    --accent-tertiary: #e5989b;
    
    /* Neutral Elegance */
    --neutral-900: #1a1625;
    --neutral-800: #2d2440;
    --neutral-700: #3f3351;
    --neutral-600: #5a5068;
    --neutral-500: #8a7f96;
    --neutral-400: #afa8b8;
    --neutral-300: #d4d0da;
    --neutral-200: #e9e6ed;
    --neutral-100: #f5f3f7;
    --neutral-50: #faf9fb;
    
    /* Sophisticated Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #faf9fb;
    --bg-tertiary: #f5f3f7;
    --bg-dark: #1a1625;
    --bg-gradient-primary: linear-gradient(135deg, #4a2c7e 0%, #6b46c1 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --bg-gradient-hero: linear-gradient(135deg, rgba(42, 28, 78, 0.95) 0%, rgba(74, 44, 126, 0.9) 50%, rgba(107, 70, 193, 0.85) 100%);
    --bg-gradient-overlay: linear-gradient(180deg, rgba(26, 22, 37, 0) 0%, rgba(26, 22, 37, 0.8) 100%);
    
    /* Elegant Shadows */
    --shadow-xs: 0 1px 3px rgba(74, 44, 126, 0.08);
    --shadow-sm: 0 2px 8px rgba(74, 44, 126, 0.12);
    --shadow-md: 0 4px 16px rgba(74, 44, 126, 0.15);
    --shadow-lg: 0 8px 32px rgba(74, 44, 126, 0.18);
    --shadow-xl: 0 16px 48px rgba(74, 44, 126, 0.22);
    --shadow-2xl: 0 24px 64px rgba(74, 44, 126, 0.28);
    
    /* Premium Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(74, 44, 126, 0.12);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--bg-secondary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--bg-gradient-secondary);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* ============================================
   ELEGANT NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
}

.logo i {
    font-size: 2rem;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 0.75rem 1.25rem;
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--bg-gradient-secondary);
    transition: transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--neutral-100);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: translateX(-50%) scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION - ELEGANT & LUXURIOUS
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-gradient-hero);
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(107, 70, 193, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
    z-index: 2;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--secondary-light);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: var(--font-display);
    font-style: italic;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ELEGANT BUTTONS
   ============================================ */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--bg-gradient-secondary);
    color: var(--neutral-900);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--neutral-900);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-4px);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ============================================
   BOOTSTRAP OVERRIDES - ELEGANT THEME
   ============================================ */

/* Container Improvements */
.container {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Card Elegance */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    background: var(--bg-primary);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--bg-gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Glass Card Variant */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.92);
}

/* Badge Elegance */
.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.badge-primary {
    background: var(--bg-gradient-primary);
}

.badge-secondary {
    background: var(--bg-gradient-secondary);
    color: var(--neutral-900);
}

/* Button Bootstrap Overrides */
.btn-primary:not(.btn-custom) {
    background: var(--bg-gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-primary:not(.btn-custom):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--bg-gradient-primary);
    border-color: var(--primary-light);
    color: white;
}

/* Form Elegance */
.form-control,
.form-select {
    border: 2px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 44, 126, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

/* Section Styling */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--neutral-600);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient-primary {
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--bg-gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--bg-gradient-primary);
}

.bg-gradient-secondary {
    background: var(--bg-gradient-secondary);
}

.elegant-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neutral-300), transparent);
    margin: 3rem 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    header nav {
        padding: 1rem 0;
    }
}
