/* ============================================================
   Mehedi Hasan — CS Educator · Stylesheet
   ============================================================ */

:root {
  --bg: #060a14;
  --bg-2: #0a101f;
  --bg-3: #0e1729;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --text-dim: #9aa7bd;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --grad: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  --success: #34d399;
  --danger: #f87171;
  --radius: 18px;
  --font: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px;
}

.container { width: min(1180px, 92%); margin: 0 auto; }

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

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

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 3rem; font-weight: 800; letter-spacing: -2px;
  animation: pulseGlow 1.2s ease-in-out infinite;
}
.preloader-bar {
  width: 220px; height: 4px; margin: 18px auto 14px;
  background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--grad); border-radius: 10px;
  animation: loadSlide 1s ease-in-out infinite;
}
.preloader-text {
  font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
}
@keyframes loadSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(34,211,238,0.35); }
  50% { text-shadow: 0 0 40px rgba(129,140,248,0.6); }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 999;
  box-shadow: 0 0 12px rgba(34,211,238,0.7);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid rgba(34,211,238,0.35); padding: 4px 8px; border-radius: 8px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  position: relative; text-decoration: none; color: var(--text-dim);
  font-size: 0.92rem; padding: 8px 14px; border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 0.98rem; font-weight: 600;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--grad); color: #04121c;
  box-shadow: 0 8px 30px rgba(34,211,238,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(34,211,238,0.45); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.55s;
}
.btn-primary:hover::after { left: 100%; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { transition: transform 0.3s; font-size: 1.1rem; }
.btn-primary:hover .btn-icon { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: floatOrb 9s ease-in-out infinite; }
.orb-1 { width: 480px; height: 480px; background: rgba(34,211,238,0.35); top: -140px; right: -100px; }
.orb-2 { width: 420px; height: 420px; background: rgba(129,140,248,0.35); bottom: -120px; left: -120px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(52,211,153,0.22); top: 40%; left: 45%; animation-delay: -6s; }
@keyframes floatOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }

.code-particles { position: absolute; inset: 0; }
.particle {
  position: absolute; font-family: var(--mono); font-size: 0.75rem;
  color: rgba(34,211,238,0.28); animation: rise linear infinite; pointer-events: none;
  user-select: none;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.5; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.07);
  padding: 8px 18px; border-radius: 100px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--accent);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: ping 1.6s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero-badge-arrow { transition: transform 0.3s; }
.hero-badge:hover .hero-badge-arrow { transform: translateX(4px); }

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.type-line { color: var(--accent); }
.type-cursor {
  display: inline-block; width: 3px; margin-left: 4px;
  color: var(--accent); animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub { color: var(--text-dim); font-size: 1.06rem; max-width: 540px; margin-bottom: 34px; }
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--mono);
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-dim); font-family: var(--mono); }

