/* ==========================================================================
   Creamostuweb - Design System & Custom Stylesheet
   ========================================================================== */

:root {
    --brand-blue: #1D70B8;
    --brand-orange: #E87024;
    --brand-dark-blue: #154B78;
    --brand-dark: #1E293B;
    --brand-bg: #F8FAFC;
    --brand-emerald: #10B981;
    --border-light: rgba(226, 232, 240, 0.9);
}

/* Smooth Scrolling & Base Adjustments */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 6px;
    border: 2px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Text & Accent Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg-hero {
    background: radial-gradient(circle at 80% 20%, rgba(29, 112, 184, 0.08) 0%, rgba(232, 112, 36, 0.05) 50%, transparent 100%);
}

/* Interactive Element Transitions */
.interactive-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(29, 112, 184, 0.12);
    border-color: rgba(29, 112, 184, 0.4);
}

/* Chart Container Responsiveness */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    height: 320px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 380px;
    }
}

/* FAQ Accordion Transitions */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease 0.1s;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Focus outline accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Responsive Range Slider Styling */
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--brand-orange);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(232, 112, 36, 0.4);
    transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   Infinite Marquee Bands
   ========================================================================== */
@keyframes marqueeScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

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

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.animate-marquee-reverse {
    display: flex;
    width: max-content;
    animation: marqueeScrollReverse 32s linear infinite;
}

.animate-marquee:hover, .animate-marquee-reverse:hover {
    animation-play-state: paused;
}

/* Print Stylesheet */
@media print {
    header, footer, #mobileMenu, .fixed {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
