/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Clean, modern font */
    background-color: #f0f2f5; /* Light background color for contrast */
    color: #333; /* Default text color */
}

/* Responsive Design - Media Queries */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button {
        padding: 12px 25px;
    }
}


/* Static Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Place video behind content */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 3px; /* Padding for header */
    background-color: rgba(10, 10, 35, 0.9); /* Darker semi-transparent background */
    color: #fff;
    position: fixed; /* Fixed position */
    top: 0;
    width: 100%;
    height: 40px; /* Set a fixed height for the header */
    z-index: 1000; /* Ensure it stays above other content */
}

.logo img {
    max-height: 80px; /* Set a max-height for the logo */
}

/* General Nav Styles */
nav {
    background-color: 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 1px;
    transition: background 0.3s ease, color 0.3s ease; /* Smooth hover effect */
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #00bfa6; /* Teal hover effect for modern touch */
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 191, 166, 0.3); /* Subtle shadow on hover */
}

.menu-icon {
    display: none; /* Hidden on larger screens */
    font-size: 30px;
    cursor: pointer;
    color: white;
}

nav ul li a.active {
    background-color: #00bfa6; /* Active link indicator */
    color: #000;
}

/* Mobile Navigation (smaller screens) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        z-index: 10;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out; /* Smooth dropdown animation */
        transform: translateY(-100%); /* Hidden by default */
        opacity: 0;
    }

    nav ul.show {
        transform: translateY(0); /* Slide down when shown */
        opacity: 1;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 7px 0;
    }

    .menu-icon {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 25px;
        color: #ffffff;
        z-index: 20;
    }
}

/* Mobile-specific styles */
@media (max-width: 480px) {
    nav ul li {
        padding: 10px;
        font-size: 16px;
    }

    nav ul li a {
        padding: 12px 10px;
        font-size: 14px;
    }

    nav {
        padding: 10px;
    }
}

/* Hamburger icon */
.menu-icon {
    display: none; /* Hidden by default */
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show the icon on mobile screens */
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 20;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        padding: 0;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    nav ul.show {
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease-in-out;
    }

    nav ul li {
        text-align: center;
        padding: 7px 0;
        width: 100%;
    }
}



/* Adjust Navbar Styles */
.nav-link,
.nav-button {
    text-decoration: none;
    color: #fff;
    padding: 10px 5px; /* Adjust padding to make buttons more spacious */
    font-size: 1rem; /* Consistent font size */
    transition: background-color 0.3s, transform 0.2s; /* Include transform for hover effect */
    cursor: pointer; /* Ensure pointer cursor on hover */
}

.nav-button {
    background-color: #00a3ff;
    border-radius: 15px;
}

.nav-link:hover,
.nav-button:hover {
    background-color: #00c1ff;
    border-radius: 5px;
    transform: scale(1.05); /* Slight scale effect on hover */
}

/* Main Content */
main {
    padding-top: 70px; /* Space for fixed header */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem; /* Reduced font size */
    font-weight: bold;
    margin-bottom: 20px; /* Increased margin for better spacing */
}

.hero p {
    font-size: 1.1rem; /* Reduced font size */
    margin-bottom: 20px; /* Increased margin for better spacing */
}

.cta-button {
    padding: 12px 30px; /* Adjust button padding */
    background-color: #00a3ff;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00c1ff;
}

/* Services Section */
#services {
    padding: 50px 30px;
    background-color: rgba(10, 10, 35, 0.7); /* Darker matching background */
    text-align: center;
    color: #fff; /* Text color for better visibility */
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff; /* White text for heading */
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust the card size */
    gap: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    color: #fff;
    padding: 20px; /* Increased padding for better spacing */
    border-radius: 10px; /* Slightly reduce the border radius */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05); /* Scale effect on hover */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.card img {
    max-width: 100%; /* Responsive image */
    border-radius: 10px; /* Rounded corners for images */
}

.card h3 {
    margin: 15px 0; /* Increased margin for better spacing */
    font-size: 1.5rem; /* Increased font size for better visibility */
}

.card p {
    font-size: 0.9rem; /* Reduced font size */
}

/* About Section */
#about {
    padding: 50px 30px;
    background-color: rgba(10, 10, 35, 0.7); /* Matching background */
    text-align: center;
    color: #fff; /* Text color for visibility */
}

/* Contact Section */
#contact {
    padding: 50px 30px;
    background-color: rgba(10, 10, 35, 0.7); /* Matching background */
    text-align: center;
    color: #fff; /* Text color for visibility */
}

/* Footer */
footer {
    background-color: rgba(10, 10, 35, 0.9); /* Darker semi-transparent background */
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: fixed; /* Fixed position */
    bottom: 0;
    width: 100%;
    height: 40px; /* Increased height for better usability */
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black veil for popup */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff; /* White background for popup */
    padding: 20px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px; /* Maximum width for the popup */
    width: 90%; /* Responsive width */
    max-height: 80%; /* Maximum height for the popup */
    overflow-y: auto; /* Enable vertical scrolling when content exceeds max height */
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #000; /* Black color for close icon */
}
/* Form Styles */
form {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for forms */
    padding: 30px; /* Increased padding */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px; /* Set a maximum width for forms */
    margin: 20px auto; /* Center form on the page */
}

