/* ==========================================
   QAF | قاف — CUSTOM STYLES
   ========================================== */

:root {
  /* Brand Colors */
  --qaf-magenta: #ff00de;
  --qaf-purple: #8a62ff;
  --qaf-cyan: #00e6ff;
  --qaf-grad: linear-gradient(135deg, #ff00de 0%, #8a62ff 50%, #00e6ff 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-neon: 0 0 20px rgba(255, 0, 222, 0.3), 0 0 40px rgba(138, 98, 255, 0.2);
}

[data-theme="light"] {
  --glass-bg: rgba(0, 0, 0, 0.04);
  --glass-border: rgba(0, 0, 0, 0.12);
  --qaf-magenta: #e600c9;
  --qaf-purple: #7048ff;
  --qaf-cyan: #00cfe8;
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

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

}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background: #f5f5f5;
  color: #000;
}

html[lang="en"] body {
  font-family: 'Inter', sans-serif;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

.text-display {
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1.1;
  font-weight: 800;
}

.text-h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  font-weight: 700;
}

.text-lead {
  font-size: clamp(16px, 1.2vw, 22px);
  line-height: 1.6;
}

/* ==========================================
   UTILITIES
   ========================================== */

.qaf-gradient {
  background: linear-gradient(135deg, var(--qaf-magenta) 0%, var(--qaf-purple) 50%, var(--qaf-cyan) 100%);
}

