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

* {
    font-family: 'Inter', sans-serif;
}

/* --- New Dropdown Menu Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 100;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-top: 1rem; /* Space below the nav link */
}

/* This class is toggled with JavaScript to show the menu */
.dropdown.dropdown-active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 212, 255, 0.2);
    color: #fff;
}
/* --- End of New Dropdown Styles --- */


.neural-bg {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
}

.neural-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00d4ff;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.7;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: flow 3s infinite;
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

.hologram-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.hologram-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

.hologram-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.ai-processor {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #1a1a3e, #2d1b69);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-processor:hover {
    transform: rotateY(15deg) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.processor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #00d4ff;
    border-radius: 50%;
    animation: coreRotate 4s linear infinite;
}

@keyframes coreRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.processor-ring {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

.ring-1 { width: 80px; height: 80px; top: 60px; left: 60px; animation-delay: 0s; }
.ring-2 { width: 120px; height: 120px; top: 40px; left: 40px; animation-delay: 0.5s; }
.ring-3 { width: 160px; height: 160px; top: 20px; left: 20px; animation-delay: 1s; }

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.performance-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 4px;
    transition: width 2s ease-in-out;
    position: relative;
}

.performance-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.interactive-demo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-demo:hover {
    transform: scale(1.02);
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.typing-animation {
    border-right: 2px solid #00d4ff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #00d4ff; }
    51%, 100% { border-color: transparent; }
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 10px;
    border: 2px solid rgba(15, 15, 35, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e5ff, #00bcd4);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Custom Cursor */
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%2300d4ff" opacity="0.3"/><circle cx="12" cy="12" r="3" fill="%2300d4ff"/></svg>'), auto;
}

button, .interactive-demo, a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23ff6b6b" opacity="0.4"/><circle cx="12" cy="12" r="4" fill="%23ff6b6b"/></svg>'), pointer;
}

/* Click Animation */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: ripple 0.8s ease-out forwards;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.click-spark {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: spark 0.6s ease-out forwards;
}

@keyframes spark {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(var(--dx), var(--dy));
    }
}

