/* ========================================
   Premium Design System
   Award-winning quality, luxury feel
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   Accessibility Enhancements - Phase 1
   ======================================== */

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Global Focus Visible Styles */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button focus */
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.15);
}

/* Link focus */
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Form input focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

/* Respect Reduced Motion Preference */
@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;
  }
}

/* ========================================
   Scroll Reveal — [data-reveal] system
   ======================================== */

/* Hidden state before intersection */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* Visible state once intersected */
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Cards get a slight scale-up too for extra polish */
.service-card[data-reveal],
.portfolio-card[data-reveal],
.feature-card[data-reveal],
.stat-card[data-reveal],
.pricing-card[data-reveal],
.blog-card[data-reveal],
.review-card[data-reveal],
.team-card[data-reveal] {
  transform: translateY(28px) scale(0.97);
}

.service-card[data-reveal].revealed,
.portfolio-card[data-reveal].revealed,
.feature-card[data-reveal].revealed,
.stat-card[data-reveal].revealed,
.pricing-card[data-reveal].revealed,
.blog-card[data-reveal].revealed,
.review-card[data-reveal].revealed,
.team-card[data-reveal].revealed {
  transform: translateY(0) scale(1);
}

/* Section headings — slide up a bit faster */
.section-title[data-reveal],
.reviews-heading[data-reveal],
.reviews-label[data-reveal] {
  transition-duration: 0.55s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   BUTTON LOADING STATES
   ======================================== */

.btn {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn .btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
  border-radius: inherit;
}

.btn .btn-loader[hidden] {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke: currentColor;
  stroke-dasharray: 50;
  stroke-dashoffset: 25;
  animation: dash 1.5s ease-in-out infinite;
  fill: none;
  stroke-width: 2;
}

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

@keyframes dash {
  0% { stroke-dashoffset: 50; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -50; }
}

/* Premium Color Palette */
:root {
  /* Background */
  --bg-primary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  /* Brand Colors - Lavender Theme */
  --primary: #A78BFA;
  --primary-rgb: 167, 139, 250;
  --secondary: #111111;
  --secondary-rgb: 17, 17, 17;
  --accent: #C4B5FD;
  --accent-rgb: 196, 181, 253;
  
  /* Text Colors */
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #FFFFFF;
  
  /* UI Elements */
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(167, 139, 250, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 32px rgba(167, 139, 250, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #333333 100%);
  --gradient-aurora: linear-gradient(135deg, 
    rgba(167, 139, 250, 0.1) 0%, 
    rgba(196, 181, 253, 0.05) 50%, 
    rgba(167, 139, 250, 0.1) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global lock: prevent button/nav hover transforms only on non-hero areas */
.service-card,
.service-icon {
  transform: none !important;
}

/* IMPORTANT: Allow all animations and transforms by default */
/* Only lock specific elements, not everything */

/* Custom Cursor - Hidden for static design */
.custom-cursor,
.custom-cursor-dot {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   Premium Navigation — Animated Header
   ui-ux-pro-max / ui-styling standards
   ======================================== */

/* Logo icon — CSS-driven, no inline styles */
.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar,
nav.navbar,
body .navbar,
html body .navbar {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 2rem) !important;
  max-width: 1200px !important;
  z-index: 99999 !important;
  background: rgba(230, 230, 250, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15), 
              0 4px 16px rgba(0, 0, 0, 0.06) !important;
  overflow: visible !important;
  transition: none !important;
  margin: 0 !important;
  right: auto !important;
  pointer-events: auto !important;
}

/* ── Logo ── */


.logo:hover {
  opacity: 0.8;
  color: #1a1a1a;
}

.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.08);
}

.logo span {
  color: var(--primary);
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  margin-left: -80px; /* Compensate for logo width to center links */
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: #4a4a4a;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  position: relative;
  transition:
    color            0.2s ease,
    background-color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
  background: rgba(167, 139, 250, 0.08);
}

.nav-links a.active:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  background: rgba(167, 139, 250, 0.12);
}

/* Active dot indicator */
.nav-links a.active:not(.btn)::after {
  display: none; /* Remove dot indicator for cleaner look */
}

/* ── CTA button in navbar ── */
.nav-links .btn {
  padding: 0.6rem 1.6rem;
  min-height: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
  color: white;
  border: none;
  /* Inherits gradient from .btn-primary */
  transition:
    opacity    0.2s ease,
    box-shadow 0.2s ease,
    transform  0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-links .btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
  transform: translateY(-1px) !important;
}

.navbar.scrolled .nav-links .btn {
  min-height: 38px;
  padding: 0.55rem 1.5rem;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  width: var(--scroll-pct, 0%);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

/* ── Mobile: full-width bar ── */
@media (max-width: 1024px) {
  .navbar {
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: translateY(0);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    overflow: visible; /* allow dropdown to extend below */
  }

  .navbar.scrolled {
    top: 0;
    max-width: none;
  }

  .navbar.navbar-hidden {
    transform: translateY(calc(-100% - 4px));
  }

  .navbar .container {
    padding: 0.85rem 1.25rem;
    min-height: 64px;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 0.75rem 1rem;
    min-height: 60px;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  z-index: 1002;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(167, 139, 250, 0.1);
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    top       0.3s cubic-bezier(0.16, 1, 0.3, 1),
    bottom    0.3s cubic-bezier(0.16, 1, 0.3, 1),
    width     0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after  { bottom: -6px; width: 14px; }

/* Animate to X when open */
.mobile-menu-toggle.active .hamburger {
  background: transparent;
}
.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
  width: 20px;
}

/* Hero Split Layout */
.hero-split {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  text-align: left;
  min-height: calc(100vh - 68px);
}

/* Mobile optimization: Tight spacing between content and mascot images */

.hero-split-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split-visual {
  flex: 0 0 min(500px, 45vw);
  max-width: 500px;
  background: transparent;
  display: flex;
  align-items: flex-start;
  padding-top: 2rem;
  overflow: visible;
  padding-bottom: 1rem;
}

.hero-split-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-split-visual video,
.hero-split-visual .hero-visual-media {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  background: transparent;
  border-radius: 0;
  color-scheme: normal;
}

/* Fade the video in once it has data */
.hero-split-visual .hero-visual-media {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-split-visual .hero-visual-media.loaded {
  opacity: 1;
}

.hero-split .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-split .hero-cta {
  justify-content: flex-start;
}

img {
  max-width: 90%;
  height: auto;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s linear;
}

/* Premium Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: var(--bg-primary);
  /* Fixed navbar at top: 60px height */
  padding-top: 80px;
  padding-bottom: 0;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  
  text-align: left;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  /* padding stops gradient text-clip from cropping descenders/edges */
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--text-primary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Premium Buttons - Completely locked, no movement */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: color 0.3s ease !important;
  transform: none !important;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 56px;
}

.btn:hover {
  transform: none !important;
 
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--secondary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #A78BFA !important;
}

.btn-primary::before {
  display: none;
}

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



/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
}

.scroll-indicator span {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

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

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

/* Section Styling */
section {
  position: relative;
  padding: 5px 0 3rem 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: block;
}

/* First part of heading — gradient purple (default text color via gradient) */
.section-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Last word stays dark — wrapped by JS in .heading-dark */
.section-title .heading-dark {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

/* CTA sections with forced white text keep working */
.section-title[style*="color"] {
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  color: inherit !important;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Eyebrow label above each section heading */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* Auto-generated eyebrow via data attribute */
.section-header[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
  opacity: 0.85;
}

/* Premium Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

/* Better layout for odd number of cards (like 5 cards) */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.service-card { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(167, 139, 250, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
  pointer-events: none;
}

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

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.5) 0%, transparent 50%, rgba(196, 181, 253, 0.5) 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;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 2;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: none !important;
  box-shadow: 
    0 20px 40px -15px rgba(167, 139, 250, 0.2),
    0 0 40px rgba(167, 139, 250, 0.05);
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(167, 139, 250, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: #8B5CF6;
  box-shadow: 
    inset 0 0 0 1px rgba(167, 139, 250, 0.3),
    0 8px 16px rgba(167, 139, 250, 0.12);
}

.service-icon i,
.service-icon span,
.service-icon svg {
  width: 32px;
  height: 32px;
  color: #8B5CF6;
  transition: all 0.5s;
}

.service-card:hover .service-icon {
  transform: none !important;
  background: var(--gradient-primary);
  box-shadow: 
    0 12px 24px rgba(167, 139, 250, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.service-card:hover .service-icon i,
.service-card:hover .service-icon span,
.service-card:hover .service-icon svg {
  color: white;
  transform: rotate(-10deg);
}

/* Neon Modifier for "Why Choose Us" / "Our Values" cards */
.service-card.card-neon {
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.card-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(167, 139, 250, 0.4), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s;
  z-index: 1;
}
.service-card.card-neon:hover::before {
  transform: translateX(200%) skewX(-15deg);
}
.service-card.card-neon:hover {
  background: #0f172a;
  border-color: var(--primary);
  box-shadow: 
    0 20px 40px -10px rgba(167, 139, 250, 0.4),
    0 0 20px rgba(167, 139, 250, 0.2),
    inset 0 0 20px rgba(167, 139, 250, 0.1);
}
.service-card.card-neon:hover .service-title {
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.service-card.card-neon:hover .service-description,
.service-card.card-neon:hover .service-features li {
  color: rgba(255, 255, 255, 0.8);
}
.service-card.card-neon:hover .service-icon {
  background: transparent;
  transform: none !important;
  box-shadow: none;
}
.service-card.card-neon:hover .service-icon svg,
.service-card.card-neon:hover .service-icon i {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Tech Modifier for "Technologies" / "Team" cards */
@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.service-card.card-tech {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  clip-path: none;
}
.service-card.card-tech::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, var(--primary) 100%);
  animation: rotateBorder 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.service-card.card-tech::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-card);
  border-radius: 14px;
  z-index: 1;
}
.service-card.card-tech > * {
  position: relative;
  z-index: 2;
}
.service-card.card-tech:hover {
  transform: none !important;
  box-shadow: 0 15px 35px rgba(167, 139, 250, 0.15);
  border-color: transparent;
}
.service-card.card-tech:hover::before {
  opacity: 1;
}
.service-card.card-tech:hover .service-icon {
  background: rgba(167, 139, 250, 0.1);
  transform: none !important;
  border-radius: 50%;
  clip-path: none;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}
.service-card.card-tech:hover .service-icon i,
.service-card.card-tech:hover .service-icon svg {
  color: #fff;
}

/* Static Premium Modifier for specific pages (like Careers) */
.service-card.card-static {
  transform: none !important;
}
.service-card.card-static::before,
.service-card.card-static::after {
  display: none !important; /* Disable sweeping glow lines / glitch effects */
}
.service-card.card-static:hover {
  transform: none !important;
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.04),
    0 5px 15px rgba(167, 139, 250, 0.1);
  background: var(--bg-glass);
}
.service-card.card-static:hover .service-icon {
  transform: none !important;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.service-card.card-static:hover .service-icon i,
.service-card.card-static:hover .service-icon svg {
  filter: none;
  color: #fff;
}

/* Team Card Modifier */
.service-card.card-team {
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 480px;
  border: none;
  transform: none !important;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  background: var(--bg-card);
}
.services-grid.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem;
}
.service-card.card-team .team-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}
.service-card.card-team .team-img.team-img-top {
  object-position: top center;
}
.service-card.card-team .team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  transition: padding 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
:root:not([data-theme="light"]) .service-card.card-team .team-info {
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card.card-team:hover {
  transform: none !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-card.card-team:hover .team-img {
  transform: none !important;
}
.service-card.card-team:hover .team-info {
  padding: 1.25rem 1.5rem;
  background: rgba(17, 17, 17, 0.78);
}
:root:not([data-theme="light"]) .service-card.card-team:hover .team-info {
  background: rgba(0, 0, 0, 0.65);
}
.service-card.card-team .service-title {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.card-team:hover .service-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #fff;
}
.service-card.card-team .team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.2;
  transition: margin-bottom 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.card-team:hover .team-role {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.service-card.card-team .team-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              margin-bottom 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.card-team:hover .team-desc {
  max-height: 5rem;
  margin-bottom: 0.75rem;
  opacity: 1;
  transform: translateY(0);
  color: rgba(255, 255, 255, 0.9);
}
.service-card.card-team .social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.card-team:hover .social-links {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
}
.service-card.card-team .social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
:root:not([data-theme="light"]) .service-card.card-team .social-links a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.service-card.card-team .social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}
.service-card.card-team .social-links a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 700;
}

.service-description {
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 500;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Blog cards (use .service-card in a grid) */
.blog-meta {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.4rem;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.blog-meta svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--primary);
  flex-shrink: 0;
}

/* Pin the "Read More" link to the bottom so buttons align across a row */
.blog-readmore {
  margin-top: auto;
  align-self: flex-start;
}

/* Preloader */
/* Preloader - DISABLED for instant load */
#preloader {
  display: none !important;
}

/* Premium Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.portfolio-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-xl);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  max-width: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover img {
  transform: none !important;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay h3 {
  transform: translateY(0);
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  transform: translateY(20px);
  transition: transform var(--transition-smooth) 0.1s;
}

.portfolio-card:hover .portfolio-overlay p {
  transform: translateY(0);
}

.view-project-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--gradient-primary);
  color: #111;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--transition-smooth) 0.15s, opacity var(--transition-smooth) 0.15s;
}

.portfolio-card:hover .view-project-btn {
  transform: translateY(0);
  opacity: 1;
}

.view-project-btn:hover {
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

/* Premium Testimonials - Continuous Marquee */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(167, 139, 250, 0.03) 100%);
}

.feedback-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /* Fade edges so cards slide in/out smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.feedback-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 30px 0;
  animation: feedbackScroll 55s linear infinite;
  will-change: transform;
}

/* Pause on hover */
.feedback-container:hover .feedback-track {
  animation-play-state: paused;
}

@keyframes feedbackScroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Two identical sets => -50% loops seamlessly */
    transform: translateX(-50%);
  }
}

.feedback-card {
  min-width: 340px;
  max-width: 340px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.feedback-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-xl);
}

