/* Import fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap'); */

/* Import fonts locally */
/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/pxiEyp8kv8JHgFVrJJnecmNE.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Poppins.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/PoppinsBold.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



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

:root {
    --scrollbar-track: rgba(25, 38, 36, 0.95);
    --scrollbar-thumb: rgba(255, 255, 255, 0.3);
}

/* Custom Scrollbar Styles */
/* For Webkit browsers (Chrome, Safari, etc) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    /* min-height:  266.75vh; */
    min-height: 400vh;
    background-color: #f0f0f0;
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: "Poppins", serif;
    color: white;
}

/* Hero section styles */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    transform: none;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(95%);
    transition: filter 0.3s ease;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1926247f;
    /* Semi-transparent overlay */
    z-index: 1;
}

/* Hero content styles */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 630px;
    margin: 0 auto;
    top: 40%;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 900;
    font-family: "Poppins", serif;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
    font-family: "Poppins", serif;
}

/* Logo styles */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.logo img {
    width: 50px;
    height: auto;
}

/* Landing page overlay */
.landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    z-index: 1000;
}

/* Grain effect styles */
#grain {
    pointer-events: none;
}

#grain:after {
    content: "";
    background-image: url("../content/grain.png");
    height: 300%;
    width: 300%;
    position: fixed;
    opacity: .1;
    animation: animateGrain 8s steps(10) infinite;
    z-index: 10000;
}

/* Grain animation */
@keyframes animateGrain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, -20%);
    }

    30% {
        transform: translate(-5%, -10%);
    }

    40% {
        transform: translate(-15%, -20%);
    }

    50% {
        transform: translate(-5%, -10%);
    }

    60% {
        transform: translate(-15%, -20%);
    }

    70% {
        transform: translate(-5%, -10%);
    }

    80% {
        transform: translate(-15%, -20%);
    }

    90% {
        transform: translate(-5%, -10%);
    }

    100% {
        transform: translate(-15%, -20%);
    }
}

/* Grid container styles */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
}

.row {
    display: flex;
    justify-content: space-between;
    width: auto;
    height: 33.33%;
}

/* Grid item styles */
.item {
    position: relative;
    overflow: hidden;
    flex: 1 0 calc(33.33% - 8px);
    margin: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #dedede;
    color: white;
    font-size: 1.5rem;
}

.team {
    position: relative;
    overflow: hidden;
    flex: 1 0 calc(16.665% - 8px);
    margin: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #192624;
    color: white;
    font-size: 1.5rem;
}

.team .section-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    padding: 20px;
    width: 80%;
    background: none;
    z-index: 3;
}

.team .section-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.team .section-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 600px;
}

/* Update member card styles */
.team.member .section-content {
    top: auto;
    left: 0;
    bottom: 0;
    transform: none;
    text-align: left;
    padding: 20px;
    width: 100%;
    background: linear-gradient(to top,
            rgba(25, 38, 36, 0.9) 0%,
            rgba(25, 38, 36, 0) 100%);
}

.team.member .section-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.team.member .section-content h2 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    opacity: 0.9;
}

/* Video effects for team sections */
.team .game-video {
    filter: grayscale(95%);
    object-fit: cover;
}

.team .video-tint {
    background-color: #1926247f;
    opacity: 1;
}

.team:hover .video-tint {
    opacity: 1;
}

.team:hover .game-video {
    filter: grayscale(95%);
}

/* Video effects */
.video-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #19262400;
    /* Solid overlay color */
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* mix-blend-mode: lighten; */
}

.game-video {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    z-index: 0;
}

/* Hover effects */
.item:hover .video-tint {
    opacity: 0;
}

.game-video:hover {
    filter: grayscale(0%);
}

/* Video overlay styles */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0) 33%);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
    opacity: .1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.item:hover .video-overlay {
    opacity: 1;
}

.video-overlay h3 {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0;
    padding: 0;
}

.video-overlay span {
    font-size: 1rem;
    opacity: 0.8;
    margin-right: 1rem;
    margin-bottom: 0;
    padding: 0;
    line-height: 2.1;
}

/* Link styles */
.item a {
    text-decoration: none;
    color: white;
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive styles */
@media (max-width: 600px) {
    .item {
        font-size: 1rem;
    }
}

/* Games and Contact sections */
.games,
.contact {
    position: relative;
    overflow: hidden;
    background-color: #192624;
}

.games .game-video,
.contact .game-video {
    filter: grayscale(95%);
    transition: filter 0.3s ease;
}

.games:hover .game-video,
.contact:hover .game-video {
    filter: grayscale(95%);
}

.games .video-tint,
.contact .video-tint {
    background-color: #1926247f;
    /* Match hero overlay color */
    opacity: 1;
}

/* Update hover effects */
.games:hover .video-tint,
.contact:hover .video-tint {
    opacity: 1;
}

.section-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: left;
    width: 82%;
    color: white;
    padding: 2.2rem;
}

