/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* WebKit support */
    /* Remove default margin or padding */
    margin: 0;
    padding-left: 0;  /* Remove left padding */
}

header .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}

/* Menu Icon */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Menu Styles */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;  /* Ensure no margin */
    padding: 0;  /* Ensure no padding */
}

header nav ul li {
    margin: 0;  /* Remove any left margin */
    padding: 0;  /* Remove padding */
    text-align: center;
    width: 100%;
}

header nav ul li a {
    color: #000;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    -webkit-transition: background-color 0.3s ease, border-color 0.3s ease;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: block;
    text-align: center;  /* Ensure links are centered */
}

header nav ul li a:hover {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    #menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        display: none; /* Hidden by default */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: white;
        transition: transform 0.4s ease;
        transform: translateX(100%);  /* Hidden by default */
        z-index: 1000;
    }

    #menu.active {
        display: flex; /* Show when active */
        transform: translateX(0);  /* Slide in */
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        padding: 0;
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    /* Close Icon */
    .close-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        cursor: pointer;
        color: black;
        display: none; /* Initially hidden */
    }

    /* Show the close icon when menu is active */
    #menu.active .close-icon {
        display: block; /* Show when menu is active */
    }
}

/* Hide Close Icon in Desktop View */
@media (min-width: 769px) {
    .close-icon {
        display: none !important;  /* Ensure the close icon is hidden in desktop view */
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(50%);
    -webkit-filter: brightness(50%); /* WebKit support */
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0 5px 20px 5px;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 0 5px 40px 5px;
}

.hero-button {
    padding: 15px 30px;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    border-radius: 5px;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-button:hover {
    background-color: white;
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 0;
    background-color: #ffffff;
    color: #000;
    position: relative;
    width: 100%;
    bottom: 0;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1); /* WebKit support */
}