.feedback-stars {
  color: #F5A623;
  font-size: 1.25rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.feedback-text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 0 1.5rem;
  flex: 1;
}

.feedback-author {
  font-weight: 700;
  text-align: right;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .feedback-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .feedback-container {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Premium Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--primary);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-column h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #fff;
  padding-left: 6px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-smooth);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  
}

.social-links a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  color: inherit;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.newsletter-form button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
  display: inline-block;
}

.legal-links .separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
  font-weight: 300;
  user-select: none;
  display: inline-block;
}

/* Underline effect on hover */
.legal-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-links a:hover {
  color: var(--primary);
}

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

.legal-links a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--primary);
}

/* Background Effects */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(196, 181, 253, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding: 1rem;
  }
  
  .nav-links {
    opacity: 0;
  }
  
  .hero {
    padding-top: 68px;
  }

  .hero-content {
    text-align: center;
  }

  /* Stack the two-column hero (text + mascot) on small screens */
  .hero-content > div {
    flex-direction: column;
    text-align: center;
    gap: 2rem !important;
  }

  .hero-content > div > div:last-child {
    flex: 0 0 auto !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }

  .hero-split {
    gap: 0.5rem !important;
  }

  .hero-split-visual {
    max-width: 380px !important;
    margin: 0 auto !important;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }
  
  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .feedback-card {
    min-width: 280px;
    max-width: 280px;
    padding: 1.75rem;
  }
  
  .feedback-text {
    font-size: 0.95rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-visual-caption {
    display: block;
    text-align: center;
    margin-top: 1rem;
  }

  .contact-form-visual-caption h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
  }

  .contact-form-visual-caption p {
    color: var(--text-secondary);
    line-height: 1.6;
  }

  .contact-form-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 360px;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  /* Hide custom cursor on mobile */
  .custom-cursor,
  .custom-cursor-dot {
    opacity: 0;
  }
  
  body {
    cursor: auto;
  }
}

