:root {
    --bg-deep: #040812;
    --bg-panel: rgba(7, 16, 31, 0.92);
    --bg-terminal: #06111d;
    --text-main: #eef8ff;
    --text-muted: #a2bcce;
    --neon-cyan: #6fe8ff;
    --neon-cyan-dim: rgba(111, 232, 255, 0.18);
    --neon-purple: #9df1ff;
    --neon-purple-dim: rgba(157, 241, 255, 0.12);
    --accent-atom: #ffd66b;
    --gold: #ffd66b;
    --gold: #ffd66b;
    --border-tech: rgba(111, 232, 255, 0.18);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    touch-action: manipulation;
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

header, section, footer, div, nav {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

#physicsCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0a0e17 0%, #030508 100%);
    pointer-events: none;
}

.floating-equations {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
}
.eq {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    animation: floatEq 25s linear infinite;
    will-change: transform;
}
.eq-1 { top: 15%; left: -200px; font-size: 4rem; animation-duration: 30s; }
.eq-2 { top: 40%; right: -200px; font-size: 2.5rem; animation-duration: 25s; animation-direction: reverse; }
.eq-3 { bottom: 20%; left: -200px; font-size: 3rem; animation-duration: 35s; }
.eq-4 { top: 70%; right: -200px; font-size: 3.5rem; animation-duration: 40s; animation-direction: reverse; }
.eq-5 { top: 5%; left: 40%; font-size: 2rem; animation-duration: 45s; }
.eq-6 { top: 25%; left: 5%; font-size: 2.3rem; animation-duration: 34s; animation-direction: reverse; }
.eq-7 { top: 50%; right: 10%; font-size: 2.2rem; animation-duration: 28s; }
.eq-8 { bottom: 20%; left: 12%; font-size: 2.6rem; animation-duration: 38s; animation-direction: reverse; }
.eq-9 { top: 55%; left: 60%; font-size: 2rem; animation-duration: 32s; }
.eq-10 { bottom: 10%; right: 25%; font-size: 2.8rem; animation-duration: 42s; animation-direction: reverse; }

@keyframes floatEq {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(110%, -50px) rotate(10deg); opacity: 0; }
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-dim), 0 0 20px var(--neon-cyan-dim);
}
.highlight {
    color: var(--neon-cyan);
}

.btn-premium, .btn-premium-sm, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 8px;
    max-width: 100%;
}

.btn-premium {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, rgba(255, 214, 130, 0.95) 100%);
    color: #111827;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.btn-premium:hover::after {
    left: 150%;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-premium-sm {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #b8972e 100%);
    color: #030508;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 15px var(--neon-cyan-dim);
}
.btn-premium-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 16px;
}
.btn-outline:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: var(--neon-cyan-dim);
}
.full-width { width: 100%; }

header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    transition: 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(4, 8, 18, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
header.scrolled {
    background: rgba(3, 5, 8, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(111, 232, 255, 0.16);
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}
.logo i {
    color: var(--neon-cyan);
    font-size: 2rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a:not(.btn-glow-sm) {
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.nav-links a:not(.btn-glow-sm):hover {
    color: var(--neon-cyan);
}
.nav-links.active {
    display: flex;
}
.mobile-menu-btn {
    display: none;
    background: none; border: none; color: #fff;
    font-size: 1.8rem; cursor: pointer;
    padding: 5px;
}

section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}
.section-header {
    margin-bottom: 60px;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 22px;
}

@media (max-width: 768px) {
    section {
        padding: 90px 18px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 70px 14px;
    }
}
.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-mono);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 150px;
    gap: 60px;
    width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(111,232,255,0.08), transparent 24%),
                radial-gradient(circle at 80% 15%, rgba(255,214,107,0.06), transparent 20%),
                linear-gradient(180deg, rgba(7, 14, 25, 0.94), rgba(3, 7, 14, 1));
}
.hero-content {
    flex: 1;
    z-index: 10;
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(111,232,255,0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(111,232,255,0.25);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 100%;
}
.hero-title {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(111,232,255,0.18);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #c8e8ff;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
    padding-left: 0;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(111,232,255,0.03), transparent 55%),
                inset 0 0 90px rgba(111,232,255,0.08);
}
.reactor-core {
    position: relative;
    width: 220px; height: 220px;
    perspective: 900px;
}
.core-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: var(--accent-atom);
    border-radius: 50%;
    box-shadow: 0 0 45px var(--accent-atom), 0 0 100px rgba(255,214,107,0.35);
    animation: pulseCore 2s infinite alternate;
}
.ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid rgba(111,232,255,0.24);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(111,232,255,0.16), 0 0 20px rgba(111,232,255,0.1);
}
.ring-x { transform: rotateX(70deg) rotateY(0deg); animation: rotateXring 10s linear infinite; }
.ring-y { transform: rotateX(70deg) rotateY(60deg); animation: rotateYring 10s linear infinite; }
.ring-z { transform: rotateX(70deg) rotateY(120deg); animation: rotateZring 10s linear infinite; }

