:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --accent-color: #00ff88;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --header-gradient: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #242424;
    --border-color: #333333;
    --accent-color: #00ff88;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --header-gradient: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Martel Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--header-gradient);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .slider {
    transform: translateX(30px);
    background-color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(0, 255, 136, 0.02) 100%);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(0, 255, 136, 0.05) 100%);
}

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

.logo-container {
    position: relative;
    display: inline-block;
    max-width: 600px;
    margin: 0 auto;
}

.logo-text {
    z-index: 2;
    position: relative;
}

.logo-text .small {
    font-size: 1.2rem;
    font-weight: 200;
    opacity: 0.7;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.logo-text .large {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.collection-text {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 1rem auto 1.5rem;
    max-width: 600px;
    z-index: 2;
    position: relative;
    font-weight: 200;
}

.quote {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.9;
    margin: 1rem auto;
    max-width: 600px;
    z-index: 2;
    position: relative;
}



.quote-author {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 0.2rem;
    display: block;
    text-align: right;
    color: var(--accent-color);
}

[data-theme="dark"] .quote {
    border-left-color: var(--accent-color);
}

.floating-icon {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: -1;
    opacity: 0.3;
    transition: all 0.4s ease;
    cursor: pointer;
    filter: grayscale(1) brightness(0.5);
    pointer-events: auto;
    will-change: transform;
}

[data-theme="dark"] .floating-icon {
    filter: grayscale(1) brightness(0.8) invert(1);
}

.floating-icon:hover {
    opacity: 0.8;
    transform: scale(1.5) rotate(var(--hover-rot));
    filter: grayscale(0) sepia(0) saturate(1) hue-rotate(120deg) brightness(1);
    z-index: 1;
}

[data-theme="dark"] .floating-icon:hover {
    filter: grayscale(0) sepia(1) saturate(5) hue-rotate(90deg) brightness(1);
}

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

.game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.game-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Covers fully without gaps or distortion */
    object-position: center;
    transition: all 0.3s ease;
    z-index: 0;
    
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    padding: 1rem 1.5rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-align: left; /* Or center if preferred */
}

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

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

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.15);
    border-color: var(--accent-color);
}

.game-card:hover img {
    transform: scale(1.05);
}
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 0.75rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

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

    .hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .logo-text .large {
        font-size: 3.5rem;
    }

    .floating-icon {
        width: 30px;
        height: 30px;
    }

    footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

