/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important; /* Force box-sizing on all elements */
}

:root {
    --primary-bg: #111111;
    --secondary-bg: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-blue: #00a8ff;
    --accent-green: #00ffb3;
    --accent-pink: #ff69b4;
    --accent-red: #ff4757;
    --accent-purple: #8c52ff;
    --accent-yellow: #ffdd59;
    --card-radius: 10px;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 10vh;
    background-image: linear-gradient(to bottom right, rgba(25, 25, 25, 0.8), rgba(15, 15, 15, 0.8)), 
                      url('../img/grid-pattern.svg');
    background-size: cover;
    background-attachment: fixed;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    cursor: none; /* Hide default cursor */
}

/* Light mode styles */
body.light-mode {
    --primary-bg: #ffffff;
    --secondary-bg: #f0f2f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(to bottom right, rgba(240, 242, 245, 0.8), rgba(230, 232, 235, 0.8)), 
                      url('../img/grid-pattern-light.svg');
}

body.light-mode .game-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .platform-card,
body.light-mode .impact-card {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .game-grid-card,
body.light-mode .featured-game,
body.light-mode .coming-soon-card {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-section {
    background-color: #f0f2f5;
}

body.light-mode .social-card {
    background: rgba(240, 242, 245, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .social-card p {
    color: var(--text-secondary);
}

body.light-mode .social-card h3 {
    color: var(--text-primary); /* Ensure social card headings are dark in light mode */
}

body.light-mode .contact-message {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    color: var(--text-primary);
}

body.light-mode .hero-section h1,
body.light-mode .section-title,
body.light-mode .impact-header h3,
body.light-mode .stat-value,
body.light-mode .coming-soon-section h2,
body.light-mode .featured-game-content h2 {
    color: var(--text-primary);
    -webkit-text-fill-color: initial; /* Reset text fill color */
}

body.light-mode .subtitle,
body.light-mode .platform-card p,
body.light-mode .impact-header p,
body.light-mode .stat-label,
body.light-mode .game-description,
body.light-mode .game-meta,
body.light-mode .game-type {
    color: var(--text-secondary);
}

body.light-mode .download-btn {
    background-color: #007bff;
    color: white;
}

body.light-mode .download-btn:hover {
    background-color: #00ffb3;
    color: white;
}

body.light-mode .primary-btn {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .primary-btn:hover {
    background: linear-gradient(45deg, #0056b3, #4b0082);
}

body.light-mode .secondary-btn {
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #333;
}

body.light-mode .secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* General link color for light mode if not specifically overridden */
body.light-mode a {
    color: #007bff; /* Blue for light mode links */
}

body.light-mode a:hover {
    color: #0056b3; /* Darker blue on hover */
}

body.light-mode .nav-item.active {
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-link {
    color: var(--text-primary);
}

body.light-mode .nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle hover background */
}

body.light-mode .nav-link:hover {
    color: var(--text-primary); /* Keep text color same on hover */
}

body.light-mode .icon {
    color: #333333; /* Dark color for icons in light mode */
}

body.light-mode .game-type {
    color: #ffffff; /* Keep game-type white in light mode */
}

body.light-mode .months {
    color: #333333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Icon styles */
.icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Make gamepad icon bigger */
.nav-item svg[href="#icon-joystick"],
.nav-item svg use[href="#icon-joystick"] {
    width: 28px;
    height: 28px;
    margin: -4px;
}

/* Specific icon size for the gamepad */
.icon-gamepad {
    width: 30px;
    height: 30px;
    margin: -5px;
}

/* Header styles */
header {
    margin-bottom: 30px;
    position: relative; /* Allow for absolute positioning of nav-right */
    display: flex;
    justify-content: center; /* Center the nav */
    align-items: center;
}

nav {
    display: flex;
    justify-content: center; /* Center the nav-left content */
    align-items: center;
    width: 100%;
    padding: 15px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 20px; /* Default for desktop */
    transform: translateY(-50%);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.nav-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle styles */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #333;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.toggle-label::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px; /* Ball starts on the left */
    width: 26px;
    height: 26px;
    background-color: #f8f9fa;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-toggle input[type="checkbox"]:checked + .toggle-label {
    background-color: #333333;
}

.theme-toggle input[type="checkbox"]:checked + .toggle-label::before {
    transform: translateX(0); /* Ball stays on left for light mode (checked) */
}

.theme-toggle input[type="checkbox"]:not(:checked) + .toggle-label::before {
    transform: translateX(30px); /* Ball moves to right for dark mode (unchecked) */
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.sun-icon {
    left: 5px;
    color: #fdd835; /* Yellow for sun */
    opacity: 0; /* Hidden by default in dark mode */
}

.moon-icon {
    right: 5px;
    color: #f0f4c3; /* Light yellow for moon */
    opacity: 1; /* Visible by default in dark mode */
}

.theme-toggle input[type="checkbox"]:checked + .toggle-label .sun-icon {
    opacity: 1; /* Visible in light mode */
}

.theme-toggle input[type="checkbox"]:checked + .toggle-label .moon-icon {
    opacity: 0; /* Hidden in light mode */
}

/* Adjust background for dark mode */
body.dark-mode {
    background-image: linear-gradient(to bottom right, rgba(15, 15, 15, 0.8), rgba(5, 5, 5, 0.8)), 
                      url('../img/grid-pattern.svg');
}

body.dark-mode .game-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .platform-card,
body.dark-mode .impact-card {
    background-color: rgba(45, 45, 68, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .game-grid-card,
body.dark-mode .featured-game,
body.dark-mode .coming-soon-card {
    background-color: rgba(45, 45, 68, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .contact-section {
    background-color: #1e1e2e;
}

body.dark-mode .social-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-message {
    background: rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.3);
}

body.dark-mode .hero-section h1,
body.dark-mode .section-title,
body.dark-mode .impact-header h3,
body.dark-mode .stat-value,
body.dark-mode .coming-soon-section h2,
body.dark-mode .featured-game-content h2 {
    color: #ffffff;
    -webkit-text-fill-color: initial; /* Reset text fill color for dark mode */
}

body.dark-mode .subtitle,
body.dark-mode .platform-card p,
body.dark-mode .impact-header p,
body.dark-mode .stat-label,
body.dark-mode .game-description,
body.dark-mode .game-meta,
body.dark-mode .game-type,
body.dark-mode .social-card p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .download-btn {
    background-color: #8e4cfa;
    color: white;
}

body.dark-mode .download-btn:hover {
    background-color: #00a1fb;
}

/* General link color for dark mode if not specifically overridden */
body.dark-mode a {
    color: #87CEEB; /* Sky blue */
}

body.dark-mode a:hover {
    color: #ffffff; /* White on hover */
}

.primary-btn {
    background: linear-gradient(45deg, #00a8ff, #8c52ff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #00ffb3, #00a8ff);
}

.secondary-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item {
        width: 100%;
    }

    .nav-right {
        position: absolute;
        top: 15px;
        left: 20px; /* Moved to left for mobile */
        right: auto; /* Remove right property for mobile */
        transform: none; /* Reset transform for mobile */
    }
}

/* Subscription banner */
.subscription-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    position: relative;
}

/* Remove previous pseudo-elements from subscription-banner */
.subscription-banner::before,
.subscription-banner::after {
    display: none;
}

/* Logo styling with glitch effect */
.logo-icon {
    width: 60px;
    height: 60px;
    margin-right: -18px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    object-fit: contain;
    position: relative;
    animation: glitch 3s infinite;
    z-index: 2; /* Ensure the original logo is on top */
}

/* Use pseudo-elements on the logo itself */
.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/face2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.logo-icon::before {
    animation: glitch-before 3s linear infinite;
}

.logo-icon::after {
    animation: glitch-after 3s linear infinite;
}

@keyframes glitch-before {
    0% {
        opacity: 0;
    }
    1% {
        opacity: 0.8;
        transform: translate(-5px, 3px);
        filter: grayscale(0.8) brightness(1.8) contrast(2.5) hue-rotate(90deg);
    }
    2%, 5% {
        opacity: 0;
    }
    67% {
        opacity: 0;
    }
    68%, 70% {
        opacity: 0.8;
        transform: translate(5px, -2px);
        filter: grayscale(0.5) brightness(1.5) contrast(3) hue-rotate(180deg);
    }
    71%, 100% {
        opacity: 0;
    }
}

@keyframes glitch-after {
    0% {
        opacity: 0;
    }
    2% {
        opacity: 0;
    }
    3% {
        opacity: 0.8;
        transform: translate(4px, -3px);
        filter: grayscale(0.8) brightness(2) contrast(2.5) hue-rotate(-90deg);
    }
    4%, 65% {
        opacity: 0;
    }
    66% {
        opacity: 0.8;
        transform: translate(-6px, 2px);
        filter: grayscale(0.5) brightness(1.8) contrast(2) hue-rotate(-180deg);
    }
    67%, 100% {
        opacity: 0;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }
    1% {
        transform: translate(-3px, 2px);
        filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.7)) brightness(1.1);
    }
    2% {
        transform: translate(3px, -2px);
        filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.7)) brightness(1.1);
    }
    3% {
        transform: translate(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }
    65% {
        transform: translate(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }
    66% {
        transform: translate(3px, -1px);
        filter: drop-shadow(0 0 4px rgba(0, 255, 0, 0.7)) contrast(1.2);
        opacity: 0.9;
    }
    67% {
        transform: translate(-3px, 2px);
        filter: drop-shadow(0 0 4px rgba(255, 0, 255, 0.7)) contrast(1.2);
        opacity: 0.9;
    }
    68% {
        transform: translate(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
        opacity: 1;
    }
    100% {
        transform: translate(0);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }
}

.gift-icon-small {
    width: 18px;
    height: 18px;
    color: var(--accent-yellow);
}

/* Replaced with logo-icon
.eight-icon {
    width: 40px;
    height: 40px;
    color: white;
    margin-right: 10px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    image-rendering: pixelated;
    transform: scale(1.2);
}
*/

.months {
    font-weight: 700;
    color: var(--accent-yellow);
}

.divider {
    color: var(--text-secondary);
}

.free-access {
    color: var(--text-secondary);
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Game cards */
.game-cards {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    perspective: 1000px;
}

.game-card {
    position: absolute;
    width: 220px;
    height: 280px;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.8s ease-out; /* Increased transition for animation */
    transform-style: preserve-3d;
    overflow: hidden;
    cursor: pointer;
    /* Initial state for all cards - centered */
    transform: translateX(0) rotate(0deg);
}

/* Define final positions when .game-cards has .is-loaded */
.game-cards.is-loaded .game-card.game1 {
    transform: rotate(-15deg) translateX(-350px);
    z-index: 1;
}

.game-cards.is-loaded .game-card.game1:hover {
    transform: rotate(-16deg) translateX(-350px) translateY(-20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-card.game1 {
    background: linear-gradient(to bottom right, #7e4dd2, #502f9a);
    z-index: 1;
}

.game-cards.is-loaded .game-card.game2 {
    background: linear-gradient(to bottom right, #ff5757, #d82c2c);
    transform: rotate(-7deg) translateX(-180px);
    z-index: 2;
}

.game-cards.is-loaded .game-card.game2:hover {
    transform: rotate(-8deg) translateX(-180px) translateY(-20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-card.game2 {
    background: linear-gradient(to bottom right, #ff5757, #d82c2c);
    z-index: 2;
}

.game-card.game3 {
    background: linear-gradient(to bottom right, #00c8ff, #0057ff);
    transform: translateX(0); /* Centered card, no change needed */
    z-index: 5;
}

.game-card.game3:hover {
    transform: translateY(-20px) rotate(1deg); /* Just move up and slight rotate */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-cards.is-loaded .game-card.game4 {
    background: linear-gradient(to bottom right, #53e894, #00af60);
    transform: rotate(7deg) translateX(180px);
    z-index: 2;
}

.game-cards.is-loaded .game-card.game4:hover {
    transform: rotate(8deg) translateX(180px) translateY(-20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-card.game4 {
    background: linear-gradient(to bottom right, #53e894, #00af60);
    z-index: 2;
}

.game-cards.is-loaded .game-card.game5 {
    background: linear-gradient(to bottom right, #62cdff, #0099ff);
    transform: rotate(15deg) translateX(350px);
    z-index: 1;
}

.game-cards.is-loaded .game-card.game5:hover {
    transform: rotate(16deg) translateX(350px) translateY(-20px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-card.game5 {
    background: linear-gradient(to bottom right, #62cdff, #0099ff);
    z-index: 1;
}

.rating {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255);
    color: #333;
    border-radius: 20px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1111;
}

.rating .icon {
    color: #333;
    width: 16px;
    height: 16px;
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    color: #ffffff; /* Ensure card titles are always white */
}

.game-type {
    font-size: 0.9rem;
    color: #ffffff; /* Set font size to 0.9rem */
    position: relative;
    z-index: 2;
    /* color: #ffffff; Ensure card types are always white */
}

/* Text alignment for left-image cards */
.game-card.game1 h3,
.game-card.game1 .game-type,
.game-card.game2 h3,
.game-card.game2 .game-type {
    text-align: left;
}

/* Center alignment for center card */
.game-card.game3 h3,
.game-card.game3 .game-type {
    text-align: left;
}

.game-image {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 1;
    transform: rotate(0deg);
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.game-card:hover .game-image {
    transform: translateY(-10px) scale(1.1);
}

/* Custom positioning for specific game images */
.game-card.game1 .game-image,
.game-card.game2 .game-image,
.game-card.game4 .game-image,
.game-card.game5 .game-image {
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    background-position: bottom right;
}

.game-card.game3 .game-image {
    bottom: -25px;
    right: -25px;
    width: 200px;
    height: 200px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .game-cards {
        height: 380px;
    }
    
    .game-card {
        width: 190px;
        height: 240px;
    }
    
    .game-card.game1 {
        transform: rotate(-15deg) translateX(-280px);
    }
    
    .game-card.game1:hover {
        transform: rotate(-16deg) translateX(-280px) translateY(-20px);
    }
    
    .game-card.game2 {
        transform: rotate(-7deg) translateX(-140px);
    }
    
    .game-card.game2:hover {
        transform: rotate(-8deg) translateX(-140px) translateY(-20px);
    }
    
    .game-card.game4 {
        transform: rotate(7deg) translateX(140px);
    }
    
    .game-card.game4:hover {
        transform: rotate(8deg) translateX(140px) translateY(-20px);
    }
    
    .game-card.game5 {
        transform: rotate(15deg) translateX(280px);
    }
    
    .game-card.game5:hover {
        transform: rotate(16deg) translateX(280px) translateY(-20px);
    }
    
    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .game-cards {
        height: 350px;
    }
    
    .game-card {
        width: 160px;
        height: 210px;
    }
    
    .game-card.game1 {
        transform: rotate(-15deg) translateX(-230px);
    }
    
    .game-card.game1:hover {
        transform: rotate(-16deg) translateX(-230px) translateY(-20px);
    }
    
    .game-card.game2 {
        transform: rotate(-7deg) translateX(-120px);
    }
    
    .game-card.game2:hover {
        transform: rotate(-8deg) translateX(-120px) translateY(-20px);
    }
    
    .game-card.game4 {
        transform: rotate(7deg) translateX(120px);
    }
    
    .game-card.game4:hover {
        transform: rotate(8deg) translateX(120px) translateY(-20px);
    }
    
    .game-card.game5 {
        transform: rotate(15deg) translateX(230px);
    }
    
    .game-card.game5:hover {
        transform: rotate(16deg) translateX(230px) translateY(-20px);
    }
}

@media (max-width: 768px) {
    .game-cards {
        height: 500px;
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        position: relative;
        margin: 10px 0;
        width: 90%;
        /* max-width: 260px; */
        transform: none !important;
    }
    
    .game-card:hover {
        transform: translateY(-10px) rotate(1deg) !important;
    }
    
    .game-card.game3 .game-image {
        bottom: -42px;
        right: -19px;
        width: 129px;
        /* height: 200px; */
    }
    
    .game-card.game1 .game-image,
    .game-card.game2 .game-image,
    .game-card.game4 .game-image,
    .game-card.game5 .game-image {
        bottom: -44px;
        right: -20px;
        width: 129px;
        height: 180px;
        background-position: bottom right;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .nav-left {
        gap: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subscription-banner {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Center subscription banner elements */
    .subscription-banner .months, 
    .subscription-banner .divider, 
    .subscription-banner .free-access {
        text-align: center;
    }
    
    /* Ensure the game cards stack properly on small screens */
    .game-cards {
        padding: 0 20px;
    }
}

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    margin-left: auto; /* Push to right side */
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 90;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-left.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    /* Overlay for when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Hamburger menu animation when active */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Position hamburger button */
    header nav {
        justify-content: space-between;
        width: 100%;
        position: relative;
    }
}

/* Icon specific sizes */
.icon-gamepad {
    width: 25px;
    height: 25px;
    margin: -2px;
}

.icon-large {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
}

/* Platform section */
.platform-section {
    margin: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-transform: none;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.platform-card {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.platform-card .icon-large {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: white;
}

.platform-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.download-btn {
    background-color: #00a0fa;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background-color: #00ffb3;
    transform: translateY(-3px);
}

/* Impact card */
.impact-card {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.impact-header {
    margin-bottom: 0;
}

.impact-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.impact-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr; /* Forces a single column, creating horizontal rows */
    gap: 15px; /* Adjusted gap for vertical stacking */
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 8px 10px; /* Adjusted padding for compactness */
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 1.6rem; /* Slightly reduced font size to ensure fit */
    font-weight: 800;
    color: var(--accent-blue);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.3rem; /* Set font size to 1.8rem as requested */
    font-weight: 600;
    color: var(--accent-blue);
    display: inline;
    margin-left: 2px;
}

.stat-number-group {
    display: block;
    margin-bottom: 2px;
    white-space: nowrap; /* Prevent line breaks within the number and suffix */
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block; /* Ensure label is on its own line */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0; /* Remove top margin as spacing is now handled by stat-number-group */
}

/* Light mode adjustments for impact stats */
body.light-mode .impact-stats {
    background: none; /* Remove background from parent container */
    border: none; /* Remove border from parent container */
    box-shadow: none; /* Remove shadow from parent container */
}

body.light-mode .stat-item {
    background: rgba(240, 242, 245, 0.8); /* Lighter background for items */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Lighter border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer shadow */
}

body.light-mode .stat-value,
body.light-mode .stat-suffix {
    color: var(--accent-blue); /* Keep accent color for numbers */
}

body.light-mode .stat-label {
    color: var(--text-secondary); /* Darker text for labels */
}

@media (max-width: 992px) {
    .platform-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .impact-card {
        grid-column: span 2;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .platform-section {
        margin: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .platform-cards {
        grid-template-columns: 1fr;
    }
    
    .impact-card {
        grid-column: span 1;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-btn {
        width: 100%;
    }
}

/* Call to action section */
.cta-section {
    margin: 80px 0;
    /* padding: 0 20px; */
}

.cta-card {
    background: linear-gradient(135deg, var(--secondary-bg), #252530);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: stretch;
    min-height: 300px;
    /* max-width: 1100px; */
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .cta-card {
    background: linear-gradient(135deg, var(--secondary-bg), #e0e2e5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-content {
    padding: 60px;
    position: relative;
    z-index: 2;
    flex: 1;
}

body.light-mode .cta-content h2 {
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial; /* Ensure text is visible in light mode */
    background: none; /* Remove gradient background in light mode */
    text-shadow: none; /* Remove text shadow in light mode */
    color: var(--text-primary); /* Set text color to primary text color */
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #00d0fc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.primary-btn {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 8px 15px rgba(138, 82, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(138, 82, 255, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.cta-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.pixel-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-color: #fd4f4e;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    transform: rotate(15deg);
    z-index: -1;
    animation: pixelFloat 15s linear infinite;
    border-radius: 30%;
}

@keyframes pixelFloat {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(15deg) translateY(-20px);
    }
    100% {
        transform: rotate(0deg) translateY(0);
    }
}

/* Responsive styles for CTA section */
@media (max-width: 992px) {
    .cta-content {
        padding: 40px;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .cta-card {
        min-height: 250px;
    }
    
    .cta-content {
        padding: 30px;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    .pixel-decoration {
        opacity: 1;
    }
}

/* Privacy Policy Page Styles */
.policy-header {
    text-align: center;
    margin: 40px 0 60px;
}

.policy-header h1 {
    margin-bottom: 10px;
    font-size: 3.5rem;
}

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

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.policy-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--accent-purple);
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.policy-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .policy-header h1 {
        font-size: 2.5rem;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    .policy-section h2 {
        font-size: 1.6rem;
    }
    
    .policy-section h3 {
        font-size: 1.3rem;
    }
}

/* Improved Contact Page Styles */
.contact-header {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.contact-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-radius: 5px;
}

.contact-header .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 20px;
}

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(28, 28, 28, 0.7);
    border-radius: var(--card-radius);
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 82, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: -1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-right: 30px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    line-height: 1.2;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
}

.contact-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 400px;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.contact-icon .icon {
    width: 26px;
    height: 26px;
    color: white;
}

.contact-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-blue);
}

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

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-green);
}

.contact-item a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

.social-link {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.social-link .icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover .icon {
    color: white;
}

.contact-form-container {
    background-color: rgba(30, 30, 35, 0.5);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 179, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.contact-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--accent-green);
    position: relative;
    display: inline-block;
}

.contact-form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 5px;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent-blue);
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.15);
}

.submit-btn {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 16px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

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

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
}

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

.submit-btn .icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Map section styling */
.contact-map-section {
    margin: 80px 0 60px;
    text-align: center;
    position: relative;
}

.contact-map-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.contact-map-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(30, 30, 35, 0.5);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pixel-map {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 30, 30, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 30, 30, 0.7) 1px, transparent 1px),
        linear-gradient(rgba(0, 168, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    animation: mapMove 60s linear infinite;
}

@keyframes mapMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    }
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.7);
    animation: pulse 2s infinite ease-in-out;
}

.map-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
        box-shadow: 0 0 30px rgba(255, 71, 87, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1.1);
        box-shadow: 0 0 40px rgba(255, 71, 87, 0.9);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
        box-shadow: 0 0 30px rgba(255, 71, 87, 0.7);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .contact-header h1 {
        font-size: 3.5rem;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
    
    .contact-info {
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .form-row {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 3rem;
    }
    
    .contact-header .subtitle {
        font-size: 1.1rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 30px;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .form-group input, 
    .form-group textarea {
        width: 100%;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contact-header .subtitle {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .contact-form-container h2 {
        font-size: 1.6rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .social-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: calc(50% - 8px);
        justify-content: center;
    }
    
    .social-link .icon {
        width: 18px;
        height: 18px;
    }
    
    .map-placeholder {
        height: 250px;
    }
}

/* Email field specific fixes */
#email {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Games Page Styles */
.games-header {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.games-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.games-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-radius: 5px;
}

.games-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.filter-icon .icon {
    width: 24px;
    height: 24px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(138, 82, 255, 0.3);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-grid-card {
    background-color: rgba(28, 28, 28, 0.7);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(138, 82, 255, 0.3);
}

.game-grid-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-grid-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-grid-card:hover .play-btn {
    transform: translateY(0);
    opacity: 1;
}

.game-grid-content {
    padding: 20px;
}

.game-grid-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.game-grid-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: auto;
}

.game-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge.action {
    background-color: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.game-badge.adventure {
    background-color: rgba(0, 168, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.game-badge.puzzle {
    background-color: rgba(0, 255, 179, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 179, 0.3);
}

.game-badge.rpg {
    background-color: rgba(138, 82, 255, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(138, 82, 255, 0.3);
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.game-rating, 
.game-platform {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-rating.large {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.game-rating.large .icon {
    width: 24px;
    height: 24px;
    color: var(--accent-yellow);
}

/* Featured Game Section */
.featured-game {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin: 80px 0;
    position: relative;
    background-color: rgba(28, 28, 28, 0.7);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 82, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 0;
    pointer-events: none;
}

.featured-game-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.featured-label {
    display: inline-block;
    background: linear-gradient(to right, var(--accent-red), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.featured-game-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.featured-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.featured-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.featured-game-image {
    position: relative;
    height: 100%;
    width: 100%;
}

.featured-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Coming Soon Section */
.coming-soon-section {
    margin: 60px 0;
}

.coming-soon-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--accent-yellow), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.coming-soon-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.coming-soon-card {
    background-color: rgba(28, 28, 28, 0.7);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 150px 1fr;
    height: 180px;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.coming-soon-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.coming-soon-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.coming-soon-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.coming-soon-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.countdown {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-yellow);
    background-color: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

/* Responsive styles for games page */
@media (max-width: 992px) {
    .games-header h1 {
        font-size: 3.5rem;
    }
    
    .featured-game {
        grid-template-columns: 1fr;
    }
    
    .featured-game-image {
        height: 300px;
    }
    
    .featured-game-content {
        padding: 40px;
    }
    
    .featured-game-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .games-header h1 {
        font-size: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .coming-soon-games {
        grid-template-columns: 1fr;
    }
    
    .featured-game-content {
        padding: 30px;
    }
    
    .featured-game-content h2 {
        font-size: 2rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .games-header h1 {
        font-size: 2.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .featured-game-content {
        padding: 25px;
    }
    
    .featured-game-content h2 {
        font-size: 1.8rem;
    }
    
    .featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .coming-soon-card {
        grid-template-columns: 100px 1fr;
    }
}

/* Footer Styles */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0px 40px 0px 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.footer-logo h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 64px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h3 {
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .footer-column {
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        margin-top: 50px;
        padding-top: 40px;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .footer-column {
        min-width: 100px;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 30px; /* Slightly larger */
    height: 30px; /* Slightly larger */
    border-radius: 50%;
    border: 2px solid white; /* White border for dark mode */
    background-color: transparent; /* Make it transparent */
    pointer-events: none; /* Allows clicks to pass through */
    transform: translate(-50%, -50%); /* Center the cursor on the mouse position */
    z-index: 9999;
    transition: border-color 0.3s ease; /* Smooth transition for color change */
}

body.light-mode .custom-cursor {
    border-color: black; /* Black border for light mode */
}

/* Liquid Particles */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7); /* Default for dark mode (white, semi-transparent) */
    pointer-events: none;
    transform: translate(-50%, -50%);
    /* Removed opacity: 0; now controlled entirely by JS */
    /* filter: blur(2px); Removed for solid particles */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, background-color 0.3s ease; /* Particle animation */
    z-index: 9998; /* Below the main cursor */
}

body.light-mode .particle {
    background-color: rgba(0, 0, 0, 0.7); /* Black for light mode (black, semi-transparent) */
} 