/* ========================
   HERO SECTION
   ======================== */
.hero {
  position: relative;
  z-index: 1;
  height: 70vh;
  background: url('../img/index-hero1.jpg') center/cover no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  padding-top: 80px; /* To accommodate navbar height */
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* ========================
   BUTTON STYLES
   ======================== */
.btn-primary,
.btn-secondary {
  background-color: #ff6f3c;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 111, 60, 0.4);
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #e65a24;
}

footer .btn-secondary {
  margin-top: 1rem;
}

/* ========================
   SERVICES SECTION
   ======================== */
section.services {
  padding: 4rem 0 2rem;
  background: url('../img/index-services-bg.jpg') no-repeat center center;
  background-size: 100% 100%;
}

section.services h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #000000;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem;
  flex: 1 1 300px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover,
.service-card:focus {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: #000000;
}

.service-card p {
  font-size: 1rem;
  color: #0a0a0a;
  line-height: 1.4;
}



/* ========================
   PORTFOLIO SECTION
   ======================== */
section.portfolio {
  padding: 4rem 0 2rem;
  background: url('../img/index-portfolio-bg.jpg') no-repeat center center;
  background-size: 100% 100%;
  box-shadow: inset 0 20px 20px -20px rgba(0, 0, 0, 0.05);
}

section.portfolio h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #222;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  background: white;
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  background-size: 100% 100%;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 111, 60, 0.85);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay,
.portfolio-card:focus .overlay {
  opacity: 1;
}

/* ========================
   WHY CHOOSE US SECTION
   ======================== */
section.why {
  background: #ff6f3c;
  color: white;
  padding: 4rem 20px;
  text-align: center;
}

section.why h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.why-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  width: 45%;
  min-width: 250px;
  max-width: 300px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ========================
   CALL TO ACTION SECTION
   ======================== */
.call-to-action {
  background: #222;
  color: white;
  text-align: center;
  padding: 3rem 20px;
}

.call-to-action h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* ========================
   RESPONSIVE STYLES
   ======================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero {
    height: auto;
    padding: 4rem 20px 3rem;
  }
}

/* ========================
   SPACER UTILITY
   ======================== */
.spacer {
  height: 70px;
}


/* ======= SLIDER STYLES ======= */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
}

.slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.slide-card {
  flex: 0 0 auto;
  width: clamp(250px, 30vw, 400px);
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  border: 5px solid black;
  background: linear-gradient(to bottom, #222 0%, #000 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2) inset, 0 2px 15px rgba(0, 0, 0, 0.7);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.5rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-card:hover .caption,
.slide-card.show-caption .caption {
  opacity: 1;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

@media (max-width: 768px) {
  .slide-card {
    width: 45vw;
  }
}
