/* ========== CUSTOM STYLES ========== */

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

/* Custom selection color */
::selection {
    background-color: rgba(114, 47, 55, 0.15);
    color: #722F37;
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    background-color: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

#navbar.scrolled .font-serif {
    color: #722F37 !important;
}

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

.mobile-link {
    opacity: 1;
}

/* ========== HERO IMAGE COMPOSITION ========== */
#hero .relative > div:first-child > div {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero .relative:hover > div:first-child > div {
    transform: scale(1.01);
}

/* ========== GALLERY HOVER ========== */
#gallery img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#gallery .rounded-3xl {
    overflow: hidden;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    #gallery img { transition: none; }
    .rounded-3xl { overflow: visible; }
}

/* ========== FORM STYLES ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23722F37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== FOCUS STYLES ========== */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ========== SUBTLE ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* ========== BUTTON RIPPLE ========== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #f2a8ad;
    border-radius: 999px;
}

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

/* ========== MOBILE MENU ANIMATION ========== */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#mobile-menu.open .mobile-link {
    animation: slideDown 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 3.5rem;
    }
    
    .floating {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}