/* Code card */
.hero-visual { position: relative; }
.code-card {
  background: rgba(13, 20, 38, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 60px rgba(34,211,238,0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s ease, box-shadow 0.5s;
  animation: cardFloat 6s ease-in-out infinite;
}
.code-card:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); box-shadow: var(--shadow), 0 0 80px rgba(34,211,238,0.2); }
@keyframes cardFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -14px; } }
.code-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-card-title { margin-left: 8px; font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
.code-body { padding: 22px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.8; overflow-x: auto; }
.c-kw { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-cm { color: #546e7a; font-style: italic; }
.code-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--card-border);
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim);
}
.code-live { display: flex; align-items: center; gap: 8px; color: var(--success); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); text-decoration: none; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 2px; z-index: 2;
}
.mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-dim);
  border-radius: 16px; display: flex; justify-content: center; padding-top: 7px;
}
.wheel { width: 4px; height: 8px; background: var(--accent); border-radius: 4px; animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  background: var(--bg-2);
}
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 22s linear infinite; width: max-content; }
.marquee-track span {
  font-family: var(--mono); font-weight: 700; letter-spacing: 2px;
  font-size: 0.95rem; color: var(--text-dim);
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-2); }
.section-tag {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  letter-spacing: 1px; display: block; margin-bottom: 14px;
}
.section-tag.light { color: var(--accent-2); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-desc { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }

.portrait-card { position: relative; max-width: 380px; }
.portrait-placeholder {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(34,211,238,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(129,140,248,0.25), transparent 50%),
    var(--bg-3);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.portrait-initials {
  font-size: 6rem; font-weight: 800; letter-spacing: -4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portrait-scanline {
  position: absolute; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,0.12), transparent);
  animation: scan 3.2s linear infinite;
}
@keyframes scan { 0% { top: -100px; } 100% { top: 110%; } }
.portrait-badge {
  position: absolute; bottom: -22px; right: -26px;
  background: var(--bg-3); border: 1px solid rgba(34,211,238,0.35);
  border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.portrait-badge-top { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); }
.portrait-badge strong { font-size: 1.05rem; color: var(--accent); }
.portrait-badge-bottom { font-size: 0.75rem; color: var(--text-dim); }

.floating-chip {
  position: absolute; background: var(--bg-3); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: floatChip 5s ease-in-out infinite;
}
.floating-chip span { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); }
.chip-1 { top: 34px; left: -60px; }
.chip-2 { bottom: 70px; left: -90px; animation-delay: -2.5s; }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.about-content p { color: var(--text-dim); margin-bottom: 26px; font-size: 1.02rem; }
.about-content p strong { color: var(--text); }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.4);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; margin-top: 2px;
}
.about-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.link-arrow {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.96rem;
  display: inline-flex; gap: 8px; align-items: center;
}
.link-arrow span { color: var(--accent); transition: transform 0.3s; }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- STATS BAND ---------- */
.stats-band {
  background: linear-gradient(120deg, rgba(34,211,238,0.08), rgba(129,140,248,0.08)), var(--bg-2);
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.stat-cell { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.stat-number {
  font-family: var(--mono); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-name { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- COURSES ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.course-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 34px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.course-card:hover { transform: translateY(-8px); border-color: rgba(34,211,238,0.4); box-shadow: var(--shadow); }
.course-card:hover::before { transform: scaleX(1); }
.course-card.featured {
  background: linear-gradient(160deg, rgba(34,211,238,0.07), rgba(129,140,248,0.07)), var(--card);
  border-color: rgba(34,211,238,0.35);
}
.course-top { display: flex; justify-content: space-between; align-items: center; }
.course-code { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.course-badge {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1px;
  border: 1px solid rgba(129,140,248,0.5); color: var(--accent-2);
  padding: 5px 12px; border-radius: 100px;
  background: rgba(129,140,248,0.08);
}
.course-name { font-size: 1.25rem; font-weight: 700; }
.course-desc { color: var(--text-dim); font-size: 0.94rem; }
.course-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.course-feats li { font-size: 0.92rem; color: var(--text); padding-left: 20px; position: relative; }
.course-feats li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.course-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--card-border);
}
.course-tag { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); }
.course-apply {
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.3s, color 0.3s; display: inline-flex; gap: 6px;
}
.course-apply:hover { transform: translateX(5px); color: var(--accent-2); }

/* Unavailable course */
.course-card.unavailable { opacity: 0.75; filter: grayscale(0.35); }
.course-card.unavailable:hover { transform: none; border-color: var(--card-border); box-shadow: none; }
.course-card.unavailable:hover::before { transform: scaleX(0); }
.course-card.unavailable .course-code { color: var(--text-dim); }
.course-badge.unavailable-badge {
  border-color: rgba(248,113,113,0.5); color: var(--danger);
  background: rgba(248,113,113,0.08);
}
.unavailable-tag {
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
  display: inline-flex; gap: 6px; align-items: center;
}
.unavailable-note {
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.55;
  background: rgba(248,113,113,0.06); border: 1px dashed rgba(248,113,113,0.35);
  border-radius: 10px; padding: 10px 14px;
}

.courses-note {
  margin-top: 34px; padding: 18px 24px;
  background: rgba(34,211,238,0.06); border: 1px dashed rgba(34,211,238,0.35);
  border-radius: 14px; color: var(--text-dim); font-size: 0.95rem;
  display: flex; gap: 12px; align-items: center;
}
.note-icon { font-size: 1.3rem; }

/* ---------- ACHIEVEMENTS ---------- */
.ranking-card {
  background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(129,140,248,0.1)), var(--bg-3);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 20px; padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  flex-wrap: wrap; margin-bottom: 70px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.ranking-card::after {
  content: "🥇"; position: absolute; right: -30px; top: -30px; font-size: 9rem; opacity: 0.06; transform: rotate(15deg);
}
.ranking-left { display: flex; gap: 24px; align-items: center; max-width: 560px; }
.ranking-medal {
  font-size: 3rem; width: 84px; height: 84px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.35);
  border-radius: 50%; box-shadow: 0 0 40px rgba(255,215,0,0.15);
  animation: medalGlow 2.5s ease-in-out infinite;
}
@keyframes medalGlow { 0%,100% { box-shadow: 0 0 20px rgba(255,215,0,0.12); } 50% { box-shadow: 0 0 45px rgba(255,215,0,0.32); } }
.ranking-left h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.ranking-left p { color: var(--text-dim); font-size: 0.96rem; }
.ranking-stats { display: flex; gap: 34px; }
.r-stat { display: flex; flex-direction: column; gap: 2px; }
.r-stat strong { font-family: var(--mono); font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-stat span { font-size: 0.78rem; color: var(--text-dim); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: -30px; top: 0; }
.timeline-marker::before {
  content: ""; position: absolute; left: 1px; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 18px rgba(34,211,238,0.6);
}
.timeline-year { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-left: 28px; }
.timeline-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 22px 26px; margin-top: 6px;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-card:hover { border-color: rgba(34,211,238,0.4); transform: translateX(8px); }
.timeline-card h4 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- METHOD ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.method-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.method-card:hover { transform: translateY(-8px); border-color: rgba(34,211,238,0.4); box-shadow: var(--shadow); }
.method-num {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--mono); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(34,211,238,0.3);
}
.method-icon { font-size: 2rem; margin-bottom: 18px; display: block; }
.method-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.method-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- TESTIMONIALS ---------- */
.slider { overflow: hidden; }
.slide-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.slide {
  min-width: 100%; padding: 6px;
  display: flex; flex-direction: column; gap: 18px;
}
.slide-stars { color: #fbbf24; letter-spacing: 4px; font-size: 1.15rem; }
.slide blockquote {
  font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.6;
  max-width: 760px; color: var(--text);
}
.slide blockquote::before { content: ""; display: block; width: 44px; height: 3px; background: var(--grad); border-radius: 3px; margin-bottom: 20px; }
.slide figcaption { display: flex; flex-direction: column; gap: 2px; }
.slide figcaption strong { font-size: 1rem; }
.slide figcaption span { color: var(--text-dim); font-size: 0.85rem; font-family: var(--mono); }
.slider-nav {
  display: flex; align-items: center; gap: 18px; margin-top: 36px;
}
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  font-family: var(--mono);
}
.slider-btn:hover { background: var(--grad); color: #04121c; border-color: transparent; transform: scale(1.06); }
.slider-dots { display: flex; gap: 8px; flex: 1; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.slider-dot.active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(34,211,238,0.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 26px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--mono); transition: transform 0.35s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 22px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- APPLY ---------- */
.apply-card {
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--card-border);
  border-radius: 24px; padding: 60px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.apply-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.apply-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.apply-desc { color: var(--text-dim); font-size: 0.99rem; margin-bottom: 26px; }
.apply-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.apply-points li { display: flex; gap: 12px; align-items: center; font-size: 0.96rem; }
.apply-contact { display: flex; flex-direction: column; gap: 16px; }
.ac-item { display: flex; gap: 14px; align-items: center; }
.ac-icon { font-size: 1.4rem; }
.ac-item div { display: flex; flex-direction: column; }
.ac-item strong { font-size: 0.86rem; color: var(--text-dim); font-family: var(--mono); }
.ac-item a { color: var(--text); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.ac-item a:hover { color: var(--accent); }

.apply-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 0.95rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border); border-radius: 12px;
  color: var(--text); padding: 14px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
  background: rgba(34,211,238,0.04);
}
.form-field input.error, .form-field select.error, .form-field textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(248,113,113,0.1);
}
.field-error { color: var(--danger); font-size: 0.78rem; min-height: 0; display: none; }
.field-error.show { display: block; }
select option { background: var(--bg-3); color: var(--text); }
textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--text-dim); text-align: center; font-family: var(--mono); }

