/* Container Pattern */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Button Styles */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-red {
  background-color: #8B1A1A;
  color: #ffffff;
  padding: 16px 40px;
}

.btn-red:hover {
  background-color: #6b1414;
}

/* Section 1: Hero */
.hero-section {
  min-height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('../images/home/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  color: #ffffff;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 650px;
}

.highlight-orange {
  color: #F79A19;
}

.hero-content p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.85);
}

/* Section 2: Services Intro */
.services-intro-section {
  background-color: #FFF8F0;
  padding: 60px 0;
  text-align: center;
}

.services-intro-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #F79A19;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.intro-text p {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  max-width: 850px;
  margin: 0 auto 16px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* Section 3: Product Cards */
.products-section {
  background-color: #f8f9fa;
  padding: 60px 0 80px;
}

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

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: #F79A19;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-circle img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.read-more {
  color: #F79A19;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #d8800c;
}

.products-action {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Section 4: Certification / Stats */
.cert-stats-section {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/home/cert-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
}

.cert-subtitle {
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cert-stats-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.4;
}

/* Section 5: Our Projects */
.projects-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.projects-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #1a1a1a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: center;
}

.projects-grid img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

/* Section 6: Our Project Gallery */
.gallery-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.gallery-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary, #F79A19);
  border-radius: 2px;
  margin: 12px auto 0;
}

.gallery-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-slider-viewport {
  overflow: hidden;
  border-radius: 16px;
  flex: 1;
}

.gallery-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-slide {
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Placeholder styling for when images aren't added yet */
.gallery-img-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px dashed rgba(247, 154, 25, 0.3);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gallery-img-placeholder:hover {
  border-color: rgba(247, 154, 25, 0.6);
  background: linear-gradient(145deg, #444444, #333333);
}

.gallery-img-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

.gallery-img-placeholder span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* Caption below each slide */
.gallery-caption {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 0 16px 16px;
  margin-top: 0;
  border-left: 3px solid var(--color-primary, #F79A19);
}

.gallery-caption h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.gallery-caption p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0;
}

/* Navigation Arrows */
.gallery-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.gallery-arrow:hover {
  background: var(--color-primary, #F79A19);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(247, 154, 25, 0.4);
}

.gallery-arrow:active {
  transform: scale(0.95);
}

.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dot Indicators */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.gallery-dot.active {
  background: var(--color-primary, #F79A19);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(247, 154, 25, 0.4);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero ───────────────────────────────────────────────── */
  .hero-section {
    min-height: 350px;
    padding: 48px 0;
  }

  .hero-content h1 {
    font-size: 28px;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-content p {
    font-size: 14px;
    max-width: 100%;
  }

  /* ── Services Intro ────────────────────────────────────── */
  .services-intro-section {
    padding: 40px 0;
  }

  .services-intro-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .intro-text p {
    font-size: 14px;
  }

  /* ── Product Cards ─────────────────────────────────────── */
  .products-section {
    padding: 40px 0 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 24px 20px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  /* ── Cert / Stats ──────────────────────────────────────── */
  .cert-stats-section {
    padding: 50px 0;
  }

  .cert-subtitle {
    font-size: 13px;
  }

  .cert-stats-section h2 {
    font-size: 22px;
  }

  /* ── Projects Logos ────────────────────────────────────── */
  .projects-section {
    padding: 40px 0;
  }

  .projects-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  /* ── Gallery ───────────────────────────────────────────── */
  .gallery-section {
    padding: 50px 0 70px;
  }

  .gallery-section h2 {
    font-size: 28px;
  }

  .gallery-slide img,
  .gallery-img-placeholder {
    height: 240px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 480px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Hero ───────────────────────────────────────────────── */
  .hero-section {
    min-height: 300px;
    padding: 36px 0;
  }

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

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

  /* ── Services Intro ────────────────────────────────────── */
  .services-intro-section {
    padding: 32px 0;
    text-align: left;
  }

  .services-intro-section h2 {
    font-size: 17px;
    line-height: 1.4;
    text-align: left;
  }

  .intro-text p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* ── Product Cards ─────────────────────────────────────── */
  .products-section {
    padding: 32px 0 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    padding: 20px 18px;
  }

  .icon-circle {
    width: 64px;
    height: 64px;
  }

  .icon-circle img {
    width: 42px;
    height: 42px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .product-card p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .products-action {
    margin-top: 14px;
    margin-bottom: 28px;
  }

  .btn-red {
    padding: 14px 32px;
    font-size: 14px;
  }

  /* ── Cert / Stats ──────────────────────────────────────── */
  .cert-stats-section {
    padding: 40px 0;
  }

  .cert-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .cert-stats-section h2 {
    font-size: 18px;
    line-height: 1.5;
  }

  /* ── Projects Logos ────────────────────────────────────── */
  .projects-section {
    padding: 32px 0;
  }

  .projects-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* ── Gallery ───────────────────────────────────────────── */
  .gallery-section {
    padding: 40px 0 56px;
  }

  .gallery-header {
    margin-bottom: 28px;
  }

  .gallery-section h2 {
    font-size: 24px;
  }

  .gallery-subtitle {
    font-size: 13px;
  }

  .gallery-slider-wrapper {
    gap: 0;
  }

  .gallery-slide img,
  .gallery-img-placeholder {
    height: 220px;
  }

  .gallery-caption h3 {
    font-size: 13px;
  }

  .gallery-caption p {
    font-size: 12px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-arrow-left {
    left: 8px;
  }

  .gallery-arrow-right {
    right: 8px;
  }

  .gallery-arrow:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .gallery-dots {
    margin-top: 22px;
  }
}