/* HERO */
.service-hero {
  position: relative;
  background: url('/assets/images/Background/city.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f4f4f4;
  text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
}

/* FILTER */
.filter-container {
  text-align: center;
  margin: 3rem 0 1rem;
}

.filter-btn {
  background: #111;
  border: 1px solid #c4a668;
  color: #c4a668;
  padding: 0.6rem 1.2rem;
  margin: 0 0.3rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #c4a668;
  color: #111;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
/* ===============================
   SERVICES SECTION
================================ */
.saitech-services {
  background: #0a0a0a;
  color: #fff;
  position: relative;
  height: auto;          /* ✅ auto size */
  min-height: unset;
  overflow: visible;
  padding: 6rem 0 8rem;  /* spacing belongs here */
  outline: 2px solid rgba(255, 0, 0, 0);
}

.saitech-services-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  height: auto;          /* ✅ auto size */
}

.saitech-section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.saitech-section-subtitle {
  text-align: center;
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===============================
   CAROUSEL WRAPPER
================================ */
.saitech-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: 1rem;
}

.saitech-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

/* ===============================
   CARD
================================ */
.saitech-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 280px; /* controls card width */
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  animation: saitechCardFadeIn 0.8s forwards;
}

.saitech-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%) brightness(0.8);
}

.saitech-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(1);
}

.saitech-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 1rem 0.4rem 1rem;
}

.saitech-card p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0 1rem 1rem 1rem;
}

/* ===============================
   CARD ANIMATION
================================ */
.saitech-card:nth-child(1) { animation-delay: 0.2s; }
.saitech-card:nth-child(2) { animation-delay: 0.4s; }
/* Add more if needed */

@keyframes saitechCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .saitech-card {
    flex: 0 0 220px;
  }
}

@media (max-width: 480px) {
  .saitech-card {
    flex: 0 0 180px;
  }
}



/* SERVICES PAGE */
.services-page {
  padding: 6rem 2rem;
  background: #0a0a0a;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
}

.services-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: #c4a668;
  margin-bottom: 0.5rem;
}

.services-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 3rem;
}

/* FILTER BUTTONS */
.services-filter {
  text-align: center;
  margin-bottom: 3rem;
}

.services-filter button {
  background: transparent;
  border: 2px solid #c4a668;
  color: #c4a668;
  padding: 0.5rem 1.2rem;
  margin: 0 0.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-filter button.active,
.services-filter button:hover {
  background: #c4a668;
  color: #111;
}

/* GRID */
.services-grid {
  position: static;      /* ✅ critical */
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 0;            /* padding belongs to container */
}

/* SERVICE CARD */
.service-card {
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  will-change: transform;
}


.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0 1rem 1rem 1rem;
  color: #aaa;
  font-size: 0.95rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 80px rgba(0,0,0,0.8);
}

.service-card:hover img {
  transform: scale(1.05);
}


/* MODAL */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: #111;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  color: #fff;
  text-align: center;
  z-index: 10;
  transform: scale(0.8);
  opacity: 0;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #c4a668;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: #222;
  border: 1px solid #c4a668;
  color: #c4a668;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #c4a668;
  color: #111;
}

.modal-tab-content {
  display: none;
  margin-top: 1rem;
}

.modal-tab-content.active {
  display: block;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.modal-gallery img,
.modal-gallery video {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

#modalDownloads li {
  margin-bottom: 0.8rem;
  list-style: none;
}

#modalDownloads li a {
  color: #c4a668;
  text-decoration: underline;
}

/* Make body full height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Page wrapper flex column */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content grows to fill space */
.page-content {
  flex: 1;
}

/* Footer sticks to bottom if page is short */
.footer {
  background: #0f0f0f; /* dark cinematic */
  color: #fff;
  padding: 3rem 2rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
