/* Prime CDL Training Center — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050305;
}
::-webkit-scrollbar-thumb {
    background: #6c1432;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11333;
}

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Scroll reveal base — content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only animate when JS adds the class */
.scroll-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(5, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold shimmer on hover for CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a037' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a037;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Pulse animation for status dot */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 160, 55, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(212, 160, 55, 0); }
}
.animate-pulse {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Subtle gradient border animation for featured card */
@keyframes border-glow {
    0%, 100% { border-color: rgba(108, 20, 50, 0.3); }
    50% { border-color: rgba(108, 20, 50, 0.6); }
}
