﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- CORE PAGE SETUP --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw; /* Use viewport width for full screen */
    height: 100vh; /* Use viewport height for full screen */
    overflow: hidden; /* **CRUCIAL:** Prevents scrollbars from appearing */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-family: sans-serif; /* A fallback font */
}

/* ===== Video Background ===== */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    animation: fadeInVideo 2s ease-out forwards;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/ /* --- VIDEO BACKGROUND CONTAINER & VIDEO ELEMENT --- */
.video-container {
    position: fixed; /* Fixes it to the viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Hides any part of the video that extends outside */
    z-index: -1; /* Puts it behind all other content */
    background-color: black; /* Fallback background */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover entire area nicely */
    z-index: -1;
}

/* --- CONTENT LAYER (Logo & Title) --- */
.content {
    position: relative; /* Essential for z-index to work against fixed video */
    z-index: 1; /* Puts the content *above* the video */
    display: flex; /* Enables flexbox for centering */
    flex-direction: column; /* Stacks items vertically */
    justify-content: center; /* Centers items vertically in the viewport */
    align-items: center; /* Centers items horizontally in the viewport */
    height: 100vh; /* **CRUCIAL:** Makes this container take the full viewport height */
    width: 100vw; /* Takes full viewport width */
    text-align: center; /* Ensures text inside is centered */
    color: white; /* Make sure your text is visible against the video */
}

/* --- HERO TITLE ANIMATION --- */
.hero-title {
    font-size: 2em; /* Adjust font size as needed */
    opacity: 0;
    transform: scale(0.8);
    animation: welcomeZoomFade 1.5s ease-out forwards;
    animation-delay: 1.5s; /* Delay slightly more than logo, or adjust as desired */
    color: white; /* Ensure text is visible */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    margin-top: -20px; /* Space between logo and title */
    white-space: nowrap; /* Prevent text from wrapping prematurely */
    overflow: hidden; /* Hide overflow if text is too long for screen */
    text-overflow: ellipsis; /* Add ellipsis if text is cut off */
    max-width: 90vw; /* Prevent title from being too wide on small screens */
}

@keyframes welcomeZoomFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* ====== Resize logo into small screens ======*/

/* Default styles for the logo (large screens or general) */
.logo-container {
    /* You might have some padding or positioning here */
    text-align: center; /* Center the logo if it's the only item */
    padding: 20px; /* Example padding */
}

/* --- LOGO ANIMATION --- */
.logo {
    width: 400px; /* Adjust size as needed */
    /*max-width: 80vw;*/ /* Prevent logo from being too wide on small screens */
    max-width: 400px; /* Or whatever your desired max width is for large screens */
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: logoZoomFade 2.5s ease-out forwards;
    animation-delay: 0.5s; /* Start after a small delay */
    filter: brightness(0) invert(1);
    display: block; /* Helps with centering and consistent sizing */
    margin: 0 auto; /* Center the logo horizontally */
}

@keyframes logoZoomFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    /* Slight overshoot for a nice bounce */
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: nowrap;
    z-index: 1000;
    box-sizing: border-box;
}


/* --- NAVIGATION BAR --- */
/*nav {
    position: fixed;*/ /* Keep nav fixed at the top */
/*top: 0;
    width: 100%;*/ /* Full width of the viewport */
/*z-index: 1000;*/ /* Ensure nav is on top of ALL content */
/*background-color: rgba(0, 0, 0, 0.7);*/ /* Example: semi-transparent background */
/*display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;*/ /* Include padding in the width */
}

/* Ensure no conflicting .logo if you have one in the nav */
nav .logo {
    display: none; /* If there's a logo in the nav, make sure it's handled separately */
}

/*Right Slide menu Hamburger*/
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    /*height: 64%;*/ /* Default height for large devices */
}

/*.nav-links {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 58px;
    right: -100%;*/ /* Hidden off-screen by default */
    /*background: rgba(0, 0, 0, 0.55);
    width: 225px;*/ /* Width of the slide-out menu */
    /*height: 64%;*/ /* Default height for large devices */
    /*padding: 20px 15px 15px 15px;
    transition: right 0.3s ease-in-out;
    gap: 8px;
    overflow-y: auto;*/ /* Enable scrolling for long menus */
    /*z-index: 1002;*/ /* Ensure it's above the video */
/*}*/




        /* ======= Styles for the navigation links in general =======  */
    .nav-links a,
    .dropdown-btn {
        color: #fff; /* Example: default white text */
        text-decoration: none;
        padding: 8px 12px;
        display: block;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        white-space: nowrap;
        font-size: 15px;
    }

        .nav-links a:hover,
        .dropdown-btn:hover {
            background: rgba(255, 255, 255, 0.2); /* Lighter background on hover */
            border-radius: 2px;
        }

