/* ============================================================
   CoreLabs Premium — Dark Theme Design System
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;

  /* Accent */
  --accent-1: #6366f1;
  /* indigo */
  --accent-2: #8b5cf6;
  /* violet */
  --accent-3: #06b6d4;
  /* cyan */
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --accent-glow: 0 0 30px rgba(99, 102, 241, 0.25);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated gradient mesh on body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(6, 182, 212, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.05) translate(-2%, 3%);
  }

  100% {
    transform: scale(1) translate(2%, -2%);
  }
}

/* Ensure content above the mesh */
body>* {
  position: relative;
  z-index: 1;
}

/* Page load fade-in */
body {
  animation: pageIn 0.6s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: var(--accent-3);
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #22d3ee;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  margin-bottom: 100px;
}

@media (max-width: 520px) {
  section {
    margin-bottom: 50px;
  }
}

/* ---------- Particle Canvas ---------- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  gap: 20px;
  padding-top: calc(18px + env(safe-area-inset-top));
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.logo .brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-heading);
  letter-spacing: 0.04em;
}

.header-btn {
  padding: 12px 24px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.header-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

/* ============================================================
   HEADER ACTIONS (right side group)
   ============================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-full);
  padding: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s ease;
}

.lang-switcher:hover {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.lang-btn .lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn:hover .lang-flag {
  opacity: 1;
}

.lang-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.lang-btn.active .lang-flag {
  opacity: 1;
}

.lang-divider {
  width: 1px;
  height: 20px;
  background: var(--border-glass);
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

/* Mobile language switcher */
.mobile-lang {
  width: 100%;
  justify-content: center;
  background: rgba(17, 24, 39, 0.4);
  padding: 5px;
}

.mobile-lang .lang-btn {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .header-actions {
    display: none;
  }
}

@media (min-width: 901px) {
  .mobile-lang {
    display: none;
  }
}

/* ============================================================
   CENTERED NAVBAR
   ============================================================ */
.center-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 48px;
  z-index: 999;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-xl);
  transition: opacity 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.center-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 8px;
  transition: color 0.25s ease;
}

.center-nav a:hover,
.center-nav a.active {
  color: var(--text-heading);
}

.center-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.center-nav a:hover::after,
.center-nav a:focus::after,
.center-nav a.active::after {
  width: 100%;
}

/* Sticky state */
.center-nav.stuck {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 14, 26, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  opacity: 0;
}

.center-nav.stuck.visible {
  opacity: 1;
}

/* ============================================================
   HAMBURGER & MOBILE MENU
   ============================================================ */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: 12px;
  position: relative;
  z-index: 2000;
}

.hamburger-box {
  display: inline-block;
  width: 22px;
  height: 16px;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  background: var(--text-primary);
  height: 2px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform .24s ease, opacity .18s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -7px;
}

.hamburger-inner::after {
  content: '';
  top: 7px;
}

.hamburger[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
  transform: rotate(-90deg) translateX(-1px);
  top: 0;
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  font-family: inherit;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  max-width: 720px;
  max-height: calc(100vh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: auto;
}

.mobile-menu.open .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu.open .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
}

.mobile-logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.mobile-logo .brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--text-heading);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  flex: 1 1 auto;
  overflow: auto;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--bg-glass-hover);
  color: var(--text-heading);
  border-color: var(--border-glass);
}

.mobile-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.mobile-cta {
  width: 100%;
}

.mobile-menu[aria-hidden="true"] {
  visibility: hidden;
}

@media (max-width: 900px) {
  .center-nav {
    display: none;
  }

  .header {
    padding: 12px 20px;
  }

  .header .header-cta {
    display: none;
  }

  .hamburger {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
    z-index: 2000;
  }

  .mobile-menu-panel {
    top: calc(64px + env(safe-area-inset-top));
  }
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 480px) {
  .mobile-menu-panel {
    left: 10px;
    right: 10px;
    border-radius: var(--r-md);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 20px 40px 40px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  min-height: 85vh;
  justify-content: center;
}

.hero .title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  min-height: 1.6em;
}

