/* Custom styles for Oglethorpe Efficiencies */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0C1F3F;
}
::-webkit-scrollbar-thumb {
    background: #C8A45E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c49a3c;
}

/* Stat card floating animation */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}
.stat-card:nth-child(2) {
    animation-delay: -1.5s;
}
.stat-card:nth-child(3) {
    animation-delay: -3s;
}
.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar transition */
.nav-text {
    transition: color 0.3s ease;
}
.nav-subtext {
    transition: color 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C8A45E;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C8A45E, #f5e0a8);
    border-radius: 2px;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #C8A45E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #C8A45E;
    color: #0C1F3F;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .stat-card {
        break-inside: avoid;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.125rem;
    }
    
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 8rem 0;
    }
    
    .stat-card {
        display: none;
    }
}
