/* ===========================================
   MDT Group — Custom Styles
   Using Tailwind Play CDN for utilities.
   Colour Palette: Deep Navy + Gold
   =========================================== */

/* --- Glass Morphism Utilities --- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
}

/* --- Smooth Transitions --- */
.transition-smooth {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Hero Ken Burns --- */
@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-bg-animate {
  animation: kenburns 25s linear infinite alternate;
}

/* --- Fade In Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in-up-delay-1 {
  animation-delay: 0.15s;
  opacity: 0;
}

.animate-fade-in-up-delay-2 {
  animation-delay: 0.3s;
  opacity: 0;
}

.animate-fade-in-up-delay-3 {
  animation-delay: 0.45s;
  opacity: 0;
}

/* --- Hero Page Utilities --- */
.hero-subpage {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem; /* pt-20 equivalent to clear fixed navbar */
}

.hero-subpage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Slightly higher focus to avoid cutting top of heads */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(10, 22, 40, 0.8) 0%, 
    rgba(10, 22, 40, 0.4) 50%, 
    rgba(10, 22, 40, 1) 100%
  );
}

/* --- Navbar States --- */
.navbar-transparent {
  background-color: rgba(10, 22, 40, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-scrolled {
  background-color: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-solid {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav Link Color Logic */
.navbar-transparent .nav-link,
.navbar-scrolled .nav-link,
.navbar-solid .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-transparent .nav-link:hover,
.navbar-scrolled .nav-link:hover,
.navbar-solid .nav-link:hover,
.nav-link.active {
  color: #c9a227 !important;
}

/* Brand Text */
.navbar-transparent .brand-text,
.navbar-scrolled .brand-text,
.navbar-solid .brand-text {
  color: white !important;
}

/* --- Logo --- */
.logo-pop {
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-pop:hover {
  transform: scale(1.05);
}

/* --- Premium Logo Container --- */
.logo-container-circle {
  background: white;
  border-radius: 9999px; /* Perfect circle */
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.2);
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  transition: all 0.3s ease;
  overflow: hidden; /* Ensure image doesn't bleed out */
}

.logo-container-circle img {
  border-radius: 9999px;
  object-fit: contain;
}

.logo-container-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
  border-color: #c9a227;
}

/* --- Mobile Menu & Overlay --- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 52;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  z-index: 60;
  background: #0a1628;
  padding: 2.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important; /* Force flex */
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(201, 162, 39, 0.2);
}

.mobile-menu.active {
  right: 0;
}

/* --- Dropdown / Mega Menu --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 600px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  display: block;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.mega-menu-item:hover {
  background: rgba(201, 162, 39, 0.1);
}

.mega-menu-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.08);
  color: #c9a227;
  flex-shrink: 0;
}

.mega-menu-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.125rem;
}

.mega-menu-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

/* --- Gold Accent Line --- */
.gold-line {
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(to right, #c9a227, #f5d472);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* --- Service Cards --- */
.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(201, 162, 39, 0.02));
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* --- Stats Counter --- */
.stat-card {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(201, 162, 39, 0.03));
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 1rem;
}

/* --- Value Cards --- */
.value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  transition: all 0.35s ease;
}

.value-card:hover {
  background: rgba(201, 162, 39, 0.06);
  border-color: rgba(201, 162, 39, 0.25);
  transform: translateY(-4px);
}

/* --- Contact Input --- */
.contact-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
  padding: 0.875rem 1.25rem;
}

.contact-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #c9a227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* --- Premium Footer --- */
.footer-premium {
  background: rgba(5, 12, 24, 0.97);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  color: rgba(255, 255, 255, 0.75);
}

.footer-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.4), transparent);
}

.footer-heading {
  color: white;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 0.875rem;
  display: inline-block;
}

.footer-link:hover {
  color: #c9a227;
  transform: translateX(4px);
}

.footer-social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social-icon:hover {
  background: #c9a227;
  color: #0a1628;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 20px -5px rgba(201, 162, 39, 0.4);
  border-color: #c9a227;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --- Hero Heading --- */
@media (max-width: 640px) {
  .hero-heading {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }
}

/* --- Line Clamp --- */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Gold Button --- */
.btn-gold {
  background: linear-gradient(135deg, #c9a227, #f5d472);
  color: #0a1628;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(201, 162, 39, 0.5);
}

/* --- Outline Gold Button --- */
.btn-outline-gold {
  border: 1.5px solid rgba(201, 162, 39, 0.7);
  color: #c9a227;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: #c9a227;
}