/* ============ LOCAL FONTS ============ */
@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/ibm-plex-sans-arabic-v15-arabic_latin-regular.woff2")
    format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/ibm-plex-sans-arabic-v15-arabic_latin-700.woff2")
    format("woff2");
}

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

:root {
  --primary: #1d6ae5;
  --primary-hover: #2575fc;
  --primary-light: #b0c6ff;

  --secondary: #d97706;
  --secondary-light: #ffb77d;

  --text: #f0f4f8;
  --text-muted: #a8b5c7;

  --bg-dark: #0c1017;
  --bg-card: #182130;
  --bg-card-2: #1f2a3d;

  --border: #222f42;
  --border-hover: #31425b;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.45);

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --navbar-height: 70px;
  --navbar-height-mobile: 80px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 10px);
}

body {
  font-family:
    "IBM Plex Sans Arabic",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ============ BACK TO TOP WITH CIRCULAR PROGRESS ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color var(--transition);
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-card);
  transform: translateY(-3px);
}

.back-to-top .progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top .progress-ring-bg {
  stroke: var(--border);
  stroke-width: 3;
}

.back-to-top .progress-ring-fill {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.back-to-top:hover .progress-ring-fill {
  stroke: var(--secondary);
}

.back-to-top .back-to-top-icon {
  position: relative;
  z-index: 1;
  color: var(--text);
  transition:
    transform var(--transition),
    color var(--transition);
}

.back-to-top:hover .back-to-top-icon {
  transform: translateY(-2px);
  color: var(--primary-light);
}

/* ============ FOCUS VISIBLE ============ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--primary);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

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

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(12, 16, 23, 0.92);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 16, 23, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

@supports (backdrop-filter: blur(20px)) {
  .navbar {
    background: rgba(12, 16, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .navbar.scrolled {
    background: rgba(12, 16, 23, 0.95);
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  min-height: var(--navbar-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.logo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.logo:hover .logo-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 106, 229, 0.15);
}

.logo-text {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width var(--transition);
}

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

.btn-nav {
  background: var(--primary);
  color: var(--text) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  position: relative;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(29, 106, 229, 0.12),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(217, 119, 6, 0.08),
      transparent 50%
    ),
    radial-gradient(rgba(240, 244, 248, 0.045) 1px, transparent 1.5px);
  background-size:
    auto,
    auto,
    30px 30px;
  z-index: -1;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(29, 106, 229, 0.12);
  border: 1px solid rgba(29, 106, 229, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--primary-light);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease;
}

.gradient-text {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 1s ease;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 1.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: #1a5fc7;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 106, 229, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ SECTION ============ */
.section {
  padding: 96px 0;
}

.section-alt {
  background: rgba(24, 33, 48, 0.35);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(29, 106, 229, 0.12);
  border: 1px solid rgba(29, 106, 229, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============ CAROUSEL ============ */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.carousel-viewport {
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: flex-start;
}

.carousel-slide {
  flex: 0 0 calc((100% - 64px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  opacity: 0.5;
  transform: scale(0.9);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6));
}

.slide-caption {
  margin-top: 22px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  transition:
    color 0.5s ease,
    opacity 0.5s ease;
  min-height: 28px;
  opacity: 0.6;
  max-width: 280px;
}

.carousel-slide.active .slide-caption {
  color: var(--primary-light);
  font-weight: 700;
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: var(--bg-card-2);
  transform: translateY(-50%) scale(1);
}

.carousel-prev {
  inset-inline-start: 0;
}

.carousel-next {
  inset-inline-end: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.carousel-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

.carousel-dot::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition:
    background-color 0.3s ease,
    width 0.3s ease;
}

.carousel-dot:hover::before {
  background: var(--text-muted);
  transform: scale(1.2);
}

.carousel-dot.active::before {
  background: var(--primary);
  width: 32px;
  border-radius: 5px;
}

/* ============ TRACKS ============ */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.track-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 106, 229, 0.1);
  border: 1px solid rgba(29, 106, 229, 0.2);
  border-radius: 50%;
  color: var(--primary-light);
  margin: 0 auto 18px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.track-card:hover .track-icon {
  background: rgba(29, 106, 229, 0.2);
  border-color: var(--primary);
  color: var(--secondary-light);
  transform: scale(1.05);
}

.track-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.track-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ LEVELS ============ */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.level-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-2);
  border-color: var(--primary);
  box-shadow: 0 12px 30px -8px rgba(29, 106, 229, 0.3);
}

