/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0f4f8;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060e1a;
}
::-webkit-scrollbar-thumb {
    background: #1e3a5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulseSlow 6s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .animate-fade-in { animation: none; opacity: 1; }
    .animate-pulse-slow { animation: none; }
}

/* === Navbar Scroll State === */
.navbar-scrolled {
    background: rgba(6, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Gold Gradient Text Utility === */
.text-gold-gradient {
    background: linear-gradient(135deg, #f2dca0 0%, #c9a84c 50%, #a88b32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Service Card Hover Glow === */
.service-card-glow:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

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

/* === 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,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: rotate(45deg) translate(0, 0);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(46, 80, 120, 0.2);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* === Form Select Arrow === */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c94b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* === Responsive Adjustments === */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .reveal {
        transition-delay: 0.15s;
    }
}
