/* =====================================================
   AmaNova Academy — Design Tokens
   Display: Cairo | Body: IBM Plex Sans Arabic | Mono: JetBrains Mono
   ===================================================== */
:root {
    --ink: #0B0F14;
    --panel: #0F1720;
    --panel-2: #131D27;
    --line: rgba(232, 237, 242, 0.08);
    --text: #E8EDF2;
    --text-dim: #9AABB8;
    --muted: #7C8A99;
    --green: #16C172;
    --green-dim: rgba(22, 193, 114, 0.14);
    --amber: #F2B33D;
    --amber-dim: rgba(242, 179, 61, 0.16);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-glow: 0 0 60px rgba(22, 193, 114, 0.18);
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
    --ink: #F7F8FA;
    --panel: #FFFFFF;
    --panel-2: #F1F4F7;
    --line: rgba(11, 15, 20, 0.08);
    --text: #101418;
    --text-dim: #4B5A66;
    --muted: #697885;
    --green: #0E9E5C;
    --green-dim: rgba(14, 158, 92, 0.10);
    --amber: #C8821E;
    --amber-dim: rgba(200, 130, 30, 0.12);
    --shadow-glow: 0 0 60px rgba(14, 158, 92, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl;
    overflow-x: hidden;
    transition: background .4s var(--ease), color .4s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    line-height: 1.25;
}

.mono,
.terminal-body,
.typewriter-text,
.stat-number,
.badge,
.brand-mark {
    font-family: 'JetBrains Mono', monospace;
}

.accent-text {
    color: var(--green);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: .02em;
    color: var(--green);
    margin-bottom: 14px;
}

.dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(22, 193, 114, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 193, 114, .55);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 193, 114, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 193, 114, 0);
    }
}

.section-head {
    max-width: 680px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

/* ===== noise overlay ===== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .025;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}

.site-header.scrolled {
    background: rgba(11, 15, 20, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(247, 248, 250, 0.78);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    color: var(--green);
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--green-dim);
    padding: 4px 8px;
    border-radius: 8px;
}

.brand-name {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name-sub {
    font-size: .62rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
    letter-spacing: .08em;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 28px;
    font-size: .95rem;
    font-weight: 500;
}

.main-nav a {
    position: relative;
    color: var(--text-dim);
    transition: color .25s;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -6px;
    height: 1px;
    width: 0;
    background: var(--green);
    transition: width .25s var(--ease);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    color: var(--text-dim);
    transition: border-color .25s, color .25s, transform .25s;
}

.theme-toggle:hover {
    color: var(--green);
    border-color: var(--green);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}

.btn-small {
    padding: 9px 16px;
    font-size: .85rem;
}

.btn-primary {
    background: var(--green);
    color: #06150D;
    box-shadow: 0 8px 24px -8px rgba(22, 193, 114, .55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(22, 193, 114, .65);
}

.btn-primary svg {
    transform: rotate(180deg);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, .12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, .35);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, .2);
    transform: translateY(-2px);
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 10%, transparent 70%);
    opacity: .7;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    margin-bottom: 20px;
}

.hero-sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-item strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--green);
}

.trust-item span {
    font-size: .8rem;
    color: var(--muted);
}

.trust-sep {
    width: 1px;
    height: 30px;
    background: var(--line);
}

.hero-visual {
    position: relative;
}

.terminal-window {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), var(--shadow-glow);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-r {
    background: #FF5F57;
}

.dot-y {
    background: #FEBC2E;
}

.dot-g {
    background: #28C840;
}

.terminal-title {
    margin-right: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--muted);
}

.terminal-body {
    padding: 26px 22px;
    min-height: 280px;
    font-size: .86rem;
    line-height: 1.85;
    direction: ltr;
    text-align: left;
    color: var(--text-dim);
    position: relative;
}

.typewriter-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-dim);
    display: inline;
}

.cursor-blink {
    color: var(--green);
    animation: blink 1s step-start infinite;
    font-weight: 700;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.floating-badge {
    position: absolute;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
    animation: float 5s ease-in-out infinite;
}

.badge-1 {
    top: -18px;
    right: -10px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20px;
    left: -24px;
    animation-delay: 1.2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.glow-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 193, 114, .25), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(10px);
}

/* ===================== ABOUT ===================== */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
}

.about-lead p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.95;
    margin-bottom: 20px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform .3s var(--ease), border-color .3s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.info-icon {
    font-size: 1.4rem;
    color: var(--green);
    display: block;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.75;
}

/* ===================== STATS ===================== */
.stats {
    padding: 70px 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--green);
}

.stat-plus {
    font-size: 1.6rem;
    color: var(--amber);
    font-weight: 700;
    margin-right: 2px;
}

.stat-item p {
    color: var(--muted);
    margin-top: 6px;
    font-size: .92rem;
}

