html, body {
    background-color: #050507;
    height: 100%;
    margin: 0;
}

body {
    color: #E2E8F0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.08), transparent 25%);
}

/* Header Styles & Transitions */
#header {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    top: 0;
    border: 1px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.027);
    background: rgba(0, 0, 0, 0.144);
    
}

#header.scrolled {
    top: 1.5rem;
    width: 90%;
    max-width: 64rem; /* max-w-5xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background: rgba(5, 5, 7, 0.63);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#header > div {
    transition: height 0.5s ease;
    height: 5rem; /* h-20 */
}

#header.scrolled > div {
    height: 4rem; /* h-16 */
}

/* Cyber Grid Background */
.bg-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glass-nav {
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Enhanced Glass Card */
.glass-card {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    background: rgba(30, 30, 45, 0.6);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.glass-card:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(168, 85, 247, 0.15), transparent 40%);
    opacity: 1;
}

/* Mouse Glow for Button */
.mouse-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(100px circle at var(--mouse-x) var(--mouse-y), rgba(34, 197, 94, 0.4), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    mix-blend-mode: screen;
}

.mouse-glow:hover::after {
    opacity: 1;
}

/* Premium Card Glow */
.premium-card {
    background: linear-gradient(165deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #A855F7, #2DD4BF, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

.text-glow {
    text-shadow: 0 0 30px rgba(217, 70, 239, 0.6);
}

.text-gradient {
    background: linear-gradient(to right, #a855f7, #3b82f6, #22c55e, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Neon Button */
.neon-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 1;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #D946EF, #06B6D4);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.neon-button:hover::before {
    opacity: 1;
}

.neon-button:hover {
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.6);
    letter-spacing: 1px;
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050507;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
