/* ===== Custom CSS & Premium Variables ===== */

:root {
    --color-deep: #060B19;      /* Midnight Indigo */
    --color-primary: #111827;   /* Rich Dark Gray/Blue for cards */
    --color-electric: #38bdf8;  /* Light Sky Blue (Premium) */
    --color-orange: #f43f5e;    /* Rose/Coral instead of harsh orange */
}

/* Base Styles & Scrollbar */
html {
    scroll-behavior: smooth;
    background-color: var(--color-deep);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-deep);
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-electric);
}

/* Custom Scrollbar for inner components */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-electric);
}

/* Mobile Menu Animation */
.clip-path-circle-0 {
    clip-path: circle(0% at top right);
}
.clip-path-circle-full {
    clip-path: circle(150% at top right);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transform: translateY(-2px);
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-electric);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-glow {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background-color: rgba(56, 189, 248, 0.05);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    transition-timing-function: ease-out;
}

/* Hover effects for cursor */
.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-glow {
    width: 48px;
    height: 48px;
    background-color: rgba(244, 63, 94, 0.1);
    border-color: var(--color-orange);
    backdrop-filter: blur(1px);
}

/* Typography Enhancements */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.gradient-primary {
    background-image: linear-gradient(135deg, var(--color-electric), #818cf8);
}
.gradient-secondary {
    background-image: linear-gradient(135deg, var(--color-orange), #fb923c);
}

/* Animated Wave Footer Setup */
.wave-animate-1 {
    animation: waveX 20s linear infinite;
    transform-origin: bottom;
}

@keyframes waveX {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-5%) scaleY(1.1); }
    100% { transform: translateX(0) scaleY(1); }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Utilities */
.visibility-hidden {
    visibility: hidden;
}

/* ===== Chatbot Styles ===== */
#chatbot-window {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#chatbot-window.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}
#chatbot-window.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
#chatbot-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.4) transparent;
}
#chatbot-messages::-webkit-scrollbar { width: 4px; }
#chatbot-messages::-webkit-scrollbar-track { background: transparent; }
#chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.4); border-radius: 4px; }

.chat-bubble-bot {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(10, 15, 37, 0.8));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 0 1rem 1rem 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
    max-width: 80%;
    word-break: break-word;
    animation: chatFadeIn 0.3s ease;
}
.chat-bubble-user {
    background: linear-gradient(135deg, #ff6200, #ff0055);
    border-radius: 1rem 0 1rem 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: white;
    max-width: 80%;
    margin-left: auto;
    word-break: break-word;
    animation: chatFadeIn 0.3s ease;
}
.chat-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    animation: chatBounce 1s infinite;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}
@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-quick-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.chat-quick-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}
