/* ========== WARZONE PAGE STYLES ========== */

.warzone-page {
    min-height: 100vh;
    background: var(--primary-bg);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* CRITICAL: Ensure all main content is visible */

.warzone-page * {
    visibility: visible !important;
}

.warzone-page section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* CRITICAL: Force visibility of modal */

.player-modal {
    display: none;
    visibility: hidden;
    opacity: 0;
}


/* ========== HERO SECTION ========== */

.warzone-hero {
    min-height: 60vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 69, 0, 0.05) 50%, rgba(0, 0, 0, 0.8) 100%);
    position: relative;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}


/* ========== BACK TO TEAMS SECTION ========== */

.back-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.back-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.back-button:hover {
    background: rgba(255, 107, 53, 1);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.back-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

.back-button span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.glow-box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.team-stats {
    display: flex !important;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.team-stats .stat {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    visibility: visible !important;
    opacity: 1 !important;
}

.team-stats .stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.team-stats .stat i {
    font-size: 2rem;
    color: var(--accent-orange);
    visibility: visible !important;
    opacity: 1 !important;
}

.team-stats .stat span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    visibility: visible !important;
    opacity: 1 !important;
}

.warzone-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/Teams/Warzone.png') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.team-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.team-stats .stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.team-stats .stat i {
    font-size: 2rem;
    color: var(--accent-orange);
}

.team-stats .stat span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}


/* ========== TEAM GRID SECTION ========== */

.team-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ========== PLAYER CARDS ========== */

.player-card {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.8), rgba(25, 25, 25, 0.9));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.player-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.player-card:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover .card-overlay {
    opacity: 1;
}

.player-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.player-role {
    font-size: 1rem;
    color: #ff6b35;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.player-subtitle {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-details {
    display: none;
}


/* ========== RECRUITMENT CARD ========== */

.recruitment-card {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.1), rgba(25, 25, 25, 0.9));
    border: 2px dashed rgba(255, 107, 53, 0.5);
}

.recruitment-card .card-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruitment-icon {
    font-size: 4rem;
    color: rgba(255, 107, 53, 0.7);
    margin-bottom: 1rem;
}

.recruitment-card:hover {
    border-color: rgba(255, 107, 53, 0.8);
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.2), rgba(25, 25, 25, 0.9));
}

.recruitment-button {
    margin-top: 1.5rem;
    text-align: center;
}

.join-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.join-us-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.join-us-btn:hover::before {
    left: 100%;
}

.join-us-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
    color: white;
}

.join-us-btn i {
    font-size: 1.1rem;
}


/* ========== 3D CAROUSEL SECTION ========== */

.carousel-section {
    padding: 80px 20px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}


/* 3D Carousel Styles */

.wrapper {
    width: 100%;
    height: 700px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 40px 0;
}

.inner {
    --w: 160px;
    --h: 220px;
    --translateZ: calc((var(--w) + var(--h)) + 0px);
    --rotateX: -15deg;
    --perspective: 1000px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    top: 25%;
    left: calc(50% - (var(--w) / 2) - 2.5px);
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0deg);
    animation: rotating 20s linear infinite;
    will-change: transform;
    animation-fill-mode: both;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.inner:active {
    cursor: grabbing;
}

.inner.dragging {
    animation-play-state: paused;
}

@keyframes rotating {
    0% {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0deg);
    }
    100% {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(360deg);
    }
}

.card {
    position: absolute;
    border: 2px solid rgba(255, 107, 53, 0.8);
    border-radius: 15px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* Improve front card quality */
    filter: brightness(1) contrast(1.1);
}


/* Front cards (closer to viewer) get better quality */

.card[style*="--index: 0"],
.card[style*="--index: 1"],
.card[style*="--index: 2"],
.card[style*="--index: 10"],
.card[style*="--index: 11"] {
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    border-width: 3px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.card:hover {
    border-color: rgba(255, 107, 53, 1);
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(calc(var(--translateZ) + 30px)) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.card.active {
    border-color: rgba(255, 107, 53, 1);
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(calc(var(--translateZ) + 60px)) scale(1.2);
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.8);
}

.img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    display: block;
    /* Optimize image quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Remove pixelated for better quality */
}


/* Player Name on Card */

.player-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 15px 10px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 5;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}


/* Player Info Overlay */

.player-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 107, 53, 0.8);
    min-width: 280px;
    max-width: 320px;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    overflow-y: auto;
    max-height: 80vh;
}

.player-info h3 {
    color: rgba(255, 107, 53, 1);
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-info p {
    color: #fff;
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.player-info p:first-of-type {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ========== VIEW DETAILS BUTTON ========== */

.view-details-btn {
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 1rem;
    display: inline-block;
}

.view-details-btn:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}


/* Hover overlay with modern button */

.card:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 69, 0, 0.9) 100%);
    border-radius: 30px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 69, 0, 0.4);
}

.card:hover::before {
    content: 'Click to learn more';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    z-index: 11;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}


/* Recruitment Cards Special Styling */

