/* ====================================================================
   RR Apps Studio - Header & Navigation Bar
   ==================================================================== */

.site-header {
    background: rgba(11, 19, 41, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 19, 41, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-bottom-color: rgba(37, 99, 235, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    gap: 1.5rem;
}

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
}

.logo-brand:hover .logo-icon-box {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.logo-title .brand-rr {
    color: #38bdf8;
}

.logo-title .brand-apps {
    color: #ffffff;
    margin-left: 2px;
}

.logo-title .brand-studio {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

.logo-badge {
    font-size: 0.65rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Desktop Nav Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu li a.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: var(--transition);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.55rem 0.65rem;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 42px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #38bdf8;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #0b1329;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 1.5rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .nav-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-menu li a {
        font-size: 1.05rem;
        padding: 0.85rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .nav-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
}