/* ================================================================
   SixTwo School Management System - Homepage Styles
   Modern design system with glassmorphism, gradients, and responsive design
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ================================================================
   CSS VARIABLES - Design System
   ================================================================ */
:root {
    --primary: #3b4eef;
    --primary-dark: #2c3cd1;
    --primary-light: #eef2ff;
    --secondary: #f97316;
    --accent: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   GLOBAL CONTAINER
   ================================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ================================================================
   NAVIGATION BAR
   ================================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.2s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, #3b4eef, #6c7eff);
    width: 42px;
    height: 42px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 14px -6px rgba(59, 78, 239, 0.3);
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(to right, #1e293b, #2d3a5e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-700);
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--gray-200);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-primary-sm {
    background: var(--primary);
    color: white !important;
    padding: 8px 24px;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(59, 78, 239, 0.2);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
    padding: 8px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    padding: 4rem 0 5rem 0;
    background: linear-gradient(145deg, #ffffff 30%, #f9fafe 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    background: #eef2ff;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #0f172a, #2d3a7c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}

.hero-highlight {
    color: var(--primary);
    background: linear-gradient(120deg, #eef2ff 0%, #eef2ff 40%, transparent 60%);
    padding: 0 6px;
}

.hero-description {
    font-size: 1.1rem;
    color: #334155;
    max-width: 90%;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 48px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(59, 78, 239, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(59, 78, 239, 0.4);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 12px 28px;
    border-radius: 48px;
    font-weight: 600;
    color: var(--gray-800);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: #fafbff;
}

.hero-image {
    flex: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdib3g9IjAgMCA4MDAgNjAwIiB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0iI2UyZThmMCIvPjxjaXJjbGUgY3g9IjQwMCIgY3k9IjMwMCIgcj0iMTUwIiBmaWxsPSIjM2I0ZWVmIiBmaWxsLW9wYWNpdHk9IjAuMDYiLz48cGF0aCBkPSJNMzAwIDI1MEw1MDAgMjUwTDUwMCAzNTBMMzAwIDM1MHoiIGZpbGw9IiMzYjRlZWYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9zdmc+') no-repeat center;
    background-size: contain;
    min-height: 360px;
    border-radius: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mock {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem;
    width: 90%;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.5);
}

.hero-features {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #475569;
    flex-wrap: wrap;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    color: #475569;
    margin-top: 0.5rem;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features {
    padding: 5rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: #475569;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 28px;
    padding: 2rem 1.5rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    background: var(--primary-light);
    width: 56px;
    height: 56px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.6;
}

/* ================================================================
   TESTIMONIALS SECTION
   ================================================================ */
.testimonials {
    padding: 5rem 0;
    background: white;
}

.testimonial-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    background: var(--gray-50);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    min-width: 280px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(120deg, #0f172a, #1e293b);
    color: white;
    border-radius: 48px;
    margin: 2rem auto 3rem auto;
    max-width: 1200px;
}

.cta-inner {
    text-align: center;
    padding: 2rem;
}

.cta-inner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-inner p {
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #0f172a;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    transform: scale(1.02);
    background: #f1f5f9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: white;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    color: #475569;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li, .footer-contact p {
    margin-bottom: 0.5rem;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links li:hover, .footer-contact p:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #475569;
    font-size: 1.2rem;
    transition: color 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary);
}

/* ================================================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ================================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .nav-inner {
        flex-wrap: nowrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 24px 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-grid {
        flex-direction: column;
    }

    .hero-description {
        max-width: 100%;
    }

    .stats-grid {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-inner h2 {
        font-size: 1.6rem;
    }

    .footer-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        flex-direction: column;
    }
}
