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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* HERO ANIMATIONS */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLL REVEAL — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* 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, #d4a06a, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 1, 2, 0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* NAVBAR */
#navbar.scrolled {
    background: rgba(26, 1, 2, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 106, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 160, 106, 0.3);
    border-radius: 50%;
}

/* MOBILE MENU */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
}

/* SECTION LABELS */
.section-label {
    display: block;
}

.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a06a, transparent);
    margin-top: 16px;
}

@media (min-width: 768px) {
    .section-title::after {
        margin-top: 20px;
    }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0102;
}

::-webkit-scrollbar-thumb {
    background: #781f26;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b52742;
}

/* SELECTION */
::selection {
    background: rgba(212, 160, 106, 0.3);
    color: #f9ede8;
}

/* INPUT FOCUS RING */
input:focus, textarea:focus {
    outline: none;
}

/* TRUST ITEMS */
.trust-item {
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

/* BUTTON GLOW */
button[type="submit"]:hover {
    box-shadow: 0 0 30px rgba(212, 160, 106, 0.3);
}

/* MOBILE MENU ANIMATION */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* NAVBAR BAR ANIMATION */
#mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .bar:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}
