/* ========================================
   #G-Force30 Countdown - TV Display
   Không Chịu Thất Bại
   ======================================== */

:root {
    /* Dynamic theme colors - will be changed by themes.js */
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --bg-gradient-start: #0a0e27;
    --bg-gradient-end: #1a1f3a;
    --glow-color: #00ffff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   Animated Particles Background
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particles canvas {
    transition: opacity 0.5s ease-in-out; /* Smooth fade in/out */
}

/* ========================================
   Main Container
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-sizing: border-box;
}

/* ========================================
   Header Section
   ======================================== */
.header {
    text-align: center;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
}

.campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    margin-bottom: 30px;
    animation: pulse 2s infinite, neonGlow 1.5s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 24px;
    animation: rotate 2s linear infinite;
}

.badge-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.campaign-title {
    font-family: 'Orbitron', monospace;
    font-size: 80px;
    font-weight: 900;
    margin: 10px 0;
    text-transform: uppercase;
    animation: glitchTitle 5s infinite;
}

.hashtag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 80px var(--glow-color);
    filter: drop-shadow(0 0 30px var(--glow-color));
}

.campaign-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 2px;
    animation: fadeIn 2s ease-out;
}

/* ========================================
   Countdown Section
   ======================================== */
.countdown-section {
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.countdown-header {
    text-align: center;
    margin-bottom: 40px;
}

.countdown-label {
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.target-date {
    font-size: 28px;
    color: var(--accent-color);
    font-weight: 600;
    animation: blink 1.5s infinite;
}

/* ========================================
   Countdown Display
   ======================================== */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-block {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px 50px;
    min-width: 320px;
    width: 320px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: blockPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.time-block:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow-color);
}

.time-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shine 3s infinite;
}

.time-value {
    font-family: 'Orbitron', monospace;
    font-size: 140px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 
        0 0 5px var(--glow-color);
    line-height: 1;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6);
    text-stroke: 2px rgba(0, 0, 0, 0.6);
    paint-order: stroke fill;
    /* Fixed width to prevent layout shift */
    min-width: 200px;
    display: inline-block;
    text-align: center;
}

.time-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-top: 10px;
    text-transform: uppercase;
}

.time-separator {
    font-family: 'Orbitron', monospace;
    font-size: 60px;
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
    animation: blink 1s infinite;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6);
    text-stroke: 2px rgba(0, 0, 0, 0.6);
}





/* ========================================
   Progress Bar
   ======================================== */
.progress-container {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Force border-radius with vendor prefixes */
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    /* Ensure clipping */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: progressGlow 2s linear infinite;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
    /* Round only LEFT corners, right side straight */
    -webkit-border-radius: 18px 0 0 18px;
    -moz-border-radius: 18px 0 0 18px;
    border-radius: 18px 0 0 18px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressShine 2s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px #000000;
    z-index: 1;
}

/* ========================================
   Mission Section
   ======================================== */
.mission-section {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-out;
}

.tagline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tagline-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: 38px;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color);
    letter-spacing: 6px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.mission-description {
    font-size: 24px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-out;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: cardFloat 3s ease-in-out infinite;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.5);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 38px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes neonGlow {
    from {
        box-shadow: 0 0 20px var(--glow-color),
                    inset 0 0 20px rgba(0, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 0 40px var(--glow-color),
                    0 0 60px var(--glow-color),
                    inset 0 0 40px rgba(0, 255, 255, 0.3);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glitchTitle {
    0%, 98% { transform: translate(0); }
    99% { transform: translate(-2px, 2px); }
    100% { transform: translate(2px, -2px); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

@keyframes blockPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--glow-color);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-color),
                    0 0 60px var(--glow-color);
    }
}

@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(150%, 150%) rotate(0deg); }
}

/* ========================================
   AUDIO CONTROLS
   ======================================== */

.audio-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.audio-toggle {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.audio-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--primary-color);
    border-color: var(--secondary-color);
}

.audio-icon {
    font-size: 28px;
    animation: audioPulse 2s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.audio-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 70vh;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.audio-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color)22 0%, var(--secondary-color)22 100%);
    border-bottom: 2px solid var(--primary-color);
}

.audio-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-btn:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.audio-section {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.label-icon {
    font-size: 18px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
    box-shadow: 0 0 10px var(--glow-color);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.control-row .volume-control {
    width: auto;
    margin-top: 0;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-color);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--glow-color);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-color);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--glow-color);
}

.volume-value {
    min-width: 45px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

/* Layer Controls */
.layer-control {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.layer-control:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.layer-control:last-child {
    margin-bottom: 0;
}

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Audio Info */
.audio-info {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
}

.info-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.info-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Audio Notifications */
.audio-notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.audio-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--accent-color);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 40px var(--accent-color),
                    0 0 60px var(--accent-color);
    }
}

