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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #f5d0d9;
    color: #5c1f32;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c25073;
}

/* ===== Hero Animations ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

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

/* ===== Scroll Dot ===== */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: calc(100% - 12px); opacity: 1; }
}

.scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card svg {
    transition: transform 0.4s ease, color 0.3s ease;
}

.service-card:hover svg {
    transform: scale(1.1);
}

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

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

/* ===== Navbar ===== */
.nav-text {
    transition: color 0.3s ease;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }

/* ===== Menu Lines ===== */
#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}
#menuBtn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ===== Form Focus ===== */
input:focus, textarea:focus {
    border-bottom-color: #c25073 !important;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-anim {
        animation-duration: 0.6s;
    }
}
