/* GLOBAL SIDE SPACING */
.energy-secondSection,
.energy-thirdSection,
.energy-fifthSection,
.energyImages3-gallerySection,
.energy-seventhSection {
    padding-inline: clamp(2rem, 17vw, 17%);
    box-sizing: border-box;
    }

.energy-hero-section,
.energy-fourthSection {
    padding-inline:  clamp(2rem, 17vw, 17%);
    margin-inline: 0;
    width: 100%;
}

/* Hero Section */
.energy-hero-section {
    background-image: linear-gradient(to right, rgba(11, 28, 45, 0.5) 0%, rgba(11, 28, 45, 0.1) 50%), url("../pictures/energy-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: clamp(5rem, 22vh, 30rem);
}

.energy-hero-content {
    position: relative;
    color: #ffffff;
    text-align: center;
    margin-top: 10vh;
}

.energy-hero-content::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    background: linear-gradient(
        to bottom,
        rgba(11, 28, 45, 0.35),
        rgba(11, 28, 45, 0.15)
    );
    z-index: -1;
    border-radius: 0.75rem;
}

.energy-title1 {
    display: inline-block;
    font-size: clamp(1.2rem, 2vw, 3rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:#003366;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0.06rem 0.06rem 0.3rem rgba(0, 0, 0, 0.3);
}

.energy-hero-content h1 {
    font-size: clamp(1.9rem, 3.2vw, 3.3rem);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
    text-shadow: 0.06rem 0.06rem 0.3rem rgba(0, 0, 0, 0.7);
}

.energy-hero-content h2 {
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    font-weight: 600;
    margin-top: 5rem;
    line-height: 1.65;
    max-width: 65ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0.06rem 0.06rem 0.3rem rgba(0, 0, 0, 0.7);
}


/* Second section - CONTEXT  */

/* CHARTS GLOBAL STYLING */
.visual-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

    aspect-ratio: 4 / 3;
    min-height: 200px;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    transition: transform 0.35s ease, box-shadow 0.35s ease;

    container-type: size;
    container-name: visual-card;
}


.energy-secondSection .visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 119, 182, 0.18);
}

.energy-secondSection {
    background: linear-gradient(#edf3f9 0%, #f8fbff 100%);
    padding-block: clamp(4rem, 8vw, 8rem);
    text-align: center;
}

.energy-secondSection h2 {
    color: #003366;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* Main layout container */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 4rem);
    width: 100%;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Text below */
.context-description {
   font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 65ch;
    margin-inline: auto;
    color: #003366;
}

    /* Third section - ROLE */

.visual-card svg,
.visual-card canvas {
    border-radius: 30px;
    width: 100%;
    height: 100%;
} 
/* Map + Pie chart + text */
.energy-thirdSection {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #d7e6f6 0%, #b4c9e6 100%);
    padding-block: clamp(4rem, 8vw, 8rem);
    text-align: center;
    position: relative;
}

.energy-thirdSection h2 {
    color: #003366;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* Map + Pie chart */
.rol-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 4rem);
    width: 100%;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}


.energy-thirdSection .visual-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 51, 102, 0.25);
}

/* Text box */
.rol-description {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  width: 100%;
}

.rol-description ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;

  max-width: 60ch;           
  width: 100%;

  text-align: left;            
}

.rol-description li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding-bottom: clamp(0.8rem, 1.3vw, 1.5rem);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: #003366;
  position: relative;
  padding-left: 2rem;
}

/* bullet markers */
.rol-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4BA3D6;
  font-size: 1.5rem;
  line-height: 1;
  transform: scale(1.3);
}

/* Reveal animation */
.rol-description.visible li {
  opacity: 1;
  transform: translateY(0);
}

.rol-description.visible li:nth-child(1) { transition-delay: 0.3s; }
.rol-description.visible li:nth-child(2) { transition-delay: 0.8s; }
.rol-description.visible li:nth-child(3) { transition-delay: 1.3s; }

/* Fourth Section - CHALLENGES  */
.energy-fourthSection {
    position: relative;
    background: url("../pictures/energy-challenges.webp") center/cover no-repeat;
    padding-block: clamp(6rem, 10vw, 9rem) ;
    overflow: hidden;
}

.energy-fourthSection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 70%);
    z-index: 1;
}

.challenges-title {
    text-align: center;
    color: white;
    position: relative;
    display: inline-block;
    margin-bottom: clamp(1rem, 3vw, 2%);
    z-index: 1;
}

.energy-fourthSection h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    text-align: left;
    padding: clamp(0.3rem, 1vw, 1rem) clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0.12rem 0.12rem 0.25rem rgba(0, 0, 0, 0.7);
}

.challenges-border-svg {
    z-index: 2;
}