@keyframes progressGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px var(--accent-color);
    }
    to {
        text-shadow: 0 0 40px var(--accent-color),
                     0 0 60px var(--accent-color);
    }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design for TV
   ======================================== */

/* Full HD TV (1920x1080) - Default styles above work perfectly */

@media (max-width: 1600px) {
    .campaign-title { font-size: 85px; }
    .time-value { font-size: 140px; min-width: 180px; }
    .time-block { width: 300px; min-width: 300px; padding: 30px 45px; }
    .countdown-label { font-size: 30px; }
    .tagline { font-size: 42px; }
}

@media (max-width: 1366px) {
    .campaign-title { font-size: 70px; }
    .campaign-subtitle { font-size: 24px; }
    .countdown-label { font-size: 26px; }
    .time-value { font-size: 120px; min-width: 160px; }
    .time-block { width: 260px; min-width: 260px; padding: 28px 40px; }
    .time-separator { font-size: 70px; }
    .tagline { font-size: 38px; }
    .stat-value { font-size: 40px; }
}

@media (max-width: 1024px) {
    .container { padding: 20px 30px; }
    .header { margin-bottom: 20px; }
    .campaign-title { font-size: 56px; }
    .campaign-subtitle { font-size: 20px; }
    .countdown-label { font-size: 22px; }
    .time-value { font-size: 90px; min-width: 110px; }
    .time-block { width: 200px; min-width: 200px; padding: 25px 35px; }
    .time-separator { font-size: 60px; }
    .tagline { font-size: 32px; }
    .stat-value { font-size: 36px; }
    .countdown-display { gap: 20px; }
}

@media (max-width: 768px) {
    .container { padding: 15px 20px; }
    .campaign-title { font-size: 42px; }
    .campaign-subtitle { font-size: 16px; }
    .countdown-label { font-size: 18px; }
    .time-value { font-size: 70px; min-width: 90px; }
    .time-block { width: 160px; min-width: 160px; padding: 20px 25px; }
    .time-separator { font-size: 50px; }
    .tagline { font-size: 26px; }
    .stat-value { font-size: 28px; }
    .countdown-display { gap: 15px; }
}

/* ========================================
   TEAM OVERLAY - Scrolling Banner
   Overlays stats section, matches stat card height
   4 passes (60s) → hide 60s
   ======================================== */

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(10, 14, 39, 0.98) 100%
    );
    /* Giảm blur xuống 5px để tăng performance */
    backdrop-filter: blur(5px);
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    /* Giảm box-shadow để tăng performance */
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.3);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
    /* ULTRA GPU acceleration */
    will-change: opacity;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-font-smoothing: antialiased;
}

/* Team overlay title removed - now shows in mission section instead */

.team-scroll-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.team-scroll-track {
    display: flex;
    gap: 40px;
    padding: 0 30px;
    will-change: transform;
    /* ULTRA GPU acceleration for smooth scroll */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    image-rendering: -webkit-optimize-contrast;
    /* Force hardware acceleration */
    -webkit-perspective: 1000;
    perspective: 1000;
}

.team-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Tắt transition để tránh giật khi scroll */
    transition: none;
    cursor: pointer;
    /* Force GPU layer */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.team-card:hover {
    /* Tắt hover effect khi scroll để tránh giật */
    transform: translateZ(0);
}

.team-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    /* Giảm box-shadow để tăng performance */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    /* Tắt transition để scroll mượt */
    transition: none;
    /* Force GPU layer */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.team-card:hover .team-avatar-wrapper {
    /* Tắt hover effect để scroll mượt hơn */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.team-info {
    text-align: center;
}

.team-name {
    font-family: 'Orbitron', monospace;
    font-size: 18px;  /* Tăng lên vì không có role */
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;  /* Bỏ margin vì không có role */
    white-space: nowrap;
}

.team-role {
    font-size: 13px;  /* Gấp đôi */
    color: var(--text-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    opacity: 0.8;
}

/* Responsive adjustments for team overlay */
@media (max-width: 1366px) {
    .team-avatar-wrapper {
        width: 100px;  /* Still large */
        height: 100px;
    }
    
    .team-name {
        font-size: 16px;  /* Tăng vì không có role */
    }
    
    .team-scroll-track {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .team-avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .team-name {
        font-size: 14px;  /* Tăng vì không có role */
    }
    
    .team-scroll-track {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .team-avatar-wrapper {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .team-name {
        font-size: 12px;  /* Tăng vì không có role */
    }
    
    .team-scroll-track {
        gap: 20px;
        padding: 0 15px;
    }
}