/* Contact Form Styling */
.contact-form-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  
}

.contact-form-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  min-height: 0;
  overflow: visible;
}

.contact-form-image {
  width: auto;
  max-width: 100%;
  height: 120%;
  object-fit: contain;
  object-position: right center;
  transform: scale(1.12);
  transform-origin: right center;
  filter: drop-shadow(0 24px 48px rgba(167, 139, 250, 0.28));
}

.contact-form-visual-caption {
  display: none;
}

.contact-form {
  max-width: none;
  width: 150%;
  margin: 0;
  margin-left: -0.25rem;
  padding: 1rem 1.35rem 0.85rem;
  height: 10cm;
  align-self: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.contact-form-layout .form-group {
  margin-bottom: 0;
}

.contact-form-layout .form-group textarea {
  min-height: 52px;
}

.contact-form-layout .form-group label {
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}

.contact-form-layout .form-group input,
.contact-form-layout .form-group textarea {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
}

.contact-form-layout .form-group .error-message {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 0;
}

.contact-form .btn-primary {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  margin-top: 0;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

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

.form-group .error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Modal Styling */
.modal {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
  visibility: hidden;
}

.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.modal-close {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--bg-gray);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

/* ========================================
   Responsive Layout
   ======================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .hero-split-content {
    max-width: 100%;
  }

  .hero-split-visual {
    flex: none;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-split .hero-cta {
    justify-content: center;
  }

  .hero-split .hero-subtitle {
    margin-inline: auto;
  }

  .services-grid,
  .portfolio-grid,
  .services-grid.team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .contact-form-visual {
    justify-content: center;
  }

  .contact-form-image {
    transform: none;
    object-position: center;
  }

  .contact-form {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .navbar .container {
    padding: 0.85rem 1.25rem;
    min-height: 60px;
  }

  /* Remove stale fixed-top positioning — dropdown is now absolute */

  .logo {
    font-size: 1.45rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 2rem;
    overflow: visible;
  }

  .hero-content {
    padding: 1rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.25rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  section {
    padding: var(--space-lg) 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .services-grid,
  .portfolio-grid,
  .services-grid.team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
    padding: 2rem 1.5rem;
  }

  .service-card.card-team {
    height: 420px;
  }

  .feedback-card {
    min-width: 260px;
    max-width: 260px;
    padding: 1.5rem;
  }

  .feedback-text {
    font-size: 0.9rem;
  }

  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-filters::-webkit-scrollbar {
    opacity: 0;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .legal-links a {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  .legal-links .separator {
    margin: 0 0.75rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form-layout {
    gap: 1.25rem;
  }

  .contact-form-visual-caption {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-image {
    width: 100%;
    height: auto !important;
    max-width: 260px;
    transform: none;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form-footer {
    justify-content: stretch;
  }

  .contact-form-footer .btn-primary {
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
  }

  .modal-content {
    max-height: 100vh;
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem;
  }

  .custom-cursor,
  .custom-cursor-dot {
    opacity: 0;
  }

  body {
    cursor: auto;
  }

  body.menu-open {
    overflow: hidden;
  }
}

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

  .navbar .container {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 6.5rem 0 2rem;
    overflow: visible;
  }

  .hero-split-visual {
    max-width: 400px !important;
    margin: 0 auto !important;
    padding-bottom: 1rem;
  }

  .hero-split {
    gap: 0.25rem !important;
  }

  .hero-content > div > div:last-child {
    max-width: 400px !important;
  }

  .service-card { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
    padding: 1.5rem 1.25rem;
  }

  .service-card.card-team {
    height: 380px;
  }

  .footer-logo {
    font-size: 1.35rem;
  }

  .contact-form-image {
    max-width: 220px;
  }
}

/* Site-wide white hover text */


.service-description a:hover,
p a:hover:not(.btn):not(.logo),
li a:hover:not(.btn):not(.logo) {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  
}

.service-card:not(.card-neon):not(.card-team):hover .service-title,
.service-card:not(.card-neon):not(.card-team):hover .service-description,
.service-card:not(.card-neon):not(.card-team):hover .service-features li {
  color: #fff;
}

.service-card:not(.card-neon):not(.card-team):not(.card-static):not(.card-tech):hover {
  background: linear-gradient(145deg, #111111 0%, #1a1035 100%);
}

.service-card.card-static:hover .service-title,
.service-card.card-static:hover .service-description {
  color: #fff;
}

.service-card.card-static:hover {
  background: #111111;
  border-color: var(--primary);
}

.service-card.card-tech:hover .service-title,
.service-card.card-tech:hover .service-description {
  color: #fff;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .custom-cursor,
  .custom-cursor-dot {
    opacity: 0;
  }
  
  body {
    cursor: auto;
  }
}

/* ========================================
   Service Detail Pages
   ======================================== */
.service-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.service-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.service-breadcrumb a:hover {
  color: #fff;
  background: var(--primary);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.service-breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.service-detail-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  box-shadow: var(--shadow-glow);
}

.service-detail-icon svg {
  width: 40px;
  height: 40px;
}

/* Overview */
.service-overview {
  padding: var(--space-xl) 0;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.service-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-overview-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-overview-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-stat:hover {
  
  box-shadow: var(--shadow-lg);
}

.service-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  background: black;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.service-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Tech pills */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-pill {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.tech-pill:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
  .service-overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Why Choose Us — single row layout
   ======================================== */
#why-choose-us .services-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

#why-choose-us .service-card { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
  padding: 2rem 1.25rem;
  min-height: 0;
}

#why-choose-us .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

#why-choose-us .service-title {
  font-size: 1.15rem;
}

#why-choose-us .service-description {
  font-size: 0.9rem;
}

/* Keep everything on one row on smaller screens via horizontal scroll */
@media (max-width: 900px) {
  #why-choose-us .services-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  #why-choose-us .service-card { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

/* ========================================
   Home "Our Services" CTA (replaces card grid)
   ======================================== */
.services-cta {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.services-cta-text {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0;
}

.services-cta .btn-primary i {
  width: 18px;
  height: 18px;
  margin-left: 0.4rem;
  transition: transform var(--transition-fast);
}

.services-cta .btn-primary:hover i {
  transform: translateX(4px);
}

/* ========================================
   LogoLoop — infinite tech logo marquee
   ======================================== */
.logoloop {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--space-lg);
  /* Fade out the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logoloop__track {
  display: flex;
  width: max-content;
  animation: logoloopScroll 38s linear infinite;
}

.logoloop:hover .logoloop__track {
  animation-play-state: paused;
}

.logoloop__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logoloop__item {
  flex: 0 0 auto;
  padding: 0 2.75rem;
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.logoloop__node svg {
  width: 46px;
  height: 46px;
}

.logoloop__node:hover {
  color: var(--primary);
  transform: scale(1.18);
}

@keyframes logoloopScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logoloop__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logoloop {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ========================================
   Team Carousel Section
   ======================================== */
.team-section {
  padding: var(--space-xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.03) 0%, rgba(196, 181, 253, 0.02) 100%);
}

.team-section .container {
  text-align: center;
  margin-bottom: 2rem;
}

.team-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: carouselScroll 40s linear infinite;
}

.carousel-container:hover .team-carousel-track {
  animation-play-state: paused;
}

.team-card {
  flex: 0 0 280px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.22);
}

/* ── Photo ── */
.team-card-image {
  width: 280px;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(196, 181, 253, 0.05) 100%);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.1);
  filter: brightness(0.45) saturate(0.8);
}

/* ── Hover overlay — slides up from bottom ── */
.team-card-overlay {
  position: absolute;
  inset: 0;
  bottom: auto;
  top: 0;
  height: 280px; /* same as image height */
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 3;
}

.team-card-overlay-content {
  width: 100%;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.35s ease;
}

.team-card:hover .team-card-overlay {
  pointer-events: auto;
}

.team-card:hover .team-card-overlay-content {
  transform: translateY(0);
  opacity: 1;
}

/* Text inside overlay */
.team-card-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.team-card-overlay-content .team-card-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.team-card-overlay-content .team-card-bio {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* View Profile button */
.team-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.team-card-btn::after {
  content: '→';
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.team-card-btn:hover {
  background: rgba(167, 139, 250, 0.55);
  border-color: rgba(167, 139, 250, 0.8);
  transform: translateY(-1px) !important;
}

.team-card-btn:hover::after {
  transform: translateX(3px);
}

/* ── Static name bar below image ── */
.team-card-info {
  padding: 1.1rem 1.5rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  transition: background 0.3s ease;
}

.team-card:hover .team-card-info {
  background: rgba(245, 242, 255, 0.97);
}

.team-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.team-card-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* Gradient accent bar at the top of team cards */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
  .team-carousel-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .carousel-container {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .team-card-overlay-content {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Testimonials / Reviews — reference style
   ======================================== */
.reviews-section {
  padding: var(--space-xl) 0 0;
  overflow: hidden;
}

.reviews-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.reviews-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

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

.reviews-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Carousel wrapper */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 3rem;
  padding-bottom: 2.5rem;
  /* Edge fade */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: carouselScroll 40s linear infinite;
}

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

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

/* Review card */
.review-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.18);
}

/* Gradient accent bar at the top of each card */
.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
  margin: 0;
}

.review-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  margin: 0;
}

.service-tag-small {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--primary);
  background: rgba(167, 139, 250, 0.08);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    flex-wrap: wrap;
  }
  .carousel-container {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 1024px) {
  .hero-split {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  
  .hero-split-content {
    max-width: 100% !important;
    align-items: center !important;
  }
  
  .hero-split .hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-split .hero-cta {
    justify-content: center !important;
  }
  
  .hero-split-visual {
    max-width: 320px !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    justify-content: center !important;
  }
}

/* Comprehensive Mobile Overrides for Cards */
@media (max-width: 768px) {
  .feedback-card {
    min-width: 280px !important;
    max-width: 90vw !important;
    box-sizing: border-box !important;
  }
  
  .review-card {
    flex: 0 0 85vw !important;
    max-width: 320px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .feedback-card {
    min-width: 0 !important;
    max-width: 90vw !important;
    width: 100% !important;
  }
  
  .review-card {
    flex: 0 0 90vw !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .service-card, .blog-card, .team-member, .portfolio-card {
    max-width: 90vw !important;
    box-sizing: border-box !important;
  }
}

/* ========================================
   Workflow / Process Timeline
   ======================================== */
#workflow-process {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06) 0%, rgba(196, 181, 253, 0.03) 100%);
}

/* Decorative background blobs */
.workflow-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.workflow-shape-1 {
  width: 420px;
  height: 420px;
  background: rgba(167, 139, 250, 0.12);
  top: -100px;
  left: -120px;
}
.workflow-shape-2 {
  width: 320px;
  height: 320px;
  background: rgba(196, 181, 253, 0.10);
  bottom: -80px;
  right: -80px;
}

/* Header */
.workflow-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.workflow-header .title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

.workflow-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Timeline track */
.process-timeline {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical connector line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: calc(1.5rem + 28px); /* align with center of step number */
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(167, 139, 250, 0.4) 10%,
    rgba(167, 139, 250, 0.4) 90%,
    transparent
  );
  z-index: 0;
}

/* Individual step */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;

  /* Reveal animation */
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Number badge */
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.50);
}

