/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== NAVBAR ===== */
#navbar { transition: box-shadow 0.3s ease; }
#navbar.scrolled { box-shadow: 0 4px 30px rgba(45, 31, 20, 0.08); }

/* Mobile menu animation */
.menu-line { display: block; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 1.5rem; }

.mobile-link { transition: all 0.2s ease; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .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; }
    .reveal:nth-child(5) { transition-delay: 0.35s; }
    .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* ===== HERO ===== */
#hero { position: relative; }

/* ===== SERVICE CARDS ===== */
.service-card:hover .service-icon { transform: scale(1.1) rotate(3deg); }

/* ===== GALLERY ===== */
.gallery-item { overflow: hidden; border-radius: 1rem; }
.gallery-item img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-item:hover img { transform: scale(1.05); }

/* ===== BUTTONS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::after { opacity: 1; }

/* ===== FORM ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 89, 58, 0.15);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FBF5EC; }
::-webkit-scrollbar-thumb { background: #C0593A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #A8472A; }

/* ===== SELECTION ===== */
::selection { background: rgba(192, 89, 58, 0.2); color: #2D1F14; }
