/* ===================================
   Metal Pop Games - Stylesheet
   Clean, minimal design with red accents
   =================================== */

/* CSS Variables for easy customization */
:root {
    --primary-red: #D92027;
    --dark-red: #B01B21;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.games h2 {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 50%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

.games h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    padding: 0.3rem 0 0.7rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hero .logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin-bottom: 0.25rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 5rem 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(120, 120, 120, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about h2 {
    color: var(--primary-red);
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* ===================================
   Games Section
   =================================== */
.games {
    padding: 5rem 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 100, 100, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(150, 150, 150, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(120, 120, 120, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Mobile: 2x2 grid for game cards */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem;
    }
}

.game-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 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; }

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

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(217, 32, 39, 0.2), 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(217, 32, 39, 0.3);
}

.game-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: var(--medium-gray);
}

.game-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.game-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.game-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    align-items: center;
}

.store-badge {
    height: 60px;
    width: 200px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.store-badge:hover {
    transform: translateY(-4px) scale(1.05);
    opacity: 0.95;
    filter: brightness(1.1);
}

/* Desktop: Show long text, hide short text */
@media (min-width: 769px) {
    .desktop-text {
        display: block;
    }
    
    .mobile-text {
        display: none;
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(217, 32, 39, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.email-link:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 32, 39, 0.3);
}

.email-link:hover::before {
    left: 100%;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--white);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero .logo {
        max-width: 350px;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .about,
    .games,
    .contact {
        padding: 3rem 0;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .game-image {
        height: 200px;
    }

    .contact p {
        font-size: 1rem;
    }

    .email-link {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero .logo {
        max-width: 280px;
    }

    .hero .tagline {
        font-size: 0.9rem;
    }

    .about,
    .games,
    .contact {
        padding: 2.5rem 0;
    }

    .about-content h3 {
        font-size: 1.3rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-info h3 {
        font-size: 1.3rem;
    }

    .game-info p,
    .game-subtitle {
        font-size: 0.9rem;
    }
    
    /* Mobile: Reduce card padding */
    .game-info {
        padding: 1rem;
    }

    .download-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem;
        align-items: center;
    }

    .store-badge {
        height: 35px;
        width: 140px;
        object-fit: cover;
    }
    
    /* Mobile: Fix image display */
    .game-image {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 0;
    }
    
    .game-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Mobile: Show short text, hide long text */
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: block;
    }

    .email-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Large Screens (1400px and above) */
@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Screens (between 768px and 1200px) */
@media (min-width: 768px) and (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

