*, *::before, *::after {
    box-sizing: border-box;
}

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: #f0d78c;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1622;
}

::-webkit-scrollbar-thumb {
    background: #1e2d3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4a5c;
}

/* Scroll reveal — progressive enhancement, only active when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Mobile menu animation */
.menu-line:nth-child(1) {
    transform-origin: top;
}

.menu-line:nth-child(2) {
    opacity: 1;
}

.menu-line:nth-child(3) {
    transform-origin: bottom;
}

nav.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

nav.open .menu-line:nth-child(2) {
    opacity: 0;
}

nav.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Navbar glass effect */
nav.glass {
    background: rgba(6, 14, 22, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold shimmer on hover for cards */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.service-card {
    position: relative;
    overflow: hidden;
}

/* Subtle pulse for hero badge */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

/* Print styles */
@media print {
    nav, #contact-form, .reveal { display: none; }
    body { background: white; color: black; }
}
