/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base — always visible, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        animation: revealIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.1s, transform 0.1s;
    }

    .scroll-reveal:nth-child(2) { transition-delay: 0.05s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.15s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.25s; }
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 142, 0.08);
}

nav.scrolled .nav-link {
    color: #531e5d;
}

nav.scrolled .nav-link:hover {
    color: #d47322;
}

nav.scrolled .logo-text {
    color: #531e5d;
}

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

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

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

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background: #d7b8dc;
    color: #471a50;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #f0ba73 !important;
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Testimonial slide transition */
.testimonial-slide {
    transition: opacity 0.5s ease;
}

/* Subtle line decorations */
.line-accent {
    position: relative;
}

.line-accent::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: #f0ba73;
    margin-top: 1rem;
}

/* Image aspect ratio fallbacks */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