form h2 {
    margin-bottom: 15px; /* Space below heading */
    font-size: 1.8rem; /* Font size for heading */
    color: #0a0a23; /* Heading color */
    text-align: center; /* Center heading */
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px; /* Increased padding for inputs */
    margin-bottom: 15px; /* Space between inputs */
    border: 1px solid #ccc; /* Border style */
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem; /* Font size for input fields */
    transition: border-color 0.3s; /* Smooth transition for border */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #00a3ff; /* Border color on focus */
    outline: none; /* Remove default outline */
}

/* Button Styles */
button,
.cta-button,
.service-button {
    background-color: #00a3ff; /* Button color */
    color: #fff; /* Text color */
    padding: 12px 20px; /* Increased padding for buttons */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 1rem; /* Font size */
    transition: background-color 0.3s, transform 0.2s; /* Include transform for hover effect */
    width: 100%; /* Full width for buttons */
}

button:hover,
.cta-button:hover,
.service-button:hover {
    background-color: #00c1ff; /* Brighter color on hover */
    transform: scale(1.05); /* Slight scale effect on hover */
}

.explore-button {
    background-color: #00a3ff; /* Button color */
    color: #fff; /* Text color */
    padding: 10px 20px; /* Reduced padding for less width */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 1rem; /* Font size */
    transition: background-color 0.3s, transform 0.2s; /* Include transform for hover effect */
    width: auto; /* Set width to auto for natural sizing */
    min-width: 150px; /* Optional: Set a minimum width */
    max-width: 250px; /* Optional: Set a maximum width */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline */
}

.explore-button:hover {
    background-color: #00c1ff; /* Darker color on hover */
    transform: scale(1.05); /* Scale effect on hover */
}

/* Courses Section */
#courses {
    padding: 50px 30px;
    background-color: rgba(10, 10, 35, 0.7); /* Darker matching background */
    color: #fff;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three videos per row */
    gap: 20px; /* Space between courses */
}

.course {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center text in course */
}

.video-container {
    position: relative; /* Allow positioning of the badge */
    cursor: not-allowed; /* Change cursor to indicate clicks are disabled */
    margin: 10px 0; /* Space above and below the video */
}

.badge, .price-badge {
    position: absolute; /* Position badges absolutely */
    top: 10px; /* Position from top */
    right: 10px; /* Position from right */
    background-color: #00a3ff; /* Badge color */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1; /* Ensure the badge is on top of the video */
}

.video-container iframe {
    width: 100%; /* Full width for iframe */
    height: 225px; /* Set a fixed height */
    pointer-events: none; /* Disable interaction with the iframe */
}

/* Button Styles */
.cta-button {
    background-color: #00a3ff; /* Button color */
    color: #fff;
    padding: 10px 20px; /* Reduced padding for less width */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 1rem; /* Font size */
    width: auto; /* Set width to auto for natural sizing */
    min-width: 100px; /* Optional: Set a minimum width */
    max-width: 200px; /* Optional: Set a maximum width */
    text-align: center; /* Center text */
    margin-top: 10px; /* Space above the button */
}

.notification {
    position: fixed; /* Fixed position for the notification */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to center */
    background-color: #FF0000; /* Notification background color */
    color: white; /* Text color */
    padding: 15px 25px; /* Padding */
    border-radius: 8px; /* Rounded corners */
    transition: opacity 0.5s; /* Fade effect */
    opacity: 0; /* Start as invisible */
    z-index: 1001; /* On top of other elements, above popups */
    text-align: center; /* Center text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for better visibility */
}

.notification.show {
    opacity: 1; /* Visible when shown */
}


.hidden {
    display: none; /* Hide by default */
}

.form-hidden {
    display: none;
}

.form-active {
    display: block; /* or flex, depending on your layout */
}

select {
    width: 100%; /* Make the dropdown full width */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Space below the dropdown */
    font-size: 16px; /* Larger font for readability */
}

/* Style for input fields */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%; /* Make input fields full width */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Space below each field */
    font-size: 16px; /* Larger font for readability */
}

select {
    width: 100%; /* Make the dropdown full width */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Space below the dropdown */
    font-size: 16px; /* Larger font for readability */
}

button {
    background-color: #00a3ff; /* Button color (blue) */
    color: white; /* White text color */
    border: none; /* Remove default border */
    padding: 10px; /* Add padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Larger font for readability */
}

button:hover {
    background-color: #0080c0; /* Darker blue on hover */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Hide by default */
    position: absolute;
    background-color: white; /* Background for dropdown */
    min-width: 160px; /* Minimum width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Shadow */
    z-index: 1; /* Ensure dropdown is above other content */
}

.dropdown:hover .dropdown-content {
    display: block; /* Show on hover */
}

.dropdown-content a {
    color: black; /* Link color */
    padding: 12px 16px; /* Padding for links */
    text-decoration: none; /* Remove underline */
    display: block; /* Block display */
}

.dropdown-content a:hover {
    background-color: #ddd; /* Background on hover */
}