.recruitment-card {
    background: linear-gradient(135deg, rgba(var(--color-card), 0.2) 0%, rgba(var(--color-card), 0.1) 100%);
    border-width: 3px;
    border-style: solid;
    border-image: linear-gradient(45deg, rgba(var(--color-card), 0.8), rgba(var(--color-card), 1), rgba(var(--color-card), 0.8)) 1;
}

.recruitment-card .recruitment-bg {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 69, 0, 0.05) 50%, rgba(var(--color-card), 0.1) 100%);
    position: relative;
}

.recruitment-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.8);
    text-align: center;
    max-width: 280px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.recruitment-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.recruitment-content h3 {
    color: rgba(255, 107, 53, 1);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recruitment-content p {
    color: #fff;
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.recruitment-content p:first-of-type {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recruitment-card:hover {
    border-image: linear-gradient(45deg, rgba(var(--color-card), 1), rgba(255, 107, 53, 0.8), rgba(var(--color-card), 1)) 1;
    background: linear-gradient(135deg, rgba(var(--color-card), 0.3) 0%, rgba(var(--color-card), 0.2) 100%);
}

.recruitment-card:hover .recruitment-content {
    transform: translate(-50%, -50%) scale(1.05);
    transition: all 0.3s ease;
}


/* Always visible content for recruitment cards */

.recruitment-card .player-info {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.recruitment-card .player-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.recruitment-card .player-info p {
    font-size: 0.8rem;
    margin: 4px 0;
    line-height: 1.3;
}

.recruitment-card .player-info p:first-of-type {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.recruitment-card:hover {
    border-image: linear-gradient(45deg, rgba(var(--color-card), 1), rgba(255, 107, 53, 0.8), rgba(var(--color-card), 1)) 1;
    background: linear-gradient(135deg, rgba(var(--color-card), 0.3) 0%, rgba(var(--color-card), 0.2) 100%);
}

.recruitment-card:hover .recruitment-bg::before {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.3s ease;
}

.recruitment-card .player-info h3 {
    color: var(--accent-orange);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.recruitment-card .player-info p:first-of-type {
    color: rgba(var(--color-card), 1);
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.card:hover .player-info {
    opacity: 0;
}

.card.active .player-info {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(255, 107, 53, 1);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}


/* ========== ACHIEVEMENTS SECTION ========== */

.achievements-section {
    padding: 80px 20px;
    background: var(--primary-bg);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.achievement-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: var(--shadow-neon-strong);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ========== PLAYER MODAL ========== */

.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.player-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.player-modal-content {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.95), rgba(25, 25, 25, 0.95));
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.player-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1;
}

.player-modal-close:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.1);
}

.player-modal-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.player-modal-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 1.5rem;
    border: 3px solid rgba(255, 107, 53, 0.5);
    flex-shrink: 0;
}

.player-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.player-modal-subtitle {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 500;
}

.player-modal-info {
    padding: 2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.player-modal-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}


/* ========== FOOTER VISIBILITY ========== */

.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}


/* ========== RESPONSIVE DESIGN ========== */


/* Tablet Styles */

@media (min-width: 769px) and (max-width: 1024px) {
    .warzone-hero {
        padding: 70px 30px 50px;
        min-height: 55vh;
    }
    .hero-content h1 {
        font-size: 3rem !important;
    }
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    .team-stats {
        gap: 30px;
    }
    .team-stats .stat {
        padding: 18px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        padding: 0 30px !important;
        max-width: 1200px !important;
    }
    .player-card {
        max-width: 100% !important;
    }
    .card-image {
        height: 280px;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .back-section {
        padding: 50px 30px;
    }
    .back-button {
        padding: 14px 22px;
        font-size: 0.95rem;
    }
}


/* Mobile Styles */

@media (max-width: 768px) {
    /* Back section mobile */
    .back-section {
        padding: 40px 15px;
    }
    .back-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .back-button span {
        display: inline;
        /* Show text on mobile since it's not overlapping content */
    }
    .back-button i {
        font-size: 1rem;
    }
    /* Hero section mobile */
    .warzone-hero {
        padding: 60px 15px 30px;
        min-height: 50vh;
    }
    .hero-content h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }
    .team-stats {
        gap: 15px;
        margin-top: 20px;
    }
    .team-stats .stat {
        padding: 15px;
        gap: 8px;
    }
    .team-stats .stat i {
        font-size: 1.5rem;
    }
    .team-stats .stat span {
        font-size: 0.9rem;
    }
    /* Team grid mobile */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    .player-card {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .card-image {
        height: 250px;
    }
    .card-content {
        padding: 1rem;
    }
    .card-content h3 {
        font-size: 1.3rem;
    }
    .player-subtitle {
        font-size: 0.8rem;
    }
    /* Section headers mobile */
    .carousel-section {
        padding: 60px 15px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .section-header p {
        font-size: 1rem;
    }
    /* Modal responsive */
    .player-modal {
        padding: 15px;
        z-index: 9999;
    }
    .player-modal-content {
        padding: 20px 15px;
        max-width: 100%;
        margin: 0;
        width: 100%;
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .player-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-bottom: 15px;
    }
    .player-modal-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    .player-modal-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    .player-modal-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .player-modal-info {
        padding: 15px 10px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .player-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 107, 53, 0.8);
    }
    /* View details button mobile */
    .view-details-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    /* Recruitment card mobile */
    .recruitment-card .card-image {
        height: 200px;
    }
    .recruitment-icon {
        font-size: 3rem;
    }
    .join-us-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Back section small mobile */
    .back-section {
        padding: 30px 10px;
    }
    .back-button {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    .back-button i {
        font-size: 0.9rem;
    }
    /* Hero section small mobile */
    .warzone-hero {
        padding: 50px 10px 20px;
        min-height: 40vh;
    }
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 0.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 15px;
    }
    .team-stats {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }
    .team-stats .stat {
        padding: 12px;
        gap: 6px;
    }
    .team-stats .stat i {
        font-size: 1.3rem;
    }
    .team-stats .stat span {
        font-size: 0.8rem;
    }
    /* Team grid small mobile */
    .team-grid {
        gap: 1rem !important;
        padding: 0 10px !important;
    }
    .card-image {
        height: 200px;
    }
    .card-content {
        padding: 0.8rem;
    }
    .card-content h3 {
        font-size: 1.2rem;
    }
    .player-subtitle {
        font-size: 0.75rem;
    }
    /* Section headers small mobile */
    .carousel-section {
        padding: 50px 10px;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .section-header p {
        font-size: 0.9rem;
    }
    /* Modal small mobile */
    .player-modal {
        padding: 10px;
    }
    .player-modal-content {
        padding: 15px 10px;
        border-radius: 10px;
    }
    .player-modal-header {
        gap: 10px;
        padding-bottom: 10px;
    }
    .player-modal-image {
        width: 100px;
        height: 100px;
    }
    .player-modal-title {
        font-size: 1.3rem;
        padding: 0 5px;
    }
    .player-modal-subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    .player-modal-info {
        padding: 10px 5px;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    .player-modal-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    /* View details button small mobile */
    .view-details-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-top: 0.6rem;
    }
    /* Recruitment card small mobile */
    .recruitment-card .card-image {
        height: 180px;
    }
    .recruitment-icon {
        font-size: 2.5rem;
    }
    .join-us-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}


/* Landscape Mobile Styles */

@media (max-width: 768px) and (orientation: landscape) {
    .warzone-hero {
        min-height: 30vh;
        padding: 40px 15px 20px;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 10px;
    }
    .team-stats {
        gap: 10px;
        margin-top: 10px;
    }
    .team-stats .stat {
        padding: 8px;
        gap: 4px;
    }
    .team-stats .stat i {
        font-size: 1.1rem;
    }
    .team-stats .stat span {
        font-size: 0.7rem;
    }
    .carousel-section {
        padding: 40px 15px;
    }
    .section-header {
        margin-bottom: 25px;
    }
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    .section-header p {
        font-size: 0.8rem;
    }
    .team-grid {
        gap: 1rem !important;
        padding: 0 15px !important;
    }
    .card-image {
        height: 150px;
    }
    .card-content {
        padding: 0.6rem;
    }
    .card-content h3 {
        font-size: 1rem;
    }
    .player-subtitle {
        font-size: 0.7rem;
    }
    .view-details-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        margin-top: 0.4rem;
    }
    .back-section {
        padding: 25px 15px;
    }
    .back-button {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
    .back-button i {
        font-size: 0.8rem;
    }
}


/* ========== ANIMATIONS ========== */

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}


/* ========== SCROLL REVEAL ========== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ========== PERFORMANCE OPTIMIZATIONS ========== */

.card {
    will-change: transform;
}

.card:hover,
.card.active {
    will-change: transform, box-shadow;
}

.inner {
    will-change: transform;
}


/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
    .inner {
        animation: none;
    }
    .card {
        transition: none;
    }
    .achievement-card::before {
        animation: none;
    }
}


/* ========== DARK MODE ENHANCEMENTS ========== */

@media (prefers-contrast: high) {
    .card {
        border-width: 4px;
    }
    .achievement-card {
        border-width: 2px;
    }
}


/* ========== MOBILE RESPONSIVENESS ========== */

@media (max-width: 768px) {
    /* Player names always visible on mobile */
    .player-name-overlay {
        opacity: 1 !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
        padding: 20px 10px 15px;
        font-size: 0.9rem;
        font-weight: 600;
        display: block !important;
        visibility: visible !important;
    }
    /* Hide hover effects on mobile */
    .card:hover::after,
    .card:hover::before {
        display: none !important;
    }
    /* Ensure cards are clickable on mobile */
    .card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.3);
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .player-name-overlay {
        font-size: 0.8rem;
        padding: 18px 8px 12px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.98));
        font-weight: 700;
    }
}