* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #dfe6e9;
    --success: #00b894;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
}

.btn-login {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--primary);
}

.btn-login:hover {
    background: rgba(108, 92, 231, 0.1);
}

.btn-signup {
    background: var(--primary);
    color: white;
}

.btn-signup:hover {
    background: #5a4bd4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top right,
            rgba(108, 92, 231, 0.2),
            transparent 50%),
        radial-gradient(circle at bottom left,
            rgba(253, 121, 168, 0.2),
            transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #a29bfe, #fd79a8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #b2bec3;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-play {
    background: var(--accent);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-play:hover {
    background: #e84393;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 121, 168, 0.3);
}

.btn-explore {
    background: transparent;
    color: var(--light);
    border: 1px solid var(--secondary);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-explore:hover {
    background: rgba(162, 155, 254, 0.1);
}

/* Games Section */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.games {
    padding: 100px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: rgba(45, 52, 54, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    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.3);
}

.game-img {
    height: 200px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.game-content {
    padding: 20px;
}

.game-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.game-content p {
    color: #b2bec3;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: #b2bec3;
    font-size: 0.9rem;
}

/* Game Player Section */
.game-player {
    padding: 50px 0 100px;
    text-align: center;
}

.player-container {
    background: rgba(45, 52, 54, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    background: #1a1a2e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: left;
}

.game-details {
    flex: 2;
}

.game-stats {
    flex: 1;
    background: rgba(26, 26, 46, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.game-stats h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: rgba(26, 26, 46, 0.9);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    font-size: 0.9rem;
}

.game-img img {
    width: 100%;
    height: 200px;
    /* or whatever height you want */
    object-fit: cover;
    /* makes it cover the area without distortion */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .game-iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .auth-buttons {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        flex-direction: column;
        gap: 20px;
    }

    .game-iframe {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .game-iframe {
        height: 300px;
    }
}

/* Animation for elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}