/* Custom styles for Calvin VFD */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar transition */
.nav-text-color {
    color: #541f34;
}

nav.scrolled .nav-text-color {
    color: #2d0f1a;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(84, 31, 52, 0.08);
    backdrop-filter: blur(10px);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Custom selection color */
::selection {
    background: #fbbf24;
    color: #2d0f1a;
}

/* Subtle pattern for service cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(251, 191, 36, 0.05) 50%);
    border-radius: 0 0 0 2rem;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Button hover glow */
button:hover, a:hover {
    transition: all 0.2s ease;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #join, #community {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
