/* ============================================
   Her Ideas & His Creations — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #d4a03d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Selection color */
::selection {
    background: #d4a03d;
    color: #061a36;
}

/* ============================================
   Navbar scroll behavior
   ============================================ */
#navbar.scrolled {
    background: rgba(254, 253, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(13, 27, 42, 0.06);
}

#navbar.scrolled a,
#navbar.scrolled button {
    color: #0d2a52;
}

/* ============================================
   Mobile menu
   ============================================ */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    translate: 0;
}

/* ============================================
   Scroll reveal animations
   Only applied when prefers-reduced-motion is not set
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Button & link focus states
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a03d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Form validation styles
   ============================================ */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #86efac;
}

/* ============================================
   Map container
   ============================================ */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.4s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ============================================
   Hero decorative animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12px, 10px) scale(1.03); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-blob-1 {
        animation: float-slow 8s ease-in-out infinite;
    }
    .hero-blob-2 {
        animation: float-medium 10s ease-in-out infinite;
    }
    .hero-blob-3 {
        animation: float-slow 12s ease-in-out infinite reverse;
    }
}

/* ============================================
   Image hover containers
   ============================================ */
.aspect-\[4\/5\] > img,
.group:hover > img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
