/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Hero Image */
.hero {
   
    height: 700px;
    background-image: url('../Images/itConsultNew.jpg');
    background-size: cover;
    background-position: center;
}

/* Service Description */
.service-description {
    font-size: large;
    padding: 20px;
    max-width: 1250px;
    margin: auto;
    background-color: #f0f0f0;
    border-radius: 50px;
    text-align: center; /* Add this line */
}



.service-description p {
    text-align: center;
    line-height: 1.6em;
}

/* Video Container */
.video-container {
    text-align: center;
    position: relative;
    margin-left: 90px;
    width: 90%; /* Adjust this value to make the video smaller or larger */
}

/* Video */
.video-container video {
    width: 80%;
    height: auto;
}

.unmute-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute; /* Added this line */
    top: 10px;
    right: 135px;
    z-index: 10; 
}

.unmute-button:hover {
    background-color: #333;
}


/* Navigation Menu Styles */
.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #333;
    position: fixed; 
    width: 100%;
    z-index: 9999;
}

.nav-menu li {
    float: left;
    position: relative;
}

.nav-menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    white-space: nowrap; /* Prevents line breaks */
}

.nav-menu li a:hover {
    background-color: #111;
}

/* Sub Menu Styles */
.sub-menu {
    list-style-type: none;
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #f9f9f9;
    min-width: 200px; /* Increased width to accommodate longer text */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap; /* Prevents line breaks for sub-menu items */
}

.sub-menu li a:hover {
    background-color: #487fa3;
}

/* Show sub-menu on hover */
.nav-menu li:hover .sub-menu {
    display: block;
}

/* Hide hamburger icon on desktop */
.hamburger-menu {
    display: none; /* Hide on larger screens */
}


.footer{
    text-align: center;
    padding-top: 30px;
    background-color: #f0f0f0;
    padding: 20px;
}

 .menu-icon {
     display: none; }


/* Media Query for Tablets (Max Width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        height: 400px; /* Adjusted height for smaller screens */
        background-position: center top;
    }

    /* Navigation Menu */
    .menu-icon {
        display: block; /* Show hamburger icon */
        font-size: 1.8em;
        cursor: pointer;
        color: white;
        background-color: #333;
        padding: 10px;
        position: absolute;
        top: 10px;
        right: 15px;
        z-index: 1000;
    }

    .nav-menu {
        display: none; /* Hidden by default */
        flex-direction: column;
        background-color: #333; /* Background for the menu */
        width: 100%;
        padding: 10px 0;
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex; /* Show menu when active */
    }

    .nav-menu li {
        text-align: center;
        margin: 5px 0;
    }

    .sub-menu {
        position: static; /* Ensure submenu aligns properly */
        background-color: #444;
        padding: 0;
    }

    /* Service Description */
    .service-description {
        padding: 15px;
        font-size: medium;
        border-radius: 10px;
    }

    /* Video Container */
    .video-container {
        margin: 0;
        width: 100%;
    }

    .unmute-button {
        top: 10px; /* Align at the top of the video */
        right: 10px; /* Push it to the top-right corner */
        font-size: 0.9em;
        padding: 5px 12px;
    }

    /* Footer */
    .footer {
        text-align: center;
        font-size: small;
    }
}

/* Media Query for Small Mobile Screens (Max Width: 460px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        height: 300px; /* Smaller height for small screens */
        background-size: contain;
        
    }

    .menu-icon {
        display: block;
        font-size: 1.5em;
        position: absolute;
        top: 10px;
        right: 15px;
        color: white;
        background-color: transparent;
        z-index: 10000; /* Ensure it's above the hero image */
    }

    /* Adjust Navigation Menu */
    .nav-menu {
        display: none; /* Hide menu initially */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }



   /* Show nav-menu when active class is added */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    background-color: #333; /* Ensure visibility */
    width: 100%;
    position: absolute;
    top: 50px; /* Adjust this based on the height of the menu icon */
    left: 0;
    z-index: 1000;
    padding: 0;
}


    .sub-menu {
        background-color: #fff; /* Match the clean design */
        box-shadow: none; /* Remove box shadow */
        margin: 0;
        padding: 0;
    }

    .sub-menu li {
        border-bottom: 1px solid #ccc; /* Light separator */
        text-align: center; /* Center the items */
    }

    .sub-menu li:last-child {
        border-bottom: none; /* Remove the last border */
    }

    .sub-menu li a {
        color: #333; /* Neutral text color */
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        background-color: #f9f9f9; /* Light background */
    }

    .sub-menu li a:hover {
        background-color: #ddd; /* Slightly darker hover effect */
    }

    /* Hide main menu when sub-menu is active */
    .nav-menu > li > a:hover + .sub-menu,
    .sub-menu:hover {
        display: block;
    }

    .nav-menu > li:hover > .sub-menu + .nav-menu {
        display: none; /* Hide other main menu items */
    }

    .nav-menu > li > a {
        padding: 12px;
        font-size: 0.9em;
    }


   
    /* Service Description */
    .service-description {
        font-size: small;
        padding: 10px;
        border-radius: 8px;
    }

    /* Video Container */
    .video-container {
        width: 100%;
    }
    
    .video-container video {
    width: 100%;
    height: auto;
}

    .unmute-button {
        top: 10px; /* Align at the top of the video */
        right: 10px; /* Push it to the top-right corner */
        font-size: 0.8em;
        padding: 4px 10px;
    }
    /* Footer */
    .footer {
        font-size: x-small;
        text-align: center;
    }
}

