/* Base grain texture effect */
.grain-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    filter: contrast(120%) brightness(100%) opacity(0.05);
}

:root {
    --accent-pink: #F8E1E7;
    --deep-pink: #D4A5B1;
    --text-main: #2D2926;
    --bg-main: #FDFCFB;
    --accent-gold: #C4B7A6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.animate-slide-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Custom Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-snap-x {
    scroll-snap-type: x mandatory;
}
.scroll-snap-x > div {
    scroll-snap-align: start;
}

/* Form Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #2D2926;
    -webkit-box-shadow: 0 0 0px 1000px #FDFCFB inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Typography refinements */
h1, h2, h3, h4, .font-garamond {
    font-family: 'Cormorant Garamond', serif;
}

/* Transitions for navigation */
nav {
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

nav.nav-scrolled {
    height: 4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}