/* Base Typography and Variables */
:root {
  --navy: #061A40;
  --navy-light: #0A2558;
  --royal: #0057B8;
  --red: #D90429;
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
}

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

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', sans-serif;
}

/* Custom Utilities for Tailwind */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: none !important;
}

.dark .glass-nav {
  background: rgba(6, 26, 64, 0.4) !important;
  border-bottom: none !important;
}

.bg-premium-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #003D82 100%);
  position: relative;
  overflow: hidden;
}

.text-gradient {
  background: linear-gradient(to right, var(--royal), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D Card Hover Effect */
.hover-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hover-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.floating-element {
  animation: float 6s ease-in-out infinite;
}
.floating-element-delayed {
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

/* Typing Effect Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--red);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Background Animated Blobs */
.bg-blob {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite alternate;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.dark #loader {
  background: var(--dark-bg);
}
.spinner {
  border: 4px solid rgba(0, 87, 184, 0.1);
  border-left-color: var(--royal);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Testimonial Carousel basic styling */
.testimonial-container {
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* Process Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--royal), var(--red));
  z-index: 0;
}
.timeline-dot {
  position: relative;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 8px rgba(0,87,184,0.2);
}

/* Premium Corporate Header Styles */
.corporate-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.corporate-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dark .corporate-header.scrolled {
  background: #030D20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.corporate-nav-link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  transition: color 0.4s ease;
}

/* On scroll, links turn dark */
.corporate-header.scrolled .corporate-nav-link {
  color: #222222;
}
.dark .corporate-header.scrolled .corporate-nav-link {
  color: #FFFFFF;
}

/* Hover underline animation */
.corporate-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #EC9C1E;
  transition: width 0.3s ease;
}

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

.mobile-menu-corporate {
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}
.dark .mobile-menu-corporate {
  background: #030D20;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-corporate .corporate-nav-link {
  color: #222222;
}
.dark .mobile-menu-corporate .corporate-nav-link {
  color: #FFFFFF;
}

/* Premium Pill Header Styles */
.premium-pill-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(27, 77, 137, 0.3); /* #1B4D89 with opacity */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.premium-pill-header:hover,
.premium-pill-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) scale(1.01) !important;
  border-color: rgba(27, 77, 137, 0.1);
}

/* Base text color for navigation and logo */
.pill-nav-text {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  transition: color 0.4s ease;
}

/* On hover or scroll, change text to dark navy */
.premium-pill-header:hover .pill-nav-text,
.premium-pill-header.scrolled .pill-nav-text {
  color: #071A33;
}

/* Phone number text inside right section */
.pill-phone-text {
  color: #FFFFFF;
  transition: color 0.4s ease;
}

.premium-pill-header:hover .pill-phone-text,
.premium-pill-header.scrolled .pill-phone-text {
  color: #27364B;
}

/* Hover underline animation for navigation */
.pill-nav-link {
  position: relative;
}

.pill-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #D90429;
  transition: width 0.3s ease;
}

/* White underline for initial state */
.premium-pill-header:not(:hover):not(.scrolled) .pill-nav-link::after {
  background-color: #FFFFFF;
}

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

.mobile-menu-pill {
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}

.mobile-menu-pill .pill-nav-text {
  color: #071A33;
}


html { scroll-behavior: smooth; scroll-padding-top: 100px; }


/* Marquee Animation */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7 - 1rem * 7)); } /* Based on card width and gap */
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}



/* 3D Flip Card Utilities */
.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; }
.backface-hidden { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.group:hover .group-hover\:rotate-y-180 { transform: rotateY(180deg); }


