/* ==========================================================================
   BROCODE & HAEGELE STUDIOS LLC - OFFICIAL WEBSITE STYLESHEET
   Theme: BroCode Official Game Palette (Slate Tiles, Neon Gold, Cyan & Green)
   ========================================================================== */

:root {
    /* Color Palette matching BroCode Game Theme */
    --bg-dark: #0c1219;
    --bg-surface: #141f2b;
    --bg-card: rgba(20, 31, 43, 0.75);
    --bg-card-hover: rgba(28, 43, 59, 0.9);

    --accent-gold: #ffd13b;
    --accent-cyan: #00f0ff;
    --accent-blue: #2a6bf2;
    --accent-green: #2ecc71;
    --accent-purple: #9b59b6;
    --accent-red: #ff3860;

    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-dim: #64748b;
    --text-white: #ffffff;

    --border-glass: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(255, 209, 59, 0.4);
    --border-cyan: rgba(0, 240, 255, 0.4);
    --border-glow: rgba(255, 209, 59, 0.3);

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(255, 209, 59, 0.3);
    --shadow-cyan-glow: 0 0 25px rgba(0, 240, 255, 0.3);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Canvas & Blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
}

.blob-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-gold), var(--accent-cyan));
    top: -100px;
    left: -100px;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), var(--accent-blue));
    bottom: -150px;
    right: -150px;
    animation: floatBlob 22s ease-in-out infinite alternate-reverse;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to right, rgba(255, 209, 59, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 209, 59, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-alt-bg {
    background: rgba(20, 31, 43, 0.5);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-white { color: var(--text-white); }
.text-highlight { color: var(--accent-gold); text-decoration: none; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Section Header Component */
.section-header {
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Button Component System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #f39c12);
    color: #0c1219;
    box-shadow: 0 4px 20px rgba(255, 209, 59, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 209, 59, 0.6);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.btn-steam {
    background: linear-gradient(135deg, #171d25, #2a475e);
    color: var(--text-white);
    border: 1px solid rgba(102, 192, 244, 0.3);
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #66c0f4);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.4);
    transform: translateY(-3px);
}

.btn-steam-nav {
    background: rgba(42, 71, 94, 0.6);
    color: var(--text-white);
    border: 1px solid rgba(102, 192, 244, 0.4);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-steam-nav:hover {
    background: #66c0f4;
    color: #0c1219;
}

.btn-accent {
    background: var(--accent-gold);
    color: #0c1219;
}

.btn-accent:hover {
    background: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #0c1219;
}

/* Header & Navbar */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 18, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 209, 59, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    margin-bottom: 1.2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* High Contrast Light Logo Backdrop Box */
.logo-backdrop-wrap {
    display: inline-block;
    background: #ffffff;
    border: 3px solid var(--accent-gold);
    padding: 1.2rem 2.2rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 209, 59, 0.6);
    margin-bottom: 1.5rem;
}

.hero-logo-art {
    max-width: 320px;
    height: auto;
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card-glow {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: var(--transition-smooth);
}

.hero-card-glow:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: var(--accent-cyan);
}

.hero-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(12, 18, 25, 0.95), transparent);
}

.game-badge {
    background: var(--accent-gold);
    color: #0c1219;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.hero-card-overlay h3 {
    font-size: 1.6rem;
    margin-top: 0.4rem;
}

.hero-card-overlay p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery & Screenshot Viewer */
.gallery-wrapper {
    padding: 2rem;
}

.gallery-display {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
}

.gallery-main-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(to top, rgba(12, 18, 25, 0.92), transparent);
}

.gallery-caption h4 {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.gallery-caption p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.thumb-btn {
    background: var(--bg-surface);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.thumb-btn img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}

.thumb-btn span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.thumb-btn:hover, .thumb-btn.active {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.thumb-btn.active span {
    color: var(--accent-gold);
}

/* Feature Details Grid */
.features-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
}

.detail-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Action Banner */
.action-banner {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(255, 209, 59, 0.15), rgba(42, 107, 242, 0.15));
    border: 1px solid var(--border-gold);
}

.action-banner-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.action-banner-text p {
    color: var(--text-muted);
}

.action-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Interactive Simulator Section */
.simulator-section {
    background: rgba(20, 31, 43, 0.5);
}

.simulator-wrapper {
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sim-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sim-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
}

.sim-scenario-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 2rem;
}

.sim-scenario-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.sim-rule-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

/* Urinal Interactive Stage */
.urinal-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.2rem;
    padding: 2.5rem 1rem;
    background: radial-gradient(ellipse at bottom, rgba(255, 209, 59, 0.12), transparent 70%);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    margin-bottom: 2rem;
    min-height: 220px;
    flex-wrap: wrap;
}

.urinal-spot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    min-width: 105px;
}

.urinal-spot:hover:not(.disabled) {
    background: rgba(255, 209, 59, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-8px);
}

.urinal-icon {
    font-size: 3rem;
    line-height: 1;
}

.urinal-occupant {
    font-size: 2.2rem;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urinal-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.urinal-spot.correct-choice {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.urinal-spot.wrong-choice {
    background: rgba(255, 56, 96, 0.2);
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 56, 96, 0.4);
}

.queue-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.queue-label {
    font-weight: 700;
    color: var(--text-muted);
}

.guy-avatar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent-gold);
    color: #0c1219;
    border-radius: 30px;
    font-weight: 700;
}

.sim-feedback-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--accent-green);
    margin-top: 1rem;
    gap: 1rem;
}

.sim-feedback-box.wrong {
    background: rgba(255, 56, 96, 0.1);
    border-color: var(--accent-red);
}

.feedback-icon {
    font-size: 2rem;
}

.feedback-text-wrap h4 {
    font-size: 1.2rem;
}

.feedback-text-wrap p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Social Grid Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.social-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 2.2rem;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.social-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-gold);
}

/* Press & Contact Section */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.press-card {
    padding: 2.5rem;
}

.press-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.press-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.asset-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    gap: 1rem;
}

.contact-email {
    font-family: monospace;
    font-size: 1.05rem;
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background: #080c11;
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav h4, .footer-socials h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-white);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a, .footer-icon-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-icon-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .logo-backdrop-wrap {
        margin: 0 auto 1.5rem auto;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .action-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(12, 18, 25, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .urinal-stage {
        gap: 0.6rem;
    }

    .urinal-spot {
        min-width: 70px;
        padding: 0.5rem;
    }

    .urinal-icon { font-size: 2.2rem; }
    .urinal-occupant { font-size: 1.6rem; }
}
