/**
 * Motion Design Styles
 * Modern CSS animations and transitions
 */

/* ============================================================================
   BASE STYLES & CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);

  /* Enhanced Shadows for Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.20);
  --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 8px 32px rgba(37, 99, 235, 0.25);
  --shadow-primary-lg: 0 16px 48px rgba(37, 99, 235, 0.3);

  /* Colored shadows for depth */
  --shadow-blue-sm: 0 4px 12px rgba(37, 99, 235, 0.15);
  --shadow-blue-md: 0 8px 24px rgba(37, 99, 235, 0.2);
  --shadow-blue-lg: 0 16px 48px rgba(37, 99, 235, 0.25);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-heading: 'Inter', 'Clash Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================================
   SCROLL PROGRESS INDICATOR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ============================================================================
   HERO SECTION ENHANCEMENTS
   ========================================================================== */

#banner {
  position: relative;
  overflow: hidden;
}

/* Video background container */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Video overlay for text readability */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

/* Ensure content is above video */
#banner-content {
  position: relative;
  z-index: 2;
}

/* Bold typography for hero */
#banner-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

#banner-content h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse-icon {
  width: 24px;
  height: 36px;
  border: 2px solid white;
  border-radius: 12px;
  position: relative;
  animation: mouse-scroll 2s infinite;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: mouse-wheel 2s infinite;
}

.scroll-indicator span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  font-weight: 500;
}

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

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

/* ============================================================================
   FLOATING INTERESTS GRID
   ========================================================================== */

.floating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  perspective: 1000px;
}

.interest-card {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
  will-change: transform;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.interest-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

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

.interest-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.interest-card:hover img {
  transform: scale(1.1);
}

.interest-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a202c;
}

.interest-card p {
  padding: 0 1.5rem 1.5rem;
  color: #4a5568;
  line-height: 1.6;
}

/* ============================================================================
   ENHANCED SERVICE CARDS
   ========================================================================== */

.icon-block {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  will-change: transform;
}

.icon-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.icon-block:hover::before {
  opacity: 1;
}

.icon-block .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: all var(--transition-spring);
}

.icon-block .icon i {
  color: white;
  transition: transform var(--transition-spring);
}

.icon-block:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-block:hover .icon i {
  transform: scale(1.1);
}

/* ============================================================================
   BUTTON ENHANCEMENTS
   ========================================================================== */

.button,
.cta-button {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-primary);
  will-change: transform;
}

.button::before,
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before,
.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.button:active,
.cta-button:active {
  transform: scale(0.98);
}

/* ============================================================================
   SECTION ANIMATIONS
   ========================================================================== */

section {
  position: relative;
  will-change: transform, opacity;
}

.section-heading {
  position: relative;
  margin-bottom: 3rem;
  will-change: clip-path;
}

.section-heading h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a202c;
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 600px;
}

/* ============================================================================
   GLASSMORPHISM EFFECTS
   ========================================================================== */

/* Base glass effect utility */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
  .glass {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

/* Glass effect for navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@supports not (backdrop-filter: blur(16px)) {
  .glass-nav {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Glass effect for cards */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@supports not (backdrop-filter: blur(12px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Glass effect for dark overlays */
.glass-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@supports not (backdrop-filter: blur(16px)) {
  .glass-dark {
    background: rgba(0, 0, 0, 0.75);
  }
}

/* ============================================================================
   NEON GLOW EFFECTS
   ========================================================================== */

/* Neon glow utility - subtle by default */
.neon-glow {
  --neon-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3),
              0 0 20px rgba(37, 99, 235, 0.15),
              0 0 30px rgba(37, 99, 235, 0.05);
  transition: box-shadow var(--transition-base);
}

/* Neon glow on hover - enhanced */
.neon-hover {
  transition: all var(--transition-base);
}

.neon-hover:hover {
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5),
              0 0 30px rgba(37, 99, 235, 0.3),
              0 0 45px rgba(37, 99, 235, 0.15),
              0 0 60px rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

/* Neon text glow */
.neon-text {
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.5),
               0 0 20px rgba(37, 99, 235, 0.3),
               0 0 30px rgba(37, 99, 235, 0.1);
}

/* Neon border */
.neon-border {
  position: relative;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, #2563eb, #3b82f6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Pulsing neon effect for key CTAs */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4),
                0 0 20px rgba(37, 99, 235, 0.2),
                0 0 30px rgba(37, 99, 235, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6),
                0 0 40px rgba(37, 99, 235, 0.4),
                0 0 60px rgba(37, 99, 235, 0.2);
  }
}

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

/* ============================================================================
   VISUAL DEPTH & LAYERING
   ========================================================================== */

/* Elevated cards with enhanced shadows */
.elevated {
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.elevated:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Layered elements with z-index management */
.layer-base { z-index: 1; }
.layer-content { z-index: 2; }
.layer-elevated { z-index: 3; }
.layer-modal { z-index: 100; }
.layer-overlay { z-index: 99; }

/* Depth through shadows and transforms */
.depth-1 {
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
}

.depth-2 {
  box-shadow: var(--shadow-md);
  transform: translateZ(10px);
}

.depth-3 {
  box-shadow: var(--shadow-lg);
  transform: translateZ(20px);
}

.depth-4 {
  box-shadow: var(--shadow-xl);
  transform: translateZ(30px);
}

/* Subtle background patterns for depth */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Gradient overlays for depth */
.gradient-overlay-top {
  position: relative;
}

.gradient-overlay-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* 3D perspective container */
.perspective-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* ============================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration for animations */
.icon-block,
.interest-card,
.button,
.cta-button {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

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

  .scroll-progress,
  .scroll-indicator {
    display: none;
  }
}

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

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

  .interest-card {
    transform: none !important;
  }

  .scroll-indicator {
    display: none;
  }

  #banner-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* ============================================================================
   DARK MODE SUPPORT (disabled - not fully implemented)
   ========================================================================== */

/* Dark mode temporarily disabled until full implementation
@media (prefers-color-scheme: dark) {
  .interest-card,
  .icon-block {
    background: #1a202c;
    color: #e2e8f0;
  }

  .interest-card h3,
  .section-heading h2 {
    color: #f7fafc;
  }

  .interest-card p,
  .section-heading p {
    color: #cbd5e0;
  }
}
*/
