/* Orion Energy Ring Interface - Minimal Animations */
/* Includes EXACT orb from Uiverse.io by narmesh_sah */
/* Background stars twinkle */
/* Personal project developed by Charan Kumar (.NET Developer & MCA Student) */

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

:root {
    --primary-cyan: #00aaff;
    --secondary-cyan: #00aaff;
    --dark-blue: #0a1628;
    --darker-blue: #050c1a;
    --card-bg: rgba(10, 22, 40, 0.7);
    --text-primary: #d9eaff;
    --text-secondary: #a0aec0;
}

body {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    background: #0b0f17;
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Starfield Background */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.orion-container {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px;
    /* Increased top/bottom padding to fix cut-off */
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.constellation {
    display: flex;
    gap: 3px;
}

.star {
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(2) {
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    animation-delay: 1s;
}

.star:nth-child(4) {
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.datetime {
    text-align: right;
}

.time {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Header Controls */
.header-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 20;
}

.header-btn {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    color: var(--text-primary);
    padding: 8px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.header-btn i {
    color: var(--primary-cyan);
    font-size: 12px;
}

.header-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

.header-btn:active {
    transform: translateY(1px);
}


/* Content Card */
.content-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding-bottom: 80px;
    /* Add padding to prevent overlap with footer */
}

/* Central Content Area */
.central-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    max-width: 500px;
    width: 90%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.central-content>* {
    pointer-events: auto;
}

/* Response Area at Top */
.response-area {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 90%;
    max-width: 700px;
    bottom: 160px;
    /* Leave space for "Ask New Question" button (at bottom 80px) */
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    /* Ensure content starts at top */
    pointer-events: none;
    /* Allow clicks to pass through empty areas */
}

.response-area>* {
    pointer-events: auto;
    /* Re-enable clicks on children */
}

.user-input-display {
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    z-index: 15;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
    animation: slideDown 0.4s ease-out;
}

.user-input-display p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    word-wrap: break-word;
}

.response-card {
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 15;
    max-width: 700px;
    width: 100%;
    max-height: 100%;
    /* Fill the response-area but don't overflow it */
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CHAT THREAD STYLES ========== */
.chat-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 750px;
    bottom: 150px;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 170, 255, 0.5);
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 18px;
    animation: bubbleIn 0.35s ease-out;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    position: relative;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 120, 200, 0.15) 100%);
    border: 1px solid rgba(0, 170, 255, 0.35);
    border-bottom-right-radius: 6px;
    color: var(--text-primary);
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 6px;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.chat-bubble-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
}

.chat-bubble.user .chat-bubble-label {
    color: var(--primary-cyan);
    text-align: right;
}

.chat-bubble.assistant .chat-bubble-label {
    color: rgba(255, 255, 255, 0.4);
}

.chat-bubble-text {
    white-space: pre-wrap;
}

.chat-bubble-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 6px;
    font-family: 'Rajdhani', sans-serif;
}

.chat-bubble.user .chat-bubble-time {
    text-align: right;
}

/* Typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-cyan);
    opacity: 0.4;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Chat Input Bar */
.chat-input-bar {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 750px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 22, 40, 0.85);
    padding: 10px 16px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 25;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 4px 6px 4px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    outline: none;
    padding: 8px 0;
}

.chat-input-wrapper input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--primary-cyan);
    border-radius: 50%;
    color: var(--darker-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #33ccff;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.mic-btn-small {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 170, 255, 0.15);
    border-radius: 50%;
    color: var(--primary-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.mic-btn-small:hover {
    background: rgba(0, 170, 255, 0.3);
    transform: scale(1.05);
}

.mic-btn-small.listening {
    background: rgba(0, 170, 255, 0.4);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Chat Action Link (inline play/open buttons in chat) */
.chat-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 150, 200, 0.15) 100%);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 20px;
    color: var(--primary-cyan);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-glow 2s ease-in-out infinite;
}

.chat-action-link:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(0, 200, 255, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    color: #fff;
}

/* Video Player Card in Chat */
.video-player-card {
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid var(--primary-cyan);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    animation: slideDown 0.4s ease-out;
}

.video-player-bubble {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.video-player-header {
    background: rgba(0, 170, 255, 0.1);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.video-status-dot {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    animation: pulse-glow 1.5s infinite;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== END CHAT THREAD STYLES ========== */

.response-card::-webkit-scrollbar {
    width: 8px;
}

.response-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.response-card::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

.response-card::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-cyan);
}

.response-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.response-content p {
    margin: 10px 0;
}

/* Typing cursor animation */
.typing-cursor {
    color: var(--primary-cyan);
    font-weight: bold;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.welcome-display {
    position: absolute;
    top: 110px;
    bottom: calc(50% + 180px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 12;
    overflow-y: auto;
    display: flex;
}

.welcome-display::-webkit-scrollbar {
    width: 4px;
}
.welcome-display::-webkit-scrollbar-track {
    background: transparent;
}
.welcome-display::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.25);
    border-radius: 2px;
}

.welcome-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    color: var(--text-primary);
    margin: auto;
    text-align: center;
    width: 100%;
    line-height: 1.6;
    opacity: 1;
}

/* ✅ EXACT UIVERSE.IO ORB ANIMATION - WITH ORIGINAL STRUCTURE AND CRITICAL FIX */
.orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
    filter: drop-shadow(0 0 8px #ff3e1c88) drop-shadow(0 0 8px #1c8cff88);
    transition: all 0.3s ease;
    z-index: 1000;
}

