/* Professional Header and Navigation Styles */

/* Main Header Container */
header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 80px;
    background: rgba(18, 18, 27, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(165, 255, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header on scroll effect */
header.scrolled {
    height: 70px;
    background: rgba(18, 18, 27, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo Styling */
.guac-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

header.scrolled .guac-logo {
    height: 50px;
    width: 50px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation Links */
.nav-link {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #A5FF00;
}

/* Active Navigation Link */
.nav-link.active {
    color: #A5FF00;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #A5FF00;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Sign In Button */
.sign-in-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(165, 255, 0, 0.15), rgba(165, 255, 0, 0.3));
    border: 1px solid rgba(165, 255, 0, 0.3);
    color: #A5FF00;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 10px;
}

.sign-in-button:hover {
    background: linear-gradient(90deg, rgba(165, 255, 0, 0.2), rgba(165, 255, 0, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 255, 0, 0.2);
}

.sign-in-button i {
    font-size: 14px;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: absolute;
    right: 20px;
    top: 28px;
    z-index: 1000;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger .line:nth-child(2) {
    width: 85%;
    align-self: flex-end;
}

.hamburger .line:nth-child(3) {
    width: 70%;
}

/* Hamburger Animation */
.hamburger.active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    width: 100%;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    width: 100%;
}

/* Body styles when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background: rgba(18, 18, 27, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 30px 20px;
        gap: 10px;
        transform: translateY(-120%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: all 0.4s ease;
        height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: all !important;
        visibility: visible !important;
    }

    .nav-link {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    /* Add spacing after active submenu items */
    .nav-link.has-submenu.active + .subnav-container.active,
    .nav-link.has-submenu.active + .mobile-submenu {
        margin-bottom: 15px;
    }

    .sign-in-button {
        margin: 20px 0 0 0;
        padding: 15px 0;
        width: 100%;
        text-align: left;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.85);
    }

    .sign-in-button:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        color: #fff;
    }

    header.scrolled {
        height: 70px;
    }

    header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Animation for header elements */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container, .nav-link, .sign-in-button {
    animation: fadeInDown 0.5s ease forwards;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.sign-in-button { animation-delay: 0.4s; }

/* Sign In Link - Similar to nav items but with subtle distinction */

.sign-in-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
    position: relative;
    transition: color 0.3s ease-in-out;
    /* Subtle distinction - very light border */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-left: 10px;
}

.sign-in-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sign-in-link {
        margin: 20px 0 0 0;
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        text-align: left;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}
