/* =============================================
   ULTRA-PREMIUM EDTECH PORTFOLIO - GLOBAL STYLES
   ============================================= */

/* Google Fonts - Including Cairo for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
  /* Premium Dark Theme Colors */
  --bg-primary: #060608;
  --bg-secondary: #0c0c12;
  --bg-tertiary: #121218;
  --bg-card: #0e0e15;
  --bg-card-hover: #16161f;
  --bg-elevated: #1a1a26;

  /* EDUTRICK Brand Colors */
  --accent-primary: #ff4b22;
  --accent-secondary: #ff6b47;
  --accent-tertiary: #ff8a6b;
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, #ff4b22 0%, #ff6b47 50%, #ff8a6b 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-dark: linear-gradient(180deg, #07070a 0%, #0d0d12 100%);
  --gradient-radial: radial-gradient(ellipse at center, #1a1a2e 0%, #07070a 70%);
  --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(168, 85, 247, 0.1) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-subtle: #52525b;

  /* Border Colors */
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(99, 102, 241, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.2);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Font Sizes (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Container */
  --container-max: 1400px;
  --container-padding: clamp(1rem, 5vw, 3rem);
}

/* =============================================
   LIGHT THEME (Premium Crisp Palette)
   ============================================= */
[data-theme="light"] {
  --bg-primary: #f8f9fb;
  --bg-secondary: #f0f2f7;
  --bg-tertiary: #e4e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f9faff;
  --bg-elevated: #dde2ee;

  --text-primary: #0d0f1a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  --border-primary: rgba(13, 15, 26, 0.09);
  --border-secondary: rgba(13, 15, 26, 0.05);
  --border-accent: rgba(255, 75, 34, 0.3);

  --shadow-sm: 0 2px 8px rgba(13, 15, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 15, 26, 0.1);
  --shadow-lg: 0 8px 32px rgba(13, 15, 26, 0.12);
  --shadow-xl: 0 16px 48px rgba(13, 15, 26, 0.14);
  --shadow-glow: 0 0 40px rgba(255, 75, 34, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(255, 75, 34, 0.2);

  --gradient-dark: linear-gradient(180deg, #f8f9fb 0%, #f0f2f7 100%);
  --gradient-radial: radial-gradient(ellipse at center, #ffffff 0%, #f0f2f7 70%);
  --gradient-hero: linear-gradient(135deg, rgba(255, 75, 34, 0.07) 0%, rgba(245, 158, 11, 0.04) 50%, rgba(99, 102, 241, 0.07) 100%);
}

/* =============================================
   RTL SUPPORT (Arabic)
   ============================================= */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .platform-title,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  font-family: var(--font-arabic);
}

[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .platform-card-meta {
  flex-direction: row-reverse;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

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

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Inputs */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--space-5xl) 0;
}

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

.text-gold {
  color: var(--accent-gold);
}

.glow {
  box-shadow: var(--shadow-glow);
}

/* =============================================
   ANIMATION KEYFRAMES
   ============================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Staggered Animations */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* Initially Hidden for Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =============================================
   HEADER STYLES
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  border-top: 3px solid transparent;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  z-index: 10;
}

.header.scrolled {
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-md) 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(13, 15, 26, 0.08);
  box-shadow: 0 4px 30px rgba(13, 15, 26, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .nav-link:hover {
  text-shadow: 0 0 15px rgba(255, 75, 34, 0.2);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-bounce);
  border-radius: var(--radius-full);
}

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

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

[data-theme="light"] .mobile-menu-btn:hover {
  background: rgba(13, 15, 26, 0.05);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* =============================================
   BUTTON STYLES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

/* =============================================
   CARD STYLES
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .card {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-secondary);
}

[data-theme="light"] .card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-8px);
  background: #ffffff;
}

/* =============================================
   ULTIMATE PREMIUM HERO SECTION
   ============================================= */
.cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-primary);
}

/* Deep Background Layers */
.hero-deep-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 75, 34, 0.1) 0%, transparent 50%);
  z-index: -4;
}

[data-theme="light"] .cinematic-hero {
  background: var(--bg-primary);
}

[data-theme="light"] .hero-deep-bg {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 75, 34, 0.05) 0%, transparent 50%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  z-index: -3;
}

