/* ==========================================================================
   Toppers Computer Platform - Design System & Premium Dark CSS
   ========================================================================== */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #2563eb;       /* Sleek Royal Blue */
    --primary-light: #60a5fa;
    --primary-dark: #090d16;
    --secondary: #f97316;     /* Radiant Amber Orange */
    --secondary-light: #fb923c;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #fbbf24;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Neutral Colors - Dark Theme Override */
    --background: #0b0f19;    /* Deep cosmic background */
    --surface: #111827;       /* Rich dark slate card */
    --text-main: #f3f4f6;     /* White/Light gray text */
    --text-muted: #9ca3af;    /* Soft gray */
    --border: rgba(255, 255, 255, 0.08); /* Translucent border */
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects & Border Radius */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff; /* Explicit white headings */
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .flex-mobile-col { flex-direction: column; }
}

/* Support Header Marquee */
.support-marquee {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    overflow: hidden;
}

/* Branding Header */
.branding-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.branding-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-svg {
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.brand-name span.blue { color: var(--primary-light); }
.brand-name span.orange { color: var(--secondary); }
.brand-name span.green { color: var(--success-light); }

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.brand-gov-info {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-call {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-call span {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Nav Menu */
.navbar {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown styling */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    min-width: 220px;
    display: none;
    list-style: none;
    border-top: 3px solid var(--secondary);
    z-index: 200;
    border: 1px solid var(--border);
}

.nav-dropdown li a {
    display: block;
    padding: 12px 18px;
    color: var(--text-main);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.nav-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    padding-left: 22px;
}

.nav-dropdown li:last-child a {
    border-bottom: none;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 16px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--background);
        border-top: 1px solid var(--border);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* Slider Section */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    height: 480px;
    background-color: var(--background);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.9), rgba(11, 15, 25, 0.45));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 650px;
    padding: 0 24px;
}

.slide-content h2 {
    font-size: 46px;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

@media (max-width: 768px) {
    .hero-slider-section { height: 320px; }
    .slide-content h2 { font-size: 28px; }
    .slide-content p { font-size: 14px; }
}

/* Floating WhatsApp widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    font-weight: 700;
    font-size: 14px;
    z-index: 999;
}

.whatsapp-widget:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Stats Counter Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    color: white;
    border: 1px solid var(--border) !important;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 52px;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Sliders (Recent Centers / Students) */
.slider-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
}

.card-item {
    min-width: 230px;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-fast);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,255,255,0.1);
}

.card-item-header {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
}

.card-item-body {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-item-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.05);
}

.card-item-footer {
    background-color: #030712;
    color: white;
    padding: 14px;
    font-size: 13px;
}

.card-item-footer h5 {
    color: var(--warning);
    font-size: 14px;
    margin-bottom: 2px;
}

/* Animated Apply Banner */
.apply-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 56px 0;
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.apply-banner h2 {
    color: white;
    font-size: 38px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: #030712;
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-contact li {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-contact li i {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
