/* =============================================
   PROJECT SUCCESS - ELEGANT DARK MODERN DESIGN
   Fixed text contrast for perfect readability
   ============================================= */

:root {
    /* Deep Elegant Colors */
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --bg-elevated: #1a2332;
    --bg-glass: rgba(17, 24, 39, 0.95);
    
    /* Premium Accents */
    --gold: #FFD966;
    --gold-dark: #F3B33D;
    --teal: #2DD4BF;
    --blue: #3B82F6;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD966 0%, #F3B33D 100%);
    --gradient-teal: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    
    /* Text Colors - LIGHT for dark backgrounds */
    --text-primary: #FFFFFF;
    --text-secondary: #F3F4F6;
    --text-muted: #D1D5DB;
    --text-dim: #9CA3AF;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 217, 102, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 40%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* =============================================
   TYPOGRAPHY - All text is light on dark background
   ============================================= */
h1, h2, h3, h4, p, span {
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =============================================
   GLASS NAVIGATION
   ============================================= */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 217, 102, 0.2);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold) !important;
}

.btn-login:hover {
    background: var(--gradient-gold);
    color: #0f172a !important;
}

.btn-register {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: #0f172a !important;
    border-radius: 50px;
    font-weight: 600;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

.main-content {
    padding-top: 80px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 217, 102, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 217, 102, 0.3);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #0f172a;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
    background: rgba(255, 217, 102, 0.1);
    transform: translateY(-3px);
    color: var(--gold);
}

/* =============================================
   STATISTICS CARDS - Dark background, Light text
   ============================================= */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    transition: all 0.4s;
    border: 1px solid rgba(255, 217, 102, 0.15);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================================
   COURSE CARDS - Dark background, Light text
   ============================================= */
.featured-courses {
    padding: 4rem 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(255, 217, 102, 0.15);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.course-image {
    height: 200px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.course-image i {
    font-size: 3.5rem;
    color: white;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-gold);
    color: #0f172a;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.course-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-meta i {
    color: var(--gold);
}

/* =============================================
   MISSION SECTION
   ============================================= */
.mission-section {
    padding: 4rem 0;
}

.mission-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 217, 102, 0.15);
}

.mission-card h2 {
    color: white;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 217, 102, 0.1);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.value-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   QUOTE SECTION
   ============================================= */
.quote-section {
    padding: 4rem 0;
}

.quote-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid rgba(255, 217, 102, 0.2);
}

.quote-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.quote-card p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: white;
}

.quote-card h4 {
    color: var(--gold);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: var(--gradient-teal);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 1000px;
}

.cta-section h2 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #0f172a;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: #0f172a;
    color: var(--gold);
    margin-top: 0;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #0a0f1a;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 217, 102, 0.1);
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--gold);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: #0f172a;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.contact-info li i {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

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

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-right: 3px solid var(--gold);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        transition: right 0.3s;
        padding: 2rem;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .stats-grid, .course-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem;
        margin: 2rem;
    }
    
    .quote-card p {
        font-size: 1.2rem;
    }
}

.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* Mobile sidebar toggle - active state */
.sidebar.active {
    transform: translateX(0) !important;
}

/* Admin footer */
.admin-footer {
    clear: both;
}

/* Ensure footer sections are responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}