/* Custom styles for BRCC - Heber */

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

/* Hero pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

/* Floating animation for hero particles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(13, 148, 136, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

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

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