[data-theme="light"] .hero-grid-overlay {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Mouse Tracking Glow */
.hero-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
  transition: top 0.2s ease-out, left 0.2s ease-out;
}

/* Video Vignette to blend edges perfectly */
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

[data-theme="light"] .hero-cover {
  opacity: 0.12;
  filter: saturate(1.2);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, #030305 100%);
}

[data-theme="light"] .hero-vignette {
  background: radial-gradient(circle, transparent 40%, #fbfbfb 100%);
}

/* Premium Pill Badge */
.premium-badge {
  position: relative;
  display: inline-flex;
  margin-bottom: var(--space-2xl);
}

.premium-badge-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold), var(--accent-primary));
  border-radius: 99px;
  filter: blur(8px);
  opacity: 0.5;
  animation: bg-spin 4s linear infinite;
  background-size: 200% 200%;
}

.premium-badge-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 24px;
  border-radius: 99px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}

[data-theme="light"] .premium-badge-content {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.pulse-primary {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse 2s infinite;
}

/* Cinematic Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  color: white;
}

[data-theme="light"] .hero-title {
  color: #000;
}

.title-line {
  display: block;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

/* Premium Buttons */
.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8vh;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-radius: 99px;
  font-size: var(--text-lg);
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-glow-primary {
  background: white;
  color: black;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.btn-glow-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-glow-primary {
  background: #000;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-glow-primary:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-glass {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-glass:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Floating Stats Glass Bar */
.hero-stats-glass-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 48px;
  gap: 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hero-stats-glass-bar {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

[data-theme="light"] .stat-val {
  color: var(--text-primary);
}

.stat-lbl {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .stat-divider {
  background: rgba(0, 0, 0, 0.1);
}

@media(max-width: 768px) {
  .hero-stats-glass-bar {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    width: 90%;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-cta {
    flex-direction: column;
    padding: 0 20px;
  }

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

/* =============================================
   PLATFORMS SECTION
   ============================================= */
.platforms-section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  background: rgba(255, 75, 34, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 75, 34, 0.15);
}

[data-theme="light"] .section-subtitle {
  background: rgba(255, 75, 34, 0.07);
  border-color: rgba(255, 75, 34, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Platform Grid - Bento Layout */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* First card is featured - spans 2 columns */
.platforms-grid>div:first-child {
  grid-column: span 2;
}

.platforms-grid>div:first-child .platform-card-image {
  height: 320px;
}

@media (max-width: 1200px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid>div:first-child {
    grid-column: span 2;
  }

  .platforms-grid>div:first-child .platform-card-image {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .platforms-grid>div:first-child {
    grid-column: auto;
  }

  .platforms-grid>div:first-child .platform-card-image {
    height: 220px;
  }
}

/* Platform Card - ULTIMATE PREMIUM */
.platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .platform-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* The Animated Glowing Border Effect */
.platform-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-2xl) + 1px);
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 70%, var(--accent-primary) 85%, var(--accent-gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-spin 4s linear infinite;
  pointer-events: none;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

@keyframes border-spin {
  to {
    --border-angle: 1turn;
  }
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 75, 34, 0.3),
    0 0 40px rgba(255, 75, 34, 0.15);
  border-color: rgba(255, 75, 34, 0.25);
}

.platform-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .platform-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(255, 75, 34, 0.15);
}

.platform-card-image {
  position: relative;
  height: 220px;
  background: var(--bg-tertiary);
  overflow: hidden;
  z-index: 1;
}

.platform-card-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.platform-card:hover .platform-card-image img {
  transform: scale(1.08);
}

.platform-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, transparent 70%);
}

[data-theme="light"] .platform-card-overlay {
  background: linear-gradient(to top, rgba(250, 250, 249, 0.95) 0%, transparent 70%);
}

.platform-card-logo {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.platform-card-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.platform-card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.platform-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.platform-card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.platform-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-secondary);
  margin-top: auto;
}

.platform-icons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.platform-icon:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.platform-card-arrow {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.platform-card:hover .platform-card-arrow {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* =============================================
   PLATFORM DETAIL PAGE
   ============================================= */
.platform-detail {
  padding-top: 100px;
}

.platform-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: var(--space-4xl);
}

.platform-hero-image {
  position: absolute;
  inset: 0;
}

.platform-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(7, 7, 10, 0.5) 50%, rgba(7, 7, 10, 0.3) 100%);
}

.platform-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3xl);
}