.challenges-border-rect {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawChallengesBorder 10s linear forwards;
}

@keyframes drawChallengesBorder {
    to {
        stroke-dashoffset: 0;
    }
}

            /* Carousel  */

.energy-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible; 
    z-index: 5;
}

.energy-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 5;
}

.energy-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.energy-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    border-radius: 1.25rem;
    box-sizing: border-box;
}

.energy-carousel-item h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 1.25rem;
    border-bottom: solid 0.06rem #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.7);
}

.energy-carousel-item h4 {
    color: #ffffff;
    font-size: clamp(1rem, 1vw, 1.5rem);
    font-weight: 600;
    margin-top: 0.9rem;
    text-shadow: 0.12rem 0.12rem 0.25rem rgba(0, 0, 0, 0.7);
    font-style: italic;
}

.fa-thumbtack{
    transform: rotate(45deg);
    padding-right: 1rem;
}

.energy-carousel-item p {
    color: #fff;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 450;
    line-height: clamp(1.6rem, 3vw, 2rem);
    padding-top: 1rem;
    text-shadow: 0.12rem 0.12rem 0.25rem rgba(0, 0, 0, 0.7);
}

.energy-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 0.6rem;
    cursor: pointer;
    font-size: 1.7rem;
    border-radius: 20%;
    z-index: 2;
    overflow: visible;
}

.energy-carousel-control.prev {
    left: -3rem;
}

.energy-carousel-control.next {
    right: -3rem;
    
}

.energy-carousel-control:hover {
    background: rgba(0, 0, 0, 0.6);
}


/* Fifth section - IMPORTANCE */
.energy-fifthSection {
    background: linear-gradient(135deg, #fdfdfd 0%, #eaf1f9 100%);
    text-align: center;
    padding-block: clamp(5vh, 15vh, 18vh) ;
    position: relative;
}

.energy-fifthSection h2 {
    color: #003366;
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    padding-bottom:clamp(2rem, 7vw, 7rem) ;
}

.energy-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(6rem, 10vw, 18rem), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.energy-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:baseline;

    padding: clamp(1.5rem, 2vw, 2.5rem);
    background: rgb(0, 119, 182);
    color: #fff;
    border-radius: 1rem;
    box-sizing: border-box;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
    will-change: transform;
    
}

.energy-icon-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

/* Icons */
.energy-icon-item i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: rgb(243, 219, 81);
}

/* Card titles */
.energy-icon-item h3 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.5);
}

/* Description text */
.energy-description {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 65ch;
    margin-inline: auto;
    color: #003366;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.energy-description.visible {
  opacity: 1; 
}


        /*  Sixth section - FUTURE */

.energyImages3-gallerySection {
    position: relative;
    text-align: center;
    padding-block: clamp(5vh, 15vh, 15vh) ;
    background: linear-gradient( #d8e5f3 0%, #eaf3ff 100%);
    color: #111;
    overflow: hidden;
}

.energyImages3-gallerySection h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: #003366;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
}

.energyImages3-galleryWrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.energyImages3-horizontalGallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.energyImages3-horizontalGallery::-webkit-scrollbar {
    display: none; 
}

.energyImages3-item {
    flex: 0 0 auto;
    position: relative;

    width: clamp(220px, 35vw, 320px);
    aspect-ratio: 16 / 11;

    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
    cursor: pointer;
    scroll-snap-align: center;
}

.energyImages3-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.energyImages3-caption {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.energyImages3-description {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 65ch;
    margin-inline: auto;
    color: #003366;
    opacity: 0;
    transition: opacity 0.6s ease; 
}

.energyImages3-description.visible{
    opacity: 1; 
}

/* Prev/Next buttons  */
.scroll-btn3 {
    position: absolute;
    top: 35%;
    transform: translateY(-35%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.7rem;
    padding: 0.6rem;
    border-radius: 20%;
    cursor: pointer;
    z-index: 20; 
    transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-btn3:hover {
    background: rgba(0, 0, 0, 0.7);
}
.scroll-btn3.left {
    left: -2.5rem; 
}
.scroll-btn3.right {
    right: -2.5rem;
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
     overflow: hidden;
}

/* Content wrapper */
.image-lightbox-content {
     position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

/* Image */
.image-lightbox-content img {
     max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

.nav-btn{
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.3em 0.6em;
    border-radius: 50%;
    cursor: pointer;
}

/* Seventh section - CONTACT US */
.energy-seventhSection {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: clamp(8vh, 12vh, 15vh);
    background: #f8fafc;
}

.cta-box {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.cta-box h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.cta-button {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    display: inline-block;
    background: #ffffff;
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    padding: clamp(0.7rem, 1vw, 0.9rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}