/*
Theme Name: Alemon
Theme URI: https://alemon.cz
Author: David Beneš
Author URI: https://alemon.cz
Description: Tmavé jednostránkové téma pro grafické studio a IT služby Alemon. Animované pozadí, pixelová postavička, sekce Služby / Reference (8bitová závodní hra s billboardy) / Tým / Kontakt. Texty a kontakty jsou editovatelné v Přizpůsobení (Customizer), menu přes Vzhled → Menu. Kontaktní formulář se vkládá shortcodem z vlastního pluginu.
Version: 1.3.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alemon
Tags: one-page, dark, portfolio, custom-colors, custom-menu, translation-ready, footer-widgets
*/

/* ===== Design tokens ===== */
:root {
    --azure: #00D9FF;
    --coral: #FF6B6B;
    --lemon: #FFE66D;
    --electric: #7B68EE;
    --dark: #1A1A2E;
    --darker: #0F0F1E;
    --light: #F0F0F0;
}

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

html {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--darker) !important;
    width: 100% !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--darker) !important;
    width: 100% !important;
    overflow-x: hidden !important;
    font-family: 'Outfit', sans-serif !important;
}

/* WordPress admin bar fix */
body.admin-bar .alemon-nav { top: 0; }

/* Main Container */
.alemon-site {
    background: var(--darker) !important;
    color: var(--light) !important;
    position: relative;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif !important;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    width: 100% !important;
}

.alemon-site * { box-sizing: border-box; }

/* Skip link (a11y) */
.alemon-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--azure);
    color: var(--darker);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}
.alemon-skip-link:focus { left: 0; }

/* Visible focus outlines (a11y) */
.alemon-site a:focus-visible,
.alemon-site button:focus-visible,
.alemon-site input:focus-visible,
.alemon-site textarea:focus-visible {
    outline: 3px solid var(--lemon);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Animated Background Canvas */
.alemon-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Navigation */
.alemon-nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 2px solid var(--azure);
    margin: 0 !important;
}

.alemon-nav .alemon-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alemon-logo {
    font-family: 'Oxanium', sans-serif !important;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--azure), var(--electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}
.alemon-logo img { max-height: 48px; width: auto; display: block; }
.alemon-logo-text {
    display: inline-flex;
    flex-direction: column;
    font-size: 1.55rem;
    line-height: 1.12;
    letter-spacing: 1px;
}
.alemon-logo-line { white-space: nowrap; }

.alemon-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.alemon-nav a {
    color: var(--light) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.alemon-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--azure), var(--coral));
    transition: width 0.3s;
}

.alemon-nav a:hover::after,
.alemon-nav .current-menu-item > a::after { width: 100%; }

/* Pixel Character */
.alemon-pixel-character {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    z-index: 999;
    image-rendering: pixelated;
    cursor: pointer;
    transition: transform 0.3s;
    animation: alemon-float 3s ease-in-out infinite;
}

@keyframes alemon-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.alemon-pixel-character:hover { transform: scale(1.2) !important; }
.alemon-pixel-character.fade-out { animation: fadeOut 1s ease-out forwards; }

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5) rotate(360deg); }
    100% { opacity: 0; transform: scale(0) rotate(720deg); pointer-events: none; }
}

@keyframes spawnIn {
    0% { opacity: 0; transform: scale(0) rotate(-360deg); }
    50% { opacity: 0.5; transform: scale(1.3) rotate(-180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Hero Section */
.alemon-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
}

.alemon-hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: alemon-fadeInUp 1s ease-out;
}

@keyframes alemon-fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.alemon-hero-text h1 {
    font-family: 'Oxanium', sans-serif !important;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    background: linear-gradient(135deg, var(--azure), var(--lemon), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: alemon-fadeInUp 1s ease-out 0.2s both;
}

.alemon-hero-text p {
    font-size: 1.4rem;
    color: var(--light) !important;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: alemon-fadeInUp 1s ease-out 0.4s both;
}

.alemon-cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: alemon-fadeInUp 1s ease-out 0.6s both;
}

.alemon-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif !important;
    position: relative;
    overflow: hidden;
}

