/* ============================================
   Quick Sort Trading — Custom Styles
   ============================================ */

/* Base / Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Scroll Reveal Animations
   Gated behind prefers-reduced-motion so
   content is visible even without JS.
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
a, button {
    transition: all 0.3s ease;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

p, li, a, span, input, textarea, button {
    font-family: 'Montserrat', system-ui, sans-serif;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* ============================================
   Subtle hover effects on cards
   ============================================ */
.bg-slate-50 > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================
   Image lazy-load placeholder
   ============================================ */
img {
    background-color: #f1f5f9;
}

/* ============================================
   Custom scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background-color: rgba(13, 148, 136, 0.3);
    color: #0f172a;
}
