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

:root {
  --primary: #1E3A8A;   /* Deep Blue */
  --secondary: #0EA5E9; /* Bright Blue */
  --accent: #22C55E;    /* Green */
  --dark: #0F172A;      /* Dark bg */
  --light: #F8FAFC;     /* Light bg */
  
  /* Apple/Stripe Luxury Variables */
  --shadow-hover: 0 20px 50px -12px rgba(15, 23, 42, 0.15), 0 0 30px -5px rgba(14, 165, 233, 0.08);
  --spring-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --btn-shadow: 0 4px 14px 0 rgba(30, 58, 138, 0.25);
  --btn-shadow-hover: 0 8px 25px rgba(30, 58, 138, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Premium typography features for Inter */
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em; /* Tighter Apple-style tracking */
}

/* --------------------------------------------------------------------------
   Luxury 3D Card Physics
   -------------------------------------------------------------------------- */
.parallax-container {
  perspective: 2000px;
}

.card-hover {
  transition: transform 0.8s var(--spring-ease), box-shadow 0.8s var(--spring-ease), border-color 0.6s ease !important;
  will-change: transform, box-shadow;
  border-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.02) !important;
  transform-style: preserve-3d;
}

.card-hover:hover {
  transform: translateY(-12px) rotateX(1deg) rotateY(1deg) scale(1.02) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

.card-inner-3d {
  transform: translateZ(20px);
}

/* --------------------------------------------------------------------------
   Dynamic 3D Hero Background
   -------------------------------------------------------------------------- */
.hero-3d-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  perspective: 800px;
  transform-style: preserve-3d;
}

.hero-3d-bg-image {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background-image: url('../images/hero_3d_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  mix-blend-mode: normal;
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
  animation: hero3DMove 15s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes hero3DMove {
  0% { transform: translateZ(-50px) rotateX(6deg) rotateY(-6deg) scale(1); }
  50% { transform: translateZ(100px) rotateX(-6deg) rotateY(6deg) scale(1.1); }
  100% { transform: translateZ(-50px) rotateX(6deg) rotateY(-6deg) scale(1); }
}

.hero-3d-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Luxury Button Physics
   -------------------------------------------------------------------------- */
.btn-hover {
  transition: transform 0.4s var(--spring-ease), box-shadow 0.4s var(--spring-ease), background-color 0.2s ease, filter 0.2s ease !important;
  position: relative;
  will-change: transform, box-shadow;
  box-shadow: var(--btn-shadow) !important;
}

.btn-hover:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--btn-shadow-hover) !important;
  filter: brightness(1.04);
}

.btn-hover:active {
  transform: scale(0.97) translateY(0) !important;
  filter: brightness(0.96);
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.15) !important;
}

/* --------------------------------------------------------------------------
   Image Hover Physics
   -------------------------------------------------------------------------- */
.img-hover {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.img-container {
  overflow: hidden;
  background-color: #f1f5f9;
}

.img-container:hover .img-hover {
  transform: scale(1.05) !important;
}

/* --------------------------------------------------------------------------
   Elegant Navigation Links
   -------------------------------------------------------------------------- */
.link-hover {
  position: relative;
  transition: color 0.3s ease, opacity 0.2s ease;
}

.link-hover:active {
  opacity: 0.6;
}

.link-hover::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  opacity: 0;
  transition: width 0.4s var(--spring-ease), opacity 0.3s ease;
  border-radius: 2px;
}

.link-hover:hover::after,
.link-hover.active::after {
  width: 100%;
  opacity: 0.8;
}

/* Floating effect optimized - subtler */
.float-effect {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
/* Soft, multidimensional gradient like Stripe */
.hero-overlay {
  background: radial-gradient(ellipse at top right, rgba(30,58,138,0.7) 0%, transparent 70%),
              radial-gradient(ellipse at bottom left, rgba(15,23,42,0.98) 0%, rgba(30,58,138,0.92) 100%);
}

.hero-reveal {
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(30px); }
  to { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}

/* 3D Floating Objects */
.float-3d-1 {
  background: radial-gradient(circle at 30% 30%, var(--secondary), transparent);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  position: absolute;
  top: -100px;
  right: -100px;
  opacity: 0.3;
  animation: float3D 12s infinite alternate;
  z-index: 0;
}

@keyframes float3D {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-30px, 40px) rotate(10deg) scale(1.1); }
  100% { transform: translate(10px, -20px) rotate(-5deg) scale(0.9); }
}

