/* ============================================
   SEC TEAM ACADEMY - DUAL THEME DESIGN SYSTEM
   ============================================ */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES - LIGHT THEME (DEFAULT)
   ============================================ */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Brand Colors - Blue, White, Yellow */
    --color-blue: #2563eb;
    --color-blue-dark: #1e40af;
    --color-blue-light: #3b82f6;
    --color-yellow: #f59e0b;
    --color-yellow-dark: #d97706;
    --color-yellow-light: #fbbf24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    --shadow-glow-yellow: 0 0 20px rgba(245, 158, 11, 0.3);

    /* Border */
    --border-color: #e2e8f0;
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --color-blue: #3b82f6;
    --color-blue-dark: #2563eb;
    --color-blue-light: #60a5fa;
    --color-yellow: #fbbf24;
    --color-yellow-dark: #f59e0b;
    --color-yellow-light: #fde047;

    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #fde047 100%);
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #334155 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.4);
    --shadow-glow-yellow: 0 0 30px rgba(251, 191, 36, 0.4);

    --border-color: #334155;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.theme-toggle-icon {
    font-size: var(--font-size-xl);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.language-switcher:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.language-switcher select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    outline: none;
}

.language-switcher select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    font-family: var(--font-arabic);
}

[dir="rtl"] .hero-buttons,
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .pricing-features li::before {
    margin-left: var(--space-sm);
    margin-right: 0;
}

[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

[dir="rtl"] .theme-toggle {
    right: auto;
    left: 20px;
}


/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-blue);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-yellow {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-yellow);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-yellow);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn-outline:hover {
    background: var(--color-blue);
    color: white;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--color-blue);
    opacity: 0.1;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--color-yellow);
    opacity: 0.1;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-blue);
}

.card-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.card-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--color-yellow);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-glow-yellow);
}

.pricing-name {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.pricing-price {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.pricing-duration {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
}

.pricing-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.pricing-save {
    color: var(--color-yellow);
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
}

.pricing-features {
    list-style: none;
    margin: var(--space-lg) 0;
    text-align: left;
}

.pricing-features li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-blue);
    font-weight: bold;
    font-size: var(--font-size-xl);
}

/* ============================================
   URGENCY ELEMENTS
   ============================================ */
.urgency-banner {
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: var(--space-md);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-lg);
}

.countdown {
    display: inline-flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    min-width: 60px;
}

.countdown-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    display: block;
}

.countdown-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   PERFORMANCE - SLOW CONNECTION
   ============================================ */
.slow-connection * {
    animation-duration: 0s !important;
    transition-duration: 0.1s !important;
}

.slow-connection .hero::before,
.slow-connection .hero::after {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
    }

    .language-switcher {
        top: 10px;
        left: 10px;
    }
}

/* ============================================
   PAYMENT METHODS
   ============================================ */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin: var(--space-lg) 0;
}

.payment-badge {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.payment-badge:hover {
    border-color: var(--color-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.payment-icon {
    font-size: var(--font-size-2xl);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-blue {
    color: var(--color-blue);
}

.text-yellow {
    color: var(--color-yellow);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-lg {
    margin-top: var(--space-lg);
}

/* ============================================
   ACCESSIBILITY HELPERS
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

/* Skip link */
.skip-link:focus {
    position: absolute;
    top: 0 !important;
    left: 0;
    background: var(--color-blue);
    color: white;
    padding: var(--space-sm);
    text-decoration: none;
    z-index: 10000;
}