/* Main Styles for Gamestroid */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Dark Theme (Default) - Orange Theme */
    --dark-bg: #1a0f00;
    --darker-bg: #0f0900;
    --card-bg: #261500;
    --primary: #ff8c00;
    --secondary: #ff5722;
    --accent: #ffc107;    
    --text: #ffffff;
    --text-secondary: #e0e0e0;
    --font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Light Theme - Orange Theme */
:root.light-theme {
    --dark-bg: #fff8f0;
    --darker-bg: #fff0e0;
    --card-bg: #ffffff;
    --text: #1a0f00;
    --text-secondary: #6d4c2f;
    --primary: #e67e22;
    --secondary: #d35400;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(26, 15, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 20px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-family: var(--font);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

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

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--darker-bg);
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.hero-bg-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(255, 140, 0, 0.03)" width="1" height="1" x="0" y="0"/><rect fill="rgba(255, 87, 34, 0.03)" width="1" height="1" x="25" y="25"/><rect fill="rgba(255, 193, 7, 0.03)" width="1" height="1" x="50" y="50"/><rect fill="rgba(230, 126, 34, 0.03)" width="1" height="1" x="75" y="75"/></svg>');
    opacity: 0.5;
    animation: floating 120s linear infinite;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text);
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

.cta-button:hover {
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.5);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 50px 0;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 140, 0, 0.3);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

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

.game-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 140, 0, 0.15), 0 0 0 1px rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.2);
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 140, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.game-image-section {
    width: 100%;
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.game-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--game-icon-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.3) saturate(1.2);
    transform: scale(1.1);
    opacity: 0.6;
    z-index: 1;
    transition: all 0.4s ease;
}

.game-card:hover .game-image-section::before {
    filter: blur(15px) brightness(0.4) saturate(1.5);
    transform: scale(1.2);
    opacity: 0.8;
}

.game-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 140, 0, 0.1) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.game-card:hover .game-image-section::after {
    opacity: 1;
}

.game-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.game-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 140, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.game-card:hover .game-icon::before {
    opacity: 1;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.game-content {
    flex: 1;
    padding: 24px 20px 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.game-header {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.game-rating .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(68%) sepia(95%) saturate(1658%) hue-rotate(21deg) brightness(103%) contrast(98%);
    transition: filter 0.3s ease;
}

.star-icon.empty {
    filter: brightness(0) saturate(100%) invert(21%) sepia(12%) saturate(317%) hue-rotate(169deg) brightness(92%) contrast(87%);
    opacity: 0.3;
}

.game-rating-number {
    color: var(--text);
    background: rgba(255, 180, 0, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.download-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(54%) sepia(98%) saturate(1148%) hue-rotate(186deg) brightness(91%) contrast(101%);
    transition: filter 0.3s ease;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    flex-grow: 1;
    margin-top: auto;
}

.store-badges {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-shrink: 0;
}

.store-badge {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 36px;
    border: 1px solid transparent;
}

.store-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.google-play {
    background: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.google-play:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.app-store {
    background: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-store:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.05) 100%);
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalOpen 0.3s ease-out;
    backdrop-filter: blur(20px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--accent);
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Game Detail Styles */
.modal-game-detail {
    padding: 30px;
    position: relative;
}

.modal-game-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-image: var(--game-icon-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px) brightness(0.2) saturate(1.5);
    z-index: -1;
    border-radius: 20px 20px 0 0;
}

.modal-game-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.modal-game-image-section {
    flex-shrink: 0;
    position: relative;
}

.modal-game-icon {
    width: 140px;
    height: 140px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.modal-game-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.2);
}

.modal-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-game-info {
    flex: 1;
    color: var(--text);
}

.modal-game-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-game-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-game-rating .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.modal-game-rating-number {
    color: var(--text);
    background: rgba(255, 180, 0, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-review-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-game-downloads,
.modal-game-release {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.modal-game-downloads .download-icon {
    width: 16px;
    height: 16px;
}

.modal-game-release i {
    color: var(--secondary);
    width: 16px;
}

.modal-store-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-store-badges .store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-store-badges .store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-store-badges .store-icon {
    width: 20px;
    height: 20px;
}

.modal-game-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.modal-game-screenshots h3,
.modal-game-description h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.screenshots-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.screenshots-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.modal-game-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal {
        padding: 20px 10px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-game-detail {
        padding: 20px;
    }
    
    .modal-game-detail::before {
        height: 150px;
    }
    
    .modal-game-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .modal-game-icon {
        width: 120px;
        height: 120px;
    }
    
    .modal-game-title {
        font-size: 2rem;
    }
    
    .modal-game-meta {
        align-items: center;
    }
    
    .modal-store-badges {
        justify-content: center;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-game-detail {
        padding: 15px;
    }
    
    .modal-game-icon {
        width: 100px;
        height: 100px;
    }
    
    .modal-game-title {
        font-size: 1.8rem;
    }
    
    .modal-store-badges .store-badge {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}


.game-detail-buttons a .store-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.game-detail-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    transition: var(--transition);
    object-fit: contain;
    border-radius: 15px;
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text);
    font-family: var(--font);
    font-weight: 600;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-links a:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(3deg) brightness(118%) contrast(119%);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.2);
}

.news-date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.news-card p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
}

.contact-form h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-intro {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text);
    font-family: var(--font);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--font);
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

/* Animations */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floating {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-100%) translateX(-100%);
    }
}

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

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

