/* Modern Digital Agency Styling System - Marketing Walaa */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-deep: #05070A;
  --bg-surface: #080B10;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-dim: rgba(255, 255, 255, 0.1);
  --border-blue: rgba(37, 99, 235, 0.45);
  --primary-blue: #2563eb;
  --accent-blue: #3b82f6;
  --glow-blue: rgba(37, 99, 235, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
}

/* Custom Pointer Cursor for Desktop */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  #custom-cursor {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    box-shadow: 0 0 12px #2563eb;
  }
  #cursor-trail {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(96, 165, 250, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }
  #cursor-trail.hovered {
    width: 56px;
    height: 56px;
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.15);
  }
}

/* Typography Utility */
.font-space {
  font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05070a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid #05070a;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Hero Background Ambient Glows & Floating Orbs */
.hero-glow-bg {
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.32) 0%, transparent 65%),
    radial-gradient(circle at 85% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 45%);
}

.grid-pattern-bg {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Animated Floating Light Blob */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  animation: orbFloat 10s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glassmorphism Card Style & Hover Glows - Always Visible */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%, rgba(37, 99, 235, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue);
  box-shadow: 0 20px 45px -10px var(--glow-blue);
  transform: translateY(-8px) scale(1.015);
}

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

/* Vertical Instagram Reel Card (9:16 Aspect Ratio) */
.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #020305;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--primary-blue);
  box-shadow: 0 24px 50px -10px rgba(37, 99, 235, 0.55);
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shimmering Button Gradient */
.btn-shimmer {
  background: linear-gradient(110deg, #2563eb 0%, #3b82f6 45%, #60a5fa 50%, #3b82f6 55%, #2563eb 100%);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
  transition: all 0.3s ease;
}

.btn-shimmer:hover {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
}

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

/* Gradient Text Effect */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #60a5fa 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typewriter Cursor animation */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-blue);
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Infinite Marquee Ticker */
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollMarquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

/* Sticky Glass Navbar */
.glass-nav {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
}

.glass-nav.scrolled {
  background: rgba(8, 11, 16, 0.96);
  border-bottom-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Gentle Floating Animation */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

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

/* Glow Pulse Animation */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 32px rgba(96, 165, 250, 0.65); }
}

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

/* Sequential Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Category Tab Pill Active Style */
.tab-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

/* Accordion FAQ styles */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 400px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #60a5fa;
  background-color: rgba(37, 99, 235, 0.25);
}

/* Modal Overlay backdrop */
.modal-backdrop {
  background: rgba(3, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s ease;
}

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