/* General Styles: Define the overall look and feel of the website */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(2px);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Styles: Styling for the navigation bar and header */
header {
    background: rgba(255, 255, 255, 0.1); /* Fully transparent with a subtle white tint */
    backdrop-filter: blur(10px); /* Added blur effect for better aesthetics */
    padding: 0.5rem 0; /* Adjusted padding for better fit */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Updated Navigation Bar Styles */
.navbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 0.4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-list a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Updated Dropdown Menu Styles for Acrylic Effect */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 200%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.1); /* Reduced opacity for acrylic effect */
    backdrop-filter: blur(10px); /* Blur effect for transparency */
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0.5rem 1rem;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Main Content Styles: Define the layout and typography for the main content */
main {
    text-align: center;
    padding: 4rem 2rem;
}

h1, h2 {
    font-family: 'Pacifico', cursive;
    color: #00d4ff;
}

p, li {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.logo {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.feature-img {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Footer Styles: Styling for the footer section */
footer {
    background: rgba(255, 255, 255, 0.1); /* Transparent background with acrylic effect */
    backdrop-filter: blur(15px); /* Blur effect */
    color: #fff; /* White text for visibility */
    text-align: center;
    padding: 0.8rem 0; /* Reduced padding */
    box-shadow: none; /* Removed shadow for compactness */
    font-size: 0.9rem; /* Smaller font size */
}

footer a {
    color: #00d4ff; /* Accent color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff; /* Hover effect for links */
}

/* Buttons: Define the appearance and hover effects for buttons */
button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 212, 255, 0.5);
}

/* Animations: Keyframes for smooth fade-in effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight the active navigation link */
nav ul li a.active {
    color: #00d4ff; /* Bright futuristic color */
    border-bottom: 2px solid #00d4ff; /* Underline effect */
    font-weight: bold; /* Emphasize the active link */
}

main > * {
    animation: fadeIn 1s ease both;
}

/* Added animations for homepage sections */
section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles: Ensure compatibility with mobile and PC */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row; /* Ensure row layout */
        justify-content: space-around; /* Distribute items evenly */
        padding: 0; /* Remove extra padding */
    }

    nav ul li {
        margin: 0; /* Remove margin for compact fit */
    }

    nav ul li a {
        font-size: 1rem; /* Adjust font size for mobile */
        color: #fff; /* White text for visibility */
    }

    main {
        padding: 2rem 1rem;
    }

    .logo {
        max-width: 200px;
    }

    .feature-img {
        margin-top: 1rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    section {
        background-attachment: scroll;
        position: relative;
        z-index: 1;
        padding: 4rem 2rem;
        color: #fff;
    }

    /* Add a parallax simulation using transform */
    body {
        overflow-x: hidden;
    }

    section[data-parallax] {
        position: relative;
        background-size: cover;
        background-position: center;
        transform: translateZ(0);
    }
}

@media (min-width: 769px) {
    main {
        padding: 4rem 3rem;
    }

    .logo {
        max-width: 300px;
    }

    .feature-img {
        margin-top: 2rem;
    }

    button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
