@font-face {
    font-family: 'GameFont';
    src: url('img/gamefont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --primary: #499ee1;
    --primary-dark: #2d7bc4;
    --secondary: #00ff88;
    --dark: #0a0a0a;
    --dark-mid: #111111;
    --dark-light: #1a1a1a;
    --light: #e8e8e8;
    --card-bg: #141414;
    --border: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 40px rgba(73, 158, 225, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'GameFont', 'Impact', sans-serif;
    letter-spacing: 1px;
}

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

/* Navigation */
header {
    background: var(--dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.logo img {
    height: 80px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Hero Section - BRUTALIST */
.hero {
    background: var(--dark);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 180px;
    padding-bottom: 40px;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(73, 158, 225, 0.03) 2px,
            rgba(73, 158, 225, 0.03) 4px
        );
    pointer-events: none;
}

.hero::after {
    content: '< GDC />';
    position: absolute;
    right: 5%;
    top: 70%;
    transform: translateY(-50%);
    font-family: 'GameFont', monospace;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.08;
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--light);
    text-transform: uppercase;
    line-height: 1;
    border-left: 6px solid var(--primary);
    padding-left: 25px;
}

.hero-content h1::after {
    content: '_';
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-content .tagline {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
    font-family: 'Consolas', monospace;
    padding-left: 31px;
}

.hero-content .tagline::before {
    content: '// ';
    color: var(--primary);
}

.meeting-info {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 31px;
}

.badge {
    background: transparent;
    padding: 12px 0;
    padding-right: 30px;
    font-weight: 600;
    font-family: 'Consolas', monospace;
    color: var(--primary);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge::before {
    content: '> ';
    color: var(--secondary);
}

/* About Section - BRUTALIST */
.about {
    padding: 100px 0;
    background: var(--dark-mid);
    position: relative;
}

.about-us::before {
    content: 'WHAT_WE_DO';
    position: absolute;
    left: 0;
	top: 0;
    transform: translateX(-50%) rotate(90deg) translateX(30%) translateY(30%);
    font-family: 'GameFont', monospace;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.17;
    white-space: nowrap;
    pointer-events: none;
}

.about h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--light);
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
}

.about-card {
    background: transparent;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid var(--border);
    position: relative;
}

.about-card:hover {
    transform: none;
    background: var(--dark-light);
    border-color: var(--primary);
}

.about-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.about-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--dark-light);
    background-image: url(./img/1.1.png);
    background-size: 80%;
    background-position: center;
    filter: brightness(0.17);
    z-index: -1;
}

.gallery h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light);
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.gallery .section-desc {
    color: #666;
    text-align: left;
    font-family: 'Consolas', monospace;
}

.gallery .section-desc::before {
    content: '// ';
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: border-color 0.2s;
	filter: grayscale(1) sepia(1) hue-rotate(180deg) brightness(0.6);
}

.gallery-item:hover {
    border-color: var(--primary);
	filter: saturate(1.5);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    filter: grayscale(30%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary);
    font-weight: 500;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-caption::before {
    content: '> ';
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Games Section */
.games {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.our-games::before {
    content: 'ZOMBIEWARS.NET';
    position: absolute;
    left: 0;
	top: 0;
    transform: translateX(-50%) rotate(90deg) translateX(40%) translateY(30%);
    font-family: 'GameFont', monospace;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.17;
    white-space: nowrap;
    pointer-events: none;
}

.games h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light);
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.section-desc {
    text-align: left;
    color: #666;
    margin-bottom: 50px;
    font-size: 1rem;
    font-family: 'Consolas', monospace;
}

.section-desc::before {
    content: '// ';
    color: var(--primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--card-bg);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.game-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark-light);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.game-info {
    padding: 20px;
    border-top: 2px solid var(--border);
}

.game-card:hover .game-info {
    border-top-color: var(--primary);
}

.game-info h3 {
    margin-bottom: 8px;
    color: var(--light);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.game-info p {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Consolas', monospace;
}

/* Archive Section */
.archive {
    padding: 100px 0;
    background: var(--dark-mid);
}

.archive h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light);
    text-transform: uppercase;
    border-bottom: 4px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4px;
    max-width: 900px;
    margin: 0;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--dark-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.archive-item:hover {
    background: var(--dark);
    border-left-color: var(--primary);
}

.archive-name {
    font-weight: 600;
    color: var(--primary);
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
}

.archive-name::before {
    content: './'; 
    opacity: 0.5;
}

.archive-desc {
    color: #555;
    font-size: 0.85rem;
    font-family: 'Consolas', monospace;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    text-align: left;
    padding: 60px 40px;
    border-top: 2px solid var(--primary);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    margin: 5px 0;
    color: #666;
    font-family: 'Consolas', monospace;
}

footer p:first-child {
    font-family: 'GameFont', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav ul {
        gap: 15px;
    }

    .hero::after {
        display: none;
    }

    .hero-content {
        padding: 0 20px;
    }

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

    .hero-content .tagline {
        font-size: 1rem;
    }

    .about h2,
    .games h2,
    .archive h2,
    .gallery h2 {
        font-size: 2rem;
    }

    .about::before {
        display: none;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    footer {
        padding: 40px 20px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

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

    .meeting-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge {
        width: auto;
    }
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */

/* Base state for animated elements */
[data-animate] {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="glitch"] {
    transform: translateX(-20px);
    filter: blur(4px);
}

/* Animated state */
[data-animate].animated {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: none;
}

/* Game cards, gallery items, archive items - staggered animation */
.game-card,
.gallery-item,
.archive-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, 
                border-color 0.2s, background 0.2s, box-shadow 0.3s;
}

.game-card.animated,
.gallery-item.animated,
.archive-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Special glitch effect for headings */
[data-animate="fade-right"].animated {
    animation: glitchIn 0.9s ease forwards;
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translateX(-40px);
        text-shadow: 
            -2px 0 var(--primary),
            2px 0 var(--secondary);
    }
    20% {
        opacity: 0.8;
        transform: translateX(5px);
        text-shadow: 
            -3px 0 var(--primary),
            3px 0 var(--secondary);
    }
    40% {
        transform: translateX(-3px);
        text-shadow: 
            2px 0 var(--primary),
            -2px 0 var(--secondary);
    }
    60% {
        transform: translateX(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: none;
    }
}

/* Cards hover glitch micro-animation */
.game-card:hover .game-info h3 {
    animation: microGlitch 0.3s ease;
}

@keyframes microGlitch {
    0%, 100% {
        text-shadow: none;
    }
    25% {
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
    }
    50% {
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-animate],
    .game-card,
    .gallery-item,
    .archive-item {
        transition: opacity 0.3s ease;
        transform: none !important;
        animation: none !important;
    }
    
    [data-animate].animated,
    .game-card.animated,
    .gallery-item.animated,
    .archive-item.animated {
        opacity: 1;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
