/* ===========================
   MINIMAL CUSTOM STYLES
   Only animation-specific styles that Tailwind can't handle
   =========================== */

/* ===========================
   NAVIGATION ACTIVE STATES
   =========================== */
.nav-link.active {
    color: #00d9ff !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #00d9ff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.8);
    animation: professionalGlow 2s ease-in-out infinite;
}

.nav-link:hover {
    color: #00d9ff !important;
}

/* Add extra padding to navbar to accommodate the indicator */
.navbar {
    padding-bottom: 4px;
}

/* Professional Loading Screen */
#loading-screen {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    position: relative;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.loading-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: rgba(0, 217, 255, 0.8);
    border-radius: 50%;
    animation: professionalSpin 2s linear infinite;
}

.loading-ring.ring-2 {
    width: 90%;
    height: 90%;
    border-top-color: rgba(255, 107, 0, 0.6);
    animation-duration: 2.5s;
    animation-direction: reverse;
}

.loading-bar {
    animation: professionalProgress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #ff6b00);
    border-radius: 2px;
}

@keyframes professionalSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes professionalProgress {
    0% {
        width: 0%;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* Mobile Navigation */
.nav-menu {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-left: 2px solid rgba(0, 217, 255, 0.2);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 217, 255, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Active Nav Link */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d9ff, #ff6b00);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

@media (max-width: 768px) {
    .nav-link.active::after {
        left: -10px;
        width: 3px;
        height: 20px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Expandable Sections */
.expandable-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    opacity: 1;
}

.expandable-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.expandable-header .toggle-icon {
    transition: transform 0.3s ease;
}

.expandable-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Professional Expandable Effects */
.expandable-header.expanding {
    animation: professionalGlow 0.8s ease-out;
}

@keyframes professionalGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
    }
}

/* Typing Indicator Active State */
.typing-indicator.active {
    display: flex !important;
}

/* Professional Voice Toggle */
.voice-toggle.speaking {
    animation: professionalVoicePulse 2s ease-in-out infinite;
}

@keyframes professionalVoicePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 217, 255, 0);
        transform: scale(1.05);
    }
}

.voice-toggle.muted {
    opacity: 0.5;
}

/* Status Indicator */
.status-indicator {
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: statusRipple 2s ease-out infinite;
}

@keyframes statusRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Data Stream Animation (for JavaScript-generated streams) */
@keyframes dataStream {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Hexagon Float Animation (for JavaScript-generated hexagons) */
@keyframes hexFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100px) rotate(360deg);
        opacity: 0;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d9ff, #ff6b00);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #ff8c00);
}

/* Selection */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 217, 255, 0.3);
    color: #ffffff;
}

/* Additional Utility Classes for Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Message animations for chatbot */
.message {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevent animation on page load */
.no-animate-on-load * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* ===========================
   CHATBOT QUICK REPLY CHIPS
   =========================== */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05));
    border: 1.5px solid rgba(0, 217, 255, 0.4);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #00d9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.1);
}

.chip:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0.15));
    border-color: rgba(0, 217, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.chip:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 217, 255, 0.2);
}
