body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #000;
    background: url('atf1.JPG') no-repeat center center/cover; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.hero p {
    font-size: 1.3em;
    font-style: italic;
    margin: 10px 0 20px 0;
}
.hero .description {
    max-width: 600px;
    line-height: 1.6;
    font-size: 1em;
    margin-top: 45px;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
    animation: bounce 1s infinite;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); /* Initial position */
    }
    40% {
        transform: translateY(-10px); /* Move up */
    }
    60% {
        transform: translateY(-5px); /* Move down slightly */
    }
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 65%;
    margin: 0 auto; /* This centers the row */
}

.logo-container {
    margin: 10px;
    flex: 1 1 calc(33.333% - 20px); /* 3 logos per row */
    display: flex;
    justify-content: center;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

/* Media Queries for Smaller Screens */
@media only screen and (max-width: 768px) {
    /* Display 2 logos per row */
    .logo-container {
        flex: 1 1 calc(50% - 20px);
    }
}

@media only screen and (max-width: 500px) {
    .logo-container img {
        max-width: 100px; /* Further reduce logo size for smaller screens */
    }
    .hero-content h1 {
        font-size: 6.5vw; /* Further reduce title size for small devices */
    }
    .hero-content p {
        font-size: 4vw; /* Further reduce subtitle size */
    }
    .logo-container {
        flex: 1 1 calc(50% - 20px); /* Ensuring 2 logos per row */
        margin-bottom: 15px;
        justify-content: center;
    }
}


.separator {
    position: relative;
    width: 100%; /* Full width of the container */
    height: 2px; /* Thickness of the line */
    background-color: #FFF; /* Line color */
    margin: 40px 0; /* Space around the line, adjust as needed */
}

/* New Section 2 Content Styling */
.new-section-2 {
    max-width: 900px; /* Limit width to improve readability */
    margin: 0 auto;
    padding: 60px 20px; /* Increase padding for better spacing */
    text-align: left;
    border-radius: 10px; /* Smooth rounded corners */
    color: #fff; /* Soft beige text */
}

.new-section-2-content strong {
    font-size: 1.5em; /* Increase heading size */
    color: #fff; /* Make the headings stand out */
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase; /* Capitalize headings */
    letter-spacing: 2px; /* Add spacing between letters */
}

.new-description {
    font-size: 1em;
    line-height: 1.8; /* Increased line spacing */
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

.new-description ul {
    list-style-type: disc; /* Bullets */
    margin-left: 20px; /* Indent the list */
    padding-left: 0; /* Remove default padding */
}

.new-description li {
    margin-bottom: 5px; /* Space between list items */
    line-height: 1.4;
}

.new-section-2 a {
    color: #fff; /* Match link color to the rest of the text */
    text-decoration: underline;
    font-style: italic;
}

.new-section-2 a:hover {
    color: #fff; /* Highlight links on hover */
    text-decoration: none; /* Remove underline on hover */
    transition: color 0.3s ease;
}

.scroll-up {
    position: relative;
    margin: 40px auto 0; /* Center the button with auto margins */
    font-size: 2em;
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
    display: block;
    text-align: center; /* Ensure text content (the arrow) is centered */
}

/* Footer Styling */
.site-footer {
    color: #fff; /* Subtle text color */
    padding: 20px 0;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.footer-bottom {
    font-size: 0.9em;
    color: #fff;
    border-top: 1px solid #fff;
    padding-top: 10px;
    margin-top: 10px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom .email-link {
    text-decoration: none;
}

.footer-bottom .email-link:hover {
    color: #c7b299;
}

.footer-bottom .fa-envelope {
    margin-right: 5px;
}

/* Media Queries for Smaller Screens */
@media only screen and (max-width: 768px) {
    .hero h1 {
        font-size: 6vw; /* Slightly larger text on tablets */
    }

    .hero p {
        font-size: 3.5vw; /* Adjust subtitle size */
    }

    .logo-container {
        flex: 1 1 calc(50% - 20px); /* Two logos per row */
        margin-bottom: 20px; /* Space between rows */
    }

    .new-section-2 {
        padding: 40px 5vw; /* Adjust padding for readability */
    }
}

@media only screen and (max-width: 500px) {
    .hero h1 {
        font-size: 7vw; /* Adjust title size for mobile */
        line-height: 1.2; /* Make sure title fits well */
    }

    .hero p {
        font-size: 4vw; /* Adjust subtitle size */
        line-height: 1.4; /* Make sure subtitle fits well */
    }

    .logo-container {
        flex: 1 1 calc(50% - 20px); /* Two logos per row */
        margin-bottom: 20px; /* Add space between rows */
    }

    .logo-container img {
        max-height: 100px; /* Further reduce height for smaller screens */
    }

    .scroll-down, .scroll-up {
        font-size: 1.5em; /* Reduce button size */
    }

    .new-section-2 {
        padding: 30px 10px; /* Further reduce padding */
    }
}


/* Ensuring logos and text stack correctly on smaller screens */
@media only screen and (max-width: 768px) {
    .logo-container {
        flex: 1 1 100%; /* Stack logos in a single column on smaller screens */
        margin-bottom: 20px;
        display: flex;
        justify-content: center; /* Center logos on smaller screens */
    }
    .logo-container img {
        max-width: 120px; /* Make logos smaller on smaller screens */
        height: auto;
    }
    .hero-content h1 {
        font-size: 5vw; /* Responsive title size for mobile */
    }
    .hero-content p {
        font-size: 3.5vw; /* Responsive subtitle size */
    }
}

@media only screen and (max-width: 500px) {
    .logo-container img {
        max-width: 100px; /* Further reduce logo size for very small screens */
    }
    .hero-content h1 {
        font-size: 1.5em; /* Further reduce title size for small devices */
    }
    .hero-content p {
        font-size: 4vw; /* Further reduce subtitle size */
    }
    .logo-container {
        flex: 1 1 100%; /* Ensuring logos take full width on very small screens */
        margin-bottom: 15px;
        justify-content: center;
    }
    .new-section-2 {
        padding: 20px 10px; /* Reduce padding for smaller devices */
    }
}

@media only screen and (max-width: 768px) {
    /* Adjusting the grid to 2x2x2 on smaller screens */
    .logo-container {
        flex: 1 1 calc(50% - 20px); /* Two logos per row */
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 4vw; /* Adjust subtitle size for mobile */
        line-height: 1.4; /* Ensure the text doesn't overflow */
    }
}

@media only screen and (max-width: 768px) {
    /* Ensure the logos display in 2x2x2 layout */
    .logo-container {
        flex: 1 1 45%; /* Two logos per row */
        margin: 10px;  /* Adjusting margin for proper spacing */
        display: flex;
        justify-content: center;
    }

    .logo-row {
        flex-wrap: wrap; /* Wrap logos onto new rows */
        justify-content: space-around;
    }

    .hero-content p {
        font-size: 4vw; /* Adjust subtitle size for mobile */
        line-height: 1.4; /* Ensure the text doesn't overflow */
        max-width: 90%; /* Ensure text stays within the screen boundaries */
        margin: 0 auto; /* Center the text */
    }
}

@media only screen and (max-width: 500px) {
    .logo-container {
        flex: 1 1 45%; /* Two logos per row */
        margin: 10px;
        display: flex;
        justify-content: center;
    }

    .hero-content p {
        font-size: 5vw; /* Adjust subtitle size for smaller mobile screens */
        max-width: 85%; /* Keep the text within screen bounds */
        margin: 0 auto; /* Center the text */
    }
    
    .scroll-down {
        bottom: 150px;
    }
}

@media only screen and (min-width: 769px) {
    /* On larger screens, display 3 logos per row */
    .logo-container {
        flex: 1 1 calc(33.333% - 20px); /* 3 logos per row */
        margin: 10px;
    }
}

@media only screen and (max-width: 768px) {
    /* On smaller screens, display 2 logos per row */
    .logo-container {
        flex: 1 1 calc(50% - 20px); /* 2 logos per row */
        margin: 10px;
    }

    .logo-row {
        display: flex;
        flex-wrap: wrap; /* Ensure logos wrap to new lines as necessary */
        justify-content: center; /* Center the logos */
    }

    .hero-content p {
        font-size: 4vw; /* Adjust subtitle size for mobile */
        line-height: 1.4; /* Ensure the text doesn't overflow */
        max-width: 90%; /* Ensure text stays within the screen boundaries */
        margin: 0 auto; /* Center the text */
    }
}