.platform-logo-large {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.platform-logo-large img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.platform-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.platform-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

/* Platform Content */
.platform-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-3xl);
}

@media (max-width: 1024px) {
  .platform-content {
    grid-template-columns: 1fr;
  }
}

.platform-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.platform-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Platform Section */
.platform-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.platform-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-section-title svg {
  color: var(--accent-primary);
}

/* Download Links */
.download-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.download-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.download-link:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.download-link-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.download-link-content {
  flex: 1;
}

.download-link-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.download-link-name {
  font-weight: 600;
}

/* Screenshots Gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

.screenshot-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-base);
}

.screenshot-item:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-4xl) 0 var(--space-2xl);
  margin-top: var(--space-5xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-gold), var(--accent-primary), transparent);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-primary);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* =============================================
   MODAL / LIGHTBOX
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* =============================================
   ADMIN STYLES
   ============================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-primary);
  padding: var(--space-xl);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: var(--z-sticky);
}

.admin-sidebar-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-primary);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.admin-nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.admin-nav-link.active {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-2xl);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.admin-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
}

/* Admin Cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.file-upload:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--text-muted);
}

.file-upload-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.file-upload-text span {
  color: var(--accent-primary);
  font-weight: 500;
}

/* Platform List Admin */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.platform-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.platform-list-item:hover {
  border-color: var(--border-accent);
}

.platform-list-item-image {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.platform-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-list-item-content {
  flex: 1;
  min-width: 0;
}

.platform-list-item-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.platform-list-item-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-list-item-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle.active {
  background: var(--accent-primary);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle.active::after {
  transform: translateX(24px);
}

/* Responsive Admin */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 80px;
    padding: var(--space-md);
  }

  .admin-sidebar .logo span,
  .admin-nav-link span {
    display: none;
  }

  .admin-main {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    padding: var(--space-xl);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar .logo span,
  .admin-nav-link span {
    display: inline;
  }

  .admin-main {
    margin-left: 0;
    padding: var(--space-lg);
  }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  margin: var(--space-5xl) 0;
}

.contact-section .section-title {
  margin-bottom: var(--space-md);
}

.contact-section .section-description {
  margin-bottom: var(--space-2xl);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* =============================================
   PHASE 8: PREMIUM DESIGN ENHANCEMENTS
   ============================================= */

/* 1. Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

[data-theme="light"] body::before {
  opacity: 0.02;
}

/* 2. Hero Interactive Mouse Glow */
.hero-glow-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 75, 34, 0.15) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -2;
  transition: opacity 0.5s ease;
  filter: blur(40px);
}

[data-theme="light"] .hero-glow-blob {
  background: radial-gradient(circle, rgba(255, 75, 34, 0.08) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
}

/* 3. Refined Typography & Glassmorphism Badge */
.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 8px 30px rgba(255, 75, 34, 0.15);
  transform: translateY(-2px);
}

.hero-title {
  background: linear-gradient(to right, #ffffff 20%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-title {
  background: linear-gradient(to right, #111111 20%, #4a4a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ff4b22 0%, #ff8a6b 50%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

/* 4. Enhanced Buttons with Glow */
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, #ff4b22, #f59e0b, #ff4b22);
  background-size: 200% auto;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradient-shift 3s linear infinite;
}

.btn-primary:hover::after {
  opacity: 1;
  filter: blur(10px);
}

/* 5. 3D Tilt Platform Cards */
.platform-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.platform-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%, var(--accent-cyan) 100%);
}

.platform-card-image img {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-card-image img {
  transform: translateZ(40px) scale(1.05);
}

.platform-card-logo {
  transform: translateZ(30px);
}

/* 6. Advanced Masonry Screenshot Gallery */
.screenshots-gallery-wrapper {
  column-count: 2;
  column-gap: var(--space-md);
}

@media (min-width: 1024px) {
  .screenshots-gallery-wrapper {
    column-count: 3;
    column-gap: var(--space-lg);
  }
}

.screenshot-item-masonry {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 1024px) {
  .screenshot-item-masonry {
    margin-bottom: var(--space-lg);
  }
}

.screenshot-item-masonry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-item-masonry:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.screenshot-item-masonry:hover::after {
  opacity: 1;
}

.screenshot-item-masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-zoom-icon {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.screenshot-item-masonry:hover .screenshot-zoom-icon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 7. Lightbox Styles (Vanilla JS) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100000;
}

.lightbox-close:hover {
  background: var(--accent-primary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}


/* 8. Admin Panel Enhancements */
.admin-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20, 20, 30, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .admin-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-secondary);
  transition: all 0.3s ease;
}

