/* ========== BASE & RESET ========== */
*, *::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: rgba(168, 61, 119, 0.15);
    color: #501d34;
}

/* ========== NAVBAR ========== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 240, 245, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 1px 20px rgba(80, 29, 52, 0.08);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========== HERO BLOBS ========== */
.hero-blob {
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(80, 29, 52, 0.1);
    border-color: rgba(235, 189, 217, 0.6);
}

/* ========== GALLERY ========== */
.gallery-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(80, 29, 52, 0.15);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger delays for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .hero-blob { animation: none; }
    .gallery-item img { transition: none; }
    .service-card { transition: none; }
}

/* ========== FORM STYLES ========== */
input:focus, select:focus, textarea:focus {
    border-color: #a83d77 !important;
    box-shadow: 0 0 0 3px rgba(168, 61, 119, 0.1) !important;
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ebbdd9, #dc8fbf);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dc8fbf, #c75a9d);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
</style>
