/* ===== MANGA CYBER SECURITY — DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00f0ff;
    --primary-dark: #0099aa;
    --secondary: #ff00e5;
    --accent: #7b2dff;
    --neon-green: #39ff14;
    --neon-red: #ff073a;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 30, 0.85);
    --bg-glass: rgba(0, 240, 255, 0.05);
    --text-main: #e0e0f0;
    --text-muted: #8888aa;
    --border-glow: rgba(0, 240, 255, 0.2);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Rajdhani', 'Noto Sans', sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ===== MATRIX RAIN BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 229, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(123, 45, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== SCANNER LINE ===== */
.scanner-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 9999;
    animation: scanLine 6s linear infinite;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes scanLine {
    0% { top: -2px; }
    100% { top: 100vh; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 3rem;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo .logo-image {
    display: block;
    width: 92px;
    height: 76px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.92))
        drop-shadow(0 0 18px rgba(255, 0, 229, 0.5))
        drop-shadow(0 0 30px rgba(0, 240, 255, 0.35));
    animation: logoGlow 3.8s ease-in-out infinite;
}

.nav-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--bg-dark);
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}

.nav-logo .logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes logoGlow {
    0%,
    100% {
        filter:
            brightness(0)
            invert(1)
            drop-shadow(0 0 7px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 18px rgba(255, 0, 229, 0.46))
            drop-shadow(0 0 30px rgba(0, 240, 255, 0.32));
    }

    50% {
        filter:
            brightness(0)
            invert(1)
            drop-shadow(0 0 12px rgba(255, 255, 255, 1))
            drop-shadow(0 0 28px rgba(255, 0, 229, 0.72))
            drop-shadow(0 0 42px rgba(123, 45, 255, 0.52));
    }
}

.nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 116px 3rem 60px;
}

.hero-brand-logo {
    position: absolute;
    top: 150px;
    left: 52%;
    z-index: 1;
    width: min(220px, 15vw);
    opacity: 0.38;
    transform: translateX(-50%);
    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 0 12px rgba(255, 255, 255, 1))
        drop-shadow(0 0 34px rgba(255, 0, 229, 0.75))
        drop-shadow(0 0 58px rgba(0, 240, 255, 0.45));
    mix-blend-mode: screen;
    pointer-events: none;
    animation: heroLogoGlow 5.2s ease-in-out infinite;
}

@keyframes heroLogoGlow {
    0%,
    100% {
        opacity: 0.34;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.035);
    }
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: saturate(1.5) contrast(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg,
        rgba(10,10,15,0.4) 0%,
        rgba(10,10,15,0.7) 50%,
        rgba(10,10,15,1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(330px, 400px);
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(48px, 7vw, 96px);
    max-width: 1240px;
    width: 100%;
}

.hero-text {
    max-width: 560px;
    min-width: 0;
    justify-self: start;
    transform: translateX(-20px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3.45vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 100%;
}

.hero-title .gradient-text {
    display: inline-block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title .typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg-dark);
    box-shadow: 0 4px 25px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(0, 240, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* 3D Character Card */
.hero-3d {
    width: min(100%, 400px);
    justify-self: end;
    perspective: 1200px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-card-3d {
    width: min(100%, 380px);
    height: clamp(420px, 40vw, 480px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
    border: 2px solid rgba(0, 240, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 240, 255, 0.1),
        inset 0 0 80px rgba(0, 240, 255, 0.05);
}

.hero-card-3d:hover {
    transform: rotateY(8deg) rotateX(-5deg) scale(1.03);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 240, 255, 0.2),
        inset 0 0 100px rgba(0, 240, 255, 0.08);
}

.hero-card-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-3d .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.95));
}

.hero-card-3d .card-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-card-3d .card-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Corner glitch lines on card */
.hero-card-3d::before,
.hero-card-3d::after {
    content: '';
    position: absolute;
    z-index: 5;
}

.hero-card-3d::before {
    top: 12px; left: 12px;
    width: 40px; height: 40px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    opacity: 0.6;
}

.hero-card-3d::after {
    bottom: 12px; right: 12px;
    width: 40px; height: 40px;
    border-bottom: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    opacity: 0.6;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 3rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '—';
    margin: 0 10px;
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 100px 3rem;
    position: relative;
    z-index: 1;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    perspective: 800px;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.1);
}