.hero .hero-image-wrap {
  margin-top: 20px;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.hero .hero-bg {
  position: absolute;
  inset: -20px;
  background: var(--accent-gradient);
  filter: blur(60px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
}

.hero .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-glass);
}

.hero .hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero entrance animations */
@keyframes fadeUpCenter {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFromAbove {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero .title,
.hero .subtitle,
.hero .hero-image-wrap {
  opacity: 1;
  transform: none;
}

.hero.play .title {
  opacity: 0;
  animation: fadeUpCenter 1s var(--ease-out) 0ms both;
}

.hero.play .subtitle {
  opacity: 0;
  animation: fadeUpCenter 1s var(--ease-out) 200ms both;
}

.hero.play .hero-buttons {
  opacity: 0;
  animation: fadeUpCenter 1s var(--ease-out) 350ms both;
}

.hero.play .hero-image-wrap {
  opacity: 0;
  animation: slideFromAbove 1.2s var(--ease-out) 500ms both;
}

@media (prefers-reduced-motion: reduce) {

  .hero.play .title,
  .hero.play .subtitle,
  .hero.play .hero-buttons,
  .hero.play .hero-image-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .hero {
    padding: 20px;
    min-height: 70vh;
  }

  .hero .title {
    font-size: 40px;
  }

  .hero .subtitle {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .hero .title {
    font-size: 28px;
  }

  .hero .subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   STATS COUNTER SECTION
   ============================================================ */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 520px) {
  .stats-section {
    gap: 30px;
    padding: 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 13px;
  }
}

/* ============================================================
   SPONSORS / TRUST BADGES
   ============================================================ */
.sponsors-section {
  width: 100%;
  overflow: hidden;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remove default section gap when inside visual-section */
.visual-section .sponsors-section,
.visual-section .stats-section {
  margin-bottom: 0;
}

.sponsors-carousel {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsors-header {
  text-align: center;
  margin-bottom: 30px;
}

.sponsors-header h3 {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sponsors-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: scrollLogos 30s linear infinite;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.sponsor {
  flex: 0 0 auto;
}

.sponsor img {
  width: 60px;
  height: auto;
  filter: grayscale(1) brightness(0.6) invert(0.8);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.sponsor img:hover {
  filter: grayscale(0) brightness(1) invert(0);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 520px) {
  .sponsors-track {
    gap: 40px;
  }

  .sponsor img {
    width: 40px;
  }
}

/* ============================================================
   FULL-WIDTH CONTAINER (heading + subtitle)
   ============================================================ */
.full-container {
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: center;
}

.container-inner {
  width: 100%;
  max-width: 1200px;
}

.container-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.container-subtitle {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

@media (max-width: 520px) {
  .full-container {
    padding: 20px;
  }

  .container-title {
    font-size: 32px;
  }

  .container-subtitle {
    font-size: 16px;
  }
}

/* ============================================================
   SERVICES CARDS (new section)
   ============================================================ */
.services-section {
  padding: 40px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.services-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-section {
    padding: 40px 20px;
  }

  .services-header h2 {
    font-size: 32px;
  }

  .services-header p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .services-header h2 {
    font-size: 26px;
  }
}

/* ============================================================
   FOUR FEATURE BOXES
   ============================================================ */
.four-box-row {
  width: 100%;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.box {
  padding: 32px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.15);
}

.box-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--accent-1);
}

.box-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.box-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 920px) {
  .four-box-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
  }
}

@media (max-width: 520px) {
  .four-box-row {
    grid-template-columns: 1fr;
  }

  .box {
    padding: 24px 20px;
  }
}

/* ============================================================
   SHOWCASE IMAGE
   ============================================================ */
.showcase-section {
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: center;
}

.showcase-inner {
  width: 100%;
  max-width: 1200px;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  background: transparent;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
}

@media (max-width: 520px) {
  .showcase-section {
    padding: 20px;
  }

  .responsive-hero-img {
    height: 280px;
    object-fit: cover;
  }
}

/* ============================================================
   CENTERED CONTAINER (Why Choose / Connect)
   ============================================================ */
.full-container-center {
  width: 100%;
  padding: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container-inner-center {
  width: 100%;
  max-width: 800px;
}

.container-title-center {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.container-subtitle-center {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.container-btn-center {
  margin-top: 30px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.container-btn-center:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

@media (max-width: 520px) {
  .full-container-center {
    padding: 40px 20px;
  }

  .container-title-center {
    font-size: 28px;
  }

  .container-subtitle-center {
    font-size: 16px;
  }
}

/* ============================================================
   SPLIT ROW (Testimonial)
   ============================================================ */
.split-row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 60px;
}

.split-left img {
  width: 100%;
  border-radius: var(--r-xl);
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-card);
  filter: brightness(0.6);
}

.split-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-quote-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-1);
  opacity: 0.5;
}

.split-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}

.split-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.split-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

@media (max-width: 920px) {
  .split-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
    gap: 30px;
  }

  .split-right {
    align-items: center;
  }

  .split-title {
    font-size: 20px;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  text-align: center;
  padding: 60px 40px 30px;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.contact-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}


.contact-form-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 60px 80px;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

.contact-left,
.contact-right {
  min-width: 0;
}

.contact-left h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-heading);
}

.contact-item {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-glow);
}

