:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ff3333;
    --text-color: #f0f0f0;
    --text-color-secondary: #bbbbbb;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Creepster', cursive;
    letter-spacing: 1px;
}

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        text-align: center;
        transition: var(--transition);
        padding-top: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Add these styles at the end of the existing CSS file */

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/slide3.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--accent-color);
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

/* Section common styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

/* Games Section */
.games {
    background-color: var(--secondary-color);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.game-img {
    height: 200px;
    overflow: hidden;
}

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

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

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-type {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.game-desc {
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* About Section */
.about {
    background-color: var(--primary-color);
}

.about-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color-secondary);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.social-links-contact {
    margin-top: 2rem;
}

.social-links-contact a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links-contact a:hover {
    color: var(--accent-color);
}

.contact-form {
    flex: 2;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive Styles for Additional Sections */
@media (max-width: 992px) {

    .about-content,
    .contact-container {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* === Featured Horror Games Section === */

.featured-games {
    background-color: #111;
    color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.featured-games .section-header h2 {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #e50914;
}

.featured-games .section-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ccc;
}

.featured-games .game-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.featured-games .game-card {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    max-width: 320px;
}

.featured-games .game-card:hover {
    transform: translateY(-8px);
    border-color: #e50914;
}

.featured-games .game-img img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-games .game-info {
    padding: 20px;
    text-align: left;
}

.featured-games .game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #e50914;
}

.featured-games .game-info .game-type {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.featured-games .game-info .game-desc {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.featured-games .btn-secondary {
    display: inline-block;
    background-color: #e50914;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.featured-games .btn-secondary:hover {
    background-color: #b0060f;
}