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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #faf8f5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0), transparent);
    transition: background 0.5s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

/* Hero animations - visible by default, enhanced with JS */
.hero-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll reveal - progressive enhancement via JS */
.service-reveal,
.about-reveal,
.why-reveal,
.cta-reveal,
.contact-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-reveal,
    .about-reveal,
    .why-reveal,
    .cta-reveal,
    .contact-reveal,
    .service-card,
    .why-card {
        transition: none;
    }
    .service-card,
    .why-card {
        transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    }
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    #hero h1 span {
        display: block;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    #contact .contact-form,
    .cta-reveal a {
        display: none;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .bg-dark-950,
    .bg-dark-900,
    .bg-dark-900\/60 {
        background: white !important;
    }

    .text-cream-50,
    .text-cream-200 {
        color: #1a1a1a !important;
    }
}
