/* ==========================================
   HOME PAGE
========================================== */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==========================================
   HERO
========================================== */

/* ==========================================
   HERO SLIDER
========================================== */

.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;

  /* Default image shown immediately */
  background: url("/images/home/banner1.jpg") center center/cover no-repeat;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;

  animation: heroSlider 20s infinite;
}

/* Images */

.slide1 {
  background-image: url("/images/home/pexels-irrabagon-38087280 (1).jpg");
  animation-delay: 0s;
}

.slide2 {
  background-image: url("/images/home/pexels-oleksiy-yeshtokyn-2147541276-38716861.jpg");
  animation-delay: 5s;
}

.slide3 {
  background-image: url("/images/home/pexels-robertkso-12909031.jpg");
  animation-delay: 10s;
}

.slide4 {
  background-image: url("/images/home/pexels-tomfisk-30443059.jpg");
  animation-delay: 15s;
}

/* Fade Animation */

@keyframes heroSlider {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  30% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Overlay */

.hero-overlay {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Content */

.hero-content {
  text-align: center;
  width: 80%;
  color: #fff;
}

.hero-content h4 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 65px;
  color: #ffd700;
  margin-bottom: 15px;
}

.hero-content h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  max-width: 850px;
  margin: auto;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* Buttons */

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

.btn-primary {
  background: #c8102e;
  color: #fff;

  padding: 15px 35px;

  text-decoration: none;

  border-radius: 6px;

  transition: 0.3s;
}

.btn-primary:hover {
  background: #9d0c22;
}

.btn-secondary {
  border: 2px solid #fff;

  color: #fff;

  padding: 15px 35px;

  text-decoration: none;

  border-radius: 6px;

  transition: 0.3s;
}

.btn-secondary:hover {
  background: #fff;

  color: #123d78;
}

/* ==========================================
   ABOUT
========================================== */

.about {
  padding: 80px 0;
}

.about .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: 450px; /* Change this value as needed */
  object-fit: cover; /* Prevents image distortion */
  border-radius: 10px;
}
.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 40px;
  color: #4274d9;
  margin-bottom: 25px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #555;
}

/* ==========================================
   SERVICES
========================================== */

.services {
  padding: 80px 0;
  background: #f5f7fb;
}

.services h2 {
  text-align: center;
  font-size: 40px;
  color: #4274d9;
  margin-bottom: 50px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

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

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 22px;
  color: #4274d9;
  padding: 20px;
}

.service-card p {
  padding: 0 20px 25px;
}

/* ==========================================
   WHY US
========================================== */

.why-us {
  padding: 80px 0;
}

.why-us h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #4274d9;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.why-box {
  background: #fff;
  padding: 30px;
  border-left: 5px solid #123d78;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.why-box:hover {
  transform: translateY(-5px);
}

.why-box h3 {
  margin-bottom: 15px;
  color: #4274d9;
  font-size: 24px;
}

.why-box p {
  color: #555;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 50px;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .about .container {
    flex-direction: column;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
    padding: 60px 20px;
  }

  .hero-content {
    width: 95%;
  }

  .hero-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .hero-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
  }

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

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

  .about-content h2,
  .services h2,
  .why-us h2 {
    font-size: 30px;
  }

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

  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
    padding: 40px 15px;
  }

  .hero-content h4 {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content h2 {
    font-size: 16px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 15px;
    font-size: 13px;
  }

  .about-content h2,
  .services h2,
  .why-us h2 {
    font-size: 24px;
  }
}

.gallery-preview {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}

.gallery-heading h2 {
  color: #4274d9;
  font-size: 28px;
  margin-bottom: 10px;
}

.gallery-heading h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #4274d9;
  display: block;
  margin: 10px auto 15px;
}

.gallery-heading p {
  color: #555;
  font-size: 15px;
  margin-bottom: 30px;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-button {
  margin-top: 30px;
}

.gallery-button a {
  display: inline-block;
  padding: 11px 25px;
  background: #4274d9;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  transition: background 0.3s ease;
}

.gallery-button a:hover {
  background: #315fac;
}
