html, body {
    overflow-x: hidden;
    width: 100%;
}

/* #region FRONT PAGE */
.section1 {
    position: fixed;
    background: url('Rectifiers/Desert_Delta.avif') no-repeat center center/cover;
    background-size: cover; 
    color: black;
    flex-direction: column;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    text-align: center;
}

.section1 h1 {
    font-family: 'Arial', sans-serif;
    font-size: clamp(44px, 12vw, 120px);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    background-color: rgb(255, 255, 255,0.4);
}

.section1 h2 {
    font-family: 'Arial', sans-serif;
    font-size: clamp(12.5px, 3.75vw, 37.5px);
    border-radius: 20px;
    animation: text-grow-shrink 3s ease-in-out infinite;
    text-shadow: 0px 5px 20px rgb(255, 255, 255);
}

@keyframes text-grow-shrink {
    0% {
        font-size: clamp(12.5px, 3.75vw, 37.5px); 
    }
    50% {
        font-size: clamp(13.75px, 4.125vw, 41.25px); 
    }
    100% {
        font-size: clamp(12.5px, 3.75vw, 37.5px); 
    }
}


.scroll-down {
    position: absolute;
    bottom: 25%;
    color: rgb(255, 255, 255);
    font-size: 16px;
    cursor: pointer;
}

.section2 {
    z-index: 2;
    background-color: white;
    position: absolute; 
    top: 100vh; 
    left: 0;
    width: 100%; 
    height: fit-content; 
    padding: 20px; 
}
/* #endregion */

/* #region Delta Image */
.outer-first-part {
    display: flex;
    flex-direction: row;
    gap: 5%;
}

.outer-first-part img {
    max-width: 50%;
    height: fit-content;
}

.inner-first-part {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

.inner-first-part h1 {
    max-width: 90%;
    font-family: 'Arial', sans-serif;
    font-size: clamp(15px, 3vw, 40px);
}

.inner-first-part p {
    font-family: 'Arial', sans-serif;
    max-width: 90%;
    font-size: clamp(10px, 2.5vw, 25px);
}
/* #endregion */


.orange-color {
    color: rgb(237, 85, 35);
}

.after-image-one {
    font-family: 'Arial', sans-serif;
    font-size: clamp(10px, 2.5vw, 25px);
    margin-top: 60px;
    text-align: justify; /* Justifies the text to align evenly across the container */
    max-width: 90%; /* Ensures the text container width is controlled */
    left: 0;
    margin-top: 60px;
}





.rectifier-with-numbers {
    font-family: 'Arial', sans-serif;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto); 
    justify-content: center;
    margin: 0 5%;
    gap: 20px;
    margin-top: 60px;
}

.rectifier-section:nth-child(3) {
    grid-column: span 2; 
    display: flex;
    justify-content: center; 
    align-items: center; 
}



.rectifier-section {
    font-size: clamp(5px, 2.5vw, 25px);
    box-shadow: 5px 5px 15px black;
    padding: 10px;
    transform: perspective(1000px);
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.rectifier-section #p-1 {
    font-size: clamp(10px, 2.5vw, 25px);
}

.second-last-paragraph p {
    font-family: 'Arial', sans-serif;
    color: rgb(255, 255, 255);
    z-index: 2;
    position: relative; 
    font-size: clamp(6px, 3vw, 30px);
    text-align: center;
}

.second-last-paragraph {
    margin-top: 60px;
    background-image: url('Rectifiers/Harbour_Delta.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 50px;
    position: relative; /* To position the pseudo-element on top */
}

/* White overlay effect */
.second-last-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent white */
    z-index: 1; /* Ensure the overlay is above the background but below the text */
}

.last-paragraph {
    margin-top: 200px;
    text-align: center;
    font-size: clamp(5px, 2.5vw, 25px);
    font-family: 'Arial', sans-serif;
    max-width: 90%;
    margin: 0 5%;
    margin-top: 60px;
}
