/* ======================================
   MAVIANCE THEME - Extra CSS
   ====================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ======================================
   NAVBAR
   ====================================== */
#maviance-navbar {
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#maviance-navbar.scrolled {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#maviance-navbar.scrolled .nav-link { color: #1e293b; }
#maviance-navbar.scrolled .nav-link:hover { color: #FFD100; }
#maviance-navbar.scrolled .nav-btn {
    background: #10069F;
    color: #fff;
}
#maviance-navbar.scrolled .nav-btn:hover { background: #0d0585; }
#maviance-navbar.scrolled #lang-btn { color: #1e293b; }

/* ======================================
   YELLOW DOTS
   ====================================== */
.yellow-dot {
    position: absolute;
    border-radius: 50%;
    background: #FFD100;
    pointer-events: none;
    z-index: 1;
}
.yellow-dot-1 { width: 16px; height: 16px; animation: float 6s ease-in-out infinite; }
.yellow-dot-2 { width: 10px; height: 10px; animation: float 8s ease-in-out infinite 2s; }
.yellow-dot-3 { width: 8px;  height: 8px;  animation: float 7s ease-in-out infinite 1s; }
.yellow-dot-pulse { width: 12px; height: 12px; animation: pulseGlow 2s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.3); opacity: 1; }
}

/* ======================================
   HERO SLIDER
   ====================================== */
.hero-slide { transition: opacity 1s ease; }

/* ======================================
   SCROLL ANIMATIONS
   ====================================== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal        { transform: translateY(30px); }
.reveal-left   { transform: translateX(-50px); }
.reveal-right  { transform: translateX(50px); }
.reveal-scale  { transform: scale(0.9); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.delay-200  { transition-delay: 200ms; }

/* ======================================
   PARTNERS MARQUEE
   ====================================== */
.animate-scroll {
    animation: marquee 30s linear infinite;
}
.animate-scroll:hover { animation-play-state: paused; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ======================================
   SOLUTION FINDER
   ====================================== */
.animate-fade-in {
    animation: fadeInUp 0.3s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ======================================
   MODAL OVERLAY
   ====================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.modal-overlay.hidden { display: none; }
.modal-content {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 2rem; height: 2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #374151;
    transition: background 0.2s;
}
.modal-close:hover { background: #e5e7eb; }

/* ======================================
   FORM STYLES
   ====================================== */
.maviance-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.maviance-input:focus {
    border-color: #10069F;
    box-shadow: 0 0 0 3px rgba(16,6,159,0.1);
}
.maviance-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* ======================================
   API CODE BLOCK
   ====================================== */
.api-code-block {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.api-code-block pre {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #93c5fd;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
}

/* ======================================
   SOLUTIONS ACCORDION (page Solutions)
   ====================================== */
.solution-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.solution-accordion-content.open {
    max-height: 2000px;
}

/* ======================================
   CONTAINER
   ====================================== */
.container { max-width: 1280px; margin: 0 auto; }

/* ======================================
   TYPOGRAPHY UTILS
   ====================================== */
.text-maviance-blue   { color: #10069F; }
.text-maviance-yellow { color: #FFD100; }
.bg-maviance-blue     { background-color: #10069F; }
.bg-maviance-yellow   { background-color: #FFD100; }

/* ======================================
   MISC
   ====================================== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* prose override for WP content */
.wp-content img { max-width: 100%; height: auto; }
