:root {
    --primary-color: #ff8c00;
    /* Energetic Orange */
    --secondary-color: #00a8ff;
    /* Electric Blue */
    --dark-bg: #0a0e17;
    /* Deep Space Blue */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-light: #e0e6ed;
    --text-dim: #a0aab5;
    --metallic-silver: #c0c0c0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --glass-blur: 10px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* --- Header & Nav --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

#main-header.scrolled {
    background: rgba(10, 14, 23, 0.95);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.logo img {
    height: 50px;
    /* Increased size slightly */
    margin-right: 10px;
    transition: transform 0.3s ease;
    mix-blend-mode: screen;
    /* REMOVES BLACK BACKGROUND */
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#main-nav a.active,
#main-nav a:hover {
    color: var(--primary-color);
}

#main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/game-2.png') no-repeat center center;
    background-size: cover;
    filter: brightness(0.3) blur(2px);
    z-index: -2;
    /* Transformation logic for better performance */
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.hero:hover .hero-bg {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--dark-bg) 90%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.4);
    letter-spacing: 5px;
    position: relative;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 140, 0, 0.8), 0 0 40px rgba(255, 140, 0, 0.4);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 140, 0, 1), 0 0 60px rgba(255, 140, 0, 0.6);
    }
}

.glitch {
    /* Kept for structure but effect moved to parent h1 */
    position: relative;
}

.sub-glitch {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-light);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

/* --- Stats Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-dim);
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Featured Game --- */
.featured-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Pseudo-element for background to improve performance */
.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/game-puzzle.png') no-repeat center center;
    background-size: cover;
    filter: brightness(0.4);
    z-index: -1;
    will-change: transform;
}

.featured-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(10, 14, 23, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
}

.featured-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-content {
    flex: 1;
}

.tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 2.5rem;
    margin: 15px 0;
}

.featured-content p {
    margin-bottom: 25px;
    color: var(--text-dim);
}

.platforms {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.platforms i {
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.platforms i:hover {
    color: var(--primary-color);
}

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

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.game-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay i {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.game-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.view-more-container {
    text-align: center;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: background 0.3s;
}

.service-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
}

/* --- Contact --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-dim);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Footer --- */
footer {
    background: #05080d;
    padding: 50px 0;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Larger footer text */
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    /* Larger footer logo */
    margin-right: 15px;
    mix-blend-mode: screen;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

.footer-address {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* --- Scroll Progress --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-color);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s;
}

/* --- Legal Pages Specifics --- */
.legal-page {
    background: var(--dark-bg);
}

.legal-content {
    padding: 120px 20px 80px;
    max-width: 900px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    display: inline-block;
}

.effective-date {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content a {
    color: var(--secondary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    #main-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 23, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transition: 0.3s;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    #main-nav a {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
        color: #fff;
    }

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

    .sub-glitch {
        font-size: 1.2rem;
    }

    .featured-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .featured-image img {
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}