/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal[data-reveal="right"] {
    opacity: 0;
    transform: translateX(30px);
}

.reveal[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.95);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal="left"] {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal[data-reveal="right"] {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal[data-reveal="scale"] {
        opacity: 0;
        transform: scale(0.95);
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover card shimmer effect */
.reveal.group:hover .w-14 {
    transform: rotate(-5deg) scale(1.05);
    transition: transform 0.3s ease;
}

/* Image lazy load placeholder */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    background: linear-gradient(135deg, #1a2744 0%, #0a1628 100%);
    min-height: 200px;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #c8952e 0%, #e0bd6a 50%, #c8952e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
