/* Base & Utilities */
:root {
    --color-slate-950: #080e1a;
    --color-slate-900: #0f172a;
    --color-slate-850: #1e293b;
    --color-teal-450: #14b8a6;
    --color-teal-500: #0d9488;
    --color-gold-450: #d4a017;
    --color-gold-350: #f5c34b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 14, 26, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text helper */
.gold-gradient {
    background: linear-gradient(135deg, var(--color-gold-350), var(--color-gold-450));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-slate-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-slate-850);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-500);
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

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

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

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Smooth image loading */
img {
    loading: lazy;
}

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

/* Ensure proper z-index stacking */
nav {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.navbar-scrolled nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Gallery image hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Testimonial card hover */
.reveal:hover {
    border-color: rgba(20, 184, 166, 0.2);
    transition: border-color 0.3s ease;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on select */
select {
    background-size: 12px;
}
