/* 1. MAGNETIC CURSOR */
#magnetic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--gold, #d4af37);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: screen;
    box-shadow: 0 0 15px var(--gold, #d4af37), 0 0 30px var(--gold, #d4af37);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, box-shadow 0.3s;
    margin-left: -10px;
    margin-top: -10px;
}

#magnetic-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--gold, #d4af37);
    box-shadow: none;
    margin-left: -25px;
    margin-top: -25px;
    backdrop-filter: blur(2px);
}

/* Hide default cursor for elements we animate */
.btn, .nav-link, button, .subcompany-card, .quick-action {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. VOICE RECOGNITION MIC BTN */
.chatbot-mic {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text, #f5f2e8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    flex-shrink: 0;
}
.chatbot-mic:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold, #d4af37);
}
.chatbot-mic.recording {
    background: #e53935;
    color: white;
    border-color: #e53935;
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Make input area flex to fit mic */
.chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 12px;
}

.chatbot-input-area input {
    flex: 1;
}

/* 3. THEME TOGGLER */
.theme-toggle {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--gold, #d4af37);
    color: var(--gold, #d4af37);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 16px;
}
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Cyber Theme Variables & Overrides */
body.cyber-theme {
    --bg: #000511;
    --surface: #020b1f;
    --text: #e0f2fe;
    --gold: #00f0ff; /* Cyber cyan instead of gold */
    --muted: #94a3b8;
    background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.15), transparent 30%),
                radial-gradient(circle at bottom right, rgba(255, 0, 255, 0.1), transparent 30%),
                linear-gradient(180deg, #000511 0%, #01081a 100%);
}

body.cyber-theme .card, body.cyber-theme .testimonial-card, body.cyber-theme .pc, body.cyber-theme .sc, body.cyber-theme .step {
    background: rgba(2, 11, 31, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(12px);
}

body.cyber-theme .btn.primary {
    background: linear-gradient(135deg, #00f0ff, #0080ff);
    color: #000;
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.4);
}

body.cyber-theme .gradient-text {
    background: linear-gradient(90deg, #00f0ff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.cyber-theme #magnetic-cursor {
    background-color: #00f0ff;
    box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
}

body.cyber-theme #magnetic-cursor.cursor-hover {
    border-color: #00f0ff;
}

/* 4. ADVANCED SCROLL REVEAL */
.innovative-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.innovative-reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

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