/* Base & Utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(123, 79, 123, 0.15);
    color: #3D263D;
}

/* Scroll animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; }

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

.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.approach-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.approach-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-down {
    animation: scrollDown 1.8s ease-in-out infinite;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 79, 123, 0.08);
}

.nav-scrolled .nav-link {
    color: #7B4F7B;
}

.nav-scrolled .font-serif {
    color: #3D263D;
}

/* Mobile menu */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Smooth section reveals */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image hover zoom */
.service-card img,
.rounded-2xl img {
    transition: transform 0.6s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D4A0C8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