.alemon-btn-primary {
    background: linear-gradient(135deg, var(--azure), var(--electric)) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}
.alemon-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6); }

.alemon-btn-secondary {
    background: transparent !important;
    color: var(--coral) !important;
    border: 2px solid var(--coral) !important;
}
.alemon-btn-secondary:hover { background: var(--coral) !important; color: white !important; transform: translateY(-3px); }

.alemon-hero-visual { position: relative; animation: alemon-fadeInUp 1s ease-out 0.3s both; }

.alemon-code-window {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--azure);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.alemon-code-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: var(--dark);
    border-bottom: 1px solid var(--azure);
}

.alemon-window-dots {
    position: absolute;
    top: 12px; left: 15px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.alemon-dot { width: 14px; height: 14px; border-radius: 50%; }
.alemon-dot:nth-child(1) { background: var(--coral); }
.alemon-dot:nth-child(2) { background: var(--lemon); }
.alemon-dot:nth-child(3) { background: var(--azure); }

.alemon-code-content {
    margin-top: 50px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.alemon-code-line { opacity: 0; animation: alemon-typeLine 0.5s ease-out forwards; }
.alemon-code-line:nth-child(1) { animation-delay: 0.8s; }
.alemon-code-line:nth-child(2) { animation-delay: 1s; }
.alemon-code-line:nth-child(3) { animation-delay: 1.2s; }
.alemon-code-line:nth-child(4) { animation-delay: 1.4s; }
.alemon-code-line:nth-child(5) { animation-delay: 1.6s; }

@keyframes alemon-typeLine { to { opacity: 1; } }

.alemon-keyword { color: var(--electric); }
.alemon-string { color: var(--lemon); }
.alemon-function { color: var(--azure); }
.alemon-comment { color: #888; opacity: 0.7; }

/* Services Section */
.alemon-services {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alemon-section-title {
    font-family: 'Oxanium', sans-serif !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--azure), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alemon-section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light) !important;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.alemon-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.alemon-service-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.alemon-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--azure), var(--coral));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.alemon-service-card:hover::before { opacity: 1; }
.alemon-service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3); }

.alemon-service-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; line-height: 1; }

.alemon-service-card h3 {
    font-family: 'Oxanium', sans-serif !important;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--azure) !important;
}

.alemon-service-card p { opacity: 0.9; font-size: 1.05rem; color: var(--light) !important; }

/* Portfolio Section — "Reference GP" 8-bit race */
.alemon-portfolio {
    padding: 6rem 5%;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alemon-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.alemon-race { position: relative; }

/* Without JS: plain list. With JS: game + list kept only for screen readers / SEO. */
.alemon-race-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0;
}
.alemon-race-list li {
    background: var(--dark);
    border: 3px solid var(--azure);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.alemon-race-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.alemon-race-list strong { font-family: 'Oxanium', sans-serif; color: var(--lemon); font-size: 1.2rem; }
.alemon-race-list a { color: var(--azure); }
.alemon-race:not(.is-ready) .alemon-race-stage,
.alemon-race:not(.is-ready) .alemon-race-panel { display: none; }
.alemon-race.is-ready .alemon-race-list {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); margin: -1px; padding: 0; border: 0;
}

/* Game screen */
.alemon-race-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    background: var(--darker);
    border: 4px solid var(--light);
    box-shadow:
        0 0 0 4px var(--darker),
        0 0 0 8px var(--electric),
        0 25px 70px rgba(0, 217, 255, 0.25);
    overflow: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.alemon-race-stage:focus-visible {
    box-shadow:
        0 0 0 4px var(--darker),
        0 0 0 8px var(--lemon),
        0 25px 70px rgba(255, 230, 109, 0.25);
}
.alemon-race-stage.is-driving { cursor: progress; }