.game-card {
    animation: cardSlideIn 0.6s ease-out forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* Screenshot Modal - Enhanced Fullscreen Experience */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 0;
    overflow: hidden;
}

.screenshot-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screenshot-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.screenshot-modal img.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

.screenshot-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.screenshot-modal .close-modal:hover {
    background: rgba(228, 28, 52, 0.9);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Navigation arrows for multiple screenshots */
.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.screenshot-nav:hover {
    background: rgba(228, 28, 52, 0.9);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.screenshot-nav.prev {
    left: 20px;
}

.screenshot-nav.next {
    right: 20px;
}

.screenshot-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.screenshot-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Screenshot counter */
.screenshot-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Zoom indicator */
.zoom-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-indicator.show {
    opacity: 1;
}

/* Improved screenshot layout for different aspect ratios */
.game-screenshots.horizontal-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.game-screenshots.horizontal-layout img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-screenshots.vertical-layout {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-screenshots.vertical-layout img {
    width: auto;
    height: 300px;
    max-width: 200px;
    object-fit: contain;
}

.game-screenshots.mixed-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.game-screenshots.mixed-layout img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
      .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-container {
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .game-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-screenshots {
        max-height: 300px;
    }
    
    .game-screenshots img {
        min-width: 150px;
        max-height: 250px;
    }
      .game-card {
        height: 160px;
    }
    
    .game-image-section {
        width: 140px;
        min-width: 140px;
        padding: 16px;
    }
    
    .game-image-section::before {
        filter: blur(15px) brightness(0.3) saturate(1.2);
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }
    
    .game-content {
        padding: 20px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    nav .container {
        padding: 15px 20px;
    }      .logo h1 {
        font-size: 1.5rem;
        font-family: var(--font);
        font-weight: 600;
    }
    
    .logo-image {
        height: 35px;
        width: 35px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--darker-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .game-image-container {
        height: 180px;
    }
    
    .game-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .game-info {
        padding: 18px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-meta {
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .game-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .store-badges {
        gap: 8px;
    }
    
    .store-badge {
        padding: 8px 14px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .store-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    .game-detail-content {
        grid-template-columns: 1fr;
    }
    
    .game-screenshots {
        flex-direction: column;
        align-items: center;
        max-height: 400px;
    }
    
    .game-screenshots img {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-width: unset;
    }
    
    .game-card {
        flex-direction: column;
        height: auto;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .game-image-section {
        width: 100%;
        height: 140px;
        padding: 20px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
    }
    
    .game-content {
        padding: 20px;
    }
    
    .game-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .game-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .game-description {
        text-align: center;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .store-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .screenshot-modal-content {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
      .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    
    .game-image-container {
        height: 160px;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .game-info {
        padding: 16px;
    }
    
    .game-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .game-meta {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .game-rating {
        font-size: 0.85rem;
    }
    
    .game-downloads {
        font-size: 0.8rem;
    }
    
    .game-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .store-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .store-icon {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-screenshots {
        gap: 10px;
        padding: 10px;
    }
    
    .game-screenshots img {
        border-radius: 5px;
        padding: 2px;
    }
    
    .screenshot-modal {
        padding: 10px;
    }
    
    .screenshot-modal .close-modal {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--darker-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* Responsive Design for Game Cards */
@media (max-width: 1024px) {
    .game-card {
        height: 180px;
    }
    
    .game-image-section {
        width: 140px;
        min-width: 140px;
        padding: 16px;
    }
    
    .game-image-section::before {
        filter: blur(15px) brightness(0.3) saturate(1.2);
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }
    
    .game-content {
        padding: 20px 16px 16px 20px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .game-card {
        flex-direction: column;
        height: auto;
        min-height: 420px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .game-image-section {
        width: 100%;
        height: 140px;
        padding: 20px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
    }
    
    .game-content {
        padding: 20px 16px 16px 20px;
    }
    
    .game-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .game-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 16px;
    }
      .game-description {
        text-align: center;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .store-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .game-card {
        border-radius: 20px;
        margin: 0 10px;
        min-height: 380px;
    }
    
    .game-image-section {
        height: 120px;
        padding: 16px;
    }
      .game-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .game-content {
        padding: 16px 12px 12px 16px;
    }
    
    .game-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .game-meta {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .game-rating {
        font-size: 0.85rem;
    }
    
    .game-downloads {
        font-size: 0.8rem;
    }
    
    .game-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .store-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .store-icon {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
}
