/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;800;900&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Skryjeme výchozí kurzor pro custom kurzor */
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

/* Jemný šum na pozadí */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Advanced Brutalist Loader Styles --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Brutalistický slide-up efekt pro odchod */
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}

.loader-content {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    margin-right: -0.6em; /* fix kompenzace center */
}

.scramble-text {
    /* Aby se text neklepal kvůli různé šířce znaků, použijeme monospace nebo mírné fixní prokládání */
    font-variant-numeric: tabular-nums;
}

/* Úzký, rychlý progress bar dole */
.loader-bar-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.loader-bar {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: width 0.1s linear;
}

/* Skrytí loaderu z JS: Slide UP curtain odjezd */
.loader.fade-out {
    transform: translateY(-100vh);
    pointer-events: none;
}

/* Canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Za obsahem, nad hlukem (nebo pod ním) */
    pointer-events: none; /* Nechceme, aby blokoval myší eventy */
}

/* Hlavní kontejner obecně (pro views) */
.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    
    /* Počáteční stav před načtením pro animaci příjezdu nadpisu (Home only) */
    opacity: 0;
    transform: translateY(3vh);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

/* Tuto třídu vyvolá JS po loaderu jen pro aktivní view */
body.loaded .container.view-active {
    opacity: 1;
    transform: translateY(0);
    /* Container itself shouldn't block clicks to things behind it if not needed, 
       but its children MUST receive events */
    pointer-events: none;
}

body.loaded .container.view-active > * {
    pointer-events: auto;
}

/* Stavy pro SPA routing přepínání */
.view-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

/* Nadpis "Alma" */
h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    
    /* Premium Outline Text Efect */
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    
    margin: 0;
    position: relative;
    text-transform: uppercase;
    
    /* Vše kromě transform, které je řízeno JS Parallaxem! */
    transition: color 1s ease, -webkit-text-stroke 1s ease, letter-spacing 1.2s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 1s ease, filter 1s ease;
}

/* Hover stav pohlídáme od kontejneru pro ladnost efektu */
.container:hover h1 {
    color: var(--accent);
    -webkit-text-stroke: 2px transparent;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
    letter-spacing: -0.02em; /* Velmi jemné rozšíření textu (tracking) - filmový vibe */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

/* Podnadpis */
.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 1.2em;
    margin-top: 1rem;
    margin-right: -1.2em; /* Kompenzace posledního písmene pro centraci */
    color: #555555;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.container:hover .subtitle {
    color: #999999;
}

/* Custom Minimalist Crosshair Cursor */
.cursor-dot {
    width: 2px;
    height: 2px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
    /* Crosshair tiny accent lines */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-outline::before, .cursor-outline::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
}

.cursor-outline::before {
    width: 4px;
    height: 1px;
}

.cursor-outline::after {
    width: 1px;
    height: 4px;
}

/* --- Radical Roster Trigger on Home --- */
.radical-trigger {
    margin-top: 8vh;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    padding: 12px 24px;
    cursor: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
}

.radical-trigger:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* --- CS:GO Cheat Menu Navbar --- */
.cheat-nav {
    position: absolute;
    top: 40px;
    right: 40px; /* Přesunuto doprava */
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 0 1px #050505;
    z-index: 50;
    display: flex;
    flex-direction: column;
    /* Skryto do načtení */
    opacity: 0;
    pointer-events: none;
}

body.loaded .cheat-nav {
    animation: dropDownCheat 1s cubic-bezier(0.19, 1, 0.22, 1) 1.5s forwards;
    pointer-events: auto;
}

@keyframes dropDownCheat {
    0% { opacity: 0; margin-top: -20px; }
    100% { opacity: 1; margin-top: 0; }
}

.cheat-header {
    width: 100%;
    height: 6px; /* Zóna pro chycení a tažení */
    background: #111;
    /* Klasická "cheat" barevná linka u horního okraje */
    border-bottom: 1px solid #1a1a1a;
}

.cheat-line {
    height: 2px;
    width: 100%;
    /* Čistý, elegantní bezbarvý chrome/opium gradient (bílá, šedá, černá) */
    background: linear-gradient(90deg, #111, #555, #fff, #555, #111);
}

/* --- About Section Brutalist Typography --- */
.about-layout {
    justify-content: center;
    align-items: center; /* Z centra kvůli flexboxu a fixed watermarku */
    padding: 0 5vw;
    overflow: hidden; /* Aby watermark nepřetekl kontejner */
}

/* Obří watermark na pozadí, který přidá dojem "plnosti" i do prázdných míst */
.about-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 35vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.about-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin-top: 10vh;
}