.alemon-race-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Crisp screenshot laid over the billboard when the car stops */
.alemon-race-billboard {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s steps(4);
    cursor: zoom-in;
}
.alemon-race-billboard.is-visible { opacity: 1; pointer-events: auto; }
.alemon-race-billboard.is-pixel { image-rendering: pixelated; cursor: default; }
.alemon-race-billboard.is-branch { cursor: pointer; animation: alemon-race-pulse 1.2s infinite; }
@keyframes alemon-race-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 230, 109, 0.0); } 50% { box-shadow: 0 0 0 4px rgba(255, 230, 109, 0.85); } }

/* Pixel wipe between finish and start */
.alemon-race-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--darker);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s steps(5);
}
.alemon-race-stage.is-wipe::after { opacity: 1; }

/* HUD */
.alemon-race-hud {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: clamp(8px, 1.4vw, 18px) clamp(10px, 1.8vw, 24px);
    font-family: 'Jersey 10', sans-serif;
    font-size: clamp(15px, 1.9vw, 26px);
    color: var(--light);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
    pointer-events: none;
    text-transform: uppercase;
}

.alemon-race-prompt {
    position: absolute;
    left: clamp(10px, 1.8vw, 24px);
    bottom: clamp(10px, 1.8vw, 24px);
    font-family: 'Jersey 10', sans-serif;
    font-size: clamp(16px, 2vw, 28px);
    line-height: 1;
    color: var(--lemon);
    background: rgba(15, 15, 30, 0.75);
    border: 3px solid var(--lemon);
    padding: 0.7em 1em;
    white-space: nowrap;
    text-transform: uppercase;
    cursor: pointer;
    animation: alemon-race-blink 1.1s infinite;
    z-index: 2;
}
.alemon-race-prompt:hover,
.alemon-race-prompt:focus-visible { animation: none; opacity: 1; background: var(--lemon); color: var(--darker); }
.alemon-race-prompt[hidden] { display: none; }

/* "Straight on" arrow above the road */
.alemon-race-straight {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    padding: 0.4em;
    background: none;
    border: 0;
    color: var(--lemon);
    font-family: 'Jersey 10', sans-serif;
    font-size: clamp(14px, 1.6vw, 22px);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    cursor: pointer;
    z-index: 2;
}
.alemon-race-straight[hidden] { display: none; }
.alemon-race-straight svg {
    width: clamp(36px, 5vw, 72px);
    height: auto;
    filter: drop-shadow(3px 3px 0 #000);
    animation: alemon-race-bob 0.9s steps(2) infinite;
}
.alemon-race-straight:hover,
.alemon-race-straight:focus-visible { color: var(--azure); }
@keyframes alemon-race-bob { 50% { transform: translateY(-18%); } }
@keyframes alemon-race-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.2; } }

/* Dialog panel */
.alemon-race-panel {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--dark);
    border: 4px solid var(--light);
    box-shadow: inset 0 0 0 4px var(--dark), inset 0 0 0 6px var(--electric), 6px 6px 0 #000;
    transition: opacity 0.2s;
}
.alemon-race.is-driving .alemon-race-panel { opacity: 0.55; }

.alemon-race-thumb {
    display: block;
    width: 192px;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 3px solid var(--azure);
    background: var(--darker);
    cursor: zoom-in;
    overflow: hidden;
}
.alemon-race-thumb[hidden] { display: none; }
.alemon-race-thumb:disabled { cursor: default; }
.alemon-race-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alemon-race-thumb.is-pixel img { image-rendering: pixelated; }

