/**
 * Savvy Educational Consulting - Custom Styles
 * Modern, Professional, Fast-Loading Design
 */

/* ========================================
   1. ROOT VARIABLES & TYPOGRAPHY
======================================== */
:root {
    /* Colors */
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --success-green: #059669;
    --accent-orange: #f59e0b;
    --light-blue: #dbeafe;
    --light-green: #d1fae5;
    --light-orange: #fef3c7;
    --dark-gray: #1f2937;
    --light-gray: #f9fafb;
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   2. NAVIGATION
======================================== */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.nav-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-text {
    white-space: nowrap;
    line-height: 1.1;
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .brand-text {
        font-size: 1.1rem !important;
    }
    .nav-logo {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.4rem 0;
    }
    .brand-text {
        font-size: 0.95rem !important;
    }
    .nav-logo {
        height: 40px;
    }
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-blue) !important;
}

/* ========================================
   3. HERO SLIDER
======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
    width: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.7) 0%, rgba(30, 58, 138, 0.6) 40%, rgba(67, 56, 202, 0.5) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-slide.active .hero-badge {
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-slide.active .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-slide.active .hero-buttons {
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    /* animation set via .hero-slide.active above */
}

/* Slider dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}

.slider-dot:hover {
    border-color: white;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   4. BUTTONS
======================================== */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.btn-success {
    background: var(--success-green);
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   5. CARDS & SECTIONS
======================================== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--success-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

/* ========================================
   6. STATISTICS COUNTER
======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   7. TESTIMONIALS
======================================== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 1rem;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-gray);
}

.testimonial-role {
    color: #6b7280;
    font-size: 0.9rem;
}

.rating {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* ========================================
   8. CALL TO ACTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--success-green), #047857);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   9. FOOTER
======================================== */
footer {
    background: var(--dark-gray);
}

footer a:hover {
    color: var(--primary-blue) !important;
}

/* ========================================
   10. UTILITIES
======================================== */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* ========================================
   11. RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slide-img {
        height: 400px;
        object-position: center top;
    }
    
    .hero-slide-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-slider-dots {
        bottom: 15px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    .slider-arrow-prev {
        left: 10px;
    }
    
    .slider-arrow-next {
        right: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 400px) {
    .hero-slide-img {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}


/* ========================================
   12. NATIVE LANGUAGE SECTION
======================================== */
.native-language-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
}

.native-lang-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
    transition: transform 0.3s ease;
}

.native-lang-img:hover {
    transform: scale(1.02);
}

.section-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.language-badge {
    background: white;
    border: 2px solid var(--accent-orange);
    border-radius: 15px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.language-badge:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.language-badge:hover .language-name {
    color: white;
}

.language-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
    transition: color 0.3s ease;
}

/* ========================================
   13. ANIMATIONS
======================================== */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   13. LOADING OPTIMIZATION
======================================== */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}
