body {
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}
.navbar {
   background-color: rgb(0, 0, 0);
}
.navbar a {
  color: rgb(237, 237, 237) !important;
  transition: ease-in-out 0.3s;
}
.navbar a:hover {
  color: rgb(101, 101, 216) !important;
}
.navbar-nav{
  gap: 22px;
}
section {
  padding: 80px 0;
}

form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

form .form-control:focus {
  border-color: #3b4cca;
  box-shadow: 0 0 0 0.2rem rgba(59, 76, 202, 0.25);
}

/* ============================= */
/* Dark Theme Overrides          */
/* ============================= */
:root {
  /* New luxury palette */
  --bg-1: #0b1220;          /* deep navy */
  --bg-2: #0a0f1a;          /* charcoal-blue */
  --surface: #0f1626;       /* elevated surface */
  --text: #e6e7ea;          /* high-contrast text */
  --muted: #a7b0c0;         /* muted text */
  --accent: #72b6ff;        /* azure */
  --accent-2: #22d3ee;      /* cyan */
  --border: #1b2b45;        /* cool border */
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(114,182,255,0.05), transparent 40%),
    radial-gradient(1000px 500px at 100% 0%, rgba(34,211,238,0.04), transparent 45%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2)) !important;
  color: var(--text) !important;
}

/* Navbar */
.nav-glass {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(13, 19, 34, 0.45) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(114,182,255,0.15);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav-glass.nav-scrolled {
  background: rgba(13, 19, 34, 0.75) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-bottom-color: rgba(114,182,255,0.25);
}
.navbar .navbar-brand { color: var(--text) !important; }
.navbar .nav-link { color: var(--text) !important; opacity: .9; }
.navbar .nav-link:hover { color: #fff !important; opacity: 1; }

/* Brand gradient text */
.brand-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Nav pills + underline */
.nav-link-pill { border-radius: 999px; padding: .5rem .9rem; }
.nav-link-pill:hover { background: rgba(255,255,255,.06); }
.nav-link-underline { position: relative; }
.nav-link-underline::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link-underline:hover::after { transform: scaleX(1); }

.text-accent { color: var(--accent) !important; }
.gradient-text { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.btn-primary {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent !important;
  color: #00121f !important;
}
.btn-primary:hover {
  background-image: linear-gradient(120deg, var(--accent-2), var(--accent));
  color: #00121f !important;
}



/* Removed unused styles */

form .form-control {
  background-color: #0e1626 !important;
  border-color: #22314e !important;
  color: var(--text) !important;
}
form .form-control::placeholder { color: #777 !important; }
form .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

footer {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)) !important;
  color: var(--muted) !important;
}

/* CTA button */
.btn-cta {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(114,182,255,0.25);
  color: #00121f !important;
}
.btn-cta:hover { box-shadow: 0 8px 24px rgba(17, 140, 196, 0.25); }

/* ============================= */
/* New Layout Components         */
/* ============================= */
.text-muted-contrast { color: #b5b5b5 !important; }

.section-dark { padding: 96px 0; }

.hero-dark {
  min-height: 92vh;
  position: relative;
  background: radial-gradient(1000px 500px at 0% -10%, rgba(114,182,255,0.10), transparent 40%),
              radial-gradient(800px 400px at 100% 0%, rgba(34,211,238,0.10), transparent 40%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
}
.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}

.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  border-radius: 16px;
}

.icon-tile {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.18);
  font-size: 1.35rem;
}

.service-card h3 { color: #e9e9e9; }
.service-card p { margin: 0; }

.stat-tile { border-radius: 12px; }

/* Smooth link hover */
.navbar a { transition: color .2s ease; }

/* Buttons */
.btn-outline-light.border-secondary:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

/* Luxury shimmer on primary buttons */
.btn-primary {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  transition: transform .2s ease, box-shadow .2s ease, background-position .8s ease;
}
.btn-primary:hover, .btn-primary:focus {
  background-position: right center;
  box-shadow: 0 8px 24px rgba(212,175,55,.25);
  transform: translateY(-2px);
}

/* Reveal animations */
[data-animate] {
  opacity: 0;
  transform: translateY(16px) scale(.98);
  filter: blur(2px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  transition-delay: var(--delay, 0ms);
}

[data-animate="fade-in"] { transform: none; }
[data-animate="fade-up"] { transform: translateY(16px); }
[data-animate="slide-left"] { transform: translateX(24px); }
[data-animate="slide-right"] { transform: translateX(-24px); }
[data-animate="zoom-in"] { transform: scale(.95); }

.animate-in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Card micro-interactions */
.glass {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.18);
}

.icon-tile { transition: transform .25s ease; }
.service-card:hover .icon-tile { transform: scale(1.06) rotate(-2deg); }

/* ============================= */
/* Mobile Menu Styles            */
/* ============================= */

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 32px 0;
  height: calc(100vh - 89px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin: 8px 0;
}

.mobile-menu-link {
  display: block;
  padding: 16px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(114, 182, 255, 0.1), rgba(34, 211, 238, 0.1));
  transition: width 0.3s ease;
  z-index: -1;
}

.mobile-menu-link:hover::before {
  width: 100%;
}

.mobile-menu-link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 32px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 0 24px 24px;
}