[data-theme="light"] .form-input {
  background: var(--bg-secondary);
}

.form-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 75, 34, 0.15);
  transform: translateY(-1px);
}

[data-theme="light"] .form-input:focus {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 75, 34, 0.1);
}

.form-label {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* =============================================
   NEURAL NETWORK HERO
   ============================================= */
.neural-network-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.neural-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Particle background for hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  animation: particle-float var(--duration, 12s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1.5);
  }
}

/* Hero background gradient */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 75, 34, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 75, 34, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
}

/* Grid lines subtle bg pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  pointer-events: none;
}

[data-theme="light"] .hero-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Neural Network visualization wrapper */
.neural-section {
  position: relative;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  margin: 0 auto var(--space-xl);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .neural-section {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .neural-section {
    width: min(260px, 86vw);
    height: min(260px, 86vw);
    margin-bottom: var(--space-md);
  }
}

/* ==========================================================================
   EDUTRICK MAP SECTION (V2 HERO)
   ========================================================================== */

/* ── Scroll wrapper: viewport into the fixed-size map ─────────────────────── */
/* position:absolute inset:0  →  fills #hero exactly                        */
/* overflow:auto               →  scrolls when map-section overflows          */
/* The map-section inside must be position:relative (in flow) so its width  */
/* contributes to the scrollable area — unlike position:absolute which does  */
/* NOT extend scroll dimensions.                                             */
#map-scroll-wrapper {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
}

#map-scroll-wrapper:active {
  cursor: grabbing;
}

/* ───────────────────────────────────────────────────────────────────── */

.edutrick-map-section {
  position: relative;    /* IN NORMAL FLOW — extends scroll width of wrapper */
  width: 1920px;         /* Fixed — matches the calibration viewport width */
  min-width: 1920px;     /* Never shrink under any circumstance */
  height: 916px;         /* Fixed — matches the calibration viewport height (1006px - 90px header) */
  min-height: 916px;     /* Prevents vertical shifting of % based top pins */
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-primary);
  border: none;
  box-shadow: none;
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 1;
}

