@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00AABB;
    --primary-dark: #008899;
    --primary-light: #e6f7f8;
    --bg-light: #ffffff;
    --bg-dark: #0f172a;
    --text-light: #1e293b;
    --text-dark: #f1f5f9;
}

body {
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Dark Mode Classes */
body.dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.dark .bg-glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), #00e5ff);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.dark #preloader {
    background: var(--bg-dark);
}

.loader-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.loader-ripple div {
    position: absolute;
    border: 4px solid var(--primary);
    opacity: 1;
    border-radius: 50%;
    animation: loader-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loader-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes loader-ripple {
    0% { top: 36px; left: 36px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 36px; left: 36px; width: 0; height: 0; opacity: 0; }
    5% { top: 36px; left: 36px; width: 0; height: 0; opacity: 1; }
    100% { top: 0px; left: 0px; width: 72px; height: 72px; opacity: 0; }
}

/* WhatsApp Button */
.whatsapp-btn {
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
}

/* Slides */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 900;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

body.dark .side-panel {
    background: #1e293b;
}

.side-panel.active {
    right: 0;
}

.side-panel-left {
    left: -100%;
    right: auto;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel-left.active {
    left: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 850;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Infinite Scroll Logic */
.testimonial-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Utility */
.text-cyan { color: var(--primary); }
.bg-cyan { background-color: var(--primary); }
.border-cyan { border-color: var(--primary); }