/* --- Styles for the ACTIVE navigation link --- */
               /*.nav-links a.active-page {*/
            /*background-color: #ff6a00;*/ /* Keep your blue background */
            /*color: rgba(255, 255, 255, 0.9);*/ /* White with 90% opacity (10% transparent) */
            /*font-weight: bold;
            border-bottom: 2px solid rgba(255, 255, 255, 0.7);*/ /* Optional: make border transparent too */
        /*}*/

        /*.nav-links a.active-page {*/
           /* background-color: #007bff;*/
            /*color: rgba(255, 255, 255, 0.7);*/ /* White with 70% opacity (30% transparent) */
            /*font-weight: bold;
            border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        }*/

        /*.nav-links a.active-page {*/
            /*background-color: #f0f0f0;*/ /* Example: A light grey active background */
            /*color: rgba(0, 0, 0, 0.8);*/ /* Black with 80% opacity */
            /*font-weight: bold;*/
            /*border-bottom: 0px solid rgba(0, 0, 0, 0.6);*/
       /* }*/


        .nav-links a.active-page {
            /*1background: rgba(0, 255, 255, 0.1);*/ /* Very subtle teal background */
            background: rgba(255, 255, 255, 0.3); /* Slightly more transparent white for active background */
            color: #FFF; /* Pure white text */
            font-weight: bold;
            border-bottom: 0px solid #FFF; /* Clean white border */
            border-radius: 4px;
        }

        /*.nav-links a.active-page {
            background: rgba(255, 255, 255, 0.2);*/ /* Lighter background on hover */
            /*background-color: #007bff;*/ /* Assuming you want to keep your blue background for the active state */
            /*color: rgba(80, 0, 0, 0.8);*/ /* <--- Your new midnight red transparent text color */
            /*color: rgba(70, 130, 180, 0.8);*/ /* <--- Your new darker blue transparent text color */
            /*font-weight: bold;
            border-bottom: 2px solid rgba(80, 0, 0, 0.6);*/
            /*border-bottom: 2px solid rgba(135, 206, 235, 0.6);*/ /* Optional: make border transparent too */
        /*}*/

/* For the dropdown button, if it's supposed to be active when one of its sub-links is */
/* This is a more advanced scenario, for now, focus on direct links */ /*Affiliate menu - green background*/
    .nav-links .dropdown-btn {
        /*        .nav-links .dropdown-btn.active-page*/
        background-color: transparent;
        /* background-color: #007bff;*/
        color: #ffffff;
        font-weight:normal;
        border-bottom: 0px solid #ffffff;
    }

@media screen and (max-width: 900px) {
    .nav-links a,
    .dropdown-btn {
        font-size: 14px;
        padding: 8px 10px;
    }

    nav {
        flex-wrap: nowrap;
    }
}

/*Drop-Down Menu*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    width: auto; /* Change to auto width */
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    white-space: nowrap; /* Prevent wrapping of dropdown menu items */
    /*background: rgba(20, 20, 20, 0.95);
            min-width: 100%;
            width: 100%;*/
}

    .dropdown-menu a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
        white-space: nowrap;
    }

.dropdown.open .dropdown-menu {
    display: block;
}

/* Hamburger styles */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto; /* Move hamburger to the right */
    padding: 5px; /* Add some padding for easier clicking */
}

    .hamburger .bar {
        height: 4px;
        width: 30px;
        /*background-color: white;*/
        margin: 1px 0;
        border-radius: 2px;
        background-color: white; /* Initial color of the bars */
        transition: 0.4s; /* Smooth transition for the animation */
    }

    /* Hamburger active state (forms red X) */
    .hamburger.active .top {
        /* transform: rotate(45deg) translate(5px, 5px);*/
        transform: rotate(45deg) translate(10px, 10px);
        background-color: #e63946; /* Red color when active */
    }

    .hamburger.active .middle {
        opacity: 0; /* Middle bar disappears */
    }

    .hamburger.active .bottom {
        transform: rotate(-45deg) translate(4px, -6px);
        background-color: #e63946; /* Red color when active */
    }

/* =======  Close Button styles (Solid Red &#39;X&#39;) =======  */
.close-btn {
    display: none; /* Initially hidden on all screens */
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #e63946; /* **SET COLOR TO RED** */
    font-size: 25px;
    cursor: pointer;
    z-index: 1003;
    padding: 5px;
}

    .close-btn.show {
        display: block; /* Show only when the mobile menu is active */
    }

    .close-btn:hover {
        color: #cc2936; /* Slightly darker red on hover for visual feedback (optional) */
    }

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger on small screens */
    }

    /* Media query for small devices (e.g., screens less than 768px wide) */
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 58px;
        right: -100%; /* Hidden off-screen by default */
        background: rgba(0, 0, 0, 0.55);
        /*background: rgba(0, 0, 0, 0.95);*/ /*black transparency*/
        width: 225px; /* Width of the slide-out menu */
        height: 75%;
        padding: 20px 15px 15px 15px;
        transition: right 0.3s ease-in-out;
        gap: 8px;
        overflow-y: auto; /* Enable scrolling for long menus */
        z-index: 1002; /* Ensure it's above the video */
    }

        .nav-links.active {
            right: 0; /* Slides into view */
        }

    .close-btn {
        display: block; /* Show the close button when the mobile menu is active */
    }

    .dropdown-menu {
        position: relative;
        background: #111;
        width: 100%;
        min-width: 100%;
        left: 0;
        top: auto;
    }

    .nav-links a, .dropdown-btn {
        width: 100%;
    }
}

/* You might want to adjust the 'max-width' value based on your specific breakpoints */
/* For example, for even smaller phones, you might use: */

@media (max-width: 480px) {
    .nav-links {
        height: 85%;
    }
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

    #overlay.show {
        display: block;
    }

body.light-theme {
    background-color: #f0f0f0;
    color: #222;
}

    body.light-theme nav {
        background-color: #eee;
        color: #000;
    }

    body.light-theme .nav-links a,
    body.light-theme .dropdown-btn,
    body.light-theme .theme-toggle {
        color: #000;
    }

    body.light-theme .dropdown-menu {
        background-color: #ddd;
    }

 

/* ======== Media Queries for Smaller Screens ======= */

@media (max-width: 768px) { /* For tablets and smaller devices */
    .logo {
        max-width: 350px; /* Make the logo smaller for medium screens */
    }
}

@media (max-width: 480px) { /* For mobile phones */
    .logo {
        max-width: 180px; /* Make the logo even smaller for very small screens */
        /* You might also adjust padding or margin on the container if needed */
        /* .logo-container { padding: 10px; } */
    }
}

    /* You can add more media queries as needed */
  
@media (max-width: 320px) {
    .logo {
        max-width: 150px;
    }
}
