/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #1a2744;
}

/* ===== SCROLL REVEAL ===== */
/* Default state: visible (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animate only when reduced motion is NOT preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a {
    text-decoration: none;
}

/* ===== FORM FOCUS STYLES ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== CARD TILT SUBTLE ===== */
.group:hover .group-hover\:scale-105 {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== IMAGE LAZY LOAD FADE ===== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* ===== SUBTLE PULSE FOR BADGE DOT ===== */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
