/* Custom styles for NZREXinfo */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Body font optimization */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dropdown menu animation */
#dropdownMenu {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#dropdownMenu.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Menu button active state */
#menuButton.active {
    background-color: #ecfeff;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0e7490;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #164e63;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mock card styles */
.mock-header {
    transition: background-color 0.2s ease;
}

.mock-header:hover {
    background-color: #f1f5f9;
}

.mock-chevron {
    transition: transform 0.3s ease;
}

.mock-chevron.rotated {
    transform: rotate(180deg);
}

/* FAQ styles */
.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* Link hover effects */
a {
    transition: color 0.2s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0e7490, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(14, 116, 144, 0.1), 0 10px 10px -5px rgba(14, 116, 144, 0.04);
}

/* Pulse animation for status dot */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile menu adjustments */
@media (max-width: 640px) {
    #dropdownMenu {
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}

/* Print styles */
@media print {
    #header, #backToTop, footer {
        display: none;
    }
}