/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #070b14;
    --bg-secondary: #0d1220;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --border-color: #1e293b;
    --border-glow: #00e5ff20;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-dim: #2563eb88;
    --accent-glow: #2563eb33;
    --gradient-start: #3b82f6;
    --gradient-end: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-10px, -60px) scale(0.9);
        opacity: 0.3;
    }

    75% {
        transform: translate(15px, -40px) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(0, 229, 255, 0.2);
    }

    50% {
        border-color: rgba(0, 229, 255, 0.5);
    }
}

@keyframes typing-cursor {

    0%,
    100% {
        border-right-color: var(--accent);
    }

    50% {
        border-right-color: transparent;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes glow-line {
    0% {
        left: -40%;
    }

    100% {
        left: 140%;
    }
}

/* ===== SCROLL REVEAL CLASSES ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border-color), 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    position: relative;
    z-index: 1001;
}

.logo-icon {
    filter: drop-shadow(0 0 8px var(--accent-dim));
    animation: rotate-slow 20s linear infinite;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: all var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.4s ease;
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 120%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-login:hover {
    color: var(--text-primary);
}

.btn-signup {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    background: #33ebff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 3px;
}

.hamburger span:nth-child(1) {
    top: 2px;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Mobile overlay nav */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-overlay a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 16px 0;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-overlay.active a {
    animation: fadeUp 0.5s ease forwards;
}

.mobile-overlay.active a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-overlay.active a:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-overlay.active a:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-overlay.active a:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-overlay.active a:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-overlay.active a:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-overlay a:hover {
    color: var(--accent);
}

.mobile-overlay .mobile-cta {
    margin-top: 24px;
    font-size: 1rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: borderGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.15), transparent);
    animation: glow-line 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #0070f3 50%, var(--accent) 100%);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce-subtle 2s ease-in-out infinite;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: fadeUp 1.5s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    box-shadow: 0 0 30px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #33ebff;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px);
}

.btn-primary .arrow {
    transition: transform var(--transition);
    display: inline-block;
}

.btn-primary:hover .arrow {
    transform: translateX(6px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 112, 243, 0.05));
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

/* Glowing section dividers */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), var(--accent-glow), var(--border-color), transparent);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-title.centered {
    text-align: center;
    width: 100%;
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--transition);
    position: relative;
}

.view-all::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.view-all:hover::after {
    width: 100%;
}

.view-all:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== COURSES ===== */
.courses {
    background: var(--bg-primary);
}

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

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 229, 255, 0.08);
}

.course-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.course-card:hover .course-img-wrap img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
    z-index: 2;
}

.course-body {
    padding: 20px;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color var(--transition);
}

.course-card:hover .course-title {
    color: var(--accent);
}

.course-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #f59e0b;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.star:hover {
    transform: scale(1.3);
}

.star.empty {
    color: var(--text-muted);
}

.rating-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.course-students {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== NEWS ===== */
.news {
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.news-featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.news-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent, rgba(0, 112, 243, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-featured:hover::before {
    opacity: 1;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-featured-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.5s ease;
}

.news-featured:hover .news-featured-img img {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.news-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.news-featured-body {
    padding: 24px;
}

.news-featured-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color var(--transition);
}

.news-featured:hover .news-featured-body h3 {
    color: var(--accent);
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.read-more:hover {
    gap: 10px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.news-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    border-radius: 0 2px 2px 0;
}

.news-item:hover::after {
    transform: scaleY(1);
}

.news-item:hover {
    border-color: var(--accent-dim);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.news-tag-sm {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.news-item:hover h4 {
    color: var(--accent);
}

/* ===== REVIEWS ===== */
.reviews {
    background: var(--bg-primary);
}

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

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 229, 255, 0.05), transparent, rgba(0, 112, 243, 0.05), transparent);
    animation: rotate-slow 15s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.review-card:hover::before {
    opacity: 1;
}

.review-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 229, 255, 0.08);
}

.review-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.tool-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.review-card:hover .tool-logo {
    animation: pulse-glow 2s ease-in-out infinite;
    transform: scale(1.1);
}

.review-tool-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    position: relative;
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
}

.review-rating .rating-num {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
}

.review-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
}

.btn-review {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-review::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-review:hover::before {
    width: 200px;
    height: 200px;
}

.btn-review:hover {
    background: #33ebff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-compare {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent-dim);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-compare:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: var(--bg-secondary);
}

.newsletter-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 112, 243, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: rotate-slow 30s linear infinite;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.4s ease;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.05);
}

.btn-subscribe {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-subscribe:hover::before {
    left: 100%;
}

.btn-subscribe:hover {
    background: #33ebff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-subscribe.success {
    background: var(--success) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
}

.newsletter-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 16px;
    position: relative;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

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

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    width: 120%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 90%;
    max-width: 420px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.08);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.4s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 15px rgba(0, 229, 255, 0.05);
}

.btn-modal-submit {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--accent);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-modal-submit:hover {
    background: #33ebff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.modal-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 24px;
}

.modal-switch {
    color: var(--accent);
    font-weight: 600;
    transition: color var(--transition);
}

.modal-switch:hover {
    color: #33ebff;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.05);
    pointer-events: all;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.toast-info .toast-icon {
    color: var(--accent);
    background: rgba(0, 229, 255, 0.15);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-success {
    border-left: 3px solid var(--success);
}

.toast-info {
    border-left: 3px solid var(--accent);
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ===== WAITLIST MODAL ===== */
.waitlist-modal-content {
    max-width: 480px !important;
    text-align: center;
}

.waitlist-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    letter-spacing: 2px;
}

.waitlist-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.waitlist-msg {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.waitlist-submit {
    margin-top: 10px;
    height: 52px;
    font-weight: 700;
}

/* ===== COURSE PLAYER MODAL ===== */
.player-modal-content {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    padding: 0;
    background: var(--bg-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.player-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.player-info {
    padding: 24px 32px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.player-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.course-subtitle {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-sidebar {
    width: 350px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.player-sidebar h3 {
    padding: 0 24px 16px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.lesson-playlist {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.playlist-item {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(0, 229, 255, 0.08);
    border-left-color: var(--accent);
}

.playlist-item-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    width: 20px;
}

.playlist-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.playlist-item.active .playlist-item-title {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .player-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    .player-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .player-modal-content {
        height: 95vh;
    }
}


/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {

    .courses-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .section {
        padding: 80px 0;
    }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    /* Hero mobile */
    .hero {
        min-height: 100svh;
        padding: 90px 16px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 18px;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
        /* Improve touch target */
    }

    .scroll-indicator {
        bottom: 12px;
    }

    /* Sections mobile */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-title.centered {
        margin-bottom: 32px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    /* Courses mobile */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-card:hover {
        transform: translateY(-4px);
    }

    /* News mobile */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-item img {
        width: 70px;
        height: 56px;
    }

    .news-item h4 {
        font-size: 0.82rem;
    }

    /* Reviews mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 24px 20px;
    }

    .review-card:hover {
        transform: translateY(-4px);
    }

    /* Newsletter mobile */
    .newsletter-box {
        padding: 48px 24px;
    }

    .newsletter-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input,
    .btn-subscribe {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Back to top mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(0, 229, 255, 0.2);
    color: var(--text-primary);
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Ad Optimization */
.ad-container {
    margin: 60px auto;
    text-align: center;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    z-index: 1;
}

.ad-container::before {
    content: 'Advertisement';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 40px auto;
        min-height: 50px;
    }
}