/* Base reset and custom properties */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #0d0a0f;
    --bg-card: #1a1420;
    --bg-card-hover: #221a2a;
    --plum-dark: #2d0f1f;
    --plum-mid: #5e2343;
    --gold: #d4a039;
    --gold-light: #f5d68a;
    --text-light: #f5f0f7;
    --text-muted: #b8a8c0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--plum-mid);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Selection */
::selection {
    background: rgba(212, 160, 57, 0.3);
    color: var(--text-light);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, #d4a039 0%, #f5d68a 25%, #d4a039 50%, #b8860b 75%, #d4a039 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float-delayed 5s ease-in-out infinite; }
.float-3 { animation: float 3.5s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Gold line decoration */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Card hover glow */
.card-glow {
    position: relative;
    transition: all 0.4s ease;
    background: var(--bg-card);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(212,160,57,0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-glow:hover::before {
    opacity: 1;
}

.card-glow:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 0 40px rgba(212,160,57,0.1);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13,10,15,0.85);
    border-bottom: 1px solid rgba(212,160,57,0.1);
}

.nav-link {
    position: relative;
    color: rgba(245,240,247,0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA buttons */
.btn-gold {
    background: linear-gradient(135deg, #d4a039, #b8860b);
    color: #0d0a0f;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212,160,57,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,160,57,0.4);
    color: #0d0a0f;
}

.btn-outline {
    border: 1px solid rgba(212,160,57,0.5);
    color: var(--gold-light);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(212,160,57,0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    display: block;
}

/* Service card image */
.service-img {
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Testimonial card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(45,15,31,0.5), rgba(26,20,32,0.8));
    border: 1px solid rgba(212,160,57,0.1);
}

/* Footer line */
.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,57,0.4), transparent);
}

/* Stats card */
.stat-card {
    background: linear-gradient(135deg, rgba(45,15,31,0.6), rgba(26,20,32,0.9));
    border: 1px solid rgba(212,160,57,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 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; }
    .reveal { opacity: 1; transform: none; }
    .float-1, .float-2, .float-3 { animation: none; }
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
