/* --- CSS Variables --- */
:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050506;
    --text-main: #d1d1d6;
    --text-light: #f5f5f7;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f1cf5b;
    --accent-amber: #ff8c00;
    --accent-blue: #4a90e2; /* optional steam color */

    /* Steampunk brass / copper palette */
    --brass: #c9962f;
    --brass-light: #e8b923;
    --copper: #b87333;
    --gear: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cpath%20d='M98.00,50.00%20L88.64,60.35%20L91.57,74.00%20L78.28,78.28%20L74.00,91.57%20L60.35,88.64%20L50.00,98.00%20L39.65,88.64%20L26.00,91.57%20L21.72,78.28%20L8.43,74.00%20L11.36,60.35%20L2.00,50.00%20L11.36,39.65%20L8.43,26.00%20L21.72,21.72%20L26.00,8.43%20L39.65,11.36%20L50.00,2.00%20L60.35,11.36%20L74.00,8.43%20L78.28,21.72%20L91.57,26.00%20L88.64,39.65%20Z'%20fill='%23c9962f'/%3E%3Ccircle%20cx='50'%20cy='50'%20r='15'%20fill='%23100d08'/%3E%3Ccircle%20cx='50'%20cy='50'%20r='12'%20fill='none'%20stroke='%23c9962f'%20stroke-width='2'/%3E%3C/svg%3E");

    --font-heading: 'Teko', sans-serif;
    --font-body: 'Teko', sans-serif;

    --transition-speed: 0.3s;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 24px; /* Increased for better readability with Teko */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.8px;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    background-repeat: repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* --- Layout & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Gear separator: two brass lines with a spinning cog in the middle */
.separator {
    position: relative;
    height: 34px;
    width: 220px;
    margin: 0 auto;
    background:
        linear-gradient(90deg, transparent 0%, var(--brass) 8%, var(--brass) 38%, transparent 41%, transparent 59%, var(--brass) 62%, var(--brass) 92%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: center;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    background: var(--gear) center / contain no-repeat;
    animation: gear-spin 5s linear infinite;
    filter: drop-shadow(0 0 6px rgba(201, 150, 47, 0.45));
}

@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gear-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* --- Navigation --- */
#navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.15rem 0;
    transition: all var(--transition-speed) ease;
    background: var(--bg-darker);
}

#navbar.scrolled {
    background: rgba(5, 5, 6, 0.98);
    padding: 0.15rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-start;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--text-light);
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo-placeholder img {
    height: 150px;
    width: auto;
    transition: height var(--transition-speed) ease;
}

#navbar.scrolled .logo-placeholder img {
    height: 92px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    bottom: -2px;
    left: 0;
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

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

.nav-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-socials a {
    font-size: 1.25rem;
    color: var(--text-light);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.nav-socials a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-darker) 70%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    pointer-events: none;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.btn:hover {
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.btn:hover::before {
    opacity: 1;
    width: 100%;
}

.btn-steam {
    border-color: rgba(74, 144, 226, 0.3);
}

.btn-steam::before {
    background-color: var(--accent-blue);
}

.btn-steam:hover {
    color: #fff;
    border-color: var(--accent-blue);
}


/* --- About Us --- */
.about-section {
    position: relative;
    background-image: url('images/about_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 0;
    overflow: hidden;
}

.about-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 6, 0.72);
    z-index: 1;
}

.about-header {
    position: relative;
    z-index: 2;
    padding-top: 75px;
    margin-bottom: 1.5rem;
}

.about-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 52vh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 4rem 80px;
    gap: 3rem;
}

.about-logo-col {
    flex: 0 0 600px;
    min-width: 600px;
}

.about-logo-img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
}

.about-text-col {
    flex: 1;
}

.about-line {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.4;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-line:last-child {
    margin-bottom: 0;
}

.gold {
    color: var(--accent-gold);
}


/* Thin brass strip between sections */
.games-section,
.contact-section,
footer {
    border-width: 2px 0 0 0;
    border-style: solid;
    border-image: linear-gradient(90deg, transparent, var(--brass) 50%, transparent) 1;
}

/* --- Games Section --- */
.games-section {
    position: relative;
    background-image: linear-gradient(rgba(5, 5, 6, 0.82), rgba(5, 5, 6, 0.9)), url('images/games_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.game-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Brass riveted frame around the game art */
.game-art {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px;
    border: 4px solid var(--copper);
    box-shadow:
        inset 0 0 0 2px rgba(232, 185, 35, 0.35),
        0 0 30px rgba(0, 0, 0, 0.7);
    background-color: #000;
    background-image:
        radial-gradient(circle at 9px 9px, var(--brass-light) 0 2.5px, transparent 3.2px),
        radial-gradient(circle at calc(100% - 9px) 9px, var(--brass-light) 0 2.5px, transparent 3.2px),
        radial-gradient(circle at 9px calc(100% - 9px), var(--brass-light) 0 2.5px, transparent 3.2px),
        radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--brass-light) 0 2.5px, transparent 3.2px);
    background-repeat: no-repeat;
}

.game-art-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.game-art:hover .game-art-img {
    filter: grayscale(0%) contrast(1.2);
}

.game-info .game-title {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.game-info p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.game-info .action-buttons {
    margin-top: 2rem;
}

/* --- Contact Section --- */
.contact-section {
    position: relative;
    background-image: linear-gradient(rgba(5, 5, 6, 0.85), rgba(5, 5, 6, 0.92)), url('images/contact_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    transition: all var(--transition-speed) ease;
    padding: 0.5rem;
}

.social-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 3rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--text-main);
    transition: color 0.3s ease;
}

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

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(209, 209, 214, 0.4);
}

/* --- Animations --- */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-socials {
        display: none; /* Hide socials in navbar on tablet/mobile to save space, they are in the footer anyway */
    }

    .game-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 60px 2rem 70px;
        min-height: 0;
    }

    .about-logo-col {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        max-width: 440px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(5, 5, 6, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        border-left: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .game-art-placeholder h3 {
        font-size: 2rem;
    }

    /* Scale the whole layout down (most sizes are rem-based) */
    html {
        font-size: 19px;
    }

    .nav-container,
    .container {
        padding: 0 1.25rem;
    }

    .logo-placeholder img {
        height: 90px;
    }

    #navbar.scrolled .logo-placeholder img {
        height: 68px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .separator {
        width: 180px;
    }

    .about-header {
        padding-top: 55px;
    }

    .about-inner {
        padding: 40px 1.25rem 55px;
    }

    .about-line {
        font-size: 20px;
    }

    .game-info .game-title {
        font-size: 1.9rem;
    }

    /* fixed backgrounds are janky on mobile browsers */
    .about-section,
    .games-section,
    .contact-section {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 17px;
    }

    .nav-container,
    .container {
        padding: 0 1rem;
    }

    .logo-placeholder img {
        height: 74px;
    }

    #navbar.scrolled .logo-placeholder img {
        height: 58px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .separator {
        width: 150px;
    }

    .about-logo-col {
        max-width: 300px;
    }

    .about-line {
        font-size: 18px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-btn {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
}
