:root {
    --primary: #0f4c81;
    --primary-light: #2a6aa3;
    --primary-dark: #0b355b;
    --secondary: #12a39b;
    --secondary-light: #31bfb7;
    --accent: #f97316;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--slate-800);
    overflow-x: hidden;
    background-color: white;
}

.fw-900 {
    font-weight: 900 !important;
}

/* Navbar Premium */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar-premium.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--slate-900) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    display: block;
    height: 90px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--slate-700) !important;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s;
}

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

.btn-nav-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    transition: all 0.3s;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(249, 115, 22, 0.35);
}

/* Hero Section */
.hero-premium {
    position: relative;
    padding: 12rem 0 8rem;
    background: var(--slate-50);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-premium::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -400px;
    right: -300px;
    z-index: 0;
}

.hero-premium::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(18, 163, 155, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -300px;
    left: -200px;
    z-index: 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--slate-100);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-700);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-mockup-container {
    position: relative;
    z-index: 1;
}

.hero-mockup {
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Feature Cards Premium */
.feature-box {
    padding: 3rem;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--slate-100);
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.feature-icon-premium {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--slate-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon-premium {
    background: var(--primary);
    color: white;
}

/* Section Styling */
.section-premium {
    padding: 8rem 0;
}

.section-tag {
    display: block;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title-premium {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 4rem;
}

.stats-value {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.stats-label {
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 600;
}

/* Split CTA Section */
.split-sections {
    display: flex;
    min-height: 600px;
}

.split-panel {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
    color: white;
}

.split-panel.student {
    background: linear-gradient(135deg, #0f4c81 0%, #0b355b 100%);
}

.split-panel.teacher {
    background: linear-gradient(135deg, #12a39b 0%, #0b6f69 100%);
}

.split-panel:hover {
    transform: translateY(-6px);
}

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

.split-panel h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.split-panel p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.btn-white {
    background: white;
    color: var(--slate-900);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Pricing Cards Premium */
.pricing-card-premium {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--slate-100);
    transition: all 0.4s;
    position: relative;
}

.pricing-card-premium.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: 0 30px 60px rgba(79, 70, 229, 0.1);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Footer Premium */
.footer-premium {
    background: var(--slate-900);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: white;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Mobile Small (max 575px) - iPhone SE, older Android */
@media (max-width: 575px) {

    /* Typography */
    .hero-title {
        font-size: 1.75rem !important;
        /* 28px */
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem !important;
        /* 15px */
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .section-title-premium {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .split-panel h3 {
        font-size: 1.5rem !important;
    }

    /* Spacing */
    .hero-premium {
        padding: 6rem 0 3rem !important;
        min-height: auto;
    }

    .section-premium {
        padding: 3rem 0 !important;
    }

    .feature-box {
        padding: 1.5rem !important;
    }

    .split-panel {
        padding: 2.5rem 1.25rem !important;
        min-height: 350px;
    }

    /* Buttons - Touch Friendly */
    .btn-nav-primary {
        width: 100%;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem;
        min-height: 48px;
    }

    .btn-white {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
        width: 100%;
        text-align: center;
    }

    .hero-premium .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .hero-premium .btn {
        width: 100%;
    }

    /* Hide floating elements */
    .floating-card {
        display: none !important;
    }

    /* Hero mockup */
    .hero-mockup {
        margin-top: 2rem;
        border-width: 4px;
    }

    /* Stats - Single column */
    .stats-item .fs-1 {
        font-size: 2rem !important;
    }

    .stats-item .text-muted {
        font-size: 0.875rem;
    }

    /* Feature icons */
    .feature-icon-premium {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-box h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .feature-box p {
        font-size: 0.875rem;
    }
}

/* Mobile Medium (576px - 767px) - Most modern phones */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 2rem !important;
        /* 32px */
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .section-title-premium {
        font-size: 2rem !important;
    }

    .hero-premium {
        padding: 7rem 0 4rem !important;
    }

    .section-premium {
        padding: 4rem 0 !important;
    }

    .split-panel {
        padding: 3rem 2rem !important;
        min-height: 400px;
    }

    .btn-nav-primary {
        width: auto;
        min-width: 200px;
    }
}

/* Tablet (768px - 991px) - iPad, Android tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title-premium {
        font-size: 2.25rem !important;
    }

    .hero-premium {
        padding: 8rem 0 5rem !important;
    }

    .section-premium {
        padding: 5rem 0 !important;
    }

    .split-sections {
        flex-direction: column;
    }

    .split-panel {
        padding: 4rem 3rem !important;
    }

    .split-panel:hover {
        flex: 1;
        /* No expand on tablet */
    }
}

/* Desktop under 992px  - Laptop, small desktop */
@media (max-width: 991px) {

    /* Navbar mobile menu */
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-toggler {
        border: 2px solid var(--primary);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }

    .navbar-premium .navbar-toggler-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* Center hero content on smaller screens */
    .hero-premium {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-premium .d-flex.gap-3 {
        justify-content: center;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-premium {
        padding: 4rem 0 2rem !important;
        min-height: auto !important;
    }

    .section-premium {
        padding: 2rem 0 !important;
    }

    .navbar-premium {
        padding: 0.5rem 0;
    }
}


/* ============================================
   INNER PAGES RESPONSIVENESS (About, Contact, etc.)
   ============================================ */

@media (max-width: 767px) {

    /* Spacing utilities responsiveness */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-badge {
        margin-bottom: 1.5rem;
    }

    /* Gaps */
    .g-5 {
        --bs-gutter-y: 2rem !important;
    }

    /* Mission & Vision Cards */
    .card.p-5 {
        padding: 2rem !important;
        /* About page mission card */
    }

    .card .row.g-4 .col-6 {
        width: 100% !important;
        /* Stack stats on very small mobile */
        margin-bottom: 1rem;
    }

    /* Values Section Icons */
    .icon-box {
        width: 50px !important;
        height: 50px !important;
        padding: 1rem !important;
    }

    /* CTA buttons on inner pages */
    .btn-lg.rounded-pill {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Contact Page Specifics */
@media (max-width: 991px) {
    #contact-info {
        margin-bottom: 3rem;
    }
}

/* Pricing & FAQ Specific Responsiveness */
@media (max-width: 767px) {
    .pricing-toggle {
        flex-direction: column;
        width: 100%;
    }

    .pricing-toggle .btn {
        width: 100%;
    }

    .pricing-card.popular {
        transform: scale(1) !important;
        /* Remove scale on mobile to avoid layout issues */
        margin: 2rem 0;
    }

    .faq-question {
        padding: 1rem !important;
        font-size: 0.9rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* Checkout & Final UI Optimizations */
@media (max-width: 991px) {
    .order-summary {
        position: static !important;
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .card-header {
        padding: 1.25rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .price-display {
        font-size: 1.75rem !important;
    }

    /* Horizontal scroll for any tables on pages */
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    table {
        min-width: 300px;
    }
}

/* Utility classes for better mobile experience */
@media (max-width: 767px) {
    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-w-100 {
        width: 100% !important;
    }
}

/* Print styles */
@media print {

    .navbar-premium,
    .floating-card {
        display: none !important;
    }

    .hero-premium,
    .section-premium {
        padding: 2rem 0 !important;
    }
}