.form-status {
  display: none; padding: 14px 18px; border-radius: 12px;
  font-size: 0.92rem; font-weight: 600;
}
.form-status.success { display: block; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.4); color: var(--success); }
.form-status.error { display: block; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.4); color: var(--danger); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-2); padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-top: 18px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 8px; font-family: var(--mono); letter-spacing: 1px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.3s, transform 0.3s; width: fit-content; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--card-border);
  color: var(--text-dim); font-size: 0.82rem;
}
.heart { color: #f43f5e; animation: heartbeat 1.4s ease infinite; display: inline-block; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.25); } 40% { transform: scale(1); } }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad); color: #04121c;
  border: none; cursor: pointer; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(34,211,238,0.35);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 480px; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .apply-card { grid-template-columns: 1fr; padding: 44px; }
  .floating-chip { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(320px, 80%);
    height: 100vh; background: rgba(10, 16, 31, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 10px;
    padding: 40px; transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--card-border);
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.15rem; padding: 12px 16px; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .portrait-card { margin: 0 auto; }
  .courses-grid { grid-template-columns: 1fr; }
  .ranking-card { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 100px; }
  .hero-stats { gap: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .apply-card { padding: 30px 22px; }
  .ranking-stats { flex-wrap: wrap; gap: 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}