@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gradient-orange {
    background: linear-gradient(135deg, #F57D23 0%, rgba(245, 125, 35, 0.8) 50%, rgba(245, 125, 35, 0.3) 100%);
}

.gradient-orange-light {
    background: linear-gradient(135deg, rgba(245, 125, 35, 0.1) 0%, rgba(245, 125, 35, 0.05) 100%);
}

.bento-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 125, 35, 0.1);
    transition: border-color 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(245, 125, 35, 0.3);
}

.hero-number {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
}

.section-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
}

.chart-container {
    position: relative;
    height: 200px;
}

.icon-large {
    font-size: 3rem;
    color: #F57D23;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-controls:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.video-prev {
    left: -80px;
}

.video-next {
    right: -80px;
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.subject-tab {
    transition: all 0.3s ease;
}

.subject-tab.active {
    background: #F57D23;
    color: white;
}

.partner-scroll {
    overflow: hidden;
    position: relative;
}

.partner-track {
    display: flex;
    animation: infiniteScroll 30s linear infinite;
    gap: 30px;
}

@media (max-width: 768px) {
    .partner-track {
        gap: 15px;
        animation: infiniteScroll 25s linear infinite;
    }
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.partner-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 200px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .partner-logo {
        height: 120px;
        max-width: 240px;
    }
}

.partner-logo:hover {
    transform: scale(1.15);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Kfox Player Styles - Center the player */
#kfox-preview-container,
#kfox-preview-container-mobile {
    position: relative;
    background: white;
}

/* Ensure kfox player content is centered */
#kfox-preview-container > *,
#kfox-preview-container-mobile > * {
    margin: 0 auto;
    display: block;
}

/* Mobile fullscreen player styles */
#mobile-fullscreen-player {
    z-index: 9999;
}

#return-button {
    z-index: 10000;
}

/* Ensure buttons stay in one row on mobile */
@media (max-width: 640px) {
    .flex.flex-row.gap-4 {
        flex-wrap: nowrap;
    }

    .flex.flex-row.gap-4 > * {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}
