:root {
    --bg-color: #050505;
    --surface-color: rgba(25, 25, 25, 0.6);
    --surface-border: rgba(255, 255, 255, 0.1);

    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent-color: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --container-padding: 24px;

    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(12px);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 12px 28px;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -1px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px -5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 30px 0px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 20px -5px var(--primary-glow);
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    /* Offset for fixed header */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(120deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
    animation: fadeIn 1s ease-out;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

.hero-card {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 15px;
    transition: all 0.5s ease;
}

.hero-card img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    pointer-events: none;
}

.hero-card:hover {
    transform: scale(1.1) translateY(-10px) !important;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

/* Positioning cards in a scattered cloud */
.card-1 {
    top: 10%;
    left: 10%;
    transform: rotate(-10deg);
    animation: float 8s ease-in-out infinite;
}

.card-2 {
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
    width: 160px;
    height: 160px;
    z-index: 2;
    animation: float 9s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    transform: rotate(5deg);
    width: 120px;
    height: 120px;
    animation: float 7s ease-in-out infinite 2s;
}

.card-4 {
    bottom: 25%;
    right: 10%;
    transform: rotate(-5deg);
    animation: float 10s ease-in-out infinite 0.5s;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
}

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

.game-icon-wrapper {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    padding: 4px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    margin-top: -50px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.game-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.game-card:hover .game-icon-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-card-header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.game-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.game-card-body {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    width: 100%;
    z-index: 2;
}

.game-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.game-content h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.game-genre {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.game-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 1));
    text-align: center;
    position: relative;
}

.about-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 30px;
    border: var(--glass-border);
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
    background-color: #020202;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.social-links a:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        height: 350px;
        margin-top: -20px;
    }

    .hero-card {
        width: 100px;
        height: 100px;
    }

    .card-2 {
        width: 120px;
        height: 120px;
    }

    .card-3 {
        width: 90px;
        height: 90px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    /* Menu Toggle Animation Class */
    body.menu-open {
        overflow: hidden;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}