/* ===================== WHY ===================== */
.why {
    padding: 120px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.why-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber);
    background: var(--amber-dim);
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--green-dim);
    color: var(--green);
    font-weight: 700;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: .98rem;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--text-dim);
    font-size: .86rem;
    line-height: 1.7;
}

/* ===================== COURSES ===================== */
.courses {
    padding: 120px 0;
    background: var(--panel);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.course-card {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45);
    border-color: var(--green);
}

.course-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.course-filename {
    margin-right: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: .74rem;
    color: var(--muted);
    direction: ltr;
}

.course-body {
    padding: 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-en {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--green);
    letter-spacing: .04em;
    margin-bottom: 6px;
    direction: ltr;
    text-align: right;
}

.course-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-desc {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.course-learn {
    margin-bottom: 18px;
}

.course-learn h4 {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .74rem;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(22, 193, 114, .25);
    direction: ltr;
}

.course-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(37, 211, 102, .12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, .3);
    font-weight: 700;
    font-size: .92rem;
    transition: background .25s, transform .25s;
}

.course-cta:hover {
    background: rgba(37, 211, 102, .22);
    transform: translateY(-2px);
}

/* ===================== ROADMAP ===================== */
.roadmap {
    padding: 120px 0;
}

.roadmap-wrap {
    position: relative;
    padding-right: 30px;
}

.roadmap-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 11px;
    width: 2px;
    background: var(--line);
    z-index: 0;
}

.roadmap-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--green), var(--amber));
    transition: height 1.2s var(--ease);
}

.roadmap-line.filled::after {
    height: 100%;
}

.roadmap-track {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.roadmap-node {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.node-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    position: relative;
}

.node-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.node-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    flex: 1;
    transition: border-color .3s, transform .3s;
}

.node-content:hover {
    border-color: var(--green);
    transform: translateX(-4px);
}

.node-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.node-content p {
    color: var(--muted);
    font-size: .85rem;
}

.roadmap-branch {
    margin-top: 50px;
}

.branch-card {
    background: var(--amber-dim);
    border: 1px solid rgba(242, 179, 61, .35);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 480px;
}

.branch-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    color: var(--amber);
    background: rgba(242, 179, 61, .15);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.branch-card h3 {
    margin-bottom: 8px;
}

.branch-card p {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.7;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
    padding: 120px 0;
    background: var(--panel);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testi-card {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform .3s var(--ease);
}

.testi-card:hover {
    transform: translateY(-5px);
}

.testi-stars {
    color: var(--amber);
    font-size: .9rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testi-text {
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.testi-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-dim);
    color: var(--green);
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.testi-meta strong {
    display: block;
    font-size: .9rem;
}

.testi-meta span {
    font-size: .78rem;
    color: var(--muted);
}

/* ===================== FAQ ===================== */
.faq {
    padding: 120px 0;
}

.faq-list {
    max-width: 760px;
    margin-right: 0;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
}

.faq-q .plus {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease), background .3s;
    font-size: .9rem;
    color: var(--green);
}

.faq-item.open .faq-q .plus {
    transform: rotate(45deg);
    background: var(--green-dim);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.faq-a p {
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.85;
    padding: 0 4px 22px;
}

/* ===================== CONTACT ===================== */
.contact {
    padding: 120px 0;
    background: var(--panel);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 14px;
}

.contact-sub {
    color: var(--text-dim);
    max-width: 420px;
    line-height: 1.8;
}

.contact-actions {
    display: grid;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform .25s var(--ease), border-color .25s;
}

.contact-card:hover {
    transform: translateX(-4px);
    border-color: var(--green);
}

.contact-card svg {
    color: var(--green);
    flex-shrink: 0;
}

.contact-card span {
    color: var(--muted);
    font-size: .82rem;
    display: block;
}

.contact-card strong {
    font-size: .98rem;
    display: block;
    margin-top: 2px;
    direction: ltr;
    text-align: right;
}

/* ===================== FOOTER ===================== */
.site-footer {
    padding: 70px 0 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 12px;
    font-size: .92rem;
}

.footer-col h4 {
    font-size: .95rem;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
}

/* ===================== FLOAT WHATSAPP ===================== */
.float-whatsapp {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
    animation: float 5s ease-in-out infinite;
    transition: transform .25s;
}

.float-whatsapp:hover {
    transform: scale(1.08);
}

/* ===================== REVEAL ANIM ===================== */
/* ===================== REVEAL ANIM ===================== */
/* Visible by default so content is never hidden if JS fails to load or the
   IntersectionObserver doesn't fire (e.g. file:// restrictions, slow script load).
   The "js-reveal" class (added by script.js once it has set up the observer)
   is what actually enables the hidden-until-scrolled animation. */
[data-reveal] {
    opacity: 1;
    transform: none;
}

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 980px) {
    .main-nav {
        position: fixed;
        top: 76px;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--ink);
        flex-direction: column;
        padding: 30px 24px;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        display: flex;
        gap: 6px;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .about-cards {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .header-actions .btn-small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}