.alemon-race-text { flex: 1; min-width: 0; }
.alemon-race-kicker {
    font-family: 'Jersey 10', sans-serif !important;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--azure) !important;
    text-transform: uppercase;
    margin: 0 0 0.15rem;
}
.alemon-race-kicker[hidden] { display: none; }
.alemon-race-thumb, .alemon-race-controls { flex-shrink: 0; }
.alemon-race-title {
    font-family: 'Jersey 10', sans-serif !important;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: 1px;
    color: var(--lemon) !important;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.alemon-race-desc[hidden] { display: none; }
.alemon-race-desc {
    color: var(--light) !important;
    font-size: 1.05rem;
    margin: 0;
}
.alemon-race-desc::after {
    content: '▌';
    color: var(--azure);
    margin-left: 2px;
    animation: alemon-race-blink 0.8s infinite;
}
.alemon-race-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.9rem; }
.alemon-race-actions:empty { display: none; }

.alemon-race-btn {
    font-family: 'Jersey 10', sans-serif !important;
    font-size: 1.3rem;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--darker) !important;
    background: var(--azure);
    border: 0;
    padding: 0.9em 1.1em;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: transform 0.08s, box-shadow 0.08s;
}
.alemon-race-btn:hover { background: var(--lemon); }
.alemon-race-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
.alemon-race-btn[hidden] { display: none; }
.alemon-race-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #000; background: var(--azure); }
.alemon-race-btn-cta { background: var(--coral); color: #fff !important; }
.alemon-race-btn-branch { background: var(--lemon); }
.alemon-race-btn-branch:hover { background: var(--azure); }

.alemon-race-controls { display: flex; align-items: center; gap: 0.9rem; }
.alemon-race-nav { font-size: 1.3rem; padding: 0.55em 0.8em; }
.alemon-race-dots { display: flex; gap: 6px; flex-wrap: wrap; max-width: 220px; }
.alemon-race-dot {
    width: 14px; height: 14px;
    padding: 0;
    border: 2px solid var(--electric);
    background: transparent;
    cursor: pointer;
}
.alemon-race-dot.is-done { background: var(--electric); }
.alemon-race-dot.is-active { background: var(--lemon); border-color: var(--lemon); }

/* Lightbox */
.alemon-race-lightbox {
    /* The global "* { margin: 0 }" reset would pin the dialog to the top-left corner. */
    position: fixed;
    inset: 0;
    margin: auto !important;
    width: fit-content;
    height: fit-content;
    border: 4px solid var(--light);
    box-shadow: 0 0 0 4px var(--darker), 0 0 0 8px var(--electric);
    background: var(--darker);
    padding: 0;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    overflow: visible;
}
.alemon-race-lightbox::backdrop { background: rgba(15, 15, 30, 0.85); }
.alemon-race-lightbox img { display: block; max-width: 100%; max-height: calc(90vh - 8px); }
.alemon-race-lightbox.is-loading { min-width: min(80vw, 480px); min-height: 200px; }
.alemon-race-lightbox.is-loading img { position: absolute; }
.alemon-race-lightbox.is-loading::after {
    content: attr(data-loading);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jersey 10', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lemon);
    animation: alemon-race-blink 1.1s infinite;
}
.alemon-race-billboard.is-loading,
.alemon-race-thumb img.is-loading,
.alemon-race-lightbox img.is-loading { visibility: hidden; }
.alemon-race-lightbox-close {
    position: absolute;
    top: -18px; right: -18px;
    width: 40px; height: 40px;
    font-family: 'Jersey 10', sans-serif;
    font-size: 22px;
    background: var(--coral);
    color: #fff;
    border: 0;
    box-shadow: 3px 3px 0 #000;
    cursor: pointer;
}

@media (max-width: 900px) {
    .alemon-race-panel { flex-direction: column; align-items: stretch; gap: 1.1rem; padding: 1.2rem; }
    .alemon-race-thumb { width: 100%; max-width: 360px; }
    .alemon-race-title { font-size: 1.45rem; }
    .alemon-race-kicker { font-size: 1.05rem; }
    .alemon-race-actions .alemon-race-btn { font-size: 1.1rem; }
    .alemon-race-controls { justify-content: space-between; }
}
@media (max-width: 700px) {
    .alemon-race-stage { aspect-ratio: 4 / 3; border-width: 3px; }
    .alemon-race-prompt { font-size: 13px; padding: 0.45em 0.6em; border-width: 2px; white-space: normal; max-width: 34%; }
}

/* Team Section */
.alemon-team {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alemon-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.alemon-team-member {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s;
}

.alemon-team-member:hover { border-color: var(--azure); transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0, 217, 255, 0.2); }

.alemon-team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azure), var(--electric));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 4px solid var(--dark);
    overflow: hidden;
}
.alemon-team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.alemon-team-member h3 {
    font-family: 'Oxanium', sans-serif !important;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--lemon) !important;
}