/* Content card */
.step-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 24px rgba(167, 139, 250, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

.process-step:hover .step-content {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.35);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-title i,
.step-title svg {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.step-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .process-timeline::before {
    left: calc(1rem + 24px);
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .step-content {
    padding: 1.25rem 1.25rem;
  }

  .step-title {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========================================
   UI/UX Pro Max Enhancements
   Applied via ui-ux-pro-max + ui-styling
   ======================================== */

/* --- Section eyebrow labels via data attribute --- */
section[data-section-label]::before {
  content: none; /* handled by .section-eyebrow spans */
}

/* --- Improved service card button alignment --- */
.service-card .blog-readmore {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-hover);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover .blog-readmore {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* --- Section spacing consistency --- */
section + section {
  padding-top: 50px;
}

/* --- Improved service overview stats on hover --- */
.service-stat:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow-glow);
}

/* --- Tech pill improvements --- */
.tech-pills {
  padding: var(--space-md) 0 0;
}

/* --- Process step icon color fix --- */
.step-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --- Footer column accent line improvement --- */
.footer-column h4 {
  letter-spacing: 0.01em;
}

/* --- Improved button readmore arrow --- */
.service-card .blog-readmore::after {
  content: '→';
  font-size: 0.9em;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.service-card:hover .blog-readmore::after {
  transform: translateX(4px);
}

/* Remove duplicate ? from readmore text with CSS */
.blog-readmore {
  position: relative;
}

/* --- Improved hero section for service detail pages --- */
body[data-page="services"] .hero {
  min-height: 60vh;
  padding-top: 100px;
}

body[data-page="services"] .hero .hero-split {
  min-height: unset;
}

/* --- Service breadcrumb improvements --- */
.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

/* --- Section header gap improvement for service pages --- */
.service-overview .service-overview-text h2 {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}

/* --- Improved section-title on service overview pages --- */
.service-overview-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-text-fill-color: var(--text-primary) !important;
}

/* --- Workflow section improvements --- */
#workflow-process .container {
  position: relative;
  z-index: 1;
}

/* --- Services grid spacing on service detail pages --- */
body[data-page="services"] #offerings .services-grid {
  margin-top: var(--space-md);
}

/* --- Improved mobile nav links display --- */
@media (max-width: 1024px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.menu-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a:not(.btn) {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

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

/* --- Improved service stat numbers --- */
.service-stat-num {
  letter-spacing: -0.04em;
}

/* --- Section title eyebrow pattern --- */
.section-eyebrow + .section-title {
  margin-top: 0.25rem;
}

/* --- Improved CTA section --- */
section[style*="gradient-primary"] .section-title {
  color: var(--secondary) !important;
  background: none !important;
  -webkit-text-fill-color: var(--secondary) !important;
}

/* --- Services grid on homepage improvement --- */
#services .services-cta {
  padding: var(--space-md) 0;
}

/* --- Improved why-choose-us hover for smaller screens --- */
@media (max-width: 900px) {
  #why-choose-us .services-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #why-choose-us .services-grid::-webkit-scrollbar {
    display: none;
  }
}

/* --- Improved workflow section header text visibility --- */
.workflow-header .title {
  color: var(--text-primary);
}

/* --- Missing mobile toggle display --- */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .nav-links {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 0.25rem;
    box-shadow: none;
  }
}