.contact-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.contact-item a {
  color: var(--accent-3);
}

.contact-right {
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
}

.required-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Form Grid Layout (TrialRun Style) */
.contact-form {
    margin-top: 20px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form__field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.contact-form__field .req {
    color: var(--accent-1);
    margin-left: 3px;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-sizing: border-box;
    max-width: 100%;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--text-muted);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form__hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.contact-submit {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 860px) {
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Info cards */
.contact-info-cards {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  min-width: 160px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color 0.25s ease;
}

.info-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h4 {
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 4px;
  font-weight: 600;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Success overlay */
.form-success {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.95);
  border-radius: var(--r-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}

.form-success.show {
  display: flex;
}

.form-success .checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s var(--ease-bounce) both;
}

.form-success .checkmark svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.form-success h3 {
  color: var(--text-heading);
  font-size: 20px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 14px;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Contact Newsletter Block */
.contact-newsletter-block {
  margin-top: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}

.contact-newsletter-block h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-newsletter-block p {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .contact-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .contact-hero {
    padding: 50px 20px 20px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .contact-hero {
    padding: 40px 16px 20px;
  }

  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-hero p {
    font-size: 15px;
  }

  .contact-body {
    padding: 10px 12px 40px;
    gap: 24px;
  }

  .contact-right {
    padding: 16px 14px;
    border-radius: var(--r-md);
  }

  .contact-form-title {
    font-size: 20px;
  }

  .required-note {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .contact-form__field {
    margin-bottom: 14px;
  }

  .contact-form__field label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .contact-form__field input,
  .contact-form__field textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .contact-form__field textarea {
    min-height: 100px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .contact-submit {
    padding: 12px;
    font-size: 14px;
  }

  .contact-info-cards {
    flex-direction: column;
  }

  .contact-newsletter-block {
    padding: 16px !important;
    margin-top: 24px;
  }

  .contact-newsletter-block .footer-newsletter {
    flex-direction: column;
  }

  .contact-newsletter-block .footer-newsletter button {
    width: 100%;
  }

  .contact-left h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .contact-item {
    padding: 14px;
    margin-bottom: 16px;
  }

  .contact-item h4 {
    font-size: 15px;
  }

  .contact-item p {
    font-size: 14px;
  }
}

/* ============================================================
   ABOUT / VISUAL SECTION
   ============================================================ */
.visual-section {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 60px 20px;
  border-radius: var(--r-lg);
  max-width: 1300px;
  margin: 0 auto 24px;
  border: 1px solid var(--border-card);
}

.visual-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.visual-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.4;
}

.visual-heading strong {
  color: var(--accent-3);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 36px;
}

.visual-left {
  grid-row: 1 / span 2;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border-card);
}

.visual-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-right-top,
.visual-right-bottom {
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border-card);
}

.visual-right-top img,
.visual-right-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-left {
    grid-row: auto;
  }

  .visual-right-bottom {
    grid-column: 1 / 3;
  }

  .visual-right-bottom img {
    height: 220px;
  }

  .visual-heading {
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-right-bottom {
    grid-column: auto;
  }

  .visual-right-bottom img {
    height: auto;
  }

  .visual-heading {
    font-size: 22px;
  }

  .visual-section {
    padding: 30px 14px;
    margin: 0 auto 16px;
  }
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  padding: 64px 20px;
  border-radius: var(--r-lg);
  max-width: 1300px;
  margin: 0 auto;
}

.team-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.team-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.15);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-glass);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-body {
  width: 100%;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 6px 0 4px;
  color: var(--text-heading);
  font-weight: 700;
}

.member-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.member-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.member-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.member-socials a:hover {
  background: var(--bg-glass-hover);
  color: var(--accent-3);
  transform: translateY(-2px);
}

.member-socials svg {
  display: block;
}

@media (max-width: 920px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .team-card {
    padding: 16px 12px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .member-name {
    font-size: 13px;
  }

  .member-role {
    font-size: 11px;
  }

  .team-section {
    padding: 40px 14px;
  }

  .team-title {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LEARN PAGE
   ============================================================ */
.learn-hero {
  text-align: center;
  padding: 60px 40px 30px;
}

.learn-hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.learn-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Category filter tabs */
.learn-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-card);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-heading);
  border-color: var(--border-glass);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--accent-glow);
}

