/* === CSS RESET & VARIABLES - MOBILE FIRST === */
:root {
    /* Colors - Dark Theme (Default) */
    --primary-color: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-surface: #334155;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    
    /* Border & Shadow */
    --border-color: #334155;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing - Mobile First */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* Safe Area Variables */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    
    /* Mobile Viewport Height Fix */
    --vh: 1vh;
}

/* Light Theme */
.light-theme {
    --primary-color: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --secondary-color: #3b82f6;
    
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* === RESET & BASE STYLES === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
    text-rendering: optimizeLegibility;
}

/* Container - Tüm ekranlar için optimize */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === TYPOGRAPHY - MOBILE FIRST === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

/* MOBILE FIRST FONT SIZES */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Tablet (768px+) */
@media (min-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

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

/* === BUTTONS - MOBILE OPTIMIZED === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    user-select: none;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: currentColor;
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-on-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-text {
    display: inline-block;
}

/* Küçük ekranlar için buton optimizasyonu */
@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 42px;
        min-width: 42px;
        border-radius: 10px;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .auth-buttons .btn {
        padding: 0.75rem;
        min-width: 42px;
    }
    
    .btn-text {
        font-size: 0.8125rem;
    }
}

/* 375px ve altı için ek optimizasyon */
@media (max-width: 375px) {
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 40px;
        min-width: 40px;
        border-radius: 10px !important;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 46px;
    }
    
    .btn-outline {
        border-width: 2px;
    }
    
    .auth-buttons .btn {
        padding: 0.625rem;
        min-width: 40px;
        height: 40px;
        border-radius: 10px !important;
    }
    
    .auth-buttons .btn-text {
        font-size: 0.75rem;
    }
    
    /* Tüm butonlar için border radius fix */
    .btn,
    .btn-primary,
    .btn-outline,
    .btn-large,
    .btn-small,
    .theme-toggle,
    .current-lang,
    .mobile-menu-toggle,
    .close-menu,
    .mobile-nav-link,
    .theme-option,
    .mobile-lang-option,
    .social-link,
    .back-to-top,
    .course-card,
    .feature-card,
    .stat,
    .stat-item,
    .floating-card,
    .floating-badge {
        border-radius: 10px !important;
    }
}

/* 320px için ekstra optimizasyon */
@media (max-width: 320px) {
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 38px;
        min-width: 38px;
        border-radius: 8px !important;
    }
    
    .btn-large {
        padding: 0.625rem 1rem;
        min-height: 42px;
    }
    
    .auth-buttons .btn {
        padding: 0.5rem;
        min-width: 38px;
        height: 38px;
    }
    
    .auth-buttons .btn-text {
        display: none;
    }
    
    .auth-buttons .btn i {
        margin: 0;
        font-size: 1rem;
    }
}

/* === HEADER - MOBILE OPTIMIZED === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    padding-top: var(--safe-area-inset-top);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
        flex: 1;
        margin: 0 var(--spacing-lg);
    }
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    min-height: 44px;
    min-width: 44px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
    min-width: 52px;
    min-height: 30px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    z-index: 1;
}

.theme-toggle .fa-moon {
    left: 8px;
}

.theme-toggle .fa-sun {
    right: 8px;
    opacity: 0;
}

.light-theme .theme-toggle .fa-moon {
    opacity: 0;
}

.light-theme .theme-toggle .fa-sun {
    opacity: 1;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.light-theme .toggle-slider {
    transform: translateX(22px);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Profile Info */
.profile-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
    min-height: 44px;
}

.profile-link:hover {
    background: rgba(124, 58, 237, 0.1);
}

.profile-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-small i {
    color: white;
    font-size: 14px;
}

.profile-name-small {
    font-weight: 500;
    font-size: 0.75rem;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .profile-name-small {
        display: none;
    }
    
    .profile-link {
        padding: 0.25rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: var(--z-fixed);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 10px;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 10px;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-modal);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-area-inset-top);
    padding-bottom: var(--safe-area-inset-bottom);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
    margin-top: calc(-1 * var(--safe-area-inset-top));
    padding-top: calc(var(--spacing-md) + var(--safe-area-inset-top));
    flex-shrink: 0;
}

.mobile-nav-header .logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

.close-menu:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.close-menu:hover {
    background: var(--bg-surface);
}

.mobile-nav-list {
    list-style: none;
    padding: var(--spacing-md);
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.125rem;
    min-height: 52px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Mobile Theme Toggle */
.mobile-theme-section {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-sm);
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.mobile-theme-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    min-height: 52px;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

.theme-option:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-option:hover,
.theme-option.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: var(--bg-secondary);
    padding-bottom: calc(var(--spacing-md) + var(--safe-area-inset-bottom));
    flex-shrink: 0;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.mobile-auth-buttons .btn {
    width: 100%;
    justify-content: center;
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-modal-backdrop);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === HERO SECTION - MOBILE OPTIMIZED === */
.hero-section {
    padding: calc(64px + var(--spacing-xl) + var(--safe-area-inset-top)) 0 var(--spacing-xl);
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xxl);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    width: fit-content;
}

