/* Custom styles for Villiger Hall */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #c44d6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #800020;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #800020;
}

/* Fade-in animations for below-the-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(253, 242, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

/* Subtle pulse on CTA buttons */
@keyframes soft-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(128, 0, 32, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(128, 0, 32, 0); }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Form styles */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    border-color: #c44d6e;
    box-shadow: 0 0 0 3px rgba(196, 77, 110, 0.1);
    outline: none;
}

/* Map container responsive */
iframe[src*="google.com/maps"] {
    filter: saturate(0.8) contrast(1.05);
}
