html {
  scroll-behavior: smooth;
}

/* Container width constraint */
.container-custom {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

header > div.container-custom.px-4.py-4.flex.justify-between.items-center > div{
    width: 40%;
}

header img{
    width: 40%;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Custom hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* Brand gradient */
.brand-gradient {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.brand-gradient-alt {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Text color for brand */
.brand-blue {
  color: #1a365d;
}

.brand-dark {
  color: #2d3748;
}

/* Hero slider fixes */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure hero section is properly sized */
#hero-section {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

/* Slider container */
#hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  /* padding: 200px 0; */
}

footer img{
    border-radius: 0.5rem;
}

@media only screen and (min-width: 1180px) and (max-width: 1279px) {
  footer div div.grid.grid-cols-1 {
    gap: 2rem;
  }

  footer > div > div.grid.grid-cols-1 > div:nth-child(2) {
    padding-left: 40px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1179px) {
  
  header > div.container-custom.px-4.py-4.flex.justify-between.items-center > div{
    width: 30%;
}

header img{
    width: 80%;
}
  
    .container-custom {
    max-width: 98vw;
    margin-left: auto;
    margin-right: auto;
  }

  #hero-section {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
  }

  /* Slider container */
  #hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  #services > div > div.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about > div > div {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #about > div > div > div.relative {
    order: 1;
  }
  #about > div > div > div {
    order: 2;
  }

  #testimonials .text-gray-700 {
    min-height: 160px;
  }

  footer img{
    width: 70%;
  }

  footer > div > div.grid.grid-cols-1 > div:nth-child(even) {
    padding-left: 40px;
  }

  footer > div > div.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4.gap-12.mb-12{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


}


@media only screen and (min-width: 767px) and (max-width: 1023px) {


      header > div.container-custom.px-4.py-4.flex.justify-between.items-center > div{
    width: 20%;
}

header img{
    width: 100%;
}


  footer img{
    width: 70%;
  }

  .container-custom {
    max-width: 100vw; 
    margin-left: auto;
    margin-right: auto;
  }

  header > div.container-custom{
    /* flex-direction: column;
    align-items: flex-start;
    align-content: flex-start; */
    gap: 20px;
  }

  header > nav.items-center{
        align-items: flex-end !important;
        gap: 10px;
  }

.space-x-8 > :not([hidden]) ~ :not([hidden]){
    margin-left: 15px !important;
}


  #hero-section {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
  }

  /* Slider container */
  #hero-slider {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  #services > div > div.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about > div > div {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #about > div > div > div.relative {
    order: 1;
  }
  #about > div > div > div {
    order: 2;
  }

.md\:grid-cols-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

 #testimonials .px-4{
    padding: 0 1.5rem;
}

  #testimonials .text-gray-700 {
    min-height: 160px;
  }

  footer > div > div.grid.grid-cols-1 > div:nth-child(even) {
    padding-left: 40px;
  }
}



@media only screen and (min-width: 320px) and (max-width: 767px) {

    h2{
        font-size: 30px !important;
        line-height: 40px;
    }

      header > div.container-custom.px-4.py-4.flex.justify-between.items-center > div{
    width: 100%;
}


 header img{
    width: 70%;
 }


  footer img{
    width: 70%;
  }

      #hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
  }

  /* Slider container */
  #hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
  }
    #about > div > div {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #about > div > div > div.relative {
    order: 1;
  }
  #about > div > div > div {
    order: 2;
  }
  
   #testimonials .px-4{
    padding: 0 1.5rem;
}
    
}