.hero-logo-img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 24px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================================================
   Premium Transparent → Glass Navbar System
   ========================================================================== */

/* Default state: transparent over dark hero */
.nav-transparent {
  background: transparent;
  padding-top: 1.25rem;
  position: relative;
}

/* Animated white line — draws left to right on page load */
.nav-transparent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 20%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.6) 80%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: navLineReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes navLineReveal {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}


/* Scrolled state: frosted glass */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: saturate(180%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 2px 40px rgba(15, 23, 42, 0.07) !important;
  padding-top: 0.75rem !important;
}

/* Hide animated white line when scrolled */
.nav-scrolled::after {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

/* Brand text — white by default, dark on scroll */
.nav-brand-text {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
  transition: color 0.3s ease;
}
.nav-scrolled .nav-brand-text { color: var(--dark) !important; }

.nav-sub-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1;
  margin-top: 3px;
  transition: color 0.3s ease;
}

/* Individual nav link pill */
.nav-item {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 700;
}

/* Scrolled state — items become dark */
.nav-scrolled .nav-item { color: var(--dark) !important; }
.nav-scrolled .nav-item:hover {
  background: rgba(30, 58, 138, 0.08) !important;
  color: var(--primary) !important;
}
.nav-scrolled .nav-item.active {
  background: var(--primary) !important;
  color: white !important;
}

/* CTA Contact Us button — Highlighted with Premium Gradient */
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.6rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
  filter: brightness(1.1);
  color: white;
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
}
/* Scrolled state for CTA — maintain gradient but adjust shadow */
.nav-scrolled .nav-cta {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

/* Mobile hamburger icon */
.nav-mobile-btn {
  color: white;
  padding: 0.375rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-mobile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.nav-scrolled .nav-mobile-btn {
  color: var(--dark) !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
}
.nav-scrolled .nav-mobile-btn:hover {
  background: rgba(30, 58, 138, 0.1) !important;
  color: var(--primary) !important;
}

/* Logo circle border adapts on scroll */
.nav-logo-ring {
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.3s ease;
}
.nav-scrolled .nav-logo-ring {
  border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Dropdown wrapper — adds vertical padding for generous hover target */
.dropdown {
  padding: 0.5rem 0;
  margin: -0.5rem 0;
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.97);
  width: 260px;
  background: white;
  border-radius: 1.25rem;
  box-shadow:
    0 20px 50px -12px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(226, 232, 240, 0.9);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform-origin: top center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

/* Transparent bridge fills the 4px gap so hover doesn't break */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown:hover .mega-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mega-item {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.mega-item:hover {
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease;
}
.mega-footer-link:hover { gap: 0.6rem; color: var(--primary); }


.content-grid {
  display: grid;
  gap: 2rem;
}

/* Responsiveness Hardening */
a[href^="mailto:"], a[href^="tel:"] {
  word-break: break-word;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
}

/* Floating Action Hub (WhatsApp & Chat) */
.floating-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.fab-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.fab-btn:active {
  transform: scale(0.9);
}

.whatsapp-btn {
  background: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-btn {
  background: #1E3A8A;
  background: linear-gradient(135deg, #1E3A8A 0%, #0EA5E9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fab-label {
  position: absolute;
  right: 110%;
  background: #0F172A;
  color: white;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fab-btn:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* Notification Pulse */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #FF3B30;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.8; }
}

@media (max-width: 768px) {
  .floating-hub {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }
  .fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   Layout Utilities - Custom 
   -------------------------------------------------------------------------- */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   Infinite Ticker Animation
   -------------------------------------------------------------------------- */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-container {
  display: flex;
  gap: 4rem; /* Match the gap from HTML design */
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

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