/* Custom styles for Diablo Valley College website */

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

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

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

::-webkit-scrollbar-thumb {
    background: #3e0614;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #fff;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0d89c 0%, #d4a84b 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burgundy gradient text utility */
.text-gradient-burgundy {
    background: linear-gradient(135deg, #f4a3b8 0%, #c5224a 50%, #701830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer animation for hero accent */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, #f0d89c 0%, #d4a84b 25%, #f0d89c 50%, #d4a84b 75%, #f0d89c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

/* Card hover glow effect */
.group:hover .group-hover\:shadow-gold {
    box-shadow: 0 0 40px rgba(212, 168, 75, 0.1);
}

/* Pulse animation for status dot */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 168, 75, 0);
    }
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
