@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white important!;
    padding: 0.5rem 1rem; /* Reduced padding */
    position: fixed; /* Make the navbar fixed */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
    transition: top 0.3s; /* Smooth transition for hiding */
    height: 45px; /* Default height */
    white-space: nowrap; /* Prevent wrapping */
}

nav .logo a {
    text-decoration: none;
}

nav .logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-shrink: 0; /* Prevent shrinking */
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    position: relative; /* Make the link relative to its container */
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 100;
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Position the underline below the text */
    width: 100%;
    height: 3px; /* Height of the underline */
    background-color: black; /* Color of the underline */
    transform: scaleX(0); /* Start with a scale of 0 */
    transform-origin: bottom right; /* Origin point for the scale animation */
    transition: transform 0.3s ease-in-out; /* Smooth scale transition */
}

nav ul li a.active::after, /* For the active link */
nav ul li a:hover::after { /* For the hover effect */
    transform: scaleX(1); /* Scale to 100% width */
    transform-origin: bottom left; /* Origin point for the scale animation */
}
.menu-icon {
    display: none; /* Hide the menu icon by default */
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 40px; /* Width for mobile */
    height: 40px; /* Height for mobile */
    overflow: visible; /* Ensure no content is hidden */
    z-index: 9999; /* Ensure it appears above other elements */
}
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.menu-icon div {
    width: 40px; /* Wider bars for better visibility */
    height: 8px; /* Increased height for a bolder look */
    background-color: black; /* Dark color */
    margin: 6px 0; /* Increased margin for better spacing */
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-7px, 7px); /* Adjust for better visibility */
}

.change .bar2 {
    opacity: 0; /* Hide the middle bar when toggled */
}

.change .bar3 {
    transform: rotate(45deg) translate(-7px, -7px); /* Adjust for better visibility */
}
header {
    position: relative;
    text-align: center;
    color: white;
    margin-top: 60px; /* Adjust for fixed navbar height */
}



.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Reduce the white overlay */
}

#company-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    color: white; /* Initial color */
    font-size: 3em; /* Adjust as needed */
    font-family: 'Poppins', sans-serif; /* Professional and elegant font */
    animation: colorChange 6s infinite; /* Apply the animation */
}

@keyframes colorChange {
    0% {
        color: #ffffff; /* Initial color */
    }
    100% {
        color: rgb(255, 255, 255); /* Intermediate color */
    }
}

.header-content h1 {
    font-size: 3rem;
    margin: 0;
}

.header-content p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

main {
    padding: 2rem;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
}

.text {
    flex: 1;
    padding-right: 2rem;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.images {
    flex: 1;
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.images img {
    border-radius: 15px;
    width: 48%;
    margin: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow effect */
    transition: transform 0.3s ease-in-out; /* Add transition for hover effect */
}

.images img:hover {
    transform: scale(1.05); /* Slightly enlarge image on hover */
}

h1, p {
    margin: 0;
    padding: 0;
}
footer {
    background-color: rgb(156,220,236); /* Dark blue background */
    color: black; /* White text color */
    text-align: center;
    padding: 1rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    margin: 0;
}

.footer-top {
    display: flex;
    justify-content: center; /* Center all items horizontally */
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    padding: 10px;
}

.footer-section.right {
    text-align: center; /* Align text to the center for mobile view */
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ddd; /* Lighter color on hover */
}

.footer-section .social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.footer-section .social-icons a {
    color:black;
    margin: 0 10px;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-section .social-icons a:hover {
    color: #ddd;
}

footer p {
    margin-top: 1rem;
}

footer form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer form input {
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
}

footer form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #000000;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

footer form button:hover {
    background-color: #777;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}



/* Media Query for Mobile View */

@media only screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    .menu-icon {
        display: flex; /* Show the menu icon only on mobile */
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(255, 255, 255, 0) !important; /* Fully transparent */
        padding: 0.5rem 1rem;
        top: 0;
        width: 100%;
        transition: top 0.3s;
        height: 45px;
        white-space: nowrap;
      }
    
    .navbar-toggle {
        width: 50px; /* Increase size if necessary */
        height: 50px;
      }

    /* Adjust the spacing between the logo and menu items */
    #nav-links {
        margin-top: 0;
        padding-top: 0;
    }

    nav ul {
        flex-direction: column;
        margin: 0; /* Remove margin between logo and nav links */
        padding: 0; /* Remove any padding */
        display: none; /* Hide menu items initially */
        width: 100%; /* Ensure full width */
        background-color: white; /* Background color for dropdown */
        position: absolute; /* Dropdown positioning */
        top: 100%; /* Position directly below the navbar */
        left: 0;
        border-top: none; /* Remove border-top */
    }

    nav ul.show {
        display: flex; /* Show menu when toggled */
        border-top: none; /* Ensure no border-top shows up when menu is visible */
    }

    nav ul li {
        margin: 0; /* Remove space between each link */
        padding: 1rem 0; /* Add padding inside each item */
        width: 100%; /* Full width for each item */
        text-align: center; /* Center-align text */
        position: relative; /* Necessary for ::after positioning */
    }

    nav ul li a {
        color: black; /* Ensure the text color is consistent */
        text-decoration: none;
        padding: 0.5rem 1rem; /* Adjust padding */
        display: inline-block;
        font-weight: bold;
        transition: color 0.4s ease-in-out; /* Transition for color change */
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        bottom: -5px; /* Adjust position based on padding */
        left: 50%;
        transform: translateX(-50%) scaleX(0); /* Start with scaleX(0) */
        width: 50%; /* Underline width */
        height: 2px;
        background-color: black; /* Underline color */
        transition: transform 0.3s ease-in-out; /* Transition for underline */
    }

    nav ul li a:hover::after,
    nav ul li a.active::after {
        transform: translateX(-50%) scaleX(1); /* Full width on hover/active */
    }

    .menu-icon {
        display: flex; /* Ensure menu icon is visible */
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .images {
        flex-direction: column;
    }

    .images img {
        width: 100%; /* Ensure images don't overflow the screen */
        max-width: 100%; /* Maintain aspect ratio */
        margin: 0.5rem 0;
    }
    .footer-top {
        flex-direction: column; /* Stack all sections vertically */
        justify-content: center; /* Center everything */
    }
    .footer-section {
        text-align: center; /* Center text in all sections */
        align-items: center;
    }
    .footer-section ul {
        padding-left: 0; /* Remove extra padding */
    }
}
