:root {
    --dark-blue: #1a2b4c;
    --light-blue: #2c4167;
    --orange: #ff6b35;
    --light-orange: #ff8659;
  }
  
  /* Base styles */
  body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    font-size: 16px;
  }
  
  /* Navbar Styles */
  .navbar {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled {
    background-color: var(--dark-blue) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .navbar-nav .nav-link:hover::after {
    width: 70%;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--orange) !important;
    transform: translateY(-2px);
  }
  
  .social-icons {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    margin: 0 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease !important;
  }
  
  .social-icon:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px) !important;
    color: var(--orange) !important;
  }
  
  .navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Hero Section */
  .hero-section {
    background-color: var(--dark-blue);
    min-height: auto;
    padding: 6rem 0;
    color: white;
  }
  
  .hero-section h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
  }
  
  .hero-section .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
  }
  
  .hero-section img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    animation: fadeInRight 1s ease 0.6s;
    animation-fill-mode: both;
    transition: transform 0.3s ease;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .hero-section img:hover {
    transform: scale(1.05);
  }
  
  /* About Section */
  .about-section {
    padding-top: 100px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }
  
  .about-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom right, var(--dark-blue) 49.9%, #f8f9fa 50%);
  }
  
  .about-card {
    background: white;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .about-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
  }
  
  .stats-counter {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
  }
  
  /* Services Section */
  .services-section {
    background-color: #f8f9fa;
    position: relative;
    padding: 4rem 0;
  }
  
  .service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .service-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  }
  
  .service-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: -2rem -2rem 1.5rem -2rem;
  }
  
  .service-image-container img {
    width: 100%;
    height: clamp(200px, 30vw, 300px);
    object-fit: cover;
    transition: all 0.5s ease;
  }
  
  .service-card:hover .service-image-container img {
    transform: scale(1.1);
  }
  
  .service-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 43, 76, 0.9), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: all 0.4s ease;
  }
  
  .service-card:hover .service-content-overlay {
    transform: translateY(0);
  }
  
  .service-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
  }
  
  .service-card:hover .service-icon {
    transform: rotateY(180deg);
  }
  
  .service-card h3 {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
  }
  
  .service-card h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--orange);
    transition: width 0.3s ease;
  }
  
  .service-card:hover h3::after {
    width: 100%;
  }
  
  /* Contact Section */
  #contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }
  
  #contact h2 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 3rem;
  }
  
  .form-label {
    color: var(--dark-blue);
    font-weight: 500;
  }
  
  .form-control {
    padding: 0.75rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  }
  
  /* Buttons */
  .btn-custom {
    background-color: var(--orange);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
  }
  
  .btn-custom:hover {
    background-color: var(--light-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    color: white;
  }
  
  .btn-outline {
    background-color: transparent;
    border: 2px solid white;
  }
  
  .btn-outline:hover {
    background-color: white;
    color: var(--dark-blue);
  }
  
  /* Footer Styles */
  footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
  }
  
  footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
  }
  
  .footer-content {
    padding: clamp(2rem, 4vw, 5rem) 0 1rem;
    position: relative;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-section h4 {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .footer-section h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
  }
  
  .footer-section:hover h4::after {
    width: 100%;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  .footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
  }
  
  .footer-section ul li a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    color: var(--orange);
    transform: translateX(10px);
  }
  
  .footer-section ul li a:hover::before {
    width: 100%;
  }
  
  .footer-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-right: 1.5rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
  }
  
  .footer-social a:hover {
    color: var(--orange);
    transform: translateY(-5px) scale(1.2);
  }
  
  .footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
  }
  
  .footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Fix 1: Properly structured media queries */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .about-card, .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--dark-blue);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .social-icons {
    border-left: none;
    margin: 1rem 0;
    padding: 0;
    justify-content: center;
  }

  .navbar-nav .nav-link {
    text-align: center;
    color: white !important;
    padding: 0.75rem;
  }
  
  /* Move hero section changes earlier */
  .hero-section {
    text-align: center;
  }
  
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-section .btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn-custom {
    width: 100%;
    max-width: 300px;
  }

  .service-card {
    margin-bottom: 30px;
  }
}

/* Fix 2: Service cards grid system */
.services-section .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0;
}

.services-section .col-lg-4 {
  width: 100%;
  padding: 0;
}

/* Fix 3: Image responsiveness */
.service-image-container img {
  width: 100%;
  height: clamp(200px, 30vw, 300px);
  object-fit: cover;
}

/* Fix 4: Footer responsive layout */
@media (max-width: 768px) {
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-social {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-section form {
    padding: 0 1rem;
  }
}

/* Fix 5: Small screen optimizations */
@media (max-width: 576px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .service-card {
    margin: 0 1rem 2rem;
  }
  
  .navbar-brand img {
    height: 40px;
  }
}
  
  /* Print styles */
  @media print {
    .navbar,
    .hero-section,
    .footer,
    .social-icons,
    .btn-custom {
      display: none;
    }
  
    body {
      font-size: 12pt;
      color: #000;
    }
  
    .container {
      width: 100%;
      max-width: none;
    }
  
    .about-card,
    .service-card {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ddd;
    }
  }