/* Hero Banner Section */
.sector-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    width: 100%;
}

/* Hero Background Container and Animation Styles */
.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sector-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.sector-hero-image.active {
    opacity: 1;
    z-index: 0;
}

.sector-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    padding-left: 5%;
    z-index: 1;
}

.sector-hero-overlay h1 {
    color: white;
    font-size: 5rem;
    font-weight: bold;
    max-width: 70%;
    text-shadow: 
        3px 3px 12px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7),
        2px 2px 6px rgba(0, 0, 0, 1),
        -1px -1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    padding-left: 10%;
}

/* Title Section */
.sector-title {
    background-color: #194164;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.sector-heading {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    color: #F8B36A; /* Gold color for the heading */
}

.sector-description {
    max-width: 80%;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 1.6;
    padding: 0 2.5rem;
    text-align: center;
}

/* Illustration Sections - Add contour lines background for all animation/illustration sections */
.illustration-section,
.land-animation-section,
.land-first-section,
.env-first-section,
.env-second-section,
.env-third-section,
.survey-animation-section,
.survey-management-section,
.power-animation-section,
.oilandgas-animation-section,
.renewables-animation-section {
    background-image: url('/static/images/contour-lines-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Mobile fix: Disable fixed attachment for service sector pages */
@media (max-width: 768px) {
  .illustration-section,
  .land-animation-section,
  .environmental-animation-section,
  .survey-management-section,
  .power-animation-section,
  .oilandgas-animation-section,
  .renewables-animation-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Ensure animation images stay above the background */
.illustration-section .illustration-container,
.land-animation-section .illustration-container,
.land-first-section .land-first-container,
.env-first-section .env-first-container,
.env-second-section .env-second-container,
.env-third-section .env-third-container,
.survey-animation-section .illustration-container,
.survey-management-section .survey-management-container,
.power-animation-section .illustration-container,
.oilandgas-animation-section .illustration-container,
.renewables-animation-section .illustration-container {
    position: relative;
    z-index: 2;
}

/* Ensure all animation images maintain proper stacking */
.illustration-image,
.land-animation-image,
.land-first-image,
.env-first-image,
.env-second-image,
.env-third-image,
.survey-animation-image,
.survey-management-image,
.power-animation-image,
.oilandgas-animation-image,
.renewables-animation-image,
.downstream-animation-image {
    position: relative;
    z-index: 3;
}

/* Modern Fade-in Animations - Apply only to the images, not the background sections */
.illustration-image,
.land-animation-image,
.land-first-image,
.env-first-image,
.env-second-image,
.env-third-image,
.survey-animation-image,
.survey-management-image,
.power-animation-image,
.oilandgas-animation-image,
.renewables-animation-image,
.downstream-animation-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation when images become visible */
.illustration-image.fade-in,
.land-animation-image.fade-in,
.land-first-image.fade-in,
.env-first-image.fade-in,
.env-second-image.fade-in,
.env-third-image.fade-in,
.survey-animation-image.fade-in,
.survey-management-image.fade-in,
.power-animation-image.fade-in,
.oilandgas-animation-image.fade-in,
.renewables-animation-image.fade-in,
.downstream-animation-image.fade-in {
    opacity: 1;
    transform: translateY(0);
}