/* Card Styles */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 243, 255, 0.95) 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15);
}

.card:hover::before {
    transform: scaleX(1.03);
}

.card h3 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.card p {
    color: var(--foreground);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

.card .card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-body::before {
    opacity: 1;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
}

.carousel-item {
    height: 100vh;
    background-color: #000;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.carousel-caption h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-size: 3.5rem;
    line-height: 1.2;
}

.carousel-caption .lead {
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.carousel-caption .btn {
    text-shadow: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 100%;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Fallback Hero Section */
.hero-section {
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/hero-bg.jpg') center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .carousel-item,
    .hero-section {
        height: 100vh;
    }
    
    .carousel-caption h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .carousel-item,
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }

    .carousel-caption {
        bottom: 50%;
        transform: translateY(50%);
        padding: 1.5rem;
        margin: 0 auto;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .carousel-caption .lead {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-item,
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Join Community Section */
.section-community {
    position: relative;
    height: 500px;
    background: url('/static/images/g1.jpg') center/cover;
    color: white;
}

.community-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    display: flex;
    align-items: center;
    z-index: 1;
}

.section-community .caption-content {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.section-community h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.section-community .lead {
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.section-community .btn {
    text-shadow: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
}

/* Responsive styles for community section */
@media (max-width: 1200px) {
    .section-community {
        height: 400px;
    }
    
    .section-community h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-community {
        height: 100vh;
        min-height: 400px;
    }

    .section-community .caption-content {
        padding: 1.5rem;
        width: 90%;
    }

    .section-community h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .section-community .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-community {
        min-height: 350px;
    }

    .section-community .caption-content {
        padding: 1rem;
        width: 95%;
    }

    .section-community h2 {
        font-size: 2rem;
    }

    .section-community .lead {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .section-community .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}