/* Tutorial cards */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 60px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.tutorial-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.tutorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.2);
}

.tutorial-card.hidden {
  display: none;
}

.tutorial-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.tutorial-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.tutorial-thumb-wrap .coming-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  z-index: 2;
  letter-spacing: 0.05em;
}

.tutorial-body {
  padding: 20px;
}

.tutorial-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tutorial-badge.webdev {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.tutorial-badge.mobile {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.tutorial-badge.iot {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.tutorial-badge.design {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.tutorial-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.4;
}

.tutorial-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.difficulty {
  display: flex;
  gap: 4px;
  align-items: center;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-card);
}

.difficulty-dot.filled {
  background: var(--accent-1);
}

.tutorial-cta {
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tutorial-cta:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-3);
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 40px;
  }

  .learn-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .learn-hero {
    padding: 40px 20px 20px;
  }

  .learn-hero h1 {
    font-size: 28px;
  }
}

/* ============================================================
   TUTORIAL DETAIL PAGES
   ============================================================ */
.tutorial-back-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 40px 0;
}

.tutorial-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.tutorial-back-link:hover {
  color: var(--text-heading);
}

.tutorial-page-hero {
  padding: 30px 40px 30px;
  text-align: center;
}

.tutorial-page-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.tutorial-page-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.tutorial-page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tutorial-page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.tutorial-page-cover {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.tutorial-page-cover img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.tutorial-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

.tutorial-content h2 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 16px;
  margin-top: 32px;
}

.tutorial-content p {
  margin-bottom: 20px;
}

