/*
 * AppyInFesta - Home Page CSS
 * Landing page with hero carousel
 */

/* ==================== Hero Carousel ==================== */
.hero-carousel {
    margin-top: -70px; /* Compensate for navbar height */
    margin-bottom: 0;
}

.hero-carousel .carousel-inner {
    height: 600px;
}

.hero-carousel .carousel-item {
    height: 600px;
    position: relative;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-carousel .carousel-caption h1,
.hero-carousel .carousel-caption h2 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-carousel .carousel-caption p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
}

.hero-carousel .carousel-caption .lead {
    font-size: 1.4rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-carousel .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-carousel .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(194, 0, 0, 0.3);
}

.hero-carousel .btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(194, 0, 0, 0.4);
}

.hero-carousel .btn-outline-light {
    border: 2px solid white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-carousel .btn-outline-light:hover {
    background-color: white;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.5;
    border: none;
    margin: 0 5px;
    transition: all 0.3s;
}

.hero-carousel .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ==================== Features Section ==================== */
.features-section {
    background-color: var(--color-bg-light);
}

.feature-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--color-secondary);
    font-weight: 600;
}

.feature-card .btn-outline-primary {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transition: all 0.3s;
}

.feature-card .btn-outline-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* ==================== How It Works Section ==================== */
.how-it-works-section {
    background-color: var(--color-bg-light);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(194, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--color-accent);
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-bg-light);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.cta-section .btn-outline-secondary {
    border: 2px solid white;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-section .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 500px;
    }

    .hero-carousel .carousel-caption {
        width: 95%;
        padding: 1rem;
    }

    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-carousel .carousel-caption .lead {
        font-size: 1rem;
    }

    .hero-carousel .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 450px;
    }

    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }

    .hero-carousel .carousel-caption .lead {
        font-size: 0.95rem;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .carousel-caption h1,
.carousel-item.active .carousel-caption h2 {
    animation: fadeInUp 0.8s ease-out;
}

.carousel-item.active .carousel-caption p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-item.active .hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
