/* Styles for landing page extracted from landing.php */
body {
    max-width: 840px;
    padding: 20px 40px;
}

.hero-section, .partners-section, .prizes-section, .how-it-works {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--primary);
    color: white;
    text-align: center;
    overflow: hidden;
    margin: 0;
    margin-left: calc(50% - 50vw);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}
.logo-container {
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.centered-logo {
    max-width: 500px;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    transform-origin: center center;
    border: 4px solid #fff;
}

.scrolled .centered-logo {
    border: 2px solid #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* CTA Buttons */
.cta-button, .cta-button-large {
    display: inline-block;
    background: var(--primary);
    color: #fff!important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none!important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button-large {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
}
.cta-button:hover, .cta-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.logo-container.scrolled {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 9999; /* Increased to ensure always on top */
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
}

.logo-container.scrolled .centered-logo {
    max-width: 140px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Remove stacking context override, restore default stacking for hero-section and hero-content */
.hero-section,
.hero-content {
    z-index: auto !important;
}

/* Remove pointer-events override, not needed after DOM fix */
.logo-container.scrolled ~ .hero-content,
.logo-container.scrolled ~ .hero-section {
    pointer-events: auto;
}

/* Partners Section */
.partners-section {
    padding: 5rem 0;
    background: var(--bg);
    overflow: visible; /* Allow cards to scale outside container */
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    overflow: visible; /* Allow scaling cards to overflow */
}
.partner-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.partner-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.partner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.partner-content p {
    flex: 1;
    margin-bottom: 1rem;
}
.partner-cta {
    display: inline-block;
    background: var(--primary);
    color: white!important;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    text-decoration: none!important ;
    transition: all 0.3s ease;
    align-self: center;
}
.partner-cta:hover {
    background: #cc0a01;
    transform: scale(1.05);
}

/* Prizes Section */
.prizes-section {
    padding: 5rem 0;
    overflow: visible; /* Allow cards to scale outside container */
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    overflow: visible; /* Allow scaling cards to overflow */
}
.prize-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.prize-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prize-image {
    margin: 0 auto 1rem auto;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f5f5f5; */
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.prize-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prize-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.prize-amount {
    color: #666;
    font-weight: 500;
    margin-top: auto;
}
.partner-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.partner-link:hover {
    background: #cc0a01;
    transform: scale(1.05);
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background: white;
    border-radius: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Common styles */
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
body {
    padding-top: 0;
    overflow-x: hidden;
}

.partner-logo {
    margin: 0 auto 2rem;
    height: 100px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 180px;
    max-height: 180px;
    display: block;
    margin: 0 auto;
}
/* Mobile responsive */
@media (max-width: 768px) {
    body {
        max-width: 840px;
        padding: 20px 10px;
    }

    .hero-section {
        margin: 0;
        padding: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .centered-logo {
        max-width: 250px;
        /* border: 1px solid #ffffff; */
        border-radius: 0.5rem;
    }
    .logo-container {
        text-align: center;
    }
    .logo-container.scrolled {
        top: 1rem;
        left: 0;
        right: 0;
        text-align: center;
    }

    .logo-container.scrolled .centered-logo {
        max-width: 60px;
    }
    .partners-grid, .prizes-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Animation styles */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}
.prize-card.fade-in-up.active {
    /* When active, reset translateY but keep scale at 1 */
    transform: translateY(0) scale(1);
}
.prize-card.fade-in-up.active:hover {
    /* On hover, combine translateY and scale */
    transform: translateY(0) scale(1.05);
}
.partner-card.fade-in-up.active {
    /* When active, reset translateY but keep scale at 1 */
    transform: translateY(0) scale(1);
}
.partner-card.fade-in-up.active:hover {
    /* On hover, combine translateY and scale */
    transform: translateY(0) scale(1.05);
}
.prize-card,
.partner-card {
    /* Keep fade-in transition for opacity/translate, but not for transform on hover */
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.prize-card.fade-in-up.active:hover,
.partner-card.fade-in-up.active:hover {
    /* Faster scale on hover */
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
