/* Header Styles - Shared across all pages */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 58px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--android-deep-blue);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    header {
        padding: 10px 0;
    }
    .logo-img {
        height: 44px;
    }
}

/* Page transitions (Cross-Document View Transitions) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root) {
        animation: 250ms cubic-bezier(0.4, 0, 1, 1) both fade-out;
    }

    ::view-transition-new(root) {
        animation: 350ms cubic-bezier(0, 0, 0.2, 1) both fade-in-scale;
    }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a.btn-primary {
    padding: 8px 24px;
    background-color: var(--android-navy);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 1;
    transition: var(--transition);
}

.nav-links a.btn-primary:hover {
    background-color: #0a4560;
    transform: scale(1.05);
    opacity: 1;
}