.tutorial-code-block {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 20px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.tutorial-code-block pre {
  margin: 0;
  font-family: monospace;
  font-size: 14px;
}

.tutorial-takeaway {
  padding: 24px;
  border: 1px solid;
  border-radius: var(--r-md);
  margin-top: 40px;
}

.tutorial-takeaway h3 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-takeaway p {
  margin: 0;
  font-size: 15px;
}

.tutorial-complete-wrap {
  text-align: center;
  margin-top: 60px;
}

.tutorial-complete-btn {
  padding: 14px 32px;
  font-size: 16px;
}

@media (max-width: 920px) {
  .tutorial-page-title {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .tutorial-back-wrap {
    padding: 16px 16px 0;
  }

  .tutorial-page-hero {
    padding: 20px 16px;
  }

  .tutorial-page-title {
    font-size: 26px;
  }

  .tutorial-page-subtitle {
    font-size: 15px;
  }

  .tutorial-page-body {
    padding: 0 16px 50px;
  }

  .tutorial-page-cover img {
    height: 200px;
  }

  .tutorial-content {
    font-size: 15px;
  }

  .tutorial-content h2 {
    font-size: 20px;
  }

  .tutorial-code-block {
    padding: 14px;
  }

  .tutorial-code-block pre {
    font-size: 12px;
  }

  .tutorial-takeaway {
    padding: 16px;
  }

  .tutorial-takeaway h3 {
    font-size: 16px;
  }

  .tutorial-takeaway p {
    font-size: 14px;
  }

  .tutorial-complete-wrap {
    margin-top: 40px;
  }

  .tutorial-complete-btn {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
  }
}

/* ============================================================
   COMING SOON (fallback)
   ============================================================ */
.coming-soon {
  width: 100%;
  min-height: 70vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.coming-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 20px;
  line-height: 1.3;
}

.coming-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 600;
}

.coming-btn {
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.coming-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

@media (max-width: 520px) {
  .coming-soon {
    padding: 30px 20px;
    min-height: 50vh;
  }

  .coming-title {
    font-size: 28px;
  }

  .coming-subtitle {
    font-size: 16px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  padding: 60px 60px 30px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text-heading);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--bg-glass-hover);
  color: var(--accent-3);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Newsletter Banner */
.footer-newsletter-banner {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 30px 40px;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.newsletter-banner-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-banner-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-newsletter {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 450px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.25s ease;
  min-width: 0;
}

.footer-newsletter input:focus {
  border-color: var(--accent-1);
}

.footer-newsletter button {
  padding: 12px 24px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 920px) {
  .footer-newsletter-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .footer-newsletter {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-newsletter {
    flex-direction: column;
  }

  .footer-newsletter button {
    width: 100%;
  }

  .newsletter-banner-content h3 {
    font-size: 17px;
  }
}

/* Footer Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-1);
  margin-top: 2px;
}

.footer-contact-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.footer-contact-item p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .site-footer {
    padding: 40px 20px 20px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-desc {
    max-width: 100%;
  }

  .site-footer {
    padding: 30px 16px 16px;
  }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: var(--accent-glow);
  cursor: pointer;
  z-index: 1200;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), box-shadow 200ms ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:focus-visible {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

@media (max-width: 520px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .back-to-top,
  .back-to-top.visible {
    transition: none;
  }
}

/* ============================================================
   FADE-UP ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow ring hover utility */
.glow-hover {
  transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
  box-shadow: var(--shadow-glow);
}

/* Glass panel utility */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] {
  /* Backgrounds */
  --bg-primary: #f5f7fb;
  --bg-secondary: #edf0f7;
  --bg-card: rgba(255, 255, 255, 0.4);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --bg-glass-hover: rgba(255, 255, 255, 0.8);

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #0f172a;

  /* Accent — keep gradients, darken slightly for readability */
  --accent-1: #4f46e5;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
  --accent-gradient: linear-gradient(135deg, #4f46e5, #7c3aed, #0891b2);
  --accent-glow: 0 0 30px rgba(79, 70, 229, 0.18);

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.10);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.10);
}

/* Light mode — body background mesh */
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79, 70, 229, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124, 58, 237, 0.05), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(8, 145, 178, 0.04), transparent);
}