/* --- Hero detail icon animation on load --- */
.service-detail-icon {
  animation: iconPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes iconPop {
  from { opacity: 0; transform: scale(0.7) rotate(-12deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* --- Scrollable services grid on mobile (why choose us) --- */
@media (max-width: 900px) {
  #why-choose-us .service-card {
    min-height: 0;
  }
}

/* --- Review card star improvement — use real star chars --- */
.review-stars {
  font-style: normal;
}

/* --- Process timeline line improvement on desktop --- */
@media (min-width: 769px) {
  .process-timeline::before {
    left: calc(1.5rem + 28px);
  }
}

/* --- Consistent blog readmore button styling --- */
a.blog-readmore.btn.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: rgba(167, 139, 250, 0.35);
}

/* --- Improved footer newsletter input accessibility --- */
.newsletter-form input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(167, 139, 250, 0.3);
  outline-offset: 2px;
}

/* --- Smooth page transitions enhancement --- */
main {
  animation: pageFadeIn 0.4s ease-out both;
}

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

/* --- Improved card-spotlight hover text --- */
.service-card.card-spotlight .blog-readmore {
  background: rgba(167, 139, 250, 0.08);
  color: var(--primary);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
}

.service-card.card-spotlight:hover .blog-readmore {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

/* --- Improved data-reveal stagger for service pages --- */
.services-grid .service-card:nth-child(1) { --reveal-delay: 0ms; }
.services-grid .service-card:nth-child(2) { --reveal-delay: 80ms; }
.services-grid .service-card:nth-child(3) { --reveal-delay: 160ms; }
.services-grid .service-card:nth-child(4) { --reveal-delay: 240ms; }
.services-grid .service-card:nth-child(5) { --reveal-delay: 320ms; }
.services-grid .service-card:nth-child(6) { --reveal-delay: 400ms; }

/* --- Workflow step stagger auto-applied --- */
.process-step:nth-child(1) { transition-delay: 0ms; }
.process-step:nth-child(2) { transition-delay: 100ms; }
.process-step:nth-child(3) { transition-delay: 200ms; }
.process-step:nth-child(4) { transition-delay: 300ms; }
.process-step:nth-child(5) { transition-delay: 400ms; }
.process-step:nth-child(6) { transition-delay: 500ms; }

/* ========================================
   Map Section Styles
   ======================================== */

.map-container {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-info-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 10;
  pointer-events: none;
}

.map-info-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.2);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 350px;
  pointer-events: auto;
}

