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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
}

a {
    text-decoration: none;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
    background: linear-gradient(135deg, #2e0b0e 0%, #4a1419 25%, #7B2D3B 50%, #a01745 75%, #c12054 100%);
}

/* ─── Hero Animations ─── */
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-title {
    animation: heroFadeUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    animation: heroFadeUp 1s ease-out 0.1s both;
}

.hero-desc {
    animation: heroFadeUp 1s ease-out 0.5s both;
}

.hero-cta {
    animation: heroFadeUp 1s ease-out 0.7s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-line {
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollLineMove {
    0% { top: -12px; }
    100% { top: 12px; }
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo {
    color: #fff !important;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: mobileLinkFade 0.4s ease-out both;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes mobileLinkFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    opacity: 0;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* ─── Service Cards ─── */
.service-card {
    transition: transform 0.5s ease, background 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ─── Form ─── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* ─── Selection ─── */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #4a1419;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(123, 45, 59, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 45, 59, 0.4);
}