.course-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0) 45%, rgba(10, 10, 15, 0.82) 100%),
        radial-gradient(circle at 20% 0%, rgba(255, 0, 229, 0.22), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(0, 240, 255, 0.18), transparent 40%);
    pointer-events: none;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: saturate(1.08) contrast(1.06);
}

.course-card:hover .course-image img {
    transform: scale(1.08);
    filter: saturate(1.2) contrast(1.12);
}

.course-card-inner {
    padding: 0 30px 30px;
}

.course-card-inner::after {
    content: "Batafsil ko'rish >";
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.course-card:hover .course-card-inner::after {
    color: #fff;
    transform: translateX(6px);
}

.course-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: -32px 0 22px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.course-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    filter: drop-shadow(0 0 10px currentColor);
}

.course-icon.icon-blue {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.course-icon.icon-purple {
    background: rgba(123, 45, 255, 0.1);
    color: #a879ff;
    box-shadow: 0 0 25px rgba(123, 45, 255, 0.15);
}

.course-icon.icon-pink {
    background: rgba(255, 0, 229, 0.1);
    color: var(--secondary);
    box-shadow: 0 0 25px rgba(255, 0, 229, 0.15);
}

.course-icon.icon-green {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.15);
}

.course-icon.icon-red {
    background: rgba(255, 7, 58, 0.1);
    color: #ff5a7a;
    box-shadow: 0 0 25px rgba(255, 7, 58, 0.15);
}

.course-icon.icon-orange {
    background: rgba(255, 165, 0, 0.1);
    color: #ffb547;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.15);
}

.course-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.course-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-open {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.course-open::after {
    content: '>';
    margin-left: 10px;
    color: var(--secondary);
    transition: var(--transition);
}

.course-card:hover .course-open::after {
    transform: translateX(6px);
}

/* Hover number glitch effect on cards */
.course-card::before {
    content: attr(data-index);
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 240, 255, 0.04);
    line-height: 1;
    transition: var(--transition);
}

.course-card:hover::before {
    color: rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ===== FEATURES / WHY US SECTION ===== */
.features-section {
    padding: 100px 3rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== 3D ROTATING CUBE SECTION ===== */
.cube-section {
    padding: 100px 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.cube-container {
    perspective: 800px;
    width: 220px;
    height: 220px;
}

.cube-3d {
    width: 220px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(8px);
}

.cube-face.front  { transform: translateZ(110px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(110px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(110px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(110px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(110px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(110px); }

.cube-info {
    flex: 1;
    min-width: 300px;
}

.cube-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.cube-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--primary);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 3rem;
    position: relative;
    z-index: 1;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 0, 229, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.05), transparent, rgba(255, 0, 229, 0.05), transparent);
    animation: rotateBg 20s linear infinite;
}

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

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 3rem;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 240, 255, 0.02), rgba(10, 10, 15, 0.88)),
        radial-gradient(circle at 75% 20%, rgba(123, 45, 255, 0.14), transparent 36%);
    border-top: 1px solid rgba(0, 240, 255, 0.08);
}

.contact-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: start;
}

.contact-copy h2 {
    max-width: 660px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.14;
    font-weight: 900;
    margin-bottom: 22px;
}

.contact-copy p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.12rem;
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(224, 224, 240, 0.12);
    border-radius: 10px;
    background: rgba(15, 15, 30, 0.55);
    color: #eef8ff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-row:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.12);
}

.contact-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(255, 0, 229, 0.14));
    color: var(--primary);
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.12);
}

.contact-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.contact-phone {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(57, 255, 20, 0.12));
    color: #7efcff;
}

.contact-telegram {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.24), rgba(0, 240, 255, 0.1));
    color: #37c6ff;
}

.contact-instagram {
    background: linear-gradient(135deg, rgba(255, 0, 229, 0.24), rgba(123, 45, 255, 0.16));
    color: #ff7af1;
}