.mobile-menu-footer .btn-cta {
  padding: 14px 20px;
  font-weight: 600;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Desktop navbar adjustments */
@media (min-width: 992px) {
  .navbar-nav.flex-row .nav-item {
    margin-left: 12px;
  }
  
  .navbar-nav.flex-row .nav-item:first-child {
    margin-left: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .mobile-menu {
    width: 85%;
  }
  
  .mobile-menu-link {
    font-size: 16px;
    padding: 14px 20px;
  }
  
  .mobile-menu-header {
    padding: 16px 20px;
  }
  
  .mobile-menu-footer {
    padding: 0 20px 20px;
  }
}

/* ============================= */
/* Quote Popup Modal Styles      */
/* ============================= */

/* Modal backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

/* Modal content */
.quote-modal-content {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

/* Modal header */
.quote-modal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.quote-modal-close {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  color: var(--text) !important;
  font-size: 16px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.quote-modal-close span {
  font-size: 24px !important;
  line-height: 1 !important;
  color: inherit !important;
  display: block !important;
  font-weight: 300 !important;
}

.quote-modal-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: rotate(90deg) !important;
  opacity: 1 !important;
}

.quote-modal-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(114, 182, 255, 0.25) !important;
  opacity: 1 !important;
  outline: none !important;
}

/* Ensure Bootstrap's default btn-close styles don't interfere */
.modal-header .btn-close {
  background: none !important;
  border: none !important;
  opacity: 1 !important;
  filter: none !important;
  background-image: none !important;
}

/* Additional visibility fixes */
.quote-modal-header {
  position: relative;
}

.quote-modal-header .quote-modal-close {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

/* Hover state with higher specificity */
.modal-header .quote-modal-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

/* Focus state */
.modal-header .quote-modal-close:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-50%) !important;
}

/* Ensure the span inside is visible */
.quote-modal-close span[aria-hidden="true"] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================= */
/* Services Dropdown Styles      */
/* ============================= */

/* Services dropdown container */
.services-dropdown-container {
  position: relative;
}

/* Dropdown arrow */
.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.services-dropdown-container:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Desktop dropdown menu */
.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Show dropdown on hover */
.services-dropdown-container:hover .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* Keep dropdown open when hovering over it */
.services-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.services-dropdown .dropdown-item {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 8px;
  position: relative;
  overflow: hidden;
}

.services-dropdown .dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(114, 182, 255, 0.1), rgba(34, 211, 238, 0.1));
  transition: width 0.3s ease;
  z-index: -1;
}

.services-dropdown .dropdown-item:hover::before {
  width: 100%;
}

.services-dropdown .dropdown-item:hover {
  color: var(--accent);
  background: transparent;
  transform: translateX(2px);
}

.services-dropdown .dropdown-item:focus {
  color: var(--accent);
  background: rgba(114, 182, 255, 0.1);
  outline: none;
}

.services-dropdown .dropdown-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 8px 12px;
}

.services-dropdown li {
  margin: 0;
}

/* Responsive dropdown positioning */
@media (max-width: 1200px) {
  .services-dropdown {
    left: -50px;
  }
}

@media (max-width: 768px) {
  .services-dropdown {
    left: -80px;
    min-width: 200px;
  }
}

/* Hide dropdown arrow on mobile since we use the submenu */
@media (max-width: 991px) {
  .dropdown-arrow {
    display: none;
  }
  
  .services-dropdown {
    display: none !important;
  }
}

/* Mobile submenu styles */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-submenu.show {
  max-height: 200px;
}

.mobile-submenu .submenu-link {
  font-size: 16px;
  padding: 12px 16px 12px 40px;
  border-left: 2px solid transparent;
  position: relative;
}

.mobile-submenu .submenu-link::before {
  content: '→';
  position: absolute;
  left: 24px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.mobile-submenu .submenu-link:hover::before {
  transform: translateX(4px);
}

.mobile-submenu .submenu-link:hover {
  padding-left: 44px;
  border-left-color: var(--accent);
}

/* Services page specific styles */
.services-hero {
  min-height: 60vh;
  padding: 120px 0 60px;
}

.service-detail {
  scroll-margin-top: 100px;
}

.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.service-image {
  transition: transform 0.3s ease;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-image:hover {
  transform: scale(1.05);
}

.service-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Enhanced icon tiles for services */
.service-detail .icon-tile {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* Modal body */
.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* Form styling in modal */
#quoteModalForm .form-label {
  color: var(--text);
  margin-bottom: 6px;
}

#quoteModalForm .form-control,
#quoteModalForm .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 16px;
  transition: all 0.3s ease;
}

#quoteModalForm .form-control::placeholder {
  color: var(--muted);
}

#quoteModalForm .form-control:focus,
#quoteModalForm .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(114, 182, 255, 0.15);
  outline: 0;
}

#quoteModalForm .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e6e7ea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Modal animation enhancements */
.modal.fade .modal-dialog {
  transform: scale(0.9) translateY(-50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Success state */
.quote-modal-success {
  text-align: center;
  padding: 40px 20px;
}

.quote-modal-success .success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #00121f;
  animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-lg {
    max-width: calc(100vw - 32px);
    margin: 16px;
  }
  
  .quote-modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: 75vh;
  }
  
  #quoteModalForm .form-control,
  #quoteModalForm .form-select {
    padding: 10px 14px;
  }
}

@media (max-width: 576px) {
  #quoteModalForm .row .col-md-6 {
    margin-bottom: 12px;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 12px !important;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
}