.hero-title {
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.typed-text {
    color: var(--primary-color);
    display: inline-block;
    min-height: 2.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    display: flex;
    flex-direction: column;
    background: rgba(124, 58, 237, 0.05);
    padding: var(--spacing-md);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    order: -1;
}

@media (min-width: 1024px) {
    .hero-visual {
        order: 1;
    }
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        height: 450px;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

.floating-card i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.card1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.card3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

.card1, .card2 {
    animation-name: float-no-translate;
}

@keyframes float-no-translate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === COURSES SECTION === */
.courses-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.course-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.course-icon {
    width: 100%;
    height: 150px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

@media (min-width: 768px) {
    .course-icon {
        width: 325px;
        height: 110px;
    }
}

.course-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.course-level,
.course-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-content {
    padding: var(--spacing-lg);
    flex: 1;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.course-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.feature i {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.course-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    margin-top: auto;
}

.course-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.price-free {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.courses-cta {
    text-align: center;
}

/* === FEATURES SECTION === */
.features-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-on-primary);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex: 1;
    font-size: 0.9375rem;
}

.feature-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.feature-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-stats i {
    color: var(--success-color);
}

/* === ABOUT SECTION === */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xxl);
    }
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.about-features {
    margin-bottom: var(--spacing-lg);
}

.about-features .feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.about-features i {
    color: var(--success-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.about-visual {
    position: relative;
    order: -1;
}

@media (min-width: 1024px) {
    .about-visual {
        order: 1;
    }
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

.floating-badge i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.floating-badge span {
    font-size: 0.875rem;
    font-weight: 600;
}

.badge1 {
    top: 20px;
    left: 70px;
    animation-delay: 0s;
}

.badge2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.badge3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.cta-title {
    margin-bottom: var(--spacing-md);
    color: var(--text-on-primary);
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

.cta-section .btn-outline {
    color: var(--text-on-primary);
    border-color: var(--text-on-primary);
    background: transparent;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.cta-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-on-primary);
    opacity: 0.9;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.cta-stats i {
    font-size: 1.5rem;
}

/* === FOOTER === */
.main-footer {
    background: var(--bg-secondary);
    padding: var(--spacing-xxl) 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section {
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
    min-width: 44px;
    min-height: 44px;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--text-on-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.newsletter h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    min-width: 0;
    min-height: 44px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form .btn {
    padding: 0.75rem;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding-bottom: calc(var(--spacing-lg) + var(--safe-area-inset-bottom));
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    order: 2;
}

@media (min-width: 768px) {
    .copyright {
        order: 1;
    }
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
    order: 1;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        order: 2;
        justify-content: flex-end;
    }
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: calc(1rem + var(--safe-area-inset-bottom));
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg);
    font-size: 1.25rem;
    min-width: 50px;
    min-height: 50px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.progress-bar {
    width: 180px;
    height: 3px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === WAVE EFFECT === */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-fill {
    fill: rgba(15, 23, 42, 0.1);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: calc(56px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .courses-section,
    .features-section,
    .about-section,
    .cta-section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .main-footer {
        padding: var(--spacing-xl) 0 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .header-content {
        height: 56px;
        gap: var(--spacing-sm);
    }
    
    .hero-section {
        padding: calc(56px + var(--spacing-md)) 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .courses-grid,
    .features-grid {
        gap: var(--spacing-md);
    }
    
    .course-card,
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .course-icon {
        height: 120px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 13px;
    }
    
    .header-content {
        height: 52px;
        gap: var(--spacing-xs);
    }
    
    .logo-text {
        font-size: 0.875rem;
    }
    
    .logo-link img {
        width: 28px;
        height: 28px;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .stat {
        padding: var(--spacing-sm);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: calc(64px + var(--spacing-md)) 0 var(--spacing-md);
    }
    
    .hero-image-wrapper {
        height: 200px;
    }
    
    .mobile-nav {
        padding-top: 0;
    }
    
    .mobile-nav-header {
        position: static;
    }
}

/* === SCROLLBAR STYLES === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-surface);
}

/* === UTILITY CLASSES === */
.safe-area-padding {
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
    padding-bottom: var(--safe-area-inset-bottom);
}

/* === TOUCH DEVICE OPTIMIZATION === */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:hover::after {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    
    .btn:active::after {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    
    .course-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .nav-link:hover,
    .social-link:hover,
    .back-to-top:hover {
        transform: none;
    }
    
    /* Increase touch targets for mobile */
    .btn, 
    .nav-link,
    .social-link,
    .mobile-nav-link,
    .theme-option {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 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;
    }
    
    .floating-card,
    .floating-badge,
    .loader,
    .wave {
        animation: none !important;
    }
}

/* iOS Safari Fixes */
@supports (-webkit-touch-callout: none) {
    .hero-section,
    .mobile-nav {
        height: -webkit-fill-available;
    }
    
    input, textarea, select {
        font-size: 16px !important;
    }
}