/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-image: url("./background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    /* Ensure body takes at least full viewport height */
}

.pusher {
    flex-grow: 1;
    /* Allow main content to grow and push footer down */
}

.hidden-content {
    display: none;
    /* Hide content by default */

}

/* Header */
header {
    background-color: #0077b6;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.company-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}



/* Header links (desktop view) */
.nav ul {
    list-style: none;
    display: flex;
    /* Ensure horizontal layout in desktop view */
    gap: 1rem;
}

.nav a {
    padding: 0.75rem 1.5rem;
    /* Consistent padding */
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
}

.nav a:hover {
    background-color: #90e0ef;
    transform: scale(1.05);
    /* Slight scale on hover */
}

/* Ensure all social icons are styled consistently */

.social-icon img {
    height: 20px;
    /* Set consistent height for the icon */
    vertical-align: middle;
    /* Align the image vertically */
}


/* Hamburger menu for header links (hidden on desktop, visible on mobile) */
.header-hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    padding: 1rem;
}

/* Main Navigation (Desktop View) */
.main-menu {
    background-color: #00b4d8;
    padding: 1rem 2rem;
    border-radius: 20px;
    margin: 1rem 2rem;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Allow wrapping if screen is too narrow */
}

.menuItems {
    position: relative;
    padding: 0.5rem;
    /* Add padding for better spacing */
}

.menuItems>a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
}

.menuItems>a:hover {
    background-color: #0077b6;
    transform: scale(1.05);
}

/* Dropdown menu styles */
.menuItems ul {
    display: none;
    /* Hide submenus by default */
    position: absolute;
    top: 100%;
    /* Position submenu below the parent */
    left: 0;
    background-color: #00b4d8;
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Add shadow for separation */
    z-index: 1000;
}

/* Show dropdown when hovering over the parent menu item */
.menuItems:hover ul {
    display: block;
}

.menuItems ul li {
    margin: 0.5rem 0;
    list-style: none;
}

.menuItems ul li a {
    padding: 0.5rem 1rem;
    display: block;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.menuItems ul li a:hover {
    background-color: #0077b6;
}

/* Footer default styles */
footer {
    background-color: #0077b6;
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: auto;
    box-sizing: border-box;
    transition: height 1s ease, font-size 1s ease, padding 1s ease;
    /* Smooth transition for height, font-size, and padding */
    height: 100px;
    /* Initial height */
    overflow: hidden;
    font-size: 1rem;
    /* Default font size */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */

}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

a:hover {
    background-color: #90e0ef;
    transform: scale(1.05);
    /* Slight scale on hover */
    border-radius: 5px;
}

/* Expanded footer styles */
.expand-footer {
    height: calc(100vh - 70px);
    /* Expand to full viewport height minus the header height (adjust this based on your header height) */
    font-size: 3rem;
    /* Increase font size */
    padding: 3rem 2rem;
    /* Increase padding when expanded */
}

/* Adjusting the text inside the footer when expanded */
.expand-footer p {
    margin: 1rem 0;
    /* Add margin between paragraphs */
}

.expand-footer .footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    align-items: center;
    /* Center text horizontally */
    height: 100%;
    /* Make the container take full height */
    text-align: center;
    /* Ensure text stays centered */
}


.services-hamburger {
    display: none;
}

