@font-face {
    font-family: 'LinLibertine_RI';
    src: url('../LinLibertine_RI.ttf') format('truetype');
}

:root {
    --primary-color: #ff4757;
    --bg-dark: #1e272e;
    --text-light: #f1f2f6;
    --header-bg: #2f3542;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Static Header */
.static-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-img {
    height: 32px; /* Adjust according to your logo size */
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

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

/* Vertical Sections */
#main-content {
    margin-top: 70px; /* Offset for fixed header */
    display: flex;
    flex-direction: column;
}

.vertical-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.vertical-section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.section-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em; /* Added spacing between letters */
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #ff6b81;
    transform: translateY(-2px);
}

.outline-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.game-card {
    background-color: var(--header-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #444; /* Fallback */
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--header-bg);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-btn:hover {
    color: var(--primary-color);
}

.horizontal-layout {
    display: flex;
    gap: 2.5rem;
    align-items: center; /* Changed from flex-start to center */
}

.modal-media {
    flex: 1 1 55%;
    max-width: 55%;
}

.modal-media h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.modal-body img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.video-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe, .video-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #a4b0be;
    font-size: 0.9rem;
}

.platforms {
    margin-top: 1rem;
}

.platform-tag {
    display: inline-block;
    background-color: rgba(255, 71, 87, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Mobile responsive modal */
@media (max-width: 900px) {
    .horizontal-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-media, .modal-info {
        max-width: 100%;
        flex: 1 1 auto;
    }
}