@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --purple: #A020F0;
    --purple-glow: rgba(160, 32, 240, 0.6);
    --dark-bg: #0a0a0c;
    --cyber-blue: #00f2ff;
    --magenta: #ff00ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Interactive Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0c 100%);
}

/* Background Spotlight Glow */
#bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(160, 32, 240, 0.15), transparent 80%);
}

/* Custom Cursor */
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--purple);
    box-shadow: 0 0 15px var(--purple), 0 0 30px var(--purple);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--purple-glow);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Links and buttons cursor interaction */
a, button, .glow-button, .nav-link, .logo-container {
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--magenta);
}

/* Background Effects */
.bg-cyber-dark {
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0c 100%);
    min-height: 100vh;
}

/* Scanlines Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 100;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 10px var(--purple-glow), 0 0 20px var(--purple-glow);
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

.neon-purple {
    color: var(--purple);
    text-shadow: 0 0 10px var(--purple-glow), 0 0 20px var(--purple-glow);
    animation: flicker 5s infinite alternate;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(160, 32, 240, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: rgba(160, 32, 240, 0.4);
    box-shadow: 0 0 40px rgba(160, 32, 240, 0.1);
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
}

.glow-button {
    background: var(--purple);
    color: white;
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    box-shadow: 0 0 40px var(--purple);
    transform: scale(1.05);
    background: #b53ef3;
}

.status-dot {
    box-shadow: 0 0 15px #22c55e;
}

.nav-link {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    box-shadow: 0 0 10px var(--purple-glow);
    transition: width 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--purple);
}

/* Mobile Menu Transitions */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu-content {
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    background: rgba(10, 10, 12, 0.95);
    border-left: 1px solid rgba(160, 32, 240, 0.3);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#mobile-menu-overlay.open #mobile-menu-content {
    right: 0;
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--purple);
    padding-left: 20px;
    text-shadow: 0 0 15px var(--purple-glow);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem !important;
    }
    .neon-purple {
        font-size: 4rem !important;
    }
    #mobile-menu.open {
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .neon-purple {
        font-size: 3rem !important;
    }
    .glow-button {
        width: 100%;
        padding: 1rem !important;
    }
}

/* Logo specific fix */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--purple-glow));
}

/* Navigation height fix */
#main-nav {
    height: 5rem;
    display: flex;
    align-items: center;
}

#main-nav.scrolled {
    height: 4rem;
    background: rgba(0, 0, 0, 0.95);
}

/* Product Card Grid Background */
.product-grid-bg {
    background-image: linear-gradient(rgba(160, 32, 240, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 32, 240, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Glitch Effect for main logo */
.glitch-text:hover {
    animation: glitch 0.3s linear infinite;
}

@keyframes glitch {
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}
