/* Custom AWS orange color */
.orange-300 { color: #FF9900; }
.bg-orange-300 { background-color: #FF9900; }
.border-orange-300 { border-color: #FF9900; }

.navbar {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

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

.logo-img {
    height: 2rem;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-desktop {
    display: none;
}

.nav-links {
    margin-left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

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

.nav-icon {
    margin-right: 0.25rem;
}

.nav-logout {
    background-color: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
}

.nav-logout:hover {
    background-color: #dc2626;
    color: white;
}

.nav-login {
    background-color: #FF9900;
    color: white;
    padding: 0.5rem 1rem;
}

.nav-login:hover {
    background-color: #ea580c;
    color: white;
}

.nav-mobile-btn {
    display: block;
}

.mobile-menu-toggle {
    background-color: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #374151;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.mobile-menu-toggle:hover {
    color: #FF9900;
    background-color: #e5e7eb;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #FF9900;
    outline-offset: -2px;
}

.menu-icon {
    height: 1.5rem;
    width: 1.5rem;
    display: block;
}

.menu-icon-close {
    display: none;
}

.nav-mobile-menu {
    display: none;
}

.mobile-menu-content {
    padding: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-link {
    color: #374151;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    margin-bottom: 0.25rem;
}

.mobile-nav-link:hover {
    color: #FF9900;
}

.mobile-nav-icon {
    margin-right: 0.5rem;
}

.mobile-logout {
    background-color: #ef4444;
    color: white;
}

.mobile-logout:hover {
    background-color: #dc2626;
    color: white;
}

.mobile-login {
    background-color: #FF9900;
    color: white;
}

.mobile-login:hover {
    background-color: #ea580c;
    color: white;
}

/* Desktop breakpoint - md: (768px and up) */
@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    
    .nav-mobile-btn {
        display: none;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}

/* Large breakpoint - lg: (1024px and up) */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient animations */
.animate-gradient {
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse glow effect */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 153, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 153, 0, 0.8); }
}

/* Particle background */
.particles {
    position: relative;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 153, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { transform: translateX(0px); }
    100% { transform: translateX(-100px); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF9900;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e88a00;
}

/* Beta glass bottom navbar */
.beta-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 92%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-radius: 24px;
    z-index: 60;
    overflow: hidden;
    transition: transform .35s ease, opacity .25s ease;
}
/* Gradient border ring */
.beta-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px; /* border thickness */
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,153,0,0.6), rgba(59,130,246,0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
/* Cursor spotlight following pointer */
.beta-bottom-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(140px 140px at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.22), rgba(255,255,255,0) 60%);
    filter: blur(6px);
    opacity: .65;
    pointer-events: none;
    transition: opacity .2s ease;
}
.beta-bottom-nav .liquid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.beta-bottom-nav .blob {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.25;
}
.beta-bottom-nav .blob.orange { background: radial-gradient(circle, rgba(255,153,0,0.8) 0%, rgba(255,153,0,0) 60%); }
.beta-bottom-nav .blob.blue   { background: radial-gradient(circle, rgba(59,130,246,0.7) 0%, rgba(59,130,246,0) 60%); }
.beta-bottom-nav .blob.green  { background: radial-gradient(circle, rgba(16,185,129,0.7) 0%, rgba(16,185,129,0) 60%); }
@keyframes blobMove {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(40px, -10px); }
    66%  { transform: translate(-20px, 25px); }
    100% { transform: translate(0, 0); }
}
.beta-bottom-nav .blob.b1 { top: -30px; left: -20px; animation: blobMove 11s ease-in-out infinite; }
.beta-bottom-nav .blob.b2 { bottom: -40px; left: 25%; animation: blobMove 15s ease-in-out infinite 1s; }
.beta-bottom-nav .blob.b3 { top: -20px; right: -30px; animation: blobMove 19s ease-in-out infinite 0.5s; }

.beta-bottom-nav .items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 10px 12px;
}
.beta-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    color: #1f2937;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
/* Hover ripple centered at pointer */
.beta-item::after {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    left: calc(var(--mx, 50%) - 110px);
    top: calc(var(--my, 50%) - 110px);
    background: radial-gradient(closest-side, rgba(255,153,0,0.18), rgba(255,153,0,0));
    transform: scale(0.6);
    opacity: 0;
    filter: blur(10px);
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}
.beta-item:hover::after { transform: scale(1); opacity: .9; }
.beta-item:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }
.beta-item.active { background: rgba(255,153,0,0.15); color: #FF9900; }
.beta-item i { font-size: 1.15rem; }
.beta-item span { font-size: .75rem; font-weight: 600; }


/* Hide/show states */
.beta-bottom-nav.hide { transform: translate(-50%, 140%); opacity: .85; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .beta-bottom-nav,
    .beta-bottom-nav::after,
    .beta-item::after {
        transition: none !important;
    }
    .beta-bottom-nav .blob { animation: none !important; opacity: .18; }
}