/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background Video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
}

/* Content Row */
.content-row {
    max-width: 800px;
    margin: 0 auto;
}

.video-title {
    margin-left: -175%;
    margin-top: 65%;
    font-size: 4.5rem;
    color: #fff;
    font-weight: 700;
}

.video-subtitle {
    margin-left: -86%;    
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 500;
    text-align: left;
    font-size: 2.5rem;
}

.btn-primary {
    margin-right: 64%;
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
    background: transparent; /* Default: no background */
    transition: background 0.3s ease-in-out;
}

/* When scrolling down, navbar gets a background */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.5); /* Dark background when scrolling */
}

/* Logo */
.logo {
    position: absolute;
    margin-left: 5%;
    max-height: 80px;
    opacity: 0;  /* Hidden by default */
    transition: opacity 0.6s ease, max-height 0.6s ease;
    transition-delay: 0.2s; /* Delay the transition for a smoother effect */
}

.logoTwo {
    margin-left: 5%;
    max-height: 50px;
    transition: opacity 0.6s ease, max-height 0.6s ease;
    transition-delay: 0.2s; /* Delay the transition for a smoother effect */
}

/* When scrolling down: fade out the first logo (logo) and fade in the second logo (logo2) */
.navbar.scrolled .logo {
    opacity: 0;  /* Fade out logo when scrolling down */
 
}

.navbar.scrolled .logoTwo {
    opacity: 1;  /* Fade in logo2 when scrolling down */
    margin-left: 30%;
    max-height: 60px;
}

/* Logo visible when at the top of the page (before scroll) */
.navbar:not(.scrolled) .logo {
    opacity: 1;  /* Make logo visible by default */
}

.navbar:not(.scrolled) .logoTwo {
    opacity: 0;  /* Make logo2 hidden by default */
  
}


/* Menu Icon */
.menu-icon {
    margin-right: 50px;
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* Navigation Links */
.nav-links {
    margin-right: 50px;
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

    .nav-links li {
        display: inline;
    }

    .nav-links a {
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-transform: uppercase;        
    text-decoration: none;        
    transition: color 0.3s ease;
    }

        .nav-links a:hover {
            color: white;
        }

    /* When navbar is scrolled */
    .navbar.scrolled .nav-links a {
     color: white; /* Change nav-link color when scrolled */
    }

    .navbar.scrolled .nav-links a:hover {
        color: grey;
    }

 /* Responsive Styles */

 @media (max-width: 1654px) {
    .video-title {
        margin-left: -10%;
        margin-top: 65%;
        font-size: 5rem;
        color: #fff;
        font-weight: 700;
    }

    .video-subtitle {
        margin-left: -5%;
        font-size: 3rem;
        margin-bottom: 20px;
        color: white;
        font-weight: 500;
        text-align: left;
    }


 }


 @media (max-width: 1084px) {

    .logo {
        height: 60px;
        transition: 1s;
    }

    /* Navbar Layout */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    /* Show Menu Icon */
    .menu-icon {
        display: block;
        transition: 1s;
    }
    .logoTwo{
        max-width: 80%;
    }

    /* Hide Navigation Links by Default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 105%;
        right: 30%;
        width: 200px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        padding: 10px;
        text-align: center;
        transition: all 0.3s ease-in-out; /* Smooth transition */
    }

        /* Show Navigation when Active */
        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            padding: 10px 0;
        }


        .video-title {
            margin-left: -10%;
            margin-top: 65%;
            font-size: 5rem;
            color: #fff;
            font-weight: 700;
        }

        .video-subtitle {
            margin-left: -5%;
            font-size: 3rem;
            margin-bottom: 20px;
            color: white;
            font-weight: 500;
            text-align: left;
        }

        .btn-primary {
            padding: .875rem 1.5rem;
            color: #fff;
            font-size: 1rem;
            letter-spacing: 1px;
            border: 2px solid #fff;
            text-decoration: none;
            text-transform: uppercase;
            text-align: center;
            display: inline-block;
            font-weight: 500;
            margin-top: 3rem;
            transition: all .6s;
        }
}



@media (max-width: 768px) {
    .logo {
        height: 30px;
        transition: 1s;
    }

    /* Navbar Layout */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    /* Show Menu Icon */
    .menu-icon {
        display: block;
        transition: 1s;
    }
    .logoTwo{
        max-width: 60%;
    }

    /* Hide Navigation Links by Default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90%;
        right: 10%;
        width: 200px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        padding: 10px;
        text-align: center;
        transition: all 0.3s ease-in-out; /* Smooth transition */
    }

        /* Show Navigation when Active */
        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            padding: 10px 0;
        }


        .video-title {
            margin-left: -10%;
            margin-top: 65%;
            font-size: 2.2rem;
            color: #fff;
            font-weight: 700;
        }

        .video-subtitle {
            margin-left: -5%;
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: white;
            font-weight: 500;
            text-align: left;
        }

        .btn-primary {
            padding: .875rem 1.5rem;
            color: #fff;
            font-size: 1rem;
            letter-spacing: 1px;
            border: 2px solid #fff;
            text-decoration: none;
            text-transform: uppercase;
            text-align: center;
            display: inline-block;
            font-weight: 500;
            margin-top: 3rem;
            transition: all .6s;
        }
}
