/* ===================================
   Bailatica - Home Page Styles
   =================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* no animation on hero image */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 7rem 0 4rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-title .typed-cursor {
    color: var(--primary-pink);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease;
}

.hero-cta:nth-child(1) { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
.hero-cta:nth-child(2) { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
.hero-cta:nth-child(3) { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both; }

.hero-cta-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(247, 85, 154, 0.4);
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(247, 85, 154, 0.5);
    color: white;
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

.hero-cta i {
    font-size: 1.3rem;
}

.hero-cta-text {
    display: flex;
    flex-direction: column;
}

.hero-cta-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.hero-cta-title {
    font-size: 1rem;
}

/* ========== Section Commons ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark, #333);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light, #666);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========== Upcoming Events Section ========== */
.upcoming-events-section {
    padding: 5rem 0;
    background: #F9F9F9;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-pink, #F7559A);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light, #666);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.event-card-dances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.event-dance-badge {
    background: #f5f5f5;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== How It Works Section ========== */
.how-it-works-section {
    padding: 5rem 0;
    background: #F9F9F9;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(247, 85, 154, 0.1);
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(247, 85, 154, 0.3);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.step-card:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(247, 85, 154, 0.4);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-light, #666);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== Dance Styles Section ========== */
.dance-styles-section {
    padding: 5rem 0;
    background: white;
}

.dance-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dance-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.dance-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dance-card:hover .dance-card-background {
    transform: scale(1.1);
}

.dance-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.4s ease;
}

.dance-card:hover .dance-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.dance-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dance-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ========== Why Bailatica Section ========== */
.why-section {
    padding: 5rem 0;
    background: white;
}

.usp-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    height: 100%;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(247, 85, 154, 0.12);
    border-color: rgba(247, 85, 154, 0.25);
}

.usp-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(247, 85, 154, 0.1) 0%, rgba(245, 36, 125, 0.12) 100%);
    color: #F7559A;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.35s ease;
}

.usp-card:hover .usp-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(247, 85, 154, 0.15) 0%, rgba(245, 36, 125, 0.18) 100%);
}

.usp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 0.4rem;
}

.usp-text {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-white-custom {
    background: white;
    color: #F7559A;
    padding: 0.8rem 2.5rem;
    border-radius: 25px;
    font-weight: 700;
    border: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-white-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #F7559A;
}

/* ========== Stats Badges (unused but kept) ========== */
.stats-badge {
    background: white;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.5rem;
}

.stats-badge i {
    font-size: 2rem;
    color: var(--primary-pink, #F7559A);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark, #333);
    margin: 0;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-light, #666);
    margin: 0;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 7rem 0 4rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-cta-group {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .upcoming-events-section,
    .how-it-works-section,
    .dance-styles-section,
    .why-section {
        padding: 3.5rem 0;
    }

    .event-card-image {
        height: 150px;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .usp-card {
        padding: 1.5rem;
    }
}