.map-info-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-info-icon i,
.map-info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.map-info-content {
  flex: 1;
}

.map-info-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.map-info-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .map-container iframe {
    height: 350px;
    border-radius: 12px;
  }

  .map-info-overlay {
    position: static;
    margin-top: 1rem;
  }

  .map-info-card {
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-info-icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .map-container iframe {
    height: 300px;
  }
}


/* ========================================
   GLOBAL MOBILE ALIGNMENT FIXES
   ======================================== */

/* Prevent horizontal overflow on all mobile devices */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Container adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Section padding */
  section {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow-x: hidden;
  }

  /* Hero section */
  .hero {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-content {
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-split {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .hero-split-content,
  .hero-split-visual {
    width: 100%;
    max-width: 100%;
  }

  /* Form elements */
  input,
  textarea,
  select,
  button {
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form {
    padding: 1.25rem;
    width: auto;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Cards */
  .service-card,
  .feature-card,
  .portfolio-card,
  .blog-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Grids */
  .services-grid,
  .features-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
  }

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

  /* Videos */
  video,
  iframe {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Button adjustments */
  .btn,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Compact spacing */
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .service-card,
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .btn,
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   Firebase Notification Styles
   ======================================== */
.firebase-notification {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100000;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: slideInNotification 0.3s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 400px;
}

.firebase-notification-success {
  background: #10B981;
  color: white;
}

.firebase-notification-error {
  background: #EF4444;
  color: white;
}

.firebase-notification button {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.8;
}

.firebase-notification button:hover {
  opacity: 1;
}

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

@media (max-width: 480px) {
  .firebase-notification {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