.alemon-team-role { color: var(--azure) !important; font-weight: 600; margin-bottom: 1rem; font-size: 1.1rem; }
.alemon-team-contact { color: var(--light) !important; opacity: 0.8; font-size: 0.95rem; }
.alemon-team-contact a { color: var(--coral) !important; text-decoration: none !important; transition: color 0.3s; }
.alemon-team-contact a:hover { color: var(--lemon) !important; }

/* Contact Section */
.alemon-contact {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.alemon-contact-container {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
    padding: 4rem;
    border-radius: 30px;
    border: 2px solid var(--azure);
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.3);
}

.alemon-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.alemon-contact-info h3 {
    font-family: 'Oxanium', sans-serif !important;
    font-size: 2rem;
    color: var(--azure) !important;
    margin-bottom: 2rem;
}

.alemon-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--azure);
    transition: all 0.3s;
}

.alemon-contact-item:hover { background: rgba(0, 217, 255, 0.2); transform: translateX(10px); }
.alemon-contact-icon { font-size: 2rem; color: var(--coral) !important; flex-shrink: 0; }
.alemon-contact-item-content { flex: 1; min-width: 0; }
.alemon-contact-item strong { display: block; margin-bottom: 0.5rem; color: var(--light) !important; }
.alemon-contact-item a { color: var(--azure) !important; text-decoration: none !important; word-break: break-word; transition: color 0.3s; }
.alemon-contact-item a:hover { color: var(--lemon) !important; }

.alemon-contact-form, .alemon-plugin-form-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }
.alemon-form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.alemon-form-group label { font-weight: 600; color: var(--azure) !important; font-size: 1.05rem; }

.alemon-form-group input,
.alemon-form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.6) !important;
    color: var(--light) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.alemon-form-group input:focus,
.alemon-form-group textarea:focus {
    outline: none !important;
    border-color: var(--azure) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3) !important;
}

.alemon-form-group textarea { resize: vertical; min-height: 150px; }

.alemon-form-message { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.alemon-form-message.success { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 2px solid #4CAF50; }
.alemon-form-message.error { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 2px solid #f44336; }
.alemon-hp { position: absolute; left: -9999px; top: -9999px; }

.grecaptcha-badge { z-index: 999; }

/* Footer */
.alemon-footer {
    padding: 3rem 5%;
    background: var(--darker);
    border-top: 2px solid var(--azure);
    text-align: center;
    position: relative;
    z-index: 1;
}

.alemon-footer p { opacity: 0.7; font-size: 0.95rem; color: var(--light) !important; }
.alemon-footer-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.alemon-footer-links a { color: var(--azure) !important; text-decoration: none !important; transition: color 0.3s; }
.alemon-footer-links a:hover { color: var(--coral) !important; }

/* Generic page/blog content wrapper (index.php) */
.alemon-page { max-width: 900px; margin: 0 auto; padding: 6rem 5%; position: relative; z-index: 1; }
.alemon-page a { color: var(--azure); }
.alemon-page h1, .alemon-page h2, .alemon-page h3 { font-family: 'Oxanium', sans-serif; color: var(--azure); margin: 1.5rem 0 1rem; }
.alemon-page img { max-width: 100%; height: auto; }

/* Mobile Menu */
.alemon-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.alemon-mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1002;
    transition: right 0.4s ease-out;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--azure);
    overflow-y: auto;
}

.alemon-mobile-menu.active { right: 0; }

.alemon-mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.alemon-mobile-overlay.active { opacity: 1; pointer-events: all; }

.alemon-mobile-menu-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--coral);
    font-size: 2rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.alemon-mobile-menu-close:hover { background: rgba(255, 107, 107, 0.1); transform: rotate(90deg); }

