/* ========== BASE STYLES ========== */
* {
    scroll-behavior: smooth;
}

body {
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A0F1F;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.4);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 255, 0.7);
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========== NAVIGATION ========== */
#navbar.scrolled {
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #00FFD5);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 60%;
}

/* ========== CUSTOM CURSOR ========== */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }
    a, button, input, select, textarea, .cursor-pointer, [onclick] {
        cursor: none;
    }
    #cursor, #cursor-dot {
        display: block;
    }
}

/* ========== BILLING TOGGLE ========== */
.billing-toggle {
    color: #999;
}
.billing-toggle.active {
    background: linear-gradient(135deg, #0066FF, #00C2FF);
    color: white;
}

/* ========== HERO CANVAS ========== */
#heroCanvas {
    pointer-events: none;
}

/* ========== GLOW EFFECTS ========== */
.glow-primary {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3), 0 0 60px rgba(0, 102, 255, 0.1);
}
.glow-accent {
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.3), 0 0 60px rgba(0, 255, 213, 0.1);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,102,255,0.4); }
    50% { box-shadow: 0 0 40px rgba(0,194,255,0.8); }
}
@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes networkPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ========== SELECT OPTION STYLING ========== */
select option {
    background: #0A0F1F;
    color: #fff;
    padding: 8px;
}

/* ========== INPUT AUTOFILL ========== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #0A0F1F inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 640px) {
    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* ========== CHAT SCROLLBAR ========== */
#chatMessages::-webkit-scrollbar {
    width: 3px;
}
#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}
#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* ========== FOCUS STYLES ========== */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, #0066FF, #00FFD5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}