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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #3b0419;
}
::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fcd34d;
}

/* Navigation */
.nav-logo-text {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hero */
#hero {
    position: relative;
}

/* Service Cards */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Fallback: always show content if JS is disabled */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class */
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(59, 4, 25, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button hover glow */
button:focus, a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #3b0419;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: #be185d !important;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.15) !important;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}
