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

:root {
  --primary-color: #1E1C56;     /* Deep Midnight Indigo */
  --secondary-color: #B11F24;   /* Crimson Red */
  --accent-color: #0F733A;      /* Emerald Green */
  --bg-dark: #070617;           /* Rich Deep Indigo-Dark */
  --bg-card: rgba(30, 28, 86, 0.12); /* Deep Indigo glass card */
  --border-glass: rgba(255, 255, 255, 0.08); 
  --border-light: rgba(177, 31, 36, 0.3); /* Crimson highlight */
  --border-green: rgba(15, 115, 58, 0.3);  /* Emerald highlight */
  --border-blue: rgba(49, 46, 112, 0.3);
  --text-main: #E2E1F5;         /* Soft mist silver */
  --text-muted: #9593B5;        /* Industrial slate */
  --text-white: #FFFFFF;
  
  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-soft: 20px;          
  --radius-sharp: 10px;
  --transition-cinematic: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & Cinematic Layout overlaying Bootstrap defaults */
* {
  cursor: none !important; /* Hide default cursor */
}

body {
  background-color: var(--bg-dark) !important;
  background-image: 
    radial-gradient(circle at 10% 20%, var(--primary-color) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(15, 115, 58, 0.18) 0%, transparent 60%) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body);
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.7;
}

/* Scrollbar styling overrides */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(49, 46, 112, 0.6);
  border-radius: var(--radius-sharp);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Cinematic Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader-glow {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--secondary-color);
  border-bottom-color: var(--accent-color);
  animation: spinLoader 1.5s linear infinite;
  position: relative;
  box-shadow: 0 0 20px rgba(177, 31, 36, 0.2);
}

.loader-brand {
  margin-top: 25px;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-white);
  animation: pulseBrand 2s infinite ease-in-out;
}

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

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

/* Custom Cinematic Cursor (Only visible on non-touch screens) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s;
  background-color: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(1px);
}
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 10px var(--secondary-color);
}

body.hovering-link .custom-cursor {
  width: 60px;
  height: 60px;
  background-color: rgba(177, 31, 36, 0.08);
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(177, 31, 36, 0.3);
}

@media (max-width: 768px) {
  * {
    cursor: auto !important; /* Restore default cursor on touch viewports */
  }
  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
}

/* Section overrides */
section {
  position: relative;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-blue);
  overflow: hidden;
}

/* Custom header layout overlaying Bootstrap navbar defaults */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1220px;
  z-index: 900;
  background-color: rgba(255, 255, 255, 0.95); /* Clean white header background */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.08); /* Clean dark boundary */
  border-radius: var(--radius-soft);
  padding: 20px 40px;
  transition: var(--transition-cinematic);
}

header.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 12px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row; /* Horizontal alignment */
}

.logo-img {
  height: 35px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px; /* Spacious spacing between links */
  margin-bottom: 0;
  padding-left: 0;
  align-items: center; /* Center items vertically */
}

nav a {
  color: #232238; /* Dark navy text to be extremely readable on white background */
  text-decoration: none;
  font-size: 12px; 
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-cinematic);
  display: inline-block;
  padding: 6px 4px;
}

nav a:hover, nav a.active {
  color: var(--secondary-color) !important;
  text-shadow: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #7d1114 100%) !important;
  color: var(--text-white) !important;
  padding: 8px 18px !important;
  text-decoration: none;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  transition: var(--transition-cinematic);
  box-shadow: 0 4px 15px rgba(177, 31, 36, 0.25);
  margin-left: 10px;
}

.nav-cta:hover {
  background: transparent !important;
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  box-shadow: 0 0 15px rgba(177, 31, 36, 0.4);
}

.nav-cta-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #0a4f27 100%) !important;
  color: var(--text-white) !important;
  padding: 8px 18px !important;
  text-decoration: none;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sharp);
  border: 1px solid transparent;
  transition: var(--transition-cinematic);
  box-shadow: 0 4px 15px rgba(15, 115, 58, 0.25);
  margin-left: 10px;
}

