/* Custom styles for Goodwill Fire Station */

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

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 10s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.06);
    top: 40%;
    right: 10%;
    animation: spin-slow 20s linear infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: 20%;
    animation: float-medium 7s ease-in-out infinite;
}

.shape-ring-1 {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 60%;
    left: 15%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

.shape-stripe-1 {
    width: 200px;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.08) 10px,
        rgba(255,255,255,0.08) 20px
    );
    bottom: 25%;
    right: 5%;
    transform: rotate(-15deg);
    animation: float-medium 8s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .service-card::before,
    .service-card,
    .testimonial-card,
    .gallery-item img,
    .geo-shape {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

#mobile-menu.open {
    max-height: 500px;
}

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

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

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

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