.section-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.1rem;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 600px;
}

/* Contact specific styles */
.contact .section-content {
    text-align: left;
}

.contact-info {
    margin-top: 0.5rem;
}

.contact-info.loaded {
    opacity: 1;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Updated inline icon styles */
.inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive adjustments */
/* @media (max-width: 768px) {
    .section-content h2 {
        font-size: 2rem;
    }

    .section-content p,
    .contact-info p {
        font-size: 1rem;
    }
} */

.skeleton {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    /* Hide text content */
    user-select: none;
    background: #2a3f3d;
    /* Base color matching your dark theme */
    height: 20px;
    opacity: 50%;
}

.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 25%,
            rgba(57, 78, 76, 0.5) 50%,
            /* Subtle highlight color */
            transparent 75%);
    animation: skeleton-loading 1.6s ease-in-out infinite;
    opacity: 0.4;
    /* Subtle overlay effect */
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.3;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
        transform: translateX(100%);
    }
}

@media (max-width: 1920px) {
    /* .content h1 {
        font-size: 1.65rem;
    }
*/
    p {
        font-size: 1rem !important; 
    } 

}

/* ===================== */
/* MOBILE RESPONSIVE (≤768px) */
/* ===================== */
@media (max-width: 768px) {
    /* Reset container and scrolling behavior */
    body {
        min-height: auto !important;
        overflow-y: auto !important;
    }

    .container {
        position: relative !important;
        display: block !important;
        height: auto !important;
        width: 100% !important;
        margin-top: 0; /* Remove margin since hero won't be fixed */
    }

    /* Row adjustments */
    .row {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Item base styles */
    .item, .team {
        flex: 1 0 auto !important;
        width: 100% !important;
        height: 33vh !important;
        margin: 0 !important;
        position: relative;
        order: 5; /* Default order */
    }

    /* Hero section adjustments */
    #hero {
        position: relative !important; /* Change from fixed to relative */
        height: 100vh;
        z-index: 1; /* Reduce z-index since it's not fixed anymore */
    }

    .landing {
        position: relative !important; /* Change from fixed to relative */
    }

    /* Game cards specific styles */
    .item:not(.team):not(.contact):not(.games) {
        height: 60vh !important; /* Shorter height for game cards */
    }

    .video-overlay {
        opacity: 1 !important;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
        padding: 30px 20px !important;
    }

    .video-overlay h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .video-overlay span {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    /* Content adjustments */
    .content {
        padding: 0 20px;
        top: 50%;
    }

    .content h1 {
        font-size: 2.5rem;
    }

    .content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Section ordering */
    .games { 
        order: 2;
        height: auto !important;
        min-height: 33vh !important;
    }
    
    .team:not(.member) { 
        order: 3;
    }

    .order-2{
        order:2;
    }
    .mobile-hide{
        display: none;
    }
    
    .team.member { 
        order: 4;
        height: 33vh !important;
    }
    
    .contact { 
        order: 100;
    }

    /* Section content adjustments */
    .section-content {
        padding: 20px;
        width: 90%;
    }

    .section-content h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .section-content p {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Team member card adjustments */
    .team.member .section-content {
        padding: 20px;
    }

    .team.member .section-content h2 {
        font-size: 1.8rem;
    }

    .team.member .section-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Contact section adjustments */
    .contact-info p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Hide unnecessary rows */
    .scroll-top, .scroll-bottom {
        display: none !important;
    }

    /* Video adjustments */
    .game-video {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center;
    }

    .games .game-video{
        width: auto !important;
    }

    /* Remove hover states */
    .item:hover .video-tint,
    .team:hover .video-tint,
    .games:hover .video-tint,
    .contact:hover .video-tint {
        opacity: 1 !important;
    }

    .item:hover .video-overlay {
        opacity: 1 !important;
    }

    .game-video:hover {
        filter: grayscale(95%) !important;
    }
}

/* Additional breakpoint for smaller phones */
@media (max-width: 480px) {
    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    .section-content h2 {
        font-size: 1.8rem;
    }

    .section-content p {
        font-size: 0.9rem;
    }

    .video-overlay h3 {
        font-size: 1.2rem;
    }

    .video-overlay span {
        font-size: 0.8rem;
    }
}