html, body {
    overflow-x: hidden;
    width: 100%;
}

/* #region FRONT PAGE */
.section1 {
    position: fixed;
    background: url('RF/RF2.jpg') 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);
    text-align: center;
}

.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(0, 0, 0);
}

@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(0, 0, 0);
    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 Image Grid */
.picture-collection p {
    text-align: left;
    font-size: clamp(7px, 2.5vw, 30px);
    font-family: 'Arial', sans-serif;
}

.picture-collection {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto); 
    gap: 5px;
    max-width: fit-content;
    margin-right: 4%;
}

.image-grid img {
    width: clamp(100px, 17vw, 170px);
    height: auto;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}
/* #endregion */

/* #region Mobile Networks*/
.section2 h2 {
    font-size: clamp(40px, 5vw, 80px);
    font-family: 'Arial', sans-serif;
    margin-right: 8%;
    text-align: center; 
    margin: auto;
    margin-top: 20px;
    margin-bottom: 40px;
    color: white;
}
.orange-color {
    color: rgb(237, 85, 35);
}

.section2 .last-paragraph {
    font-family: 'Arial', sans-serif;
    font-size: clamp(5px, 2.5vw, 25px);
    max-width: 80%;
    text-align: center; /* Center the text within the paragraph */
    margin: auto;
    color: white;
}

.background {
    margin-top: 60px;
    background-image: url('RF/Background.avif');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 50px;
    position: relative; /* To position the pseudo-element on top */
}

/* White overlay effect */
.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent white */
    z-index: 1; /* Ensure the overlay is above the background but below the text */
}

.background > * {
    position: relative; /* Make sure the text is above the overlay */
    z-index: 2; /* Ensure the text stays above the overlay */
}
/* #endregion */
