/* ============================================
   Novatra General Trading L.L.C. - Custom Styles
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --navy-900: #0a1426;
    --navy-800: #0f1c33;
    --gold-500: #d4a43e;
    --gold-400: #e7b75b;
    --font-display: 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

/* ---- Selection ---- */
::selection {
    background-color: var(--gold-500);
    color: var(--navy-900);
}

/* ---- Navbar Scroll Effect ---- */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---- Hero Background Image ---- */
#hero > div:first-child img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

/* ---- Service Card Image ---- */
.service-card .overflow-hidden img {
    will-change: transform;
}

/* ---- Card Image Gradient Overlay ---- */
.service-card .bg-gradient-to-t {
    pointer-events: none;
}

/* ---- Reveal Animations (initial state) ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Service Card Hover ---- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

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

/* ---- Form Focus States ---- */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(212, 164, 62, 0.2) !important;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Loading States ---- */
#contact-form button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

#contact-form button[type="submit"].loading span {
    visibility: hidden;
}

#contact-form button[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ---- Hero Shapes Animation ---- */
.hero-shape {
    will-change: transform;
}

/* ---- Stat Number ---- */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.show {
    display: block !important;
}

/* ---- Responsive Fine-Tuning ---- */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    #scroll-indicator,
    #hero-shapes {
        display: none !important;
    }

    body {
        color: #000;
    }

    #hero {
        min-height: auto;
        background: white !important;
    }

    #hero h1,
    #hero p {
        color: #000 !important;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}