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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #8b1a2d;
    color: #faf8f6;
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ─── Buttons ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.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;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

/* ─── Side Navigation ─── */
.side-nav {
    box-shadow: 4px 0 40px rgba(0,0,0,0.08);
}

.side-nav-link {
    position: relative;
    text-decoration: none;
}

.side-nav-link.active {
    color: #fff !important;
}

.side-nav-link.active .nav-dot {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.side-nav-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #ff9494;
    border-radius: 2px;
    transition: height 0.3s ease;
}

.side-nav-link.active::before {
    height: 32px;
}

/* ─── Service Cards ─── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 26, 45, 0.08);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 26, 45, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* ─── Mobile Header ─── */
.mobile-header {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.mobile-menu-link {
    position: relative;
    text-decoration: none;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b1a2d;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

/* ─── Form ─── */
select option {
    color: #1a1a1a;
}

input:focus, textarea:focus, select:focus {
    border-color: #8b1a2d !important;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f6;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8b1a2d;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .side-nav {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}
