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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* Scroll Reveal Animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal[data-delay="100"] { transition-delay: 100ms; }
    .reveal[data-delay="200"] { transition-delay: 200ms; }
    .reveal[data-delay="300"] { transition-delay: 300ms; }

    .gallery-item {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navbar */
.nav {
    background: rgba(250, 245, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 168, 190, 0.3);
}

.nav.scrolled {
    background: rgba(250, 245, 247, 0.97);
    box-shadow: 0 4px 20px rgba(116, 46, 74, 0.08);
}

.nav-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc832;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #faf5f7 0%, #f5e9ee 50%, #fffbeb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(142, 59, 92, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8e3b5c, #ffc832);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 18, 28, 0.2) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Smooth transitions for interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #ffc832;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(142, 59, 92, 0.15);
    color: #502636;
}

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

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

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

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

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .about-images {
        margin-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    .nav, .animate-bounce, .reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
