/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    overflow-x: hidden;
    position: relative;
}

/* Background */
.background-image {
    position: fixed;
    top: 0;
    left: -291px;
    width: 2553px;
    height: 3459px;
    background-image: url('assets/background.svg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    pointer-events: none;
}

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1437px;
    margin: 0 auto;
    padding: 112px 0 0 0;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    margin-bottom: 112px;
}

.hero-content {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 755px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 112px;
    line-height: 1.3;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -3.36px;
    margin-bottom: 32px;
}

.title-line {
    display: block;
}

.highlight {
    color: #ff6b6f;
}

.app-badges {
    display: flex;
    gap: 35px;
    align-items: center;
    flex-wrap: wrap;
}

.app-badge {
    height: 53px;
}

.badge-image {
    height: 100%;
    width: auto;
}

.hero-image {
    flex: 0 0 auto;
    width: 350px;
    height: 250px;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    height: 580px;
    background-color: #FFF4C1;
    border-radius: 50%;
    z-index: -1;
}

.bear-image {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    object-fit: contain;
}

/* Features Section */
.features {
    margin-bottom: 112px;
}

.features-content {
    display: flex;
    gap: 88px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.features-text {
    flex: 1;
    min-width: 300px;
    max-width: 504px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.4;
    color: #000;
    flex: 1;
}

.feature-text strong {
    font-weight: 700;
}

.phone-mockup {
    flex: 0 0 auto;
    width: 395px;
    height: 819px;
    position: relative;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Events Section */
.events {
    margin-bottom: 112px;
    text-align: center;
}

.events-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 96px;
    line-height: 1.3;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -2.88px;
    margin-bottom: 32px;
}

.events-container {
    max-width: 1093px;
    margin: 0 auto 32px;
    padding: 20px 0;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
}

.events-carousel {
    display: flex;
    gap: 32px;
    padding: 16px 0;
    transition: transform 0.3s ease;
    will-change: transform;
    cursor: grab;
}

.events-carousel:active {
    cursor: grabbing;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}

/* Carousel navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn svg {
    color: #333;
    width: 20px;
    height: 20px;
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
}

.event-card {
    flex: 0 0 343px;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 68px 19px 0px rgba(87,96,92,0),
                0px 44px 17px 0px rgba(87,96,92,0.03),
                0px 25px 15px 0px rgba(87,96,92,0.1),
                0px 11px 11px 0px rgba(87,96,92,0.17),
                0px 3px 6px 0px rgba(87,96,92,0.2);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
}

.event-details-container {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    border: 1px solid #fffef7;
    border-radius: 32px;
    padding: 16px;
}

.event-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 23px;
    color: #fff;
    margin-bottom: 12px;
    text-align: left;
}

.event-info {
    display: flex;
    gap: 16px;
}

.event-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-info-item {
    display: flex;
    gap: 8px;
    align-items: left;
}

.event-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.event-info-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    flex: 1;
    text-align: left;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-indicator.active {
    background: #ff6b6f;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-indicator.active:hover {
    background: #ff6b6f;
}

/* Legacy support for static SVG */
.carousel-steppers {
    width: 88px;
    height: 8px;
    display: none; /* Hide static SVG when dynamic indicators are present */
}

.events-cta {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 24px 0;
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 64px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff4c1;
    text-decoration: none;
    white-space: nowrap;
}

.footer-link:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 80px 20px 0 20px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .events-title {
        font-size: 72px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 16px 0 16px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 60px;
        letter-spacing: -1.8px;
    }
    
    .hero-image {
        width: 250px;
        height: 180px;
    }
    
    .features-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-text {
        font-size: 24px;
    }
    
    .phone-mockup {
        width: 280px;
        height: 580px;
    }
    
    .events-title {
        font-size: 48px;
        letter-spacing: -1.44px;
    }
    
    .event-card {
        flex: 0 0 280px;
        height: 400px;
    }
    
    .events-cta {
        font-size: 24px;
    }
    
    .footer-links {
        gap: 32px;
    }
    
    .footer-link {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
        letter-spacing: -1.2px;
    }
    
    .feature-text {
        font-size: 20px;
    }
    
    .events-title {
        font-size: 36px;
        letter-spacing: -1.08px;
    }
    
    .event-card {
        flex: 0 0 250px;
        height: 350px;
    }
    
    .events-cta {
        font-size: 20px;
    }
    
    .app-badges {
        gap: 20px;
    }
    
    .app-badge {
        height: 40px;
    }
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #666;
}

/* Error state */
.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #ff6b6f;
    text-align: center;
    padding: 20px;
}

/* No Events State */
.no-events-card {
    background: white;
    border-radius: 32px;
    padding: 24px 16px;
    box-shadow: 0px 68px 19px 0px rgba(87,96,92,0),
                0px 44px 17px 0px rgba(87,96,92,0.03),
                0px 25px 15px 0px rgba(87,96,92,0.1),
                0px 11px 11px 0px rgba(87,96,92,0.17),
                0px 3px 6px 0px rgba(87,96,92,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 342px;
    margin: 0 auto 20px;
}

.no-events-bear {
    width: 150px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-events-bear img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-events-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    text-align: center;
    white-space: pre-line;
}

.no-events-button {
    background: #fff4c1;
    border: 1px solid #fff4c1;
    border-radius: 32px;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.no-events-button:hover {
    background: #f0e6a0;
    border-color: #f0e6a0;
}

.no-events-button-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    white-space: nowrap;
}

.no-events-button-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.no-events-button-icon svg {
    width: 100%;
    height: 100%;
    color: #000;
}


.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SEO and Accessibility Improvements */
.hero-subtitle {
    font-size: 2.2rem;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improve app badge links */
.app-badge {
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-badge:focus {
    outline: 2px solid #ff6b6f;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}