.level-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--text);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.level-card:hover .level-num {
  background: var(--secondary);
  transform: scale(1.1);
}

.level-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.level-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition);
}

.level-card:hover .level-cta {
  color: var(--primary-light);
}

.level-cta svg {
  transition: transform var(--transition);
}

.level-card:hover .level-cta svg {
  transform: translateX(-4px);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 106, 229, 0.1);
  border: 1px solid rgba(29, 106, 229, 0.2);
  border-radius: var(--radius-md);
  color: var(--primary-light);
  margin-bottom: 18px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(29, 106, 229, 0.18);
  border-color: var(--primary);
  color: var(--secondary-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.about-text strong {
  color: var(--text);
  font-weight: 700;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
  padding-right: 40px;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.highlight::before {
  content: "✓";
  position: absolute;
  right: 14px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

.highlight:hover {
  border-color: var(--border-hover);
  transform: translateX(-2px);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.about-card:hover .card-avatar {
  border-color: var(--secondary);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.1);
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

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

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary-light);
  transition:
    transform var(--transition),
    color var(--transition);
  margin-right: auto;
  margin-left: 0;
  padding-right: 16px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--secondary-light);
}

.faq-item summary:hover {
  background: rgba(29, 106, 229, 0.05);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============ CTA ============ */
.cta-section {
  padding-bottom: 120px;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(29, 106, 229, 0.1),
    transparent 60%
  );
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

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

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============ FOOTER ============ */
.footer {
  background: #080b12;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition);
}

.footer-brand:hover .footer-avatar {
  border-color: var(--secondary);
}

.footer-brand h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(29, 106, 229, 0.08);
  border-right: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.footer-dua {
  margin-top: 10px;
  color: var(--secondary-light) !important;
  font-weight: 400;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 32px) / 2);
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--navbar-height-mobile) + 10px);
  }

  /* --- Navbar: BIGGER on mobile --- */
  .nav-container {
    padding: 14px 20px;
    min-height: var(--navbar-height-mobile);
  }

  .logo-avatar {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    width: 28px;
    height: 3px;
  }

  /* --- Navbar: SOLID background on mobile (no transparency behind menu) --- */
  .navbar {
    background: var(--bg-dark);
  }

  .navbar.scrolled {
    background: var(--bg-dark);
  }

  @supports (backdrop-filter: blur(20px)) {
    .navbar,
    .navbar.scrolled {
      background: var(--bg-dark);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }

  /* --- Mobile Menu: FULL screen, no gap, solid bg --- */
  .nav-links {
    position: fixed;
    top: var(--navbar-height-mobile);
    right: -100%;
    left: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark);
    width: 100%;
    height: calc(100vh - var(--navbar-height-mobile));
    height: calc(100dvh - var(--navbar-height-mobile));
    padding: 0;
    margin: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1050;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 24px;
    padding: 0 24px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 400;
    width: 100%;
    padding: 20px 24px;
    color: var(--text);
    transition:
      background-color var(--transition),
      color var(--transition);
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(29, 106, 229, 0.1);
    color: var(--primary-light);
  }

  .nav-links a::after {
    display: none;
  }

  .btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text) !important;
    padding: 16px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
  }

  .btn-nav:hover {
    background: var(--primary-hover);
    transform: none;
  }

  /* --- Hero & Sections --- */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .cta-box {
    padding: 40px 22px;
  }

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

  .scroll-indicator {
    display: none;
  }

  .carousel {
    padding: 0 50px;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-slide img {
    max-width: 260px;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

  .carousel {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-slide img {
    max-width: 220px;
  }

  .slide-caption {
    font-size: 0.85rem;
    max-width: 200px;
  }

  .carousel-dot.active::before {
    width: 26px;
  }

  .logo-avatar {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg,
  .scroll-indicator span {
    animation: none !important;
  }

  .carousel-track {
    transition: none !important;
  }
}

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

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

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

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

/* ============ SELECTION ============ */
::selection {
  background: var(--primary);
  color: var(--text);
}
