/* Custom CSS for Fura Nonprofit Theme */

/* Header Premium Styling */
.header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Navigation Link Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F74F22, #FF6B3D);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #F74F22;
    font-weight: 600;
}

.nav-link:hover {
    color: #F74F22;
    transform: translateY(-1px);
}

/* Logo Hover Effect */
.logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Volunteer Button Glow Effect */
.volunteer-btn:hover {
    box-shadow: 0 0 20px rgba(247, 79, 34, 0.4);
    transform: translateY(-2px);
}

/* Mobile Menu Animation */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

#mobile-menu.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#mobile-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide mobile menu on desktop (lg and above) - Must come after other rules */
@media (min-width: 1024px) {
    #mobile-menu,
    #mobile-menu:not(.hidden),
    #mobile-menu.hidden {
        display: none !important;
    }
}

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

.mobile-menu .nav-link.active {
    background: linear-gradient(90deg, #F74F22, #FF6B3D);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
}

/* Hamburger Menu Animation */
.hamburger-line-1,
.hamburger-line-2,
.hamburger-line-3 {
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-open .hamburger-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .hamburger-line-2 {
    opacity: 0;
}

.mobile-menu-open .hamburger-line-3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hover Animation Effects */
.nav-link {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 79, 34, 0.1) 0%, rgba(255, 107, 61, 0.1) 100%);
    transition: top 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    top: 0;
}

/* Button hover animations */
.btn, .bg-primary, .bg-gradient-to-r {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before, .bg-primary::before, .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    transition: top 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.btn:hover::before, .bg-primary:hover::before, .bg-gradient-to-r:hover::before {
    top: 0;
}

/* Gallery item hover animation */
.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 79, 34, 0.8) 0%, rgba(255, 107, 61, 0.6) 100%);
    transition: top 0.3s ease;
    z-index: 1;
    opacity: 0;
}

.gallery-item:hover::before {
    top: 0;
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Additional custom styles can be added here */
.donation-form {
    max-width: 600px;
    margin: 0 auto;
}

.volunteer-form {
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.event-card {
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Contact info styling */
.contact-info {
    background: linear-gradient(135deg, #F74F22 0%, #FF6B3D 100%);
    color: white;
}

/* Form styling */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #F74F22;
    box-shadow: 0 0 0 3px rgba(247, 79, 34, 0.1);
}

/* Hero Carousel Styles */
.hero-carousel-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide:first-child {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.carousel-slide:first-child:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}

/* Hero Content Styles and Animations */
.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.text-primary {
    color: #F74F22 !important;
}

.hero-title {
    transform: translateY(50px);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.3s forwards;
    color: #F74F22;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    transform: translateY(30px);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.6s forwards;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-button {
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.9s forwards;
    background-color: #F74F22;
    border: 2px solid #F74F22;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.hero-button:hover {
    background-color: transparent;
    color: #F74F22;
    border-color: #F74F22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 79, 34, 0.3);
}

/* Reset animations for new slides */
.carousel-slide:not(.active) .hero-title,
.carousel-slide:not(.active) .hero-description,
.carousel-slide:not(.active) .hero-button {
    transform: translateY(50px);
    opacity: 0;
    animation: none;
}

/* Trigger animations when slide becomes active */
.carousel-slide.active .hero-title {
    animation: slideInUp 1s ease-out 0.3s forwards;
}

.carousel-slide.active .hero-description {
    animation: slideInUp 1s ease-out 0.6s forwards;
}

.carousel-slide.active .hero-button {
    animation: slideInUp 1s ease-out 0.9s forwards;
}

/* Keyframes for slide-in animation */
@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Carousel Navigation Styles */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    cursor: pointer;
    color: white;
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(247, 79, 34, 0.8);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Dots */
.carousel-dot {
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #F74F22 !important;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-carousel-section,
    .carousel-wrapper {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel-section,
    .carousel-wrapper {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 1.5rem;
    }
    
    .hero-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}