/* Custom Ticker Animation */
.ticker-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0) 100%);
    padding: 40px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    transition: background 0.5s ease;
}

.ticker-container:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0) 100%);
}

.ticker-wrapper {
    display: inline-flex;
    width: max-content;
    animation: tickerLoop 45s linear infinite;
    will-change: transform;
    font-size: 0;
    gap: 60px;
    padding-right: 60px;
}

.partner-logo {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    width: auto;
    height: 50px;
    margin: 0;
    object-fit: contain;
    /* Force removal of any grayscale and ensure full color saturation */
    filter: none !important;
    -webkit-filter: grayscale(0%);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1 !important;
}

.partner-logo:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.1) !important;
}

@media (min-width: 768px) {
    .ticker-wrapper {
        gap: 100px;
        padding-right: 100px;
    }
    .partner-logo {
        height: 80px;
        max-width: 180px;
    }
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1) translateY(-5px);
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background: #0f0f0f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Ensure all major blocks snap correctly without forcing scroll */
header, section, footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

section {
    position: relative;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1rem;
}

/* Glassmorphism & Interactive Cards */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.hover-glow-purple:hover { box-shadow: 0 20px 40px rgba(146, 23, 125, 0.25); border-color: rgba(146, 23, 125, 0.6); }
.hover-glow-red:hover { box-shadow: 0 20px 40px rgba(218, 56, 46, 0.25); border-color: rgba(218, 56, 46, 0.6); }
.hover-glow-pink:hover { box-shadow: 0 20px 40px rgba(231, 18, 113, 0.25); border-color: rgba(231, 18, 113, 0.6); }

/* Reveal Animation Logic */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Increased visibility */
    filter: grayscale(20%) contrast(110%);
}

/* Hero Canvas */
#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Typewriter Effect */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #E71271;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
    box-shadow: 0 0 8px rgba(231, 18, 113, 0.8);
}

.cursor.finished {
    display: none;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.8); }
}

/* Admin Panel Utilities */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Team Overlay Utilities */
#team-overlay.active {
    transform: translateY(0);
}

body.overlay-open {
    overflow: hidden;
}

.team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#team-overlay.active .team-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for team cards */
#team-overlay.active .team-card:nth-child(1) { transition-delay: 0.1s; }
#team-overlay.active .team-card:nth-child(2) { transition-delay: 0.2s; }
#team-overlay.active .team-card:nth-child(3) { transition-delay: 0.3s; }
#team-overlay.active .team-card:nth-child(4) { transition-delay: 0.4s; }
#team-overlay.active .team-card:nth-child(5) { transition-delay: 0.5s; }
}
}