/* Custom Styles for Tom Nance Water Resource Engineering */

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

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

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

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

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

/* Reveal animation for scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:bg-gold-500 {
    background-color: #c9a227;
}

.group:hover .group-hover\\:text-navy-900 {
    color: #0a1628;
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 50%, #e5c158 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-display {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) {
    .font-display {
        font-size: 3rem;
    }
}

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

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
