:root {
  --primary-color: #0056b3; /* Deep Blue */
  --primary-dark: #004494;
  --accent-color: #00c6ff; /* Vibrant Cyan */
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --font-main: "Outfit", sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.overflow-x-hidden {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Video Loader */
.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid var(--accent-color);
  animation: spin 1s linear infinite;
  z-index: 5; /* Above video, below content */
  transition: opacity 0.5s ease;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-desc {
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

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

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.white-btn {
  background: var(--white);
  color: var(--primary-color);
}

.white-btn:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 5px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--primary-color);
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

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

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-nav-list {
  text-align: center;
}

.mobile-nav-list li {
  margin: 20px 0;
}

.mobile-nav-list a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
  max-width: 100vw; /* Prevent overflow */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
  z-index: -1;
}

.hero-content {
  z-index: 1;
  padding-top: 60px; /* Offset for header */
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.about {
  background: var(--bg-white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mission-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.mission-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* Services Section */
.services {
  background: var(--bg-light);
}

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

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 0.05;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  background: var(--primary-color);
}

.service-card:hover .icon-box i {
  color: var(--white);
}

.icon-box i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Why Choose Us */
.why-us {
  background: var(--white);
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.features-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.features-list i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.why-us-visual {
  /* Removed gradient background for clean image look */
  height: auto; 
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.trust-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.trust-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Testimonials */
.testimonials {
  background: var(--bg-light);
}

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

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
}

.reviewer h4 {
  font-weight: 700;
  margin-bottom: 2px;
}

.reviewer p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

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

.contact-item i {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-item h4 {
  margin-bottom: 5px;
}

.contact-form-wrapper {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 15px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  select {
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.full-width {
  width: 100%;
}

/* Footer */
.footer {
    background: #0b1120;
    color: #a0aec0;
    padding-top: 80px;
    padding-bottom: 20px;
    font-size: 0.95rem;
}

.footer-top {
    margin-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Animations using Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delays */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}

/* Page Header (for sub-pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--black);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: var(--text-light);
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .nav {
    display: none;
  }
  .sm-hidden {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 3rem;
  }

  .about-container,
  .why-us-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-visual,
  .why-us-visual {
    order: -1;
    margin-bottom: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem; /* Reduced from 2.2rem */
  }
  
  .hero-subtitle {
     font-size: 0.95rem;
  }

  /* Compact buttons for mobile */
  .hero-buttons .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: row; /* Keep side by side if possible, or wrap */
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  /* Footer Mobile Optimization */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-desc, 
  .footer-contact-list li,
  .footer-links a {
    word-wrap: break-word; /* Prevent long text from overflowing */
    overflow-wrap: break-word;
  }
}

/* Aggressive Overflow Protection */
body, html {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

.hero-video {
    width: 100%;
    max-width: 100%; /* Strict constraint */
}
