:root {
    --primary-color: #ff0f0f;
    /* Crimson Blood */
    --hover-color: #cc0000;
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --steel-grey: #4a4a4a;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* Glassmorphism Header */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 15, 15, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    min-height: 80vh;
    /* Make sections substantial */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.1);
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), var(--bg-color));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down-indicator:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.chevron-down {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Glitch Effect Text */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    4.166% {
        clip: rect(91px, 9999px, 43px, 0);
    }

    8.33% {
        clip: rect(6px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(72px, 9999px, 14px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(69px, 9999px, 13px, 0);
    }

    4.166% {
        clip: rect(10px, 9999px, 92px, 0);
    }

    8.33% {
        clip: rect(1px, 9999px, 7px, 0);
    }

    100% {
        clip: rect(54px, 9999px, 34px, 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-color);
}

/* Sections */
.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
    color: #fff;
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.glass-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Crimson Section */
.crimson-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 100%);
    position: relative;
}

.crimson-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 0;
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.features-list {
    margin: 2rem 0;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '>';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    color: var(--steel-grey);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: orange;
    /* Active dev color */
    border-radius: 50%;
    box-shadow: 0 0 5px orange;
    animation: pulse 2s infinite;
}

.status-text {
    color: #fff;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.visual-placeholder {
    width: 100%;
    height: 300px;
    background: #111;
    border: 1px solid var(--steel-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel-grey);
    font-family: monospace;
    font-size: 0.9rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Contact */
.contact-layout {
    display: flex;
    justify-content: center;
    text-align: center;
}

.centered-layout {
    max-width: 600px;
    margin: 0 auto;
}

.centered-socials {
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-icon {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.social-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 15, 15, 0.2);
}

footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Back to Top */
#contact {
    min-height: auto;
    padding: 3rem 0 2rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 15, 15, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 15, 15, 0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .content-grid,
    .game-showcase,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

.tech-highlights {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-highlights h4 {
    font-size: 0.9rem;
    color: var(--steel-grey);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tech-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--primary-color);
    background: rgba(255, 15, 15, 0.1);
}

.game-desc {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1rem;
}

.features-list strong {
    color: #fff;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 150px);
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--steel-grey);
    transition: transform 0.3s ease, border-color 0.3s;
    cursor: pointer;
}

.gallery-img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 300px;
    /* Main feature image */
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 15, 15, 0.3);
}

/* Mobile adjust for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        flex-direction: column;
    }

    .gallery-img:first-child {
        height: 200px;
    }
}