@keyframes pulseCore { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
@keyframes rotateXring { 100% { transform: rotateX(70deg) rotateY(0deg) rotateZ(360deg); } }
@keyframes rotateYring { 100% { transform: rotateX(70deg) rotateY(60deg) rotateZ(360deg); } }
@keyframes rotateZring { 100% { transform: rotateX(70deg) rotateY(120deg) rotateZ(360deg); } }

.data-card {
    position: absolute;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, rgba(4, 10, 20, 0.92), rgba(7, 14, 29, 0.95));
    border: 1px solid rgba(111,232,255,0.16);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    z-index: 15;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.data-card i { font-size: 2.5rem; color: var(--accent-atom); }
.data-card h4 { color: var(--accent-atom); font-size: 1.5rem; }
.data-card p { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); }
.card-1 { top: 10%; left: -10%; }
.card-2 { bottom: 10%; right: -10%; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.class-selection {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.class-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.class-card {
    background: linear-gradient(180deg, rgba(7, 14, 25, 0.94), rgba(5, 10, 20, 0.96));
    border: 1px solid rgba(111,232,255,0.12);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 360px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}
.class-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.class-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(111,232,255,0.12);
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
}
.class-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--text-main);
}
.class-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.98rem;
}
.class-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.class-card li {
    position: relative;
    padding-left: 24px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}
.class-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-atom);
}
.class-card .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}
.tech-card {
    position: relative;
    background: linear-gradient(180deg, rgba(7, 14, 25, 0.92), rgba(4, 9, 20, 0.88));
    border: 1px solid rgba(111,232,255,0.12);
    padding: 40px;
    transition: 0.3s ease;
    overflow: hidden;
    border-radius: 28px;
}
.tech-card:hover { border-color: var(--neon-cyan); transform: translateY(-6px); box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22), 0 0 25px rgba(111,232,255,0.08); }
.card-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,214,107,0.18) 0%, transparent 50%);
    opacity: 0; transition: 0.5s; pointer-events: none;
}
.tech-card:hover .card-glow { opacity: 1; }
.icon-large { font-size: 3rem; color: var(--accent-atom); margin-bottom: 24px; display: block; }
.tech-card h3 { font-size: 1.5rem; margin-bottom: 16px; text-transform: uppercase; }
.tech-card p { color: var(--text-muted); }

.teacher-section .section-header { margin-bottom: 40px; }
.glass-panel {
    background: rgba(5, 11, 22, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(111,232,255,0.16);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5);
}
.teacher-avatar {
    width: 150px; height: 150px;
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-deep));
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan-dim);
    flex-shrink: 0;
}
.teacher-info h3 { font-size: 2rem; margin-bottom: 16px; color: var(--text-main); }
.teacher-bio { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.8; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.expertise-tags span {
    padding: 6px 16px;
    background: var(--neon-cyan-dim);
    color: var(--neon-cyan);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .glass-panel { flex-direction: column; text-align: center; }
    .teacher-avatar { margin: 0 auto; }
    .expertise-tags { justify-content: center; }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.tech-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
}
.panel-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}
.panel-badge {
    display: inline-block;
    padding: 6px 10px;
    background: rgba(255,255,255,0.08);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    color: var(--text-muted);
}
.panel-badge.highlight {
    background: rgba(56, 189, 248, 0.12);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
}
.tech-panel h3 { font-size: 1.85rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.grade-text { font-family: var(--font-mono); color: var(--neon-cyan); letter-spacing: 1px; }
.panel-body { padding: 32px; flex: 1; }
.panel-body p { margin-bottom: 24px; color: var(--text-muted); font-family: var(--font-body); font-size: 1rem; line-height: 1.8; letter-spacing: 0.2px; }
.tech-list { list-style: none; }
.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.75;
    flex-wrap: wrap;
    min-width: 0;
    word-break: break-word;
    white-space: normal;
}
.tech-list li i { color: var(--neon-cyan); flex-shrink: 0; margin-top: 2px; }
.tech-list li strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
    font-weight: 700;
}

.tech-panel.premium { border-color: var(--neon-purple); position: relative; }
.tech-panel.premium::after {
    content: ''; position: absolute; top: 0; right: 0; width: 30px; height: 30px;
    background: linear-gradient(45deg, transparent 50%, var(--neon-purple) 50%);
}

