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

:root {
  --primary-color: #ffd700; /* Vibrant Gold */
  --primary-dark: #b8860b;
  --secondary-color: #00e5ff; /* Cyan accent */
  --text-dark: #111827;
  --text-light: #f9fafb;
  --bg-dark: #0a0f1d; /* Deep Space Blue */
  --bg-darker: #050810;
  --bg-light: #ffffff;
  --bg-gray: #f3f4f6;
  
  --glass-bg: rgba(10, 15, 29, 0.7);
  --glass-border: rgba(255, 215, 0, 0.2);
  
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

/* Gradient Text Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 6rem 0;
}

/* Eye-Catching Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #ffaa00);
  color: #000;
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled, 
.navbar[style*="background"] {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo img {
  height: 55px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--primary-color);
  border-radius: 50px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  background: none;
  border: none;
}

/* Bulletproof Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  /* Stacking Context Fix */
  isolation: isolate; 
  background-color: var(--bg-darker);
}

/* Fix: The background container must be absolute so it doesn't break Flexbox */
.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; /* Keep it at back */
  overflow: hidden;
}

.hero-background video {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* Darker gradient for better text legibility when it appears */
  background: linear-gradient(135deg, rgba(10, 15, 29, 0.95) 0%, rgba(5, 8, 16, 0.85) 100%);
  z-index: 1;
  /* Starts invisible so the video plays clearly */
  opacity: 0;
  animation: fadeInOverlay 1.5s ease-in-out 3.5s forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  width: 100%;
  /* Starts hidden, waits for overlay to darken, then fades in gracefully */
  opacity: 0;
  animation: revealContent 1.5s cubic-bezier(0.4, 0, 0.2, 1) 4s forwards;
}

@keyframes revealContent {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  word-wrap: break-word; /* Prevent overflow */
}

.hero-content h1 span {
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Section Titles */
.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle {
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 3.5rem;
  color: var(--text-dark);
}

.bg-dark .section-title {
  color: var(--text-light);
}

/* About Section */
.about-snippet {
  background-color: var(--bg-light);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: #4b5563;
}

.about-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 0 2px var(--primary-color);
  border-radius: 30px;
  opacity: 0.5;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  display: block;
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.08);
}

/* Services Grid (Eye-Catching Cards) */
.services-section {
  background-color: var(--bg-gray);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}

/* Modern hover lift */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.service-image {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border-bottom: 2px solid var(--bg-gray);
}

/* Fix: Use contain so icons/badges aren't cut off */
.service-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2.5rem;
  background: var(--bg-light);
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
  color: var(--primary-dark);
}

/* Leadership (Dark Glassmorphism) */
.leadership-section {
  background: var(--bg-dark) url('https://adc-bh.com/wp-content/uploads/2024/07/ADC-website-bg-02.jpg') center/cover fixed;
  color: var(--text-light);
  position: relative;
}

.leadership-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.85);
}

.leadership-section > .container {
  position: relative;
  z-index: 2;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.leader-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition);
}

.leader-card:hover {
  background: rgba(255,215,0,0.05);
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.2);
}

.leader-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  color: #9ca3af;
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

/* Map Section */
.map-section {
  width: 100%;
  background: var(--bg-gray);
}

.map-section iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

.footer-widget h4 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px; height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--primary-color);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 0 15px var(--primary-color);
}

/* Inner Page Header */
.page-header {
  padding: 180px 0 100px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(10,15,29,0.95), rgba(10,15,29,0.7)), url('https://adc-bh.com/wp-content/uploads/2024/07/ADC-website-bg-01.jpg') center/cover fixed;
}

.page-title {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content h2 { font-size: 1.8rem; }
  .page-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 90px; left: -100%;
    width: 100%; height: calc(100vh - 90px);
    background: var(--bg-darker);
    flex-direction: column;
    align-items: center; justify-content: center;
    transition: 0.4s ease;
  }
  
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 1.5rem; }
  .section-title { font-size: 2.2rem; }
}
