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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 240, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(127, 50, 88, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffa314, #f48207);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 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(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating Petals */
.floating-petal {
    animation: petalFloat 6s ease-in-out infinite;
}

.petal-1 { animation-delay: 0s; animation-duration: 7s; }
.petal-2 { animation-delay: -2s; animation-duration: 5s; }
.petal-3 { animation-delay: -4s; animation-duration: 8s; }
.petal-4 { animation-delay: -1s; animation-duration: 6s; }

@keyframes petalFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    25% { transform: translate(15px, -20px) rotate(10deg); opacity: 0.7; }
    50% { transform: translate(-10px, -35px) rotate(-5deg); opacity: 0.4; }
    75% { transform: translate(20px, -15px) rotate(8deg); opacity: 0.6; }
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(251, 240, 247, 0.5), transparent);
    border-radius: 4px;
    transition: width 0.3s ease;
}

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

/* Button hover glow */
button:hover, a:hover {
    cursor: pointer;
}

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

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

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

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

/* Selection color */
::selection {
    background: #ebbfdc;
    color: #53233a;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 163, 20, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image hover overlay fix */
.group {
    position: relative;
}

/* Gallery overlay text */
.group .absolute {
    pointer-events: none;
}
