/* Header and Navigation Styles */

/* Navbar Styles - Fixed navigation bar at the top with white background and centered content */
.navbar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    font-family: 'Poppins', sans-serif;
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled Navbar - Black background when scrolled */
.navbar.scrolled {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
}

.navbar.scrolled .nav-links a {
    color: #ffffff;
}

.navbar.scrolled .nav-links a:hover {
    color: #ff6b00;
}

.navbar.scrolled .watch-btn {
    background-color: #ff6b00;
    color: #ffffff;
    border: 2px solid #ff6b00;
}

.navbar.scrolled .watch-btn:hover {
    background-color: #ff8c00;
    border-color: #ff8c00;
}

.navbar.scrolled .hamburger span {
    background: #ffffff;
}

/* Navigation Container - Flexbox container for logo, links, and button with max width and spacing */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo Styles - Sets height and object-fit for the UCPL logo */
.logo {
    height: 80px;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Navigation Links - Horizontal flex layout for nav links with gap and font weight */
.nav-links {
    display: flex;
    gap: 40px;
    font-weight: 600;
    align-items: center;
}

/* Nav Link Styles - Removes underline, sets color, and hover effect */
.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.nav-links a:hover {
    color: #555;
}

/* Watch Button - Black button with white text, rounded corners, and hover transition */
.watch-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 90px;
    right: 0;
    width: 280px;
    max-width: 85vw;
    background: white;
    padding: 20px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 8px 0 0 8px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 10000;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000;
    text-decoration: none;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.mobile-menu-content a:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-menu-content a i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: #ff6600;
    transition: transform 0.3s ease;
}

.mobile-menu-content a span {
    flex: 1;
}

.mobile-menu-content a:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    transform: translateX(5px);
}

.mobile-menu-content a:hover i {
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .watch-btn {
        display: none;
    }

    .mobile-menu-content {
        top: 85px;
        width: 260px;
        padding: 15px;
    }

    .mobile-menu-content a {
        padding: 14px 0;
        font-size: 15px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }

    .logo {
        height: 60px;
    }

    .mobile-menu-content {
        top: 80px;
        width: 240px;
        max-width: 90vw;
        padding: 12px;
    }

    .mobile-menu-content a {
        padding: 12px 0;
        font-size: 14px;
    }
}
