/* Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #2d5c2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Floating Card Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}
.floating-card:nth-child(2) {
    animation-delay: -1s;
}
.floating-card:nth-child(3) {
    animation-delay: -2s;
}
.floating-card:nth-child(4) {
    animation-delay: -3s;
}

/* Scroll Reveal — progressive enhancement, only when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is always visible if JS doesn't run */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Glass Effect */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Gold Gradient Text Utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8c87a, #d4a84b, #c49a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Selection Color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #faf9f6;
}

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

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

#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

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

/* Form Input Focus Animations */
input:focus, select:focus, textarea:focus {
    animation: none;
}

/* Button Ripple Effect */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* Image Hover Zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Service Card Hover Glow */
.group:hover .w-14 {
    box-shadow: 0 0 25px rgba(61, 122, 61, 0.4);
}

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

/* Ensure select dropdown is readable */
select option {
    background: #111111;
    color: #faf9f6;
}