/* Responsive Styles (for screens smaller than 768px) */
@media (max-width: 768px) {

    /* Header Styling (mobile) */
    .nav {
        display: none;
        /* Hide the navigation on small screens */
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #0077b6;
        width: 100%;
        padding: 1rem;
        text-align: center;
        z-index: 1000;
    }

    /* Header links (sandwich menu on mobile) */
    .nav ul li {
        margin: 1rem 0;
        /* Increase vertical margin between the items */
    }

    .nav a {
        padding: 1rem 2rem;
        /* Increase padding for better click area */
        color: #ffffff;
        text-decoration: none;
        display: inline-block;
        transition: background-color 0.3s ease, transform 0.3s ease;
        border-radius: 10px;
        background-color: rgba(0, 0, 0, 0.1);
        /* Optional: background to make links more visible */
    }

    .nav a:hover {
        background-color: #90e0ef;
        transform: scale(1.05);
        /* Slightly reduce the scale to avoid overlap */
    }

    /* Resetting the default gap and using margin instead */
    .nav ul {
        list-style: none;
        display: block;
        /* Ensure the navigation list is vertical */
        padding: 0;
        margin: 0;
        /* Ensure no margin around the list */
    }

    .nav.active {
        display: flex;
        /* Show the navigation when the hamburger is clicked */
    }

    .header-hamburger {
        display: block;
        /* Show hamburger icon on mobile */
        font-size: 2rem;
        color: #ffffff;
        cursor: pointer;
    }

    .header-container {
        justify-content: space-between;
        width: 100%;
    }

    /* Footer responsive */
    footer {
        padding: 1rem;
        font-size: 0.9rem;
        /* Adjust font size */
    }



    /* Mobile-specific styles for the main menu */
    .main-menu {
        padding: 0.5rem 1rem;
    }

    /* Hamburger for services menu (mobile) */
    .services-hamburger {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: #ffffff;
        text-align: center;
        padding: 1rem;
        background-color: #00b4d8;
        border-radius: 10px;
    }

    /* Services menu hidden by default on small screens */
    #services-menu {
        display: none;
        flex-direction: column;
        background-color: #00b4d8;
        padding: 1rem;
        border-radius: 20px;
        width: 100%;
        position: relative;
    }

    /* Show the services menu when active */
    #services-menu.active {
        display: flex;
        flex-direction: column;
    }

    /* Submenus hidden by default */
    .menuItems ul {
        display: none;
        background-color: #00b4d8;
        padding: 0.5rem;
        margin-left: 10px;
        border-radius: 10px;
    }

    /* Show the submenus when the parent menu item is active */
    .menuItems.active ul {
        display: block;
        position: relative;
        z-index: 1;
        margin-top: 0.5rem;
    }

    /* Hide the dropdown items by default */
    .menuItems ul li.dropdown {
        display: none !important;
        /* Forcefully hide dropdown items */
    }

    /* Show dropdown items when they have the active class */
    .menuItems ul li.dropdown.active {
        display: block !important;
        /* Forcefully show dropdown items */
    }

    /* Style for the menu links on mobile */
    .menuItems a {
        color: white;
        display: block;
        padding: 0.5rem 1rem;
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    .menuItems ul li a {
        padding-left: 1.5rem;
        /* Indent submenu items */
    }

    .menuItems ul li {
        margin: 0.25rem 0;
        /* Add space between submenu items */
    }

    .menuItems a:hover {
        background-color: #83969a;
    }
}

/* Updated Description Section */
.description {
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack items vertically */
    background: linear-gradient(rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.95));
    /* Subtle gradient to add depth */
    color: #333;
    /* Dark text for readability */
    padding: 2rem;
    /* Inner padding for spacing */
    margin: 2rem auto;
    /* Center horizontally with vertical margin */
    border-radius: 20px;
    /* Larger radius for smoother edges */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Pronounced shadow for elevation */
    max-width: 900px;
    /* Limit width for readability */
    width: 90%;
    /* Responsive width */
    text-align: left;
    /* Align text to the left */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle border for structure */
    backdrop-filter: blur(6px);
    /* Blur effect for modern design */
    position: relative;
    /* Ensure it's positioned within layout flow */
    z-index: 1;
    /* Ensure it sits above any background elements */
}

/* Typography for the Description */
.description h2 {
    font-size: 2rem;
    color: #0077b6;
    /* Match the primary blue color */
    margin-bottom: 1rem;
    border-bottom: 3px solid #00b4d8;
    /* Thicker underline for emphasis */
    padding-bottom: 0.5rem;
}

.description p {
    line-height: 1.8;
    /* Add spacing for readability */
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    /* Slightly lighter gray for paragraph text */
}

.description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.description ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
    /* Standard text color */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .description {
        padding: 1rem;
        margin: 1rem auto;
        width: 95%;
        /* Adjust width for smaller screens */
    }

    .description h2 {
        font-size: 1.5rem;
    }

    .description p {
        font-size: 0.9rem;
    }
}



/* Simple animation for fade-in effect */
header,
.main-menu,
footer,
.description {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}