.about-hero {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.about-hero .solid-text {
    color: #fff;
}

.about-hero .outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.about-grid {
    display: grid;
    /* Nyní 3 sloupce na místo 2 pro zaplnění šířky */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-col {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    backdrop-filter: blur(5px);
}

.about-col p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #888;
    line-height: 1.6;
    letter-spacing: 0.03em;
    margin-bottom: 15px;
}

/* Speciální formátování nadpisu sloupce s brutálním podtržením */
.about-col p.col-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Meta Data Box dole */
.about-meta {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    border-top: 1px solid #333;
    padding-top: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.meta-item strong {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ddd;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* --- Contact Section Styles (Radical Brutalism) --- */
.contact-fullscreen {
    justify-content: flex-start;
    padding: 12vh 5vw 5vw 5vw;
}

.contact-header-huge {
    width: 100%;
    margin-bottom: 5vh;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.contact-tab-huge {
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    color: #333;
    letter-spacing: -0.05em;
    cursor: none;
    transition: color 0.4s ease, transform 0.4s ease;
    padding: 0;
    text-transform: uppercase;
    -webkit-text-stroke: 1px transparent;
}

.contact-tab-huge:hover {
    color: #666;
}

.contact-tab-huge.active {
    color: #fff;
}

.separator {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    color: #222;
}

.contact-body {
    width: 100%;
    position: relative;
    flex-grow: 1;
}

.contact-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-content.active-form {
    opacity: 1;
    pointer-events: auto;
    animation: fadeInForm 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.contact-content.hidden-form {
    opacity: 0;
    pointer-events: none;
    display: none;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-grid-huge {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8vw;
    height: 100%;
}

@media (max-width: 900px) {
    .contact-grid-huge {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info-huge h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 15px;
}

.contact-info-huge .huge-link {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #aaa;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.3s ease;
    cursor: none;
}

.contact-info-huge .huge-link:hover {
    color: #fff;
}

.contact-info-huge .sub-info {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.hq-info {
    margin-bottom: 30px;
}

.hq-info .label-tiny {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hq-info p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Scroll area for form if needed */
.form-container-huge {
    height: 100%;
}
.scrollable-form {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 20px;
}
.scrollable-form::-webkit-scrollbar {
    width: 4px;
}
.scrollable-form::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-form::-webkit-scrollbar-thumb {
    background: #333;
}

.huge-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.huge-form input,
.huge-form textarea,
.huge-form select {
    background: transparent;
    border: none;
    border-bottom: 2px solid #222;
    padding: 20px 0;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.3s;
    cursor: none;
    width: 100%;
    text-transform: uppercase;
    border-radius: 0;
}

/* Custom dropdown arrow for massive selects */
.huge-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23444%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0px top 50%;
    background-size: 0.8em auto;
}

.huge-form input::placeholder,
.huge-form textarea::placeholder {
    color: #444;
}

.huge-form input:focus,
.huge-form textarea:focus,
.huge-form select:focus {
    border-color: #fff;
}

.huge-form textarea {
    resize: none;
}

.huge-submit {
    margin-top: 40px;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 0.05em;
    font-size: clamp(2rem, 3vw, 3rem);
    cursor: none;
    transition: color 0.3s;
    width: fit-content;
}

.huge-submit:hover {
    color: #666;
}

.submit-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    border: none;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    cursor: none;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #ccc;
    transform: translateY(-2px);
}

.cheat-tabs {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 4px;
    background: #0c0c0c;
}

.cheat-tabs li {
    margin: 0 1px;
}

.cheat-tabs a {
    display: block;
    padding: 6px 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.2s;
    cursor: none;
    border: 1px solid transparent;
}

.cheat-tabs a:hover {
    color: #aaa;
    background: #151515;
    border: 1px solid #222;
}

.cheat-tabs li.active a {
    color: #fff;
    background: #181818;
    border: 1px solid #333;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* --- Radical Full-Screen Artist Overlay --- */
.artist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
}

.artist-overlay.hidden-overlay {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    visibility: hidden;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 50px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 4rem;
    font-weight: 300;
    cursor: none;
    transition: color 0.3s, transform 0.3s ease;
}

.close-overlay:hover {
    color: #fff;
    transform: rotate(90deg);
}

.overlay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    max-width: 1400px;
    height: 70vh;
    gap: 5vw;
}

@media (max-width: 900px) {
    .overlay-content {
        grid-template-columns: 1fr;
    }
    .roster-preview {
        display: none !important;
    }
}

.roster-huge-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5vh;
}

.roster-item {
    display: flex;
    align-items: baseline;
    gap: 40px;
    cursor: none;
    opacity: 0.4;
    transition: opacity 0.3s ease, padding-left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    text-decoration: none;
}

.roster-item::before {
    content: attr(data-index);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #444;
    transition: color 0.3s;
}

.roster-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.roster-status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #555;
    text-transform: uppercase;
}

.roster-item:hover {
    opacity: 1;
    padding-left: 30px;
}

.roster-item:hover::before {
    color: #fff;
}

.roster-item:hover .roster-name {
    color: #fff;
    -webkit-text-stroke: 1.5px transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.roster-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #1a1a1a;
}

.preview-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: #0a0a0a;
    border: 1px solid #222;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #050505, #111);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    transition: background 0.5s ease;
}

.preview-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 0.3em;
}

/* --- Ambient Brutalist Background Text (Home View) --- */
.ambient-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;
    z-index: 1; /* Za obsahem (z-index 10) ale před Canvasem (0) */
    opacity: 0.03; /* Velmi jemné, sotva viditelné */
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.ambient-bg-text span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(10rem, 25vw, 25rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 0.8;
}

/* Střídavé nekonečné animace pro brutalistní feel */
.ambient-bg-text span:nth-child(1) {
    animation: scrollTextLeft 60s linear infinite;
}
.ambient-bg-text span:nth-child(2) {
    animation: scrollTextRight 70s linear infinite;
    margin-left: -20vw;
}
.ambient-bg-text span:nth-child(3) {
    animation: scrollTextLeft 80s linear infinite;
    margin-left: 10vw;
}

@keyframes scrollTextLeft {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollTextRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(10%); }
}