.alemon-mobile-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.alemon-mobile-menu li { border-bottom: 1px solid rgba(0, 217, 255, 0.1); }

.alemon-mobile-menu a {
    display: block;
    color: var(--light) !important;
    text-decoration: none !important;
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.alemon-mobile-menu a:hover { color: var(--azure) !important; background: rgba(0, 217, 255, 0.1); padding-left: 1.5rem; }
.alemon-mobile-menu a::before { content: '›'; position: absolute; left: 0.5rem; opacity: 0; transition: all 0.3s; }
.alemon-mobile-menu a:hover::before { opacity: 1; left: 0.3rem; }

/* Responsive */
@media (max-width: 1024px) {
    .alemon-hero-content { grid-template-columns: 1fr; text-align: center; }
    .alemon-cta-buttons { justify-content: center; }
    .alemon-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .alemon-services, .alemon-portfolio, .alemon-team, .alemon-contact { padding: 4rem 5% !important; }
    .alemon-hero { padding: 3rem 5% !important; }
    .alemon-nav { padding: 1.5rem 5% !important; }
    .alemon-nav ul { display: none !important; }
    .alemon-mobile-menu-btn { display: block !important; }
    .alemon-logo-text { font-size: clamp(1.05rem, 5.6vw, 1.4rem); letter-spacing: 0.5px; }
    .alemon-hero-text p { font-size: 1.1rem; }
    .alemon-services-grid { grid-template-columns: 1fr; }
    .alemon-cta-buttons { flex-direction: column; }
    .alemon-pixel-character { width: 48px; height: 48px; bottom: 10px; right: 10px; }
    .alemon-contact-container { padding: 1.5rem !important; margin: 0 !important; width: 100% !important; }
    .alemon-contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .alemon-contact-item { padding: 1rem !important; font-size: 0.85rem !important; margin-bottom: 1rem !important; flex-direction: row !important; align-items: flex-start !important; gap: 1rem !important; }
    .alemon-contact-icon { font-size: 1.3rem !important; flex-shrink: 0 !important; }
    .alemon-contact-item-content { flex: 1 !important; min-width: 0 !important; }
    .alemon-contact-item strong { font-size: 0.9rem !important; display: block !important; margin-bottom: 0.3rem !important; }
    .alemon-contact-item a { font-size: 0.85rem !important; word-break: break-word !important; overflow-wrap: break-word !important; }
    .alemon-contact-info h3 { font-size: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .alemon-form-group { gap: 0.3rem !important; }
    .alemon-form-group label { font-size: 0.95rem !important; }
    .alemon-form-group input, .alemon-form-group textarea { padding: 0.9rem 1rem !important; font-size: 0.95rem !important; width: 100% !important; border-radius: 8px !important; }
    .alemon-form-group textarea { min-height: 120px !important; }
    .alemon-btn { padding: 1rem 2rem !important; font-size: 1rem !important; }
    .alemon-service-card { padding: 2rem 1.5rem !important; }
    .alemon-team-grid { grid-template-columns: 1fr; }
    .alemon-site { max-width: 100vw !important; overflow-x: hidden !important; }
}

/* Scroll reveal */
.alemon-scroll-reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.alemon-scroll-reveal.alemon-active { opacity: 1; transform: translateY(0); }

/* Reduced motion (a11y) */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .alemon-bg-canvas { display: none; }
    .alemon-pixel-character { animation: none; }
    .alemon-scroll-reveal { opacity: 1; transform: none; }
    .alemon-code-line { opacity: 1; }
}