.contact-location {
    background: linear-gradient(135deg, rgba(123, 45, 255, 0.24), rgba(0, 240, 255, 0.12));
    color: #b59cff;
}

/* ===== FOOTER ===== */
.footer {
    padding: 50px 3rem 30px;
    border-top: 1px solid var(--border-glow);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-copy {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== GLITCH TEXT EFFECT ===== */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch1 3s infinite;
    color: var(--primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch2 3s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    93% { clip-path: inset(40% 0 20% 0); transform: translate(-4px, 2px); }
    96% { clip-path: inset(10% 0 60% 0); transform: translate(4px, -2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    91% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
    94% { clip-path: inset(20% 0 40% 0); transform: translate(-3px, 1px); }
}

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

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

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

/* ===== ABOUT PAGE ===== */
.page-header {
    padding: 140px 3rem 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content {
    padding: 0 3rem 100px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
    padding: 0 3rem 100px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-info-card .info-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.contact-info-card h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--primary);
}

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

/* ===== COURSES PAGE ===== */
.courses-page-grid {
    padding: 0 3rem 100px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== COURSE DETAIL PAGE ===== */
.course-detail-main {
    position: relative;
    z-index: 1;
    padding: 132px 3rem 100px;
}

.course-detail-hero {
    max-width: 1240px;
    margin: 0 auto 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
}

.course-detail-copy .section-tag {
    text-align: left;
}

.course-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 1.08;
    margin-bottom: 20px;
}

.course-detail-desc {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.course-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.course-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 45px rgba(0, 240, 255, 0.12);
}

.course-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1.08;
    object-fit: cover;
}

.course-detail-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
}

.detail-panel {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 240, 255, 0.16);
    background: rgba(15, 15, 30, 0.68);
}

.detail-panel h2,
.detail-panel h3 {
    font-family: var(--font-display);
    margin-bottom: 16px;
}

.detail-list {
    display: grid;
    gap: 12px;
    color: var(--text-muted);
    list-style: none;
}

.detail-list li {
    padding-left: 24px;
    position: relative;
}

.detail-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-family: var(--font-display);
}

.detail-stats {
    display: grid;
    gap: 12px;
}

.detail-stat {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.detail-stat strong {
    color: #fff;
}

/* ===== MANGA SPEED LINES ===== */
.speed-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.03;
}

.speed-lines div {
    position: absolute;
    background: var(--primary);
    transform-origin: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-brand-logo {
        left: 50%;
        width: min(210px, 42vw);
        opacity: 0.2;
    }

    .hero-text {
        max-width: 720px;
        transform: none;
    }

    .hero-3d {
        flex: none;
        width: auto;
        justify-self: center;
    }

    .hero-card-3d {
        width: 300px;
        height: 380px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-layout,
    .course-detail-hero,
    .course-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        text-align: center;
    }

    .contact-copy .section-tag,
    .course-detail-copy .section-tag {
        text-align: center;
    }

    .course-detail-actions {
        justify-content: center;
    }

    .cube-section {
        flex-direction: column;
        text-align: center;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 84px;
        left: 0; right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-120%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border-glow);
    }

    .nav-links.open {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .navbar { padding: 0 1.5rem; }
    .nav-logo .logo-image {
        width: 76px;
        height: 64px;
    }
    .hero { padding: 100px 1.5rem 40px; }
    .hero-brand-logo {
        top: 98px;
        width: 190px;
        opacity: 0.16;
    }
    .courses-section { padding: 60px 1.5rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .course-card-inner { padding: 24px; }
    .course-meta { flex-wrap: wrap; gap: 12px; }
    .features-section { padding: 60px 1.5rem; }
    .contact-section { padding: 60px 1.5rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-copy h2 { font-size: 2.35rem; }
    .contact-row {
        align-items: flex-start;
        font-size: 0.98rem;
    }
    .stats-bar { gap: 30px; }
    .stat-number { font-size: 1.8rem; }
    .footer { padding: 40px 1.5rem 20px; }
    .contact-form { padding: 24px; }
    .page-header { padding: 120px 1.5rem 40px; }
    .course-detail-main { padding: 112px 1.5rem 70px; }
    .detail-panel { padding: 22px; }
}
