/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0807;
}
::-webkit-scrollbar-thumb {
    background: #430b0b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #801a19;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 74, 0.3);
    color: #fff;
}

/* 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;
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(10, 8, 7, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 160, 74, 0.08);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* Image overlay gradient */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 7, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a04a, transparent);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
#mobile-menu.open {
    max-height: 500px;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 74, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.1) !important;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 74, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Pulse animation for status dot */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float {
    animation: float 4s ease-in-out infinite;
}

/* Gradient border animation */
@keyframes border-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Service card icon container */
.service-icon {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(212, 160, 74, 0.2);
}
