/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  color: white;
  overflow: hidden;
  z-index: 1;
}

/* Background Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* Consistent overlay for text contrast - no effect on fading images */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 43, 85, 0.65) 0%, rgba(13, 43, 85, 0.3) 50%, rgba(13, 43, 85, 0.65) 100%);
  z-index: 0;
}

/* Animation for 3 slides */
.hero-slide:nth-child(1) { animation: hero-fade 15s infinite; }
.hero-slide:nth-child(2) { animation: hero-fade 15s infinite 5s; }
.hero-slide:nth-child(3) { animation: hero-fade 15s infinite 10s; }

@keyframes hero-fade {
  0%, 10% { opacity: 0; }
  15%, 33.33% { opacity: 1; }
  38.33%, 50% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-tagline {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 5px 15px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 20px;
  color: white;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
}

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

/* ==========================================================================
   Partner Logos
   ========================================================================== */
.partners {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.partners-title {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.partners-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.6;
  filter: grayscale(100%);
  gap: 20px;
}

.partner-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Heritage (About) Section - Simplified Layout
   ========================================================================== */

.heritage-intro {
  margin-bottom: 50px;
  text-align: left;
}

.heritage-intro .section-subtitle {
  display: inline-block;
  margin-bottom: 10px;
}

.heritage-intro .section-title {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.heritage-text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 900px;
}

/* 3-image grid below text */
.heritage-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.heritage-image-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  height: 450px;
}

.heritage-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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


/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-mid) 100%);
  border-top: none;
  border-bottom: 4px solid var(--primary-red);
  padding: 60px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Expertise (Services)
   ========================================================================== */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

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

.service-card {
  background-color: #ffffff;
  padding: 40px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-red);
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue-pale);
  color: var(--primary-blue-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  min-height: 70px;
}

.service-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--primary-red-hover);
}

/* ==========================================================================
   Portfolio (Milestones)
   ========================================================================== */
.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header p {
  color: #a0a0a0;
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: 6px;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-color: #161a23;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
  border-bottom: 3px solid var(--primary-red);
}

.portfolio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-tag-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.portfolio-content {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
}

.portfolio-card h3 {
  color: white;
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.portfolio-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.portfolio-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-icon {
  color: var(--primary-red);
  font-size: 1rem;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.meta-text {
  display: flex;
  flex-direction: column;
}

.meta-text span {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.meta-text strong {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.gallery-btn-container {
  text-align: center;
  margin-top: 50px;
}

/* ==========================================================================
   Safety Section
   ========================================================================== */
.safety-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.safety-title {
  font-size: 3.5rem;
  font-style: italic;
  margin-bottom: 40px;
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.safety-feature {
  display: flex;
  gap: 15px;
}

.safety-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-red);
  flex-shrink: 0;
}

.safety-feature h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.safety-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.safety-image-wrapper {
  position: relative;
  padding: 20px;
}

.safety-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-top: 3px solid var(--primary-red);
  border-left: 3px solid var(--primary-red);
}

.safety-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  border-bottom: 3px solid var(--primary-red);
  border-right: 3px solid var(--primary-red);
}

/* ==========================================================================
   Responsive (Index)
   ========================================================================== */
@media (max-width: 1200px) {

  .safety-container {
    gap: 40px;
  }

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

  .stats-grid {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 500px;
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .safety-grid {
    gap: 20px;
  }

  .safety-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .partners-grid {
    justify-content: center;
    gap: 15px;
  }

  .partner-logo {
    font-size: 1rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

  .stats-section {
    padding: 40px 0;
  }

  .heritage-images-grid {
    grid-template-columns: 1fr;
  }

  .heritage-image-box {
    height: 350px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .safety-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .service-card {
    padding: 25px;
  }
}