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

:root {
  --primary-black: #000000;
  --secondary-black: #1a1a1a;
  --light-bg: #ffffff;
  --light-secondary: #f8f8f8;
  --light-card: #ffffff;
  --text-dark: #000000;
  --text-muted: #333333;
  --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
  --shadow-black: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.25);
  --glow-black: 0 0 20px rgba(0, 0, 0, 0.3);
  --glow-strong: 0 0 40px rgba(0, 0, 0, 0.5);
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Enhanced Background Effects */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 0, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes bgPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER DEFAULT (Transparent with White Text for Video) */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1.5vh 0;
  height: 10vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  max-height: 100%;
}

/* 1. DEFAULT STATE (Top of page) */
/* Uses the White logo to stand out against the video */
.logo-icon {
  width: 10vh;
  height: 10vh;
  /* CHANGE THIS: Points to your white logo */
  background: url("logo-white.png") center/contain no-repeat;
  animation: logoFloat 3s ease-in-out infinite alternate;
  transition: background-image 0.3s ease; /* Smooth transition when swapping images */
}

/* 2. SCROLLED STATE (White background) */
/* Switches back to the normal/dark logo so it's visible on white */
header.scrolled .logo-icon {
  /* CHANGE THIS: Points back to your original logo */
  background-image: url("logo.png");
}

@keyframes logoFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(var(--glow-black));
  }
  100% {
    transform: translateY(-5px) rotate(2deg);
    filter: drop-shadow(var(--glow-strong));
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* Logo Text - Default White for Video */
.logo-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff; /* White */
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text .tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -5px;
}

/* Nav Links - Default White for Video */
.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* === SCROLLED HEADER STATE (White Background with Black Text) === */
header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-black);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled .logo-text h1 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: var(--glow-black);
}

header.scrolled .logo-text .tagline {
  color: var(--text-muted);
}

header.scrolled .nav-links a {
  color: var(--text-dark);
  text-shadow: none;
}

header.scrolled .nav-links a:hover {
  color: var(--primary-black);
  text-shadow: var(--glow-black);
}

/* Nav Link Underline Effect */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary); /* Keeps gradient for underline */
  transition: width 0.3s ease;
}

header.scrolled .nav-links a::after {
  background: var(--gradient-primary);
}

/* White underline for non-scrolled state */
.nav-links a::after {
  background: #ffffff;
}

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

/* Update the Hero Section to force centering */
.hero {
  position: relative;
  z-index: 2;
  background: var(--gradient-bg);

  /* === NEW CENTERING CODE === */
  min-height: 100vh; /* Forces section to be at least full screen height */
  display: flex; /* Enables Flexbox */
  align-items: center; /* Centers Vertically (Top to Bottom) */
  justify-content: center; /* Centers Horizontally (Left to Right) */
  text-align: center; /* Centers the text lines themselves */
  padding: 80px 20px; /* Adds breathing room on mobile */
}

/* Update Hero Content to ensure it doesn't drift left */
.hero-content {
  z-index: 2 !important;
  max-width: 900px;
  width: 100%; /* Ensures it can take full width if needed */
  position: relative;
  margin: 0 auto; /* centers the container itself */
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--primary-black);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 600;
  animation: slideInUp 1.5s ease-out;
  text-shadow: var(--glow-black);
}

.hero h2 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #000000, #1a1a1a, #000000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--glow-strong);
  animation: slideInUp 1.5s ease-out 0.3s both;
  line-height: 1.1;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  color: var(--text-muted);
  line-height: 1.7;
  animation: slideInUp 1.5s ease-out 0.6s both;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1.5s ease-out 0.9s both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 35px;
  background: var(--gradient-primary);
  color: var(--light-bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-black);
  cursor: pointer;
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  filter: drop-shadow(var(--glow-strong));
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--primary-black);
}

.cta-button.secondary:hover {
  background: var(--primary-black);
  color: var(--light-bg);
}

/* Enhanced Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--primary-black);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: var(--glow-black);
}

.section h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #000000, #1a1a1a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--glow-black);
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-black);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(var(--glow-black));
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--light-bg);
  font-weight: bold;
  box-shadow: var(--shadow-black);
}

.card h4 {
  color: var(--primary-black);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: var(--glow-black);
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Enhanced Stats Section */
.stats {
  background: rgba(248, 248, 248, 0.9);
  padding: 100px 0;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  text-align: center;
}

.stat-item {
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-black);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  filter: drop-shadow(var(--glow-black));
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  text-shadow: var(--glow-strong);
}

.stat-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 50px;
  border-radius: 25px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-black);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-black);
  box-shadow: var(--glow-black);
  background: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.submit-btn {
  background: var(--gradient-primary);
  color: var(--light-bg);
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 100%;
  box-shadow: var(--shadow-black);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  filter: drop-shadow(var(--glow-strong));
}

/* Enhanced Footer */
footer {
  background: rgba(248, 248, 248, 0.9);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo .logo-icon {
  width: 50px;
  height: 50px;
}

.footer-info h4 {
  color: var(--primary-black);
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-shadow: var(--glow-black);
}

.footer-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-black);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  opacity: 0.3;
  box-shadow: var(--glow-black);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-150px) rotate(180deg);
    opacity: 0.1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Video Background Styles */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Behind content */
}

.back-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%); /* Centers the video */
  object-fit: cover; /* Ensures video covers area without stretching */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1; /* Above video, behind text */
}

/* Intro Video Section */
#video-intro {
  height: 100vh; /* Takes up full viewport height */
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000; /* Fallback color */
}

#video-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills screen without stretching */
  position: absolute;
  top: 0;
  left: 0;
}

/* Bouncing Scroll Arrow Animation */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}
