body {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 12px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;  /* Enable smooth scrolling */
}

/* Nav container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.1); /* Light transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 10px; /* Soft rounded corners */
    padding: 10px 20px; /* Some padding for spacing */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    position: fixed; /* Keeps navbar always visible */
    top: 5px; /* Space from the top */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Slight margin on the sides */
    max-width: 1200px; /* Prevents excessive stretching on large screens */
    z-index: 1000; /* Ensures navbar stays above other content */
}

/* Left section: Logo */
.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .favicon {
    width: 40px;
    margin-right: 20px;
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5)); /* Soft glow effect */
}

.nav-left a {
    /* Specific styling for logo/link in the left section */
    margin-right: 40px;
    color: #eee;
}

/* Center section: Slogan */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    color: #f39c12;
    white-space: nowrap;
}

/* Right section: Nav links */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-right ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-right ul li {
    margin-left: 20px;
}

.nav-right ul li a {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    /* Remove the extra margin that was causing the links to shift */
    margin-right: 0;
    text-decoration: none;
}

.nav-right ul li a:hover {
    color: #f39c12;
    text-shadow: 0px 0px 2.5px rgba(233, 233, 233, 0.8); /* Glowing text effect */
}

  .nav-right ul li a {
    color: white;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .nav-right ul li a:hover {
    color: #f39c12;
  }
  
 /* Hamburger Menu - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: #eee;
    margin: 4px 0;
    border-radius: 3px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    nav {
        /* On mobile, expand the navbar to full width */
        width: 100%;
        max-width: none;
        border-radius: 0;
        left: 0;
        transform: none;
        flex-direction: row; /* We'll hide the regular nav-right */
        padding: 10px 20px;
        transition: transform 0.3s ease;
    }
/* When .nav-hidden is added, move the navbar up out of view */
nav.nav-hidden {
    transform: translateY(-100%);
}

    /* Hide the nav links by default */
    .nav-right {
        display: none;
    }

    /* Show the hamburger menu on mobile */
    .hamburger {
        display: flex;
        padding-right: 40px;
    }

    /* Optionally adjust nav-left and nav-center spacing on mobile */
    .nav-left, .nav-center {
        flex: 1;
    }
    
    /* Mobile menu styling when expanded */
    .nav-right.mobile-active {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.8); /* a solid dark background for readability */
        position: absolute;
        top: 60px;  /* adjust so it appears below the navbar */
        left: 0;
        padding: 10px 0;
    }
    
    .nav-right.mobile-active ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .nav-right.mobile-active ul li {
        margin: 10px 0;
    }
    
    .nav-right.mobile-active ul li a {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    img, video {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

  /* Custom scrollbar styles */
  ::-webkit-scrollbar {
    width: 15px;
    height: 15px;
  }
  
  ::-webkit-scrollbar-track {
    background: #000;
    border-radius: 0;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #656562;
    border-radius: 0;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #ffff00;
  }
  
/* Footer Styling */
footer {
    background-color: #222222; /* Dark background */
    color: #f0f0f0;
    font-size: 1.5em;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    border-top: #ff6a00 solid;
}

footer p {
    margin: 0;
}

/* Back to Top Button Styling */
.back-to-top {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.back-to-top:hover {
    background-color: #e35d00;
    transform: translateY(-5px);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    footer {
        font-size: 1.2em; /* Adjust font size for smaller screens */
        padding: 30px 10px;
    }
}


