/* Ocean Blue Interactive - Professional AI Platform 2025 - Inspired by Mistral AI */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Mistral-inspired Professional Palette */
    --primary-blue: #2563EB;
    --primary-indigo: #4F46E5;
    --secondary-slate: #334155;
    --accent-orange: #F97316;
    --accent-amber: #F59E0B;

    /* Professional Dark Theme */
    --dark-950: #020617;
    --dark-900: #0F172A;
    --dark-800: #1E293B;
    --dark-700: #334155;
    --dark-600: #475569;

    /* Subtle Glow Effects */
    --glow-blue: rgba(37, 99, 235, 0.15);
    --glow-indigo: rgba(79, 70, 229, 0.15);
    --glow-orange: rgba(249, 115, 22, 0.15);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-900);
    color: #E2E8F0;
}

/* ===== PROFESSIONAL GRADIENT BACKGROUNDS ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
}

.gradient-indigo {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
}

.gradient-purple-cyan {
    background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SUBTLE PROFESSIONAL EFFECTS ===== */
.glow-blue {
    box-shadow: 0 4px 20px var(--glow-blue);
}

.glow-indigo {
    box-shadow: 0 4px 20px var(--glow-indigo);
}

.glow-orange {
    box-shadow: 0 4px 20px var(--glow-orange);
}

.glow-purple {
    box-shadow: 0 4px 20px var(--glow-indigo);
}

.text-shadow-subtle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== HOVER EFFECTS ===== */
.hover-glow:hover {
    box-shadow: 0 8px 30px var(--glow-blue);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-purple), 0 0 40px var(--glow-purple);
    }
    50% {
        box-shadow: 0 0 30px var(--glow-cyan), 0 0 60px var(--glow-cyan);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== CARD STYLES ===== */
.card-ai {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.card-ai:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.card-glow:hover::before {
    left: 100%;
}

/* ===== BUTTON STYLES ===== */
.btn-ai {
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #1D4ED8, #4338CA);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-outline-ai {
    border: 2px solid #2563EB;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline-ai:hover::before {
    width: 100%;
}

.btn-outline-ai:hover {
    border-color: #4F46E5;
}

/* ===== PARTICLE BACKGROUND ===== */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* ===== NEURAL NETWORK LINES ===== */
.neural-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.neural-lines svg {
    width: 100%;
    height: 100%;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-800);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6, #06B6D4);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A855F7, #3B82F6);
}

/* ===== FORM STYLES ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

input,
textarea,
select {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #E2E8F0;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: #64748B;
}

/* ===== STATS COUNTER ===== */
.stat-number {
    background: linear-gradient(135deg, #A855F7, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===== SECTION BACKGROUNDS ===== */
.section-dark {
    background: var(--dark-900);
}

.section-darker {
    background: #0A0F1E;
}

.section-gradient {
    background: linear-gradient(180deg, var(--dark-900) 0%, var(--dark-800) 100%);
}

/* ===== BADGE STYLES ===== */
.badge-ai {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60A5FA;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ===== LOADING SPINNER ===== */
.spinner-ai {
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid #8B5CF6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FADE IN ANIMATION ===== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BENTO GRID LAYOUT ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ===== GLASSMORPHISM CARD WITH SHIMMER ===== */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.glass-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ===== DIVIDER ===== */
.divider-glow {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B5CF6, #06B6D4, transparent);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ===== IMAGE EFFECTS ===== */
.img-glow {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    border-radius: 1rem;
}

.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
    .glow-purple,
    .glow-cyan,
    .glow-pink {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== GRID PATTERN ===== */
.grid-pattern {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ===== CYBERPUNK BORDER ===== */
.cyber-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-800), var(--dark-800)) padding-box,
                linear-gradient(135deg, #8B5CF6, #06B6D4, #EC4899) border-box;
}

/* ===== TEXT EFFECTS ===== */
.text-shadow-glow {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

/* ===== NEON LINE ===== */
.neon-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #8B5CF6 25%,
        #06B6D4 50%,
        #EC4899 75%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
