/* Custom styles for Bergen Community Action */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e0039;
}
::-webkit-scrollbar-thumb {
    background: #7B2CBF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Hero geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, transparent 70%);
    bottom: 15%;
    left: -3%;
    animation-delay: -2s;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation-delay: -4s;
}

.shape-circle-4 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 213, 255, 0.4) 0%, transparent 70%);
    bottom: 30%;
    right: 25%;
    animation-delay: -6s;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(251, 191, 36, 0.2);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation-delay: -1s;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.3);
    bottom: 25%;
    left: 15%;
    transform: rotate(20deg);
    animation-delay: -3s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(251, 191, 36, 0.15);
    top: 60%;
    right: 5%;
    animation-delay: -5s;
}

.shape-ring-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(233, 213, 255, 0.2);
    top: 15%;
    left: 25%;
    animation-delay: -7s;
}

/* Dot grid pattern */
.dot-grid {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.3) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(30, 0, 57, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile menu animation */
#mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Menu lines animation */
#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Counter animation */
[data-count] {
    display: inline-block;
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 0 30px currentColor;
}

/* Form select dropdown styling */
select option {
    background: #1e0039;
    color: white;
}

/* Image lazy load fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: white;
}