/* Light mode — sticky navbar glass */
[data-theme="light"] .center-nav.stuck {
  background: rgba(245, 247, 251, 0.82);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light mode — lang switcher */
[data-theme="light"] .lang-switcher {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light mode — mobile menu */
[data-theme="light"] .mobile-menu-panel {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Light mode — mobile language switcher */
[data-theme="light"] .mobile-lang {
  background: rgba(237, 240, 247, 0.6);
}

/* Light mode — link color hover */
[data-theme="light"] a:hover {
  color: #0891b2;
}

/* Light mode — hero image */
[data-theme="light"] .hero .hero-image img {
  filter: brightness(1);
}

/* Light mode — showcase */
[data-theme="light"] .showcase-img {
  filter: brightness(0.9);
}

/* Light mode — split image */
[data-theme="light"] .split-left img {
  filter: brightness(0.9);
}

/* Light mode — sponsor images */
[data-theme="light"] .sponsor img {
  filter: grayscale(1) brightness(0.4) invert(0);
  opacity: 0.4;
}

[data-theme="light"] .sponsor img:hover {
  filter: grayscale(0) brightness(1) invert(0);
  opacity: 1;
}

/* Light mode — service card glow follow reset */
[data-theme="light"] .service-card:hover {
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}

/* Light mode — form inputs */
[data-theme="light"] .contact-form__field input,
[data-theme="light"] .contact-form__field textarea {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .contact-form__field input:focus,
[data-theme="light"] .contact-form__field textarea:focus {
  background: #fff;
}

/* Light mode — newsletter input */
[data-theme="light"] .footer-newsletter input {
  background: rgba(0, 0, 0, 0.02);
}

/* Light mode — Home page transparent sections */
[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

[data-theme="light"] .box {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

[data-theme="light"] .box:hover {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .full-container-center {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--r-lg);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .split-row {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .showcase-inner {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .showcase-img {
  filter: brightness(0.85);
}

[data-theme="light"] .split-left img {
  filter: brightness(0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Light mode — success overlay */
[data-theme="light"] .form-success {
  background: rgba(255, 255, 255, 0.95);
}

/* Light mode — code blocks */
[data-theme="light"] .tutorial-code-block {
  background: rgba(0, 0, 0, 0.04);
}

/* Light mode — contact newsletter block */
[data-theme="light"] .contact-newsletter-block {
  background: rgba(0, 0, 0, 0.02);
}

/* Light mode — btn secondary */
[data-theme="light"] .btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Light mode — ABOUT PAGE (floating glass sections)
   ============================================================ */

/* Visual section (image grid + stats + sponsors) */
[data-theme="light"] .visual-section {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Visual grid image containers */
[data-theme="light"] .visual-left,
[data-theme="light"] .visual-right-top,
[data-theme="light"] .visual-right-bottom {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Team section */
[data-theme="light"] .team-section {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Team cards — more translucent */
[data-theme="light"] .team-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .team-card:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.12);
  transform: translateY(-6px);
}

/* Avatar glow in light mode */
[data-theme="light"] .avatar {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Member socials in light mode */
[data-theme="light"] .member-socials a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .member-socials a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
}

/* Footer — floating glass in light mode */
[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Footer social icons */
[data-theme="light"] .footer-social a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-social a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
}

/* Smooth transition on theme change */
html[data-theme],
html[data-theme] body,
html[data-theme] body::before {
  transition: background 0.4s ease, color 0.3s ease;
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s var(--ease-out);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--ease-bounce), opacity 0.3s ease;
}

.theme-toggle .icon-sun {
  color: #fbbf24;
}

.theme-toggle .icon-moon {
  color: #a78bfa;
}

/* Dark mode (default): show moon, hide sun */
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Mobile theme toggle in mobile menu */
.mobile-theme-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 12px;
}

.mobile-theme-toggle-wrap .theme-toggle {
  width: 100%;
  height: 44px;
  border-radius: var(--r-full);
  gap: 8px;
}

.mobile-theme-toggle-wrap .theme-toggle .toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 28px;
  transition: color 0.3s ease;
}

.mobile-theme-toggle-wrap .theme-toggle .icon-sun,
.mobile-theme-toggle-wrap .theme-toggle .icon-moon {
  left: 16px;
}