:root {
  --primary-blue: #010423;
  --white: #ffffff;
  --light-gray: #f6f9fc;
  --dark-gray: #2d3748;
  --shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Typography */
h1, .display-2 {
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

h2, .display-4 {
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.3;
}

h3, .h5 {
  font-weight: 700;
  color: var(--primary-blue);
}

p, .lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--primary-blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.navbar-logo {
  height: 42px;
  width: auto;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #e6e6ff;
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-light:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1, 4, 35, 0.85) 0%, rgba(1, 4, 35, 0.65) 100%);
  z-index: -1;
}

.hero .lead {
  max-width: 800px;
  margin: 1.5rem auto;
  color: var(--white);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section.bg-light {
  background: var(--light-gray);
}

/* About Section */
#about img {
  border-radius: var(--border-radius);
}

/* Service Cards */
.service-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: #02073e;
  border-color: #02073e;
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline-primary {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 600;
  border-radius: 25px;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Why Us Cards */
.why-us-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.why-us-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Contact Form */
#contact-form .form-control {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(1, 4, 35, 0.1);
}

#contact-form .form-label {
  color: var(--primary-blue);
  font-size: 0.875rem;
}

#contact-form .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

#contact-form .invalid-feedback {
  font-size: 0.75rem;
}

#form-message.alert-success {
  color: #15803d;
  background: #f0fdf4;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

#form-message.alert-danger {
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #e6e6ff;
}

.footer .bi {
  font-size: 1.5rem;
}

/* Modals */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}

.modal-header, .modal-footer {
  border: none;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lazy Loading */
.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Accessibility */
:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .container-xl {
      max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .container-xl {
      max-width: 960px;
  }

  .hero .display-2 {
      font-size: 3.5rem;
  }

  .hero .lead {
      font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .navbar {
      padding: 0.5rem 0;
  }

  .navbar-logo {
      height: 28px;
  }

  .navbar-nav {
      text-align: center;
      margin-top: 1rem;
  }

  .nav-link {
      font-size: 0.875rem;
      padding: 0.5rem 0;
  }

  .btn-light.ms-lg-3 {
      margin-top: 1rem;
      width: 100%;
      font-size: 0.875rem;
  }

  .hero {
      height: 70vh;
      min-height: 400px;
  }

  .hero .display-2 {
      font-size: 2.5rem;
  }

  .section {
      padding: 3rem 0;
  }

  .display-4 {
      font-size: 2rem;
  }

  #about .lead, #about p {
      font-size: 1rem;
  }

  .footer .col-md-4 {
      margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .container-xl {
      max-width: 720px;
  }

  .hero .display-2 {
      font-size: 2rem;
  }

  .hero .lead {
      font-size: 0.875rem;
  }

  .hero .btn-lg {
      padding: 0.5rem 1.25rem;
      font-size: 0.875rem;
  }

  .service-card, .why-us-card {
      margin-bottom: 1.5rem;
  }

  #contact-form .form-control {
      font-size: 0.875rem;
      padding: 0.5rem;
  }

  #contact-form .form-label {
      font-size: 0.75rem;
  }

  #contact-form .btn-lg {
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .container-xl {
      max-width: 100%;
      padding-left: 15px;
      padding-right: 15px;
  }

  .navbar-logo {
      height: 24px;
  }

  .hero {
      height: 60vh;
      min-height: 350px;
  }

  .hero .display-2 {
      font-size: 1.75rem;
  }

  .hero .lead {
      font-size: 0.75rem;
  }

  .section {
      padding: 2rem 0;
  }

  .display-4 {
      font-size: 1.75rem;
  }

  .service-icon {
      font-size: 2rem;
  }

  .why-us-icon {
      font-size: 1.5rem;
  }

  .footer {
      text-align: center;
  }

  .footer .bi {
      font-size: 1.25rem;
  }
}