.nav-cta-accent:hover {
  background: transparent !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
  box-shadow: 0 0 15px rgba(15, 115, 58, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #232238; /* Dark toggle for white header */
  font-size: 24px;
}

@media (max-width: 1200px) {
  nav ul {
    gap: 12px;
  }
  nav a {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

@media (max-width: 992px) {
  header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 15px 20px;
  }
  header.scrolled {
    padding: 12px 20px;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* White dropdown menu */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 var(--radius-soft) var(--radius-soft);
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .nav-cta, .nav-cta-accent {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Premium Glassmorphic Cards & Panels overlaying Bootstrap row/cols */
.glass-panel {
  background: rgba(30, 28, 86, 0.15); /* Primary Indigo blended */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-soft);
  padding: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 28, 86, 0.3) 0%, rgba(15, 115, 58, 0.08) 50%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

/* Custom 3D Tilt Card Class */
.card-perspective {
  perspective: 1000px;
}

.cinematic-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-soft);
  padding: 40px;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  height: 100%; /* forces match-height inside Bootstrap flex columns */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cinematic-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.cinematic-card h3, .cinematic-card p, .cinematic-card a {
  transform: translateZ(30px);
}

/* Custom Button overrides */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #851216 100%) !important;
  color: var(--text-white) !important;
  border: 1px solid transparent !important;
  padding: 16px 36px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-sharp) !important;
  transition: var(--transition-cinematic) !important;
  box-shadow: 0 6px 20px rgba(177, 31, 36, 0.35) !important;
}

.btn-primary:hover {
  background: transparent !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-white) !important;
  box-shadow: 0 0 20px rgba(177, 31, 36, 0.6) !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass) !important;
  padding: 16px 36px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-sharp) !important;
  transition: var(--transition-cinematic) !important;
}

.btn-outline:hover {
  border-color: var(--secondary-color) !important;
  color: var(--text-white) !important;
  background-color: rgba(177, 31, 36, 0.05) !important;
  box-shadow: 0 0 15px rgba(177, 31, 36, 0.2) !important;
}

/* Glassmorphic Form Overrides for Bootstrap Input Controls */
.form-control, .form-select {
  background-color: rgba(8, 7, 30, 0.7) !important;
  border: 1px solid var(--border-blue) !important;
  border-radius: var(--radius-sharp) !important;
  color: #fff !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  letter-spacing: 1px !important;
  transition: var(--transition-cinematic) !important;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(8, 7, 30, 0.9) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 15px rgba(177, 31, 36, 0.2) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7 !important;
}

/* Typography styles using Plus Jakarta Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.section-label {
  font-size: 11px;
  color: var(--accent-color); /* Emphasizing emerald accent */
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(15, 115, 58, 0.3);
}

.big-headline {
  font-size: 64px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 40%, #a2a1c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 42px;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 50%, #9593B5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .big-headline {
    font-size: 38px;
  }
  .section-title {
    font-size: 28px;
  }
}

p {
  color: var(--text-muted);
}

/* Reveal Transitions */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements with min-height to prevent overlap and overflow */
.cinematic-hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-blue);
  background-color: var(--bg-dark);
}

.hero-gridlines-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
}

.hero-fog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(30, 28, 86, 0.45) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px; /* Safe clearing offset for fixed header */
  padding-bottom: 80px;
}

@keyframes floatY1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1.5deg); }
}

@keyframes floatY2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-1deg); }
}

.floating-layer-1 {
  animation: floatY1 6s infinite ease-in-out;
}

.floating-layer-2 {
  animation: floatY2 8s infinite ease-in-out 1s;
}

.hero-stats-row {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  border-top: 1px solid var(--border-glass);
  padding-top: 25px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 4px;
}

/* Route map container overlaying Bootstrap layout */
.route-svg-container {
  position: relative;
  width: 100%;
  height: 350px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.route-pulse-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--secondary-color);
}

.route-pulse-node::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid var(--secondary-color);
  border-radius: 50%;
  animation: pulseNodeRing 1.5s infinite ease-out;
}

@keyframes pulseNodeRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Footer layout rules */
footer {
  background-color: #03030d;
  border-top: 1px solid var(--border-glass);
  padding: 100px 0 40px 0;
}

.footer-widget h4 {
  font-size: 14px;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-cinematic);
}

.footer-links a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
  text-shadow: 0 0 10px rgba(177, 31, 36, 0.4);
}

/* Premium micro details */
.tag-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(177, 31, 36, 0.08);
  border: 1px solid rgba(177, 31, 36, 0.2);
  color: var(--secondary-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-radius: 50px;
}

.accent-border {
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  margin-bottom: 30px;
  border-radius: 2px;
}

/* Floating Contact Controls */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition-cinematic);
  position: relative;
}

.floating-btn::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.3;
  transform: scale(0.9);
  transition: var(--transition-cinematic);
  pointer-events: none;
  animation: pulseButtonRing 2s infinite ease-out;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.floating-whatsapp {
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.floating-whatsapp::after {
  border-color: #25d366;
}

.floating-call {
  background: var(--accent-color); /* Emerald green theme Call */
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.floating-call::after {
  border-color: var(--accent-color);
  animation-delay: 0.5s;
}

@keyframes pulseButtonRing {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Contact page custom office card improvements */
.office-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-soft);
  padding: 30px;
  margin-bottom: 20px;
  transition: var(--transition-cinematic);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.office-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.status-indicator-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent-color);
  animation: lightPulse 1.5s infinite ease-in-out;
}

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