/* Custom styles for Midwestern University College of Pharmacy */

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

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}

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

/* Reveal animations - progressive enhancement, only apply when JS is available */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When JS is enabled, add hidden state and animate */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar transition states */
.nav-scrolled {
    background-color: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #C9A84C, #D4B96A, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coral glow effect */
.coral-glow {
    box-shadow: 0 0 40px rgba(232, 106, 91, 0.15);
}

/* Gold glow effect */
.gold-glow {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* Input focus animations */
input:focus,
textarea:focus {
    outline: none;
}

/* Button hover animations */
button,
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    }
}

/* Form success animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#successMessage.show {
    animation: fadeInUp 0.4s ease-out;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}
