* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --accent-red: #990000;
    --accent-hover: #cc0000;
    --text-main: #e5e5e5;
    --text-muted: #8a8a8a;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--accent-red);
    font-weight: 700;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--bg-dark);
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.72) 0%, rgba(10,10,10,1) 90%), url('../img/T_RyptideBGTemp.webp') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    max-width: 700px;
    z-index: 10;
}

.tagline {
    color: var(--accent-red);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Games Section */
.games-section {
    padding: 100px 8%;
    background-color: var(--bg-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.game-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 3px solid var(--accent-red);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: grayscale(40%) contrast(110%);
    transition: filter 0.3s ease;
}

.game-card:hover .game-img {
    filter: grayscale(0%) contrast(100%);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.game-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.game-link:hover {
    color: var(--accent-red);
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 8%;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, #020202, var(--bg-dark));
}

.newsletter-box {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    max-width: 800px;
    text-align: center;
    width: 100%;
}

.newsletter-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: white;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: 1px solid var(--accent-red);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #050505;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 788px) {
    .navbar { padding: 20px 5%; }
    .nav-links, .navbar .btn-primary { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .newsletter-form { flex-direction: column; }
    footer { flex-direction: column; gap: 20px; text-align: center; }    
    .footer-links a:first-child { margin-left: 0px;}
    .hero-overlay { background: radial-gradient(circle, rgba(0,0,0,0.72) 0%, rgba(10,10,10,1) 90%), url('../img/T_RyptideBGTemp.webp') no-repeat 20% center/cover}
}

@media (max-width: 380px) {
    
    .hero-overlay { background: radial-gradient(circle, rgba(0,0,0,0.72) 0%, rgba(10,10,10,1) 90%), url('../img/T_RyptideBGTemp.webp') no-repeat 23.5% center/cover}
}