:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-main: #e0e0e0;
    --text-muted: #888888;

    --primary: #00ff41;
    /* Matrix Green */
    --primary-dim: rgba(0, 255, 65, 0.1);
    --secondary: #00f3ff;
    /* Cyber Cyan */
    --accent-mint: #00FF8F;
    /* Neon Mint */

    --font-code: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--easing);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-dim);
}

.btn-secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Background Effect */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.terminal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-sub {
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-sub strong {
    color: var(--text-main);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.stats-bar {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Sections General */
section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    font-family: var(--font-code);
}

.section-number {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* About Section */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tech-stack-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-family: var(--font-code);
    color: var(--text-main);
}

/* Code Window */
.code-window {
    background: #0F0F0F;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.window-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93fb0;
}

.window-header .title {
    margin-left: 1rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #888;
}

code {
    display: block;
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #a9b7c6;
    line-height: 1.6;
}

/* Work Section */
.case-study {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: center;
}

.case-study.reversed {
    direction: rtl;
}

.case-study.reversed .case-content {
    direction: ltr;
}

.project-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--primary);
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.link-arrow {
    display: inline-block;
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
}

.case-visual {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.5s ease;
    filter: grayscale(80%)Contrast(110%);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Hover Effects */
.project-card:hover video {
    opacity: 1;
    filter: grayscale(0%) Contrast(100%);
    transform: scale(1.02);
}

.project-card:hover .video-overlay {
    opacity: 0;
}

/* View Game Button style update */
.view-game-btn {
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent-mint);
    color: var(--accent-mint);
}

.view-game-btn:hover {
    background: var(--accent-mint);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 255, 143, 0.3);
}

/* Contact */
.contact-container {
    text-align: center;
    max-width: 800px;
}

.big-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    margin: 3rem 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials a:hover {
    color: var(--primary);
}

/* New Specs Styling */
.accent-text {
    color: var(--accent-mint);
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-mint);
}

/* Discord Reveal Button States */
.btn-copied {
    background-color: var(--accent-mint) !important;
    color: var(--bg-color) !important;
    border-color: var(--accent-mint) !important;
    box-shadow: 0 0 30px rgba(0, 255, 143, 0.4);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .grid-2-col,
    .case-study {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study.reversed {
        direction: ltr;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}