.reviews-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.review-panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 40px;
}
.review-feed-card,
.review-form-card {
    padding: 32px;
}
.review-list-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.review-list-header h3 {
    margin: 0;
    font-size: 1.7rem;
    color: var(--text-main);
}
.review-list-header p {
    margin: 8px 0 0;
    color: var(--text-muted);
    max-width: 640px;
    font-size: 0.95rem;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(111,232,255,0.08);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    min-width: 110px;
    text-align: center;
}
.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.review-class-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 214, 107, 0.15);
    color: #ffd66b;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.2);
}
.review-stars { color: var(--neon-cyan); font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { color: var(--text-muted); font-style: italic; line-height: 1.7; margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), #b8972e);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #030508; font-size: 1rem; flex-shrink: 0;
}
.review-author strong { display: block; color: var(--text-main); margin-bottom: 2px; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-form-box { margin-top: 20px; }

.star-rating-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.star-rating-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.star-picker {
    display: flex;
    gap: 8px;
}
.star {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
    user-select: none;
    line-height: 1;
}
.star:hover,
.star.hovered {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
    transform: scale(1.15);
}
.star.selected {
    color: var(--neon-cyan);
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.9), 0 0 30px rgba(212, 175, 55, 0.4);
}
@keyframes starBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.star.bounce {
    animation: starBounce 0.35s ease forwards;
}
.star-rating-hint {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.glass-form-container {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 { font-size: 2.5rem; margin-bottom: 12px; color: var(--neon-cyan); }
.form-header p { color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 28px; margin-bottom: 34px; }
.form-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.form-actions button { max-width: 260px; }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.input-group.full-width { grid-column: 1 / -1; }
.floating-label { position: relative; }
.floating-label input, .floating-label textarea, .floating-label select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: 0.3s;
    border-radius: 0;
}
.floating-label textarea { resize: vertical; min-height: 80px; }
.floating-label input:focus, .floating-label textarea:focus, .floating-label select:focus {
    border-bottom-color: var(--neon-cyan); outline: none;
}
.floating-label select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 26px;
}
.floating-label label {
    position: absolute;
    top: 12px; left: 0;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s;
    font-family: var(--font-heading);
}
.floating-label input:focus ~ label, .floating-label input:not(:placeholder-shown) ~ label,
.floating-label textarea:focus ~ label, .floating-label textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

.spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid transparent; border-top-color: #000;
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback { margin-top: 24px; text-align: center; font-weight: 500; }
.form-feedback.success { color: #22c55e; }
.form-feedback.error { color: #ef4444; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; transition: 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-terminal {
    width: 100%; max-width: 1000px; max-height: 90vh;
    background: var(--bg-terminal); border: 1px solid var(--neon-purple);
    box-shadow: 0 0 50px var(--neon-purple-dim);
    display: flex; flex-direction: column;
}
.close-terminal { background: none; border: none; color: var(--text-muted); cursor: pointer; margin-left: auto; font-size: 1.2rem; }
.close-terminal:hover { color: #ef4444; }

.stats-bar { display: flex; gap: 24px; margin-bottom: 32px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 24px; }
.stat-box { font-family: var(--font-mono); }
.stat-label { color: var(--text-muted); font-size: 0.8rem; display: block; margin-bottom: 8px; }
.stat-value { font-size: 2.5rem; font-weight: bold; }

.table-responsive { overflow-x: auto; }
.tech-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.9rem; }
.tech-table th, .tech-table td { padding: 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tech-table th { color: var(--neon-purple); font-weight: normal; }
.tech-table tbody tr:hover { background: rgba(178, 0, 255, 0.05); }

footer { border-top: 1px solid rgba(111,232,255,0.08); padding: 60px 24px 24px; margin-top: 60px; background: linear-gradient(180deg, rgba(3, 7, 15, 0.98), rgba(0, 0, 0, 1)); width: 100%; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 300px; font-family: var(--font-mono); font-size: 0.9rem; }
.footer-contact h4 { font-size: 1.2rem; margin-bottom: 16px; text-transform: uppercase; color: var(--neon-cyan); }
.footer-contact p { color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 0.9rem; }
.footer-contact i { color: var(--accent-atom); }
.footer-bottom { text-align: center; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; padding-top: 24px; border-top: 1px solid rgba(111,232,255,0.08); }

/* --- Mobile Responsiveness --- */

h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 1200px) {
    .hero-title { font-size: clamp(3rem, 8vw, 5rem); }
}

@media (max-width: 992px) {
    .floating-equations { display: none; }
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 140px;
        gap: 60px;
    }
    .hero-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .hero-title { width: 100%; margin-bottom: 20px; }
    .hero-title br { display: none; } 
    .hero-subtitle { 
        margin: 0 auto 32px; 
        border-left: none; 
        border-top: 2px solid var(--text-muted); 
        padding: 16px 0 0 0; 
        max-width: 90%;
    }
    .hero-cta { justify-content: center; width: 100%; flex-wrap: wrap; }
    .hero-visual { width: 100%; min-height: 400px; display: flex; justify-content: center; align-items: center; max-width: 100%; min-width: 0; }
    .reactor-core { transform: scale(0.8); }
    .card-1, .card-2 {
        position: static;
        transform: none;
        margin: 0 auto 16px;
        width: min(90%, 280px);
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}

@media (max-width: 768px) {
    .hero { min-height: auto; }
    .hero-visual { display: none; }
    .mobile-menu-btn { 
        display: flex; 
        z-index: 1001; 
    }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(3, 5, 8, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        padding: 60px 20px;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    .nav-links a.btn-premium-sm { margin-top: 8px; }
    
    .section-header { padding-left: 0; text-align: center; border-left: none; border-bottom: 3px solid var(--neon-cyan); padding-bottom: 15px; }
    .section-header h2 { font-size: clamp(2rem, 6vw, 3rem); }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); line-height: 1.1; }
    
    .features-grid, .courses-grid, .reviews-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .glass-form-container { padding: 30px 15px; border-radius: 16px; }
    .review-panel-grid { grid-template-columns: 1fr; }
    .review-feed-card, .review-form-card { padding: 24px; }
    .review-list-header { flex-direction: column; align-items: flex-start; }
    .status-chip { min-width: auto; }
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
    .input-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-header h2 { font-size: 1.8rem; }
    
    .star { font-size: 2.2rem; }
    .btn-premium, .btn-outline { padding: 14px 24px; font-size: 0.9rem; width: auto; }
    
    .hero-visual { min-height: 320px; }
    #physicsCanvas { display: none; }
    .floating-equations { display: block; }
    .floating-equations .eq { font-size: 1.05rem; opacity: 0.08; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-contact, .footer-brand { width: 100%; max-width: 520px; }
}

@media (max-width: 480px) {
    .hero { padding-top: 120px; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; line-height: 1.5; }
    .hero-cta { flex-direction: column; width: 100%; gap: 12px; }
    .btn-premium, .btn-outline { width: 100%; }
    .form-actions button { width: 100%; }
    .reactor-core { transform: scale(0.6); }
    .hero-visual { display: none; }
    .card-1, .card-2 { 
        position: static; transform: none; margin: 10px auto; 
        width: 90%; max-width: 280px; 
        padding: 12px;
    }
    .data-card i { font-size: 1.5rem; }
    .data-card h4 { font-size: 1.1rem; }
    
    .tech-card, .tech-panel { padding: 20px 16px; }
    .icon-large { font-size: 2.2rem; margin-bottom: 16px; }
    .tech-card h3, .tech-panel h3 { font-size: 1.3rem; margin-bottom: 12px; }
    .tech-card p, .panel-body p { font-size: 0.95rem; line-height: 1.5; }
    
    .panel-header { padding: 16px; }
    .panel-body { padding: 16px; }
    .panel-badge { font-size: 0.7rem; margin-bottom: 10px; }
    .grade-text { font-size: 0.85rem; }
    
    .tech-list li { 
        font-size: 0.9rem; 
        display: flex;
        flex-direction: column; /* Stack icon/label above text on mobile */
        align-items: flex-start; 
        gap: 6px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    .tech-list li i { 
        font-size: 1.2rem; 
        margin-bottom: 4px;
        color: var(--neon-cyan);
    }
    .tech-list li strong {
        display: block;
        color: var(--text-main);
        margin-bottom: 4px;
        font-size: 0.95rem;
    }
    
    .teacher-avatar { width: 100px; height: 100px; font-size: 2.5rem; }
}

@media (max-width: 360px) {
    .nav-container { padding: 0 14px; }
    .logo { font-size: 1.25rem; gap: 6px; }
    .hero { padding-top: 100px; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-cta { gap: 10px; }
    .btn-premium, .btn-outline { padding: 12px 16px; font-size: 0.85rem; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1rem; }
    .glass-form-container { padding: 22px 14px; }
    .form-grid { gap: 16px; }
    .reviews-container { gap: 18px; }
    .footer-content { gap: 24px; }
    .footer-contact, .footer-brand { max-width: 100%; }
    .panel-header, .panel-body { padding: 14px; }
    .input-grid { gap: 16px; }
    .floating-label input, .floating-label textarea { padding: 10px 0; }
    .star-picker { gap: 6px; }
    .star { font-size: 1.9rem; }
}