.map-world-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/world-map.svg');
  background-size: 1632px auto;      /* FIXED px = 85% of 1920px — never changes */
  background-position: center 55%;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: invert(1) brightness(1.5) drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .map-grid-bg {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .map-world-bg {
  opacity: 0.2;
  filter: invert(0) brightness(0.6);
}

.map-territory {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 2;
  mix-blend-mode: screen;
}

[data-theme="light"] .map-territory {
  mix-blend-mode: multiply;
  opacity: 0.08;
}

.territory-1 {
  width: 40%;
  height: 60%;
  top: 10%;
  left: 5%;
  background: var(--accent-primary);
}

.territory-2 {
  width: 35%;
  height: 50%;
  bottom: 5%;
  right: 10%;
  background: var(--accent-cyan);
}

.territory-3 {
  width: 45%;
  height: 40%;
  top: 30%;
  left: 40%;
  background: #6366f1;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.map-edge {
  stroke: rgba(99, 102, 241, 0.25);
  stroke-width: 0.3;
  stroke-dasharray: 4 4;
}

[data-theme="light"] .map-edge {
  stroke: rgba(99, 102, 241, 0.4);
}

.map-trunk {
  stroke: url(#map-gradient);
  stroke-width: 0.1;
  opacity: 0.15;
}

.map-trunk-pulse {
  stroke: var(--accent-primary);
  stroke-width: 0.25;
  opacity: 0;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: map-pulse 5s infinite linear var(--delay);
}

@keyframes map-pulse {
  0% {
    stroke-dashoffset: 200;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.map-center-hub {
  position: absolute;
  top: 40.2%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-hub-radar {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(6, 182, 212, 0.15) 100%);
  animation: radar-spin 4s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}

.map-hub-logo {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-hub-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.map-hub-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: hub-pulse-anim 3s ease-out infinite;
  pointer-events: none;
}

.map-hub-pulse.pulse-2 {
  animation-delay: 1.5s;
}

@keyframes hub-pulse-anim {
  0% {
    width: 45px;
    height: 45px;
    opacity: 1;
  }

  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: all 0.3s ease;
}

.map-node.size-1 {
  width: 56px;
  height: 56px;
  z-index: 7;
}

.map-node.size-2 {
  width: 44px;
  height: 44px;
  z-index: 6;
}

.map-node.size-3 {
  width: 32px;
  height: 32px;
  z-index: 5;
}

.map-node-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .map-node-pin {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-node-pin img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.map-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.map-node.size-3 .map-node-pin {
  background: var(--surface-card);
}

.map-node:hover {
  z-index: 20;
}

.map-node:hover .map-node-pin {
  transform: scale(1.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(255, 75, 34, 0.4);
}

.map-node-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="light"] .map-node-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-node:hover .map-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.map-tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-node-tooltip .tooltip-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.map-node-tooltip .tooltip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

[data-theme="light"] .map-node-tooltip .tooltip-title {
  color: var(--text-primary);
}

.map-node-tooltip .tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .map-node-tooltip .tooltip-arrow {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ── MAP PLACEHOLDER NODES (CTA) ──────────────────────── */

.placeholder-pin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .placeholder-pin {
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

.placeholder-pin:hover {
  background: rgba(255, 75, 34, 0.1);
  border-color: var(--accent-primary);
  border-style: solid;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .placeholder-icon {
  color: rgba(0, 0, 0, 0.4);
}

.placeholder-pin:hover .placeholder-icon {
  color: var(--accent-primary);
  transform: scale(1.2) rotate(90deg);
}

.placeholder-tooltip-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 75, 34, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.placeholder-tooltip {
  width: max-content;
}

/* ── MAP ZOOM CONTROLS ────────────────────────────────── */
.map-zoom-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.map-zoom-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-zoom-controls button:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

[data-theme="light"] .map-zoom-controls button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .map-zoom-controls button:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

@media(max-width: 768px) {
  .map-zoom-controls {
    bottom: 20px;
    right: 20px;
  }
}

/* ── Responsive: Large Tablet / Small Desktop (≤1024px) ─────────────── */
@media (max-width: 1024px) {
  .map-node.size-1 { width: 48px; height: 48px; }
  .map-node.size-2 { width: 38px; height: 38px; }
  .map-node.size-3 { width: 28px; height: 28px; }

  .map-hub-logo   { width: 40px; height: 40px; }
  .map-hub-radar  { width: 200px; height: 200px; }
}

/* ── Mobile / Tablet: keep the map full size, scroll via #map-scroll-wrapper */
@media (max-width: 768px) {
  /* Slightly smaller nodes on tablet but not tiny */
  .map-node.size-1 { width: 46px; height: 46px; }
  .map-node.size-2 { width: 36px; height: 36px; }
  .map-node.size-3 { width: 26px; height: 26px; }

  /* Hub stays readable */
  .map-hub-logo  { width: 40px; height: 40px; }
  .map-hub-radar { width: 170px; height: 170px; }

  /* Scroll hint label */
  .map-scroll-hint {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller on mobile */
  .map-node.size-1 { width: 36px; height: 36px; }
  .map-node.size-2 { width: 28px; height: 28px; }
  .map-node.size-3 { width: 20px; height: 20px; }

  /* Tooltips hidden on small screen */
  .map-node-tooltip { display: none !important; }
}

/* ── Scroll hint badge (visible only on mobile) ──────────────────────── */
.map-scroll-hint {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #94a3b8;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  gap: 6px;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(4px);
  pointer-events: none;
}


/* =============================================
   MOBILE MENU FULL SCREEN OVERLAY
   ============================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-nav-overlay .nav-link {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-sm) var(--space-xl);
  transition: all var(--transition-base);
}

.mobile-nav-overlay .nav-link:hover {
  color: var(--text-primary);
}

.mobile-nav-overlay .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 75, 34, 0.05);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-nav-overlay .nav-link:hover::before {
  opacity: 1;
}

.mobile-nav-divider {
  width: 40px;
  height: 1px;
  background: var(--border-primary);
}

/* =============================================
   SCROLL REVEAL ENHANCEMENTS
   ============================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay utilities */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* =============================================
   ABOUT SECTION – PREMIUM REDESIGN
   ============================================= */
.about-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-primary);
}

.about-bg-text {
  position: absolute;
  top: 5%;
  left: -3%;
  font-size: clamp(8rem, 16vw, 22rem);
  font-weight: 900;
  color: transparent;
  font-family: var(--font-display);
  pointer-events: none;
  z-index: 0;
  line-height: 0.85;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
  user-select: none;
}

[data-theme="light"] .about-bg-text {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

[data-theme="light"] .about-grid {
  box-shadow: var(--shadow-md);
}

.about-feature {
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  transition: background var(--transition-base);
}

.about-feature:hover {
  background: var(--bg-card-hover);
}

.about-feature-divider {
  background: var(--border-primary);
  width: 1px;
}

.about-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  position: relative;
  transition: transform var(--transition-bounce);
}

.about-feature:hover .about-feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

.about-feature-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: inherit;
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}

.about-feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.about-feature-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: var(--text-base);
}

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

  .about-feature-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .about-feature {
    padding: var(--space-2xl) var(--space-xl);
  }
}

/* Animated counter */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* =============================================
   CONTACT SECTION – PREMIUM CTA
   ============================================= */
.contact-cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-primary);
}

.contact-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 100%);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.12) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  filter: blur(50px);
  animation: cta-glow-pulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cta-glow-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

