:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
    --primary-accent: #ff4500;
    /* Orangered */
    --primary-accent-glow: rgba(255, 69, 0, 0.5);
    --tech-monogame: #e74c3c;
    --tech-o3de: #3498db;
    --tech-android: #2ecc71;
    --tech-ai: #9b59b6;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary-accent);
    text-decoration: none;
    letter-spacing: 3px;
    transition: text-shadow 0.3s ease;
}

.nav-brand:hover {
    text-shadow: 0 0 15px var(--primary-accent-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.section-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.news-list {
    max-width: 720px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-accent);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-item__date {
    color: var(--text-secondary);
}

.news-item__tag {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--primary-accent);
    border-radius: 30px;
    color: var(--primary-accent);
    font-weight: 600;
}

.news-item__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.news-item__body {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.news-item__body strong {
    color: var(--primary-accent);
    font-weight: 700;
}

.news-item__cta {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--primary-accent);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.news-item__cta:hover {
    color: #ff5722;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form__label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-accent);
    text-transform: uppercase;
}

.contact-form__input {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px var(--primary-accent-glow);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form__submit {
    align-self: center;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.contact-form__status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 1.2em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 800px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    background: rgba(0, 8, 16, 0.45);
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.project-card:hover {
    border-color: #00c8ff;
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.15);
    transform: translateY(-4px);
}

.project-card__tag {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border: 1px solid #00c8ff;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #00c8ff;
    text-transform: uppercase;
}

.project-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #c8e8ff;
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

.project-card__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card__cta {
    margin-top: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #00c8ff;
    text-transform: uppercase;
}

/* Cartography accent — for the Bode's Galaxy project card.
 * Burgundy ink on aged-parchment, sepia border. The rest of
 * Gamiant keeps the orangered identity. */
.project-card--cartography {
    background: linear-gradient(180deg, rgba(230, 212, 168, 0.92) 0%, rgba(218, 195, 152, 0.92) 100%);
    border-color: rgba(122, 82, 48, 0.6);
    color: #3a2410;
    backdrop-filter: blur(8px);
    background-image:
        linear-gradient(180deg, rgba(230, 212, 168, 0.92) 0%, rgba(218, 195, 152, 0.92) 100%),
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(58, 36, 16, 0.04) 28px 29px);
    background-blend-mode: normal, multiply;
}

.project-card--cartography:hover {
    border-color: #7a1f2d;
    box-shadow: 0 10px 30px rgba(122, 31, 45, 0.25);
    transform: translateY(-4px);
}

.project-card--cartography .project-card__tag {
    border-color: #7a1f2d;
    color: #7a1f2d;
    background: rgba(122, 31, 45, 0.04);
}

.project-card--cartography .project-card__title {
    font-family: 'Cormorant Garamond', 'IM Fell English SC', Georgia, serif;
    color: #3a2410;
    text-shadow: none;
    letter-spacing: 6px;
}

.project-card--cartography .project-card__desc {
    color: #6b4423;
}

.project-card--cartography .project-card__cta {
    color: #7a1f2d;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: none;
    font-size: 1rem;
}

/* AI [verb] GAME STUDIO tagline widget */
.ai-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 auto 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    user-select: none;
}

.ai-static {
    position: relative;
    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #ffffff 45%,
        #fff5b0 49%,
        #fff200 50%,
        #fff5b0 51%,
        #ffffff 55%,
        #ffffff 100%
    );
    background-size: 400% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: ai-shine 6s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.7));
}

.ai-static::after {
    content: 'AI';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 47%,
        rgba(136, 232, 255, 0.6) 49%,
        rgba(200, 245, 255, 1) 50%,
        rgba(136, 232, 255, 0.6) 51%,
        transparent 53%,
        transparent 100%
    );
    background-size: 400% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: ai-cyan-shine 2s ease-in-out infinite;
    pointer-events: none;
}

.ai-suffix {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

@keyframes ai-shine {
    0%, 65%   { background-position: 100% 0; }
    85%, 100% { background-position: 0% 0; }
}

@keyframes ai-cyan-shine {
    0%, 70%   { background-position: 100% 0; }
    90%, 100% { background-position: 0% 0; }
}

.ai-verb-window {
    height: 1em;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.ai-verb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: verb-cycle 10s linear infinite;
}

.ai-verb-list li {
    height: 1em;
    line-height: 1;
    color: var(--primary-accent);
    text-shadow: 0 0 12px var(--primary-accent-glow);
}

@keyframes verb-cycle {
    0%   { transform: translateY(0);          filter: blur(0); }
    16%  { transform: translateY(0);          filter: blur(0); }
    18%  { transform: translateY(-8.33%);     filter: blur(4px); }
    20%  { transform: translateY(-16.67%);    filter: blur(0); }
    36%  { transform: translateY(-16.67%);    filter: blur(0); }
    38%  { transform: translateY(-25%);       filter: blur(4px); }
    40%  { transform: translateY(-33.33%);    filter: blur(0); }
    56%  { transform: translateY(-33.33%);    filter: blur(0); }
    58%  { transform: translateY(-41.67%);    filter: blur(4px); }
    60%  { transform: translateY(-50%);       filter: blur(0); }
    76%  { transform: translateY(-50%);       filter: blur(0); }
    78%  { transform: translateY(-58.33%);    filter: blur(4px); }
    80%  { transform: translateY(-66.67%);    filter: blur(0); }
    96%  { transform: translateY(-66.67%);    filter: blur(0); }
    98%  { transform: translateY(-75%);       filter: blur(4px); }
    100% { transform: translateY(-83.33%);    filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-static,
    .ai-static::after,
    .ai-verb-list {
        animation: none;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through */
}

.content {
    position: relative;
    z-index: 10;
    /* Above the canvas */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.9) 100%);
    backdrop-filter: blur(2px);
}

header {
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    position: relative;
}

.logo {
    height: 375px;
    width: auto;
    filter: drop-shadow(0 0 15px var(--primary-accent-glow));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px var(--primary-accent));
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 6rem;
}

.hero {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Introduction Section Styles */
.intro-section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 1rem;
    text-align: center;
}

.intro-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.intro-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.1);
}

.intro-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.intro-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-accent);
    letter-spacing: 1px;
}

.intro-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tech-item {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item.monochrome:hover {
    border-color: var(--tech-monogame);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    color: var(--tech-monogame);
}

.tech-item.o3de:hover {
    border-color: var(--tech-o3de);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: var(--tech-o3de);
}

.tech-item.android:hover {
    border-color: var(--tech-android);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    color: var(--tech-android);
}

.tech-item.ai:hover {
    border-color: var(--tech-ai);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
    color: var(--tech-ai);
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background-color: var(--primary-accent);
    color: white;
    box-shadow: 0 4px 15px var(--primary-accent-glow);
}

.cta-button.primary:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.site-footer__links {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: var(--primary-accent);
}

@media (max-width: 768px) {
    :root {
        --nav-height: 130px;
    }

    .top-nav {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .logo {
        height: 240px;
    }

    .ai-tagline {
        font-size: 2.5rem;
        letter-spacing: 1px;
        gap: 0.4rem;
    }

    .tech-item {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .cta-container {
        flex-direction: column;
    }
}