﻿
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    background: #0a0a0f;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
#chatInput,
#visitorNameInput {
    color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    background-color: #1a1a2a !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder,
#chatInput::placeholder,
#visitorNameInput::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Force text visibility in inputs */
#chatInput,
#visitorNameInput,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    text-shadow: 0 0 0 #ffffff !important;
}

/* Ensure the text is visible when typing */
#chatInput:focus,
#visitorNameInput:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #1f2937 !important;
}

/* Fix for autofill background */
#chatInput:-webkit-autofill,
#visitorNameInput:-webkit-autofill,
#chatInput:-webkit-autofill:hover,
#visitorNameInput:-webkit-autofill:hover,
#chatInput:-webkit-autofill:focus,
#visitorNameInput:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #1f2937 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 58, 205, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e0ff 0%, #9d4edd 100%);
    border-radius: 10px;
}

/* Glassmorphism effects */
.glass {
    background: rgba(13, 58, 205, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 224, 255, 0.1);
}

.glass-heavy {
    background: rgba(5, 10, 31, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 224, 255, 0.2);
}

/* Premium Card Effects */
.premium-card {
    background: linear-gradient(145deg, rgba(13, 58, 205, 0.15) 0%, rgba(26, 26, 35, 0.8) 50%, rgba(5, 10, 31, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 224, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.5), transparent);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 224, 255, 0.3);
    transition: all 0.3s ease;
}

/* Team Card Magic Effects */
.team-card-magic {
    background: linear-gradient(145deg, rgba(26, 26, 35, 0.8) 0%, rgba(5, 10, 31, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card-magic:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 224, 255, 0.2),
    0 0 30px rgba(0, 224, 255, 0.3);
}

/* Animated Gradient Border */
@keyframes gradient-rotate {
     0% { background-position: 0% 50%; }
     50% { background-position: 100% 50%; }
     100% { background-position: 0% 50%; }
 }

.animate-gradient-rotate {
    background-size: 400% 400%;
    animation: gradient-rotate 3s ease infinite;
}

/* Neon effects */
.neon-border-blue {
    border: 1px solid rgba(0, 224, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2), inset 0 0 30px rgba(0, 224, 255, 0.1);
}

.neon-border-purple {
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2), inset 0 0 30px rgba(157, 78, 221, 0.1);
}

.neon-border-green {
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2), inset 0 0 30px rgba(0, 255, 136, 0.1);
}

.neon-border-yellow {
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2), inset 0 0 30px rgba(255, 204, 0, 0.1);
}

.neon-border-pink {
    border: 1px solid rgba(255, 46, 158, 0.3);
    box-shadow: 0 0 20px rgba(255, 46, 158, 0.2), inset 0 0 30px rgba(255, 46, 158, 0.1);
}

/* Animations */
@keyframes float {
     0%, 100% { transform: translateY(0px); }
     50% { transform: translateY(-15px); }
 }

@keyframes pulse {
     0%, 100% { opacity: 1; transform: scale(1); }
     50% { opacity: 0.8; transform: scale(1.05); }
 }

@keyframes glow {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.6; }
 }

@keyframes shine {
     0% { background-position: -100% 0; }
     100% { background-position: 200% 0; }
 }

@keyframes slideDown {
     from {
         opacity: 0;
         transform: translateY(-20px);
         max-height: 0;
     }
     to {
         opacity: 1;
         transform: translateY(0);
         max-height: 500px;
     }
 }

@keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
 }

@keyframes spin-slow {
     from { transform: rotate(0deg); }
     to { transform: rotate(360deg); }
 }

.float { animation: float 6s ease-in-out infinite; }
.pulse { animation: pulse 3s ease-in-out infinite; }
.glow { animation: glow 2s ease-in-out infinite alternate; }
.fade-in { animation: fadeIn 0.5s ease-out; }
.spin-slow { animation: spin-slow 20s linear infinite; }

/* Gradient text */
.gradient-text-blue {
    background: linear-gradient(90deg, #00e0ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(90deg, #9d4edd 0%, #ff2e9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-pink {
    background: linear-gradient(90deg, #ff2e9e 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(90deg, #00e0ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-yellow {
    background: linear-gradient(90deg, #ffcc00 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(0, 224, 255, 0.2);
}

/* Button effects */
.btn-magic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #00e0ff, #9d4edd);
    transition: all 0.3s ease;
}

.btn-magic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
}

/* Feature highlights */
.feature-highlight {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            135deg,
            rgba(0, 224, 255, 0.1),
            rgba(157, 78, 221, 0.1)
    );
    z-index: 1;
}

/* Stats counter animation */
.stat-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Particle effects */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00e0ff;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 3s ease-in-out infinite;
}

.particle-purple {
    background: #9d4edd;
}

.particle-green {
    background: #00ff88;
}

.particle-yellow {
    background: #ffcc00;
}

.particle-pink {
    background: #ff2e9e;
}

.particle-cyan {
    background: #00e0ff;
}

@keyframes particle-float {
     0%, 100% {
         transform: translateY(0) translateX(0);
         opacity: 0;
     }
     10%, 90% {
         opacity: 1;
     }
     50% {
         transform: translateY(-20px) translateX(10px);
     }
 }

/* Team card effects */
.team-card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    background: linear-gradient(rgba(26, 26, 35, 0.7), rgba(26, 26, 35, 0.7)) padding-box,
    linear-gradient(45deg, #00e0ff, #9d4edd) border-box;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.2);
}

/* Interactive cursor effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.3), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* Navigation */
.nav-link-magic {
    position: relative;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-link-magic:hover {
    background: rgba(0, 224, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.2);
}

.nav-link-magic.active {
    background: linear-gradient(90deg, #00e0ff, #9d4edd);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    animation: slideDown 0.3s ease-out forwards;
}

.mobile-menu.show {
    display: block;
}

.mobile-nav-link {
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 8px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 224, 255, 0.1);
    transform: translateX(5px);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 49;
    display: none;
}

.mobile-menu-backdrop.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card-magic {
        max-width: 100%;
    }

    .mobile-menu-container {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(5, 10, 31, 0.95);
        backdrop-filter: blur(30px);
        border-bottom: 1px solid rgba(0, 224, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* Ripple effect */
@keyframes ripple {
     to {
         transform: scale(4);
         opacity: 0;
     }
 }

/* Chat interface responsive adjustments */
@media (max-width: 768px) {
    #chatInterface {
        width: 100%;
    }

    .chat-backdrop {
        display: none;
    }

    #chatInterface:not(.translate-x-full) .chat-backdrop {
        display: block;
    }
}

/* Message animations */
@keyframes messageSlideIn {
     from {
         opacity: 0;
         transform: translateY(20px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

#chatMessages .fade-in {
    animation: messageSlideIn 0.3s ease-out;
}

/* Typing indicator animation */
@keyframes bounce {
     0%, 100% { transform: translateY(0); }
     50% { transform: translateY(-10px); }
 }

.animate-bounce {
    animation: bounce 1s infinite;
}