[data-theme="light"] .contact-cta-glow {
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.07) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
}

.contact-cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  animation: cta-particle-float var(--dur, 8s) var(--del, 0s) infinite ease-in-out;
}

@keyframes cta-particle-float {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.2);
  }
}

.contact-cta-border {
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 75, 34, 0.3);
}

/* =============================================
   SECTION DIVIDER GRADIENT
   ============================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-primary) 20%, var(--border-primary) 80%, transparent);
  margin: 0;
}

/* =============================================
   HERO STATS BAR
   ============================================= */
@media (max-width: 480px) {
  .hero-stats-glass-bar {
    flex-direction: column;
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-lg);
    width: calc(100% - 2 * var(--container-padding));
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }

  .stat-val {
    font-size: var(--text-3xl);
  }
}

/* =============================================
   LIGHT THEME PLATFORM CARDS
   ============================================= */
[data-theme="light"] .platform-card {
  background: #ffffff;
  border-color: rgba(13, 15, 26, 0.07);
  box-shadow: 0 4px 16px rgba(13, 15, 26, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .platform-card:hover {
  box-shadow:
    0 20px 48px rgba(13, 15, 26, 0.12),
    0 0 0 1px rgba(255, 75, 34, 0.25),
    0 0 30px rgba(255, 75, 34, 0.1);
  border-color: rgba(255, 75, 34, 0.2);
}

/* =============================================
   PLATFORM CARD ENHANCED OVERLAY
   ============================================= */
.platform-card-image-overlay-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.platform-card:hover .platform-card-image-overlay-hover {
  opacity: 1;
}

[data-theme="light"] .platform-card-overlay {
  background: linear-gradient(to top, rgba(248, 249, 251, 0.98) 0%, rgba(248, 249, 251, 0.4) 60%, transparent 100%);
}

/* =============================================
   SECTION BG PATTERNS
   ============================================= */
.section-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

[data-theme="light"] .section-bg-dots {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* =============================================
   MOBILE SPECIFIC FIXES
   ============================================= */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
  }

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

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

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-title {
    font-size: clamp(3rem, 9vw, 5rem);
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: var(--space-4xl) 0;
  }

  .contact-cta-section {
    padding: var(--space-4xl) 0;
  }

  .about-section {
    padding: var(--space-4xl) 0;
  }
}

/* =============================================
   RTL / ARABIC IMPROVEMENTS
   ============================================= */
[dir="rtl"] .section-subtitle {
  letter-spacing: 0;
}

[dir="rtl"] .platform-card-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .platform-card:hover .platform-card-arrow {
  transform: rotate(180deg) translateX(-4px);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: var(--space-xl);
}

[dir="rtl"] .download-link:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .footer::before {
  left: 50%;
  right: auto;
}

/* icon size helper */
.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-md {
  width: 22px;
  height: 22px;
}