.orb {
    position: absolute;
    width: 300px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #060606;
    filter: blur(36px);
    transition: all 0.3s ease;
    z-index: 1;
    /* Orb background */
}

.orb-container:hover .orb {
    width: 330px;
    animation: rotate 6s infinite;
}

@keyframes rotate {
    50% {
        transform: rotate(180deg);
    }
}

.orb-inner {
    position: absolute;
    left: -120%;
    top: -25%;
    width: 160%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ff3e1c;
    clip-path: polygon(50% 0%,
            61% 35%,
            98% 35%,
            68% 57%,
            79% 91%,
            50% 70%,
            21% 91%,
            32% 57%,
            2% 35%,
            39% 35%);
    animation: rotate-inner 10s linear infinite;
    transition: all 0.3s ease;
}

.orb-inner:nth-child(2) {
    left: auto;
    right: -120%;
    top: auto;
    bottom: -25%;
    background: #1c8cff;
    animation: rotate-inner 10s linear infinite reverse;
    clip-path: polygon(20% 0%,
            0% 20%,
            30% 50%,
            0% 80%,
            20% 100%,
            50% 70%,
            80% 100%,
            100% 80%,
            70% 50%,
            100% 20%,
            80% 0%,
            50% 30%);
}

@keyframes rotate-inner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.orb-container:hover .orb .orb-inner {
    width: 170%;
}

/* Status Text Inside Orb */
.status-text-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* Above orb artwork */
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    pointer-events: none;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: status-glow 2.5s ease-in-out infinite;
}

@keyframes status-glow {
    0%, 100% {
        opacity: 0.55;
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 18px rgba(0, 240, 255, 0.7), 0 0 28px rgba(0, 240, 255, 0.4);
    }
}

@keyframes text-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.05);
    }
}




/* Status Text */
.status-text {
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(10, 22, 40, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 5;
    opacity: 0.2;
}

/* Control Bar — EXACT ORIGINAL */
.control-bar {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(10, 22, 40, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 20;
}

.control-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* Microphone Button — Animated Custom Style */
.mic-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-cyan);
    color: var(--darker-blue);
    font-size: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    margin: -5px 0;
}

.mic-btn::before {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    background-color: inherit;
    z-index: -1;
}

.mic-btn:hover {
    transform: scale(1.05);
    /* Slightly reduced scale to avoid too much growth */
}

.mic-btn.listening {
    background-color: #0da9d9;
}

.mic-btn.listening::before {
    animation: listening 1.3s infinite;
}

@keyframes listening {
    from {
        opacity: 0.25;
    }

    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Input Container */
.input-container {
    position: absolute;
    bottom: 200px;
    /* Moved up to avoid covering mic */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(10, 22, 40, 0.9);
    padding: 15px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    width: 400px;
    max-width: 90vw;
    z-index: 20;
}

.input-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    outline: none;
    padding: 8px 12px;
}

.input-container input::placeholder {
    color: var(--text-secondary);
}

.input-container button {
    background: var(--primary-cyan);
    border: none;
    color: var(--darker-blue);
    padding: 8px 16px;
    border-radius: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-container button:hover {
    background: var(--secondary-cyan);
    transform: translateY(-1px);
}


/* Pending Action Button (for opening URLs without popup blocker) */
.pending-action-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.pending-action-btn {
    background: linear-gradient(135deg, #00f0ff 0%, #0099cc 100%);
    border: 2px solid var(--primary-cyan);
    color: var(--darker-blue);
    padding: 15px 35px;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.pending-action-btn:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00ccff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.8), inset 0 0 30px rgba(0, 240, 255, 0.3);
}

.pending-action-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.6);
}

.pending-action-btn svg {
    transition: transform 0.3s ease;
}

.pending-action-btn:hover svg {
    transform: scale(1.15);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), inset 0 0 30px rgba(0, 240, 255, 0.3);
    }
}

/* Footer — WITH YOUR NAME */
.footer {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 100%;
    max-width: 600px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.footer-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--primary-cyan), transparent);
    opacity: 0.5;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
}

.developer-name {
    color: var(--text-primary);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon svg {
    filter: brightness(1.2);
}

.social-icon.github:hover {
    background: #333;
    border-color: #333;
    color: #d9eaff;
    transform: translateY(-2px);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #d9eaff;
    transform: translateY(-2px);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: #d9eaff;
    transform: translateY(-2px);
}

.social-icon.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: #fff;
    transform: translateY(-2px);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-content {
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar for Settings */
.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

/* Custom Dropdown Styling */
select {
    background: rgba(10, 22, 40, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    cursor: pointer;
}

select option {
    background: #0b0f17;
    color: var(--text-primary);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.settings-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-cyan);
}

.settings-body {
    padding: 20px 25px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--primary-cyan);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.setting-item label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.setting-item input[type="range"] {
    flex: 2;
    margin: 0 15px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.setting-item span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: var(--primary-cyan);
    min-width: 40px;
    text-align: right;
}

.checkbox-item {
    justify-content: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-cyan);
}

.settings-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    gap: 15px;
}

.reset-btn,
.save-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.save-btn {
    background: var(--primary-cyan);
    color: var(--darker-blue);
}

.save-btn:hover {
    background: var(--secondary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header-controls {
        position: static;
        transform: none;
    }

    .logo h1 {
        font-size: 20px;
    }

    .time {
        font-size: 18px;
    }

    .control-bar {
        gap: 15px;
        padding: 12px 20px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .mic-btn {
        width: 56px;
        height: 56px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 16px;
    }

    .footer-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--primary-cyan), transparent);
    }

    .footer-credits {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}