.gradient-text {
  background: var(--qaf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.neon-glow {
  filter: drop-shadow(0 0 10px rgba(255, 0, 222, 0.5))
          drop-shadow(0 0 20px rgba(138, 98, 255, 0.3))
          drop-shadow(0 0 30px rgba(0, 230, 255, 0.2));
  transition: filter 0.3s ease;
}

.neon-glow:hover {
  filter: drop-shadow(0 0 15px rgba(255, 0, 222, 0.7))
          drop-shadow(0 0 30px rgba(138, 98, 255, 0.5))
          drop-shadow(0 0 45px rgba(0, 230, 255, 0.3));
}

.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.03;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   GLASS MORPHISM
   ========================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.glass-card-neon {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  position: relative;
  padding: 2px;
  overflow: hidden;
}

.glass-card-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: var(--qaf-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.glass-card-neon:hover::before {
  opacity: 1;
}

.glass-button {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;
}

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

/* ==========================================
   BUTTONS & CTAs
   ========================================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--qaf-grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 222, 0.3);
}

.cta-primary:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 222, 0.5), 0 0 40px rgba(138, 98, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.cta-primary:active {
  transform: translateY(0) scale(0.98);
}

.cta-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: inherit;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Magnetic effect placeholder - handled in JS */
.cta-button.magnetic {
  will-change: transform;
}

/* ==========================================
   LOADER
   ========================================== */

#loader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.qaf-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--qaf-magenta);
  border-right-color: var(--qaf-purple);
  border-bottom-color: var(--qaf-cyan);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   HERO — ASYMMETRIC BOLD LAYOUT
   ========================================== */

.hero-asymmetric {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-canvas-bg,
.hero-gradient-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient-fallback {
  background: linear-gradient(135deg, #ff00de 0%, #8a62ff 50%, #00e6ff 100%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas-bg {
    display: none !important;
  }
  .hero-gradient-fallback {
    opacity: 1 !important;
    display: block !important;
  }
}

/* Floating Logo Corner */
.hero-logo-corner {
  position: absolute;
  top: 6rem;
  left: 3rem;
  z-index: 100;
  width: 60px;
  height: 60px;
  opacity: 0;
  animation: logoFadeIn 0.8s ease 0.3s forwards;
}

[dir="rtl"] .hero-logo-corner {
  left: auto;
  right: 3rem;
}

@keyframes logoFadeIn {
  to { opacity: 1; }
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 0, 222, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo-corner:hover .hero-logo-img {
  transform: rotate(10deg) scale(1.1);
}

/* Hero Grid Layout */
.hero-grid {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Left Panel: Typography Hero */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


/* Subtitle Stack */
.hero-subtitle-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

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

.hero-line {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 1.5rem;
}

[data-theme="light"] .hero-line {
  color: rgba(0, 0, 0, 0.8);
}

[dir="rtl"] .hero-line {
  padding-left: 0;
  padding-right: 1.5rem;
}

.hero-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--qaf-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--qaf-cyan);
}

[dir="rtl"] .hero-line::before {
  left: auto;
  right: 0;
}

/* Status Badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.9s forwards;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--qaf-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--qaf-cyan);
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 255, 0.7); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(0, 230, 255, 0); }
}

/* Right Panel: Countdown + CTAs */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeSlideLeft 0.8s ease 0.7s forwards;
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideLeft-rtl {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[dir="rtl"] .hero-right {
  animation-name: fadeSlideLeft-rtl;
}

/* Countdown Modern */
.countdown-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.count-block {
  flex: 1;
  text-align: center;
}

.count-num {
  display: block;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--qaf-magenta) 0%, var(--qaf-purple) 50%, var(--qaf-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(138, 98, 255, 0.3);
  margin-bottom: 0.5rem;
}

.count-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
  font-weight: 600;
}

.count-sep {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 200;
  opacity: 0.3;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 49%, 100% { opacity: 0.3; }
  50%, 99% { opacity: 0.05; }
}

/* CTAs Stacked */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
  transform: translateX(-8px) scale(1.02);
}

[dir="rtl"] .hero-cta:hover {
  transform: translateX(8px) scale(1.02);
}

.cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: all 0.4s ease;
}

.hero-cta-1 .cta-bg {
  background: linear-gradient(135deg, var(--qaf-magenta) 0%, var(--qaf-purple) 50%, var(--qaf-cyan) 100%);
  box-shadow: 0 8px 32px rgba(255, 0, 222, 0.4);
}

.hero-cta-1:hover .cta-bg {
  box-shadow: 0 16px 48px rgba(255, 0, 222, 0.6), 0 0 80px rgba(138, 98, 255, 0.3);
}

.hero-cta-2 .cta-bg {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.hero-cta-2 {
  color: inherit;
}

.hero-cta-2:hover .cta-bg {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Contact Quick Info */
.hero-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  opacity: 0.7;
}

/* Scroll Prompt */
.hero-scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

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

/* Decorative Elements */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-deco-1 {
  width: 400px;
  height: 400px;
  background: var(--qaf-magenta);
  top: 10%;
  right: 5%;
  animation: decoFloat 20s ease-in-out infinite;
}

.hero-deco-2 {
  width: 300px;
  height: 300px;
  background: var(--qaf-cyan);
  bottom: 15%;
  left: 10%;
  animation: decoFloat 15s ease-in-out infinite reverse;
}

.hero-deco-3 {
  width: 250px;
  height: 250px;
  background: var(--qaf-purple);
  top: 50%;
  left: 50%;
  animation: decoFloat 18s ease-in-out infinite;
}

@keyframes decoFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-30px, 30px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-logo-corner {
    top: 5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
  }

  [dir="rtl"] .hero-logo-corner {
    right: 1.5rem;
  }

  .hero-asymmetric {
    padding: 1rem;
  }

  .hero-line {
    font-size: clamp(14px, 3.5vw, 20px);
    padding-left: 1rem;
  }

  [dir="rtl"] .hero-line {
    padding-right: 1rem;
  }

  .countdown-row {
    gap: 1rem;
  }

  .count-num {
    font-size: clamp(36px, 12vw, 64px);
  }

  .hero-cta {
    padding: 1rem 1.5rem;
    font-size: 14px;
  }

  .hero-deco {
    filter: blur(40px);
    opacity: 0.1;
  }

  .hero-deco-1 { width: 250px; height: 250px; }
  .hero-deco-2 { width: 200px; height: 200px; }
  .hero-deco-3 { width: 150px; height: 150px; }
}

/* ==========================================
   COUNTDOWN
   ========================================== */

#countdown {
  opacity: 1;
  animation: fade-in-up 1s ease forwards 0.9s;
}

.countdown-unit {
  transition: all 0.3s ease;
}

.countdown-unit:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.countdown-value {
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   MARQUEE
   ========================================== */

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 3s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-item {
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 700;
  background: var(--qaf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marquee-separator {
  font-size: clamp(32px, 4vw, 64px);
  opacity: 0.3;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ==========================================
   CAPABILITIES
   ========================================== */

.capability-tile {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.capability-tile:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.capability-icon svg {
  stroke: url(#icon-gradient);
}

/* Gradient def for SVG icons */
svg defs {
  display: none;
}

.capability-tile svg {
  filter: drop-shadow(0 0 8px rgba(255, 0, 222, 0.3));
}

/* ==========================================
   WORK GALLERY
   ========================================== */

/* Work Projects Slider - Swiper-like */
.work-scroll-container {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}

.work-scroll-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  /* For infinite scroll effect */
  animation: infinite-scroll 40s linear infinite;
}

@keyframes infinite-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.work-tile {
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 400px);
  position: relative;
  cursor: grab;
  /* Remove opacity/scaling - all cards should look the same */
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
  /* Apply blur to entire card and all its content - ALL CARDS BLURRY */
  filter: blur(15px);
}

.work-tile.active {
  /* ALL CARDS STAY BLURRY - coming soon effect */
  opacity: 1;
  transform: scale(1);
  filter: blur(15px);
}

.work-tile:active {
  cursor: grabbing;
}

/* Image styling */
.work-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
}

.work-tile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--qaf-grad);
}

.work-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0.9;
}

.work-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.work-tile-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.work-tile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* Navigation Arrows - Disabled for infinite scroll */
.work-nav-btn {
  display: none !important;
}

/* Coming Soon Badge */
.work-tile::before {
  content: 'Soon';
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 20;
  opacity: 0.8;
}

/* ==========================================
   FORMS
   ========================================== */

.form-input {
  font-family: inherit;
  color: inherit;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(138, 98, 255, 0.2);
}

/* ==========================================
   TOAST
   ========================================== */

.toast {
  pointer-events: auto;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease forwards;
  max-width: 400px;
}

.toast.success {
  border-left: 3px solid var(--qaf-cyan);
}

.toast.error {
  border-left: 3px solid #ff3860;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */

.social-icon-disabled {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  opacity: 0.3;
  cursor: not-allowed;
  color: inherit;
}

/* ==========================================
   CURSOR TRAIL (desktop)
   ========================================== */

#cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

.cursor-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--qaf-cyan);
  border-radius: 50%;
  opacity: 0;
  filter: blur(2px);
  animation: cursor-fade 0.6s ease-out forwards;
}

@keyframes cursor-fade {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@media (hover: none) {
  #cursor-trail {
    display: none !important;
  }
}

/* ==========================================
   RTL ADJUSTMENTS
   ========================================== */

[dir="rtl"] .work-scroll-container {
  direction: ltr; /* Keep horizontal scroll LTR */
}

[dir="rtl"] .marquee-track {
  direction: ltr;
}

/* ==========================================
   STATEMENT STACK
   ========================================== */

.statement-card {
  position: relative;
  scroll-snap-align: start;
}

.statement-card-modern {
  min-height: clamp(320px, 42vh, 480px);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.statement-card-modern:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.65);
}

.statement-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top right, rgba(255, 0, 222, 0.35), transparent 65%), radial-gradient(circle at bottom left, rgba(0, 240, 255, 0.35), transparent 60%);
  filter: blur(0);
  opacity: 0.75;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1;
}

.statement-card-modern:hover .statement-glow {
  opacity: 1;
  transform: scale(1.08);
}

.statement-pane {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.statement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.statement-index {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
}

.statement-icon {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.statement-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.statement-description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  max-width: 48ch;
}

.statement-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.statement-bar svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.statement-card-modern:hover .statement-bar svg {
  transform: translateX(8px);
  opacity: 1;
}

[data-theme="light"] .statement-card-modern {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.95) 10%, rgba(232, 237, 255, 0.9) 90%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 40px 100px -45px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .statement-card-modern:hover {
  box-shadow: 0 50px 120px -48px rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .statement-glow {
  background: radial-gradient(circle at top right, rgba(255, 0, 85, 0.18), transparent 60%), radial-gradient(circle at bottom left, rgba(0, 153, 255, 0.2), transparent 55%);
}

[data-theme="light"] .statement-description {
  color: rgba(15, 23, 42, 0.72);
}

[data-theme="light"] .statement-bar {
  color: rgba(15, 23, 42, 0.55);
  border-top-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .statement-index {
  color: rgba(15, 23, 42, 0.18);
}

@media (max-width: 1024px) {
  .statement-card-modern {
    min-height: clamp(320px, 48vh, 540px);
  }
}

@media (max-width: 768px) {
  .statement-card-modern {
    min-height: auto;
  }

  .statement-pane {
    padding: 2rem;
    gap: 1.25rem;
  }

  .statement-bar {
    flex-direction: column;
    align-items: flex-start;
    letter-spacing: 0.18em;
  }
}

/* ==========================================
   CONTACT GLOBE
   ========================================== */

.contact-globe-link {
  text-decoration: none;
  color: inherit;
}

.contact-globe-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 25px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.contact-globe-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.contact-globe-link:hover .contact-globe-wrap {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 35px 85px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

#contact-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.contact-globe-overlay {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.contact-globe-pin {
  font-size: 1.4rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

[data-theme="light"] .contact-globe-wrap {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.05), transparent 60%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 25px 60px -40px rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .contact-globe-link:hover .contact-globe-wrap {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 38px 90px -42px rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .contact-globe-overlay {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.48);
}

@media (max-width: 768px) {
  .contact-globe-overlay {
    left: 1rem;
    right: 1rem;
    justify-content: center;
    font-size: 0.85rem;
  }
}
/* ==========================================
   FOCUS STYLES
   ========================================== */

:focus-visible {
  outline: 2px solid var(--qaf-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--qaf-cyan);
  outline-offset: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .text-display {
    font-size: clamp(32px, 8vw, 56px);
  }

  .text-h2 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .statement-card {
    min-height: 50vh !important;
    padding: 32px !important;
  }

  .work-scroll-container {
    padding: 0 50px;
  }

  .work-tile {
    width: clamp(240px, 70vw, 320px);
  }

  .work-nav-btn {
    width: 40px;
    height: 40px;
  }

  .work-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   PRINT
   ========================================== */

@media print {
  #hero-canvas,
  #cursor-trail,
  .noise-overlay,
  #loader,
  nav,
  .cta-button {
    display: none !important;
  }
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */

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

[data-theme="light"] body {
  background: linear-gradient(135deg, #ffeef8 0%, #e8e5ff 50%, #e0f7ff 100%);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .glass-card-neon {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .glass-card-neon:hover {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 40px 90px -45px rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .glass-card-neon::before {
  opacity: 0.3;
}

[data-theme="light"] .glass-card-neon:hover::before {
  opacity: 0.55;
}

[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .cta-secondary,
[data-theme="light"] .cta-secondary-new {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .cta-secondary:hover,
[data-theme="light"] .cta-secondary-new:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .text-white {
  color: #0f172a !important;
}

[data-theme="light"] .text-white\/70 {
  color: rgba(15, 23, 42, 0.72) !important;
}

[data-theme="light"] .text-white\/60 {
  color: rgba(15, 23, 42, 0.64) !important;
}

[data-theme="light"] .text-white\/50 {
  color: rgba(15, 23, 42, 0.5) !important;
}

[data-theme="light"] .hover\:text-white:hover {
  color: var(--accent-1) !important;
}

/* ==========================================
   ACCESSIBILITY - HIGH CONTRAST
   ========================================== */

@media (prefers-contrast: high) {
  .glass-card,
  .glass-button,
  .cta-button {
    border-width: 2px;
  }

  .text-white\/70,
  .text-white\/60,
  .text-white\/50 {
    opacity: 1 !important;
  }
}

/* ==========================================
   NEW CLEAN HERO & HEADER STYLES
   ========================================== */

/* Override body fonts */
html[lang="ar"] body {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif !important;
}

html[lang="en"] body {
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
}

/* New color system */
:root {
  --accent-1: #ff3366;
  --accent-2: #00f0ff;
  --accent-3: #ffeb3b;
}

[data-theme="light"] {
  --accent-1: #ff0055;
  --accent-2: #0099ff;
  --accent-3: #ffd700;
}

/* New Header */
.header-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo-mark-new {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark-new:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.logo-mark-media {
  display: inline-flex;
  align-items: center;
}

.logo-mark-media img {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo-light,
.logo-dark {
  max-height: 44px;
  width: auto;
}

.logo-word-new {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-controls-new {
  display: flex;
  gap: 0.5rem;
}

.control-btn-new {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  font-weight: 600;
}

.control-btn-new:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

/* New Hero */
.hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 3rem;
  overflow: hidden;
}

.hero-bg-new {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--accent-2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--accent-3) 0%, transparent 70%);
  opacity: 0.08;
  filter: blur(100px);
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.hero-content-new {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
}

.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.hero-orb {
  position: absolute;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  border-radius: 40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 0 40px rgba(255, 255, 255, 0.25);
  filter: blur(0);
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.orb-1 { top: 8%; left: 12%; }
.orb-2 { bottom: 14%; right: 18%; width: clamp(160px, 22vw, 260px); height: clamp(160px, 22vw, 260px); }
.orb-3 { top: 35%; right: 6%; width: clamp(100px, 14vw, 180px); height: clamp(100px, 14vw, 180px); }
.orb-4 { bottom: 10%; left: 8%; width: clamp(140px, 16vw, 220px); height: clamp(140px, 16vw, 220px); }

.hero-orb::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.6), transparent 70%);
  filter: blur(12px);
  opacity: 0.65;
}


.gradient-text-new {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
}

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

[data-theme="light"] .gradient-text-new {
  color: #0f172a;
}

@supports (-webkit-text-fill-color: transparent) {
  .gradient-text-new {
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  [data-theme="light"] .gradient-text-new {
    color: transparent;
  }
}

.tagline-new {
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.4s forwards;
  max-width: 800px;
}

@keyframes fadeUp {
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.status-bar-new {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.6s forwards;
}

.status-dot-new {
  width: 10px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulseNew 2s ease-in-out infinite;
}

@keyframes pulseNew {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70%, 100% { box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
}

.countdown-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.8s forwards;
}

.time-box-new {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s;
}

.time-box-new:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
}

.time-value-new {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.time-label-new {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-weight: 600;
}

.cta-group-new {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 1s forwards;
}

.cta-new {
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 100px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.cta-primary-new {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 40px rgba(255, 51, 102, 0.3);
}

.cta-primary-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 60px rgba(255, 51, 102, 0.5);
}

.cta-secondary-new {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(20px);
}

.cta-secondary-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-2);
  transform: translateY(-3px);
}

.scroll-hint-new {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: bounceNew 2s ease-in-out infinite;
}

@keyframes bounceNew {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-mouse-new {
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-mouse-new::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollDotNew 2s ease-in-out infinite;
}

@keyframes scrollDotNew {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 18px; }
}

.scroll-text-new {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.hero-orb {
  animation: orbFloat 14s ease-in-out infinite;
}

.hero-orb:nth-child(2) {
  animation-duration: 16s;
  animation-delay: 0.4s;
}

.hero-orb:nth-child(3) {
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}

.hero-orb:nth-child(4) {
  animation-duration: 18s;
  animation-delay: 0.8s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.85; }
  50% { transform: translate3d(14px, -24px, 30px) rotate(6deg); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.85; }
}

@media (max-width: 768px) {
  .header-new {
    padding: 1rem 1.5rem;
  }

  .logo-mark-media img {
    height: 36px;
  }

  .logo-word-new {
    font-size: 24px;
  }

  .hero-new {
    padding: 6rem 1.5rem 2rem;
  }

  .countdown-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .time-box-new {
    padding: 1.5rem 0.75rem;
  }

  .cta-group-new {
    width: 100%;
    flex-direction: column;
  }

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

  .hero-orb {
    opacity: 0.6;
    filter: blur(1px);
  }
}

/* Creative Bloom Overlay */
.creative-bloom {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: radial-gradient(circle at center, rgba(12, 12, 20, 0.4), rgba(0, 0, 0, 0.05));
  transform: scale(0.65);
  opacity: 0;
}

.creative-bloom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.creative-bloom-pulse {
  position: absolute;
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.65), rgba(255, 0, 222, 0) 60%);
  filter: blur(18px);
  opacity: 0.5;
  transform: scale(0.5);
}

.creative-bloom-content {
  position: relative;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  mix-blend-mode: screen;
}

[data-theme="light"] .creative-bloom {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.05));
}

[data-theme="light"] .creative-bloom-pulse {
  background: radial-gradient(circle at center, rgba(255, 0, 128, 0.45), rgba(0, 153, 255, 0) 60%);
}

[data-theme="light"] .creative-bloom-content {
  color: #0f172a;
  mix-blend-mode: normal;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 0;
  position: relative;
  z-index: 5;
}

.section-divider::before {
  content: '';
  position: absolute;
  inset: 0 15%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.divider-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.badge-icon {
  font-size: 16px;
}

[data-theme="light"] .section-divider::before {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.06), transparent 70%);
}

[data-theme="light"] .divider-line {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.25), transparent);
}

[data-theme="light"] .divider-badge {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.78);
}

/* Surprise companion */
.surprise-hand {
  position: fixed;
  bottom: 3.5rem;
  right: 3.5rem;
  z-index: 9996;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(23, 23, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translateZ(0);
}

.hand-emoji {
  font-size: 1.8rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.hand-speech {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  max-width: 220px;
}

[data-theme="light"] .surprise-hand {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 60px -35px rgba(15, 23, 42, 0.45);
  color: #0f172a;
}

@media (max-width: 1024px) {
  .surprise-hand {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-divider {
    padding: 2rem 0;
    gap: 0.75rem;
  }

  .divider-badge {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .surprise-hand {
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.9rem 1.1rem;
    gap: 0.75rem;
  }

  .hand-speech {
    font-size: 0.85rem;
  }
}

@media (max-width: 580px) {
  .surprise-hand {
    display: none;
  }
}
