/* =========================================
   SPARTAN SOLUTIONS - OPTIMALIZOVANÉ CSS
   Verze: 2.0 (Multi-language responsive)
   ========================================= */

/* =========================================
   1. RESET & ZÁKLADNÍ NASTAVENÍ
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Barvy */
    --color-bg: #0f172a;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-highlight: #c97115;

    /* Gradienty */
    --gradient-blue: #00bcd4;
    --gradient-red: #ff3d00;
    --main-gradient: linear-gradient(90deg, var(--gradient-blue) 0%, var(--gradient-red) 100%);
    --text-gradient-red: linear-gradient(90deg, #ff9a9e 0%, #ff2a2a 100%);
    --text-gradient-blue: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);

    /* Rozměry */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Přechody */
    --transition: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Zabraňuje horizontálnímu scrollu */
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    min-height: 100vh;

    /* KLÍČOVÉ PRO NĚMČINU - automatické dělení slov */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    /* Lepší vykreslování textu */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Ochrana proti přetečení */
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =========================================
   2. TYPOGRAFIE
   ========================================= */
h1, h2, h3, h4, .logo-text, .form-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    line-height: 1.3;
    /* Povolení zalomení dlouhých slov v nadpisech */
    word-break: break-word;
    hyphens: auto;
}

/* Fluidní velikosti nadpisů - automaticky se přizpůsobí */
h1, .main-title {
    font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.4rem, 3vw + 0.5rem, 2.2rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.1rem, 2vw + 0.3rem, 1.5rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    max-width: 75ch; /* Optimální délka řádku pro čitelnost */
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* =========================================
   3. UTILITY TŘÍDY
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 30px); /* Responzivní padding */
}

.text-center { text-align: center; }

/* Zvýraznění textu */
.highlight {
    color: var(--color-highlight);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(201, 113, 21, 0.3);
}

.highlight-blue {
    color: var(--gradient-blue);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* Gradientový text */
.text-gradient {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-red {
    background: var(--text-gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: var(--text-gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradientový oddělovač */
.divider-gradient {
    height: 4px;
    width: min(100px, 30%);
    background: var(--main-gradient);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.center-divider {
    margin: 0 auto 30px;
}

.divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: min(50%, 400px);
    margin: 40px auto;
}

/* =========================================
   4. NAVIGACE
   ========================================= */
.main-navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.navbar-logo {
    height: clamp(40px, 8vw, 60px);
    width: auto;
    filter: drop-shadow(0 0 5px rgba(33, 212, 253, 0.3));
    transition: transform var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(183, 33, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.nav-links a:hover {
    color: var(--gradient-blue);
    background: rgba(0, 188, 212, 0.1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}

.lang-btn {
    color: #64748b;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
    border-bottom: 2px solid var(--gradient-blue);
}

.divider {
    color: #334155;
    font-size: 0.8rem;
}

/* =========================================
   5. HERO SEKCE
   ========================================= */
.hero-section,
.team-hero,
.projects-hero,
.contact-hero {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background:
            radial-gradient(circle at top right, rgba(255, 61, 0, 0.1), transparent 40%),
            radial-gradient(circle at top left, rgba(0, 188, 212, 0.1), transparent 40%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Grid - KLÍČOVÁ ZMĚNA pro responzivitu */
.hero-grid {
    display: grid;
    /* Auto-fit zajistí automatické přeskládání */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.text-block,
.lead-text {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.text-block {
    text-align: justify;
    text-align-last: center;
    /* Důležité pro německé texty */
    hyphens: auto;
}

/* Hero Logo s animací */
.spartan-logo,
.hero-big-logo {
    width: 100%;
    max-width: min(450px, 90vw);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   6. TLAČÍTKA
   ========================================= */
.cta-container,
.cta-box {
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

/* Základní tlačítko */
.btn-primary,
.btn-glow {
    display: inline-block;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 35px);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-image: var(--main-gradient);
    border-image-slice: 1;
    color: white;
    font-weight: bold;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    /* Důležité pro dlouhé texty tlačítek */
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.btn-primary:hover,
.btn-glow:hover {
    background: var(--main-gradient);
    color: white;
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.4);
    transform: scale(1.03);
}

/* Submit tlačítko */
.btn-submit {
    width: 100%;
    padding: clamp(12px, 2vw, 15px);
    background: var(--main-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(183, 33, 255, 0.6);
}

/* Velké CTA tlačítko */
.btn-glow-large {
    display: inline-block;
    padding: clamp(15px, 3vw, 20px) clamp(30px, 5vw, 50px);
    background: var(--main-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-glow-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(183, 33, 255, 0.6);
}

/* Outline tlačítko */
.btn-outline-red {
    display: inline-block;
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 3vw, 25px);
    border: 1px solid var(--gradient-red);
    color: var(--gradient-red);
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
    white-space: normal;
    text-align: center;
}

.btn-outline-red:hover {
    background: rgba(255, 42, 42, 0.1);
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.4);
    color: #fff;
}

/* =========================================
   7. SEKCE - Value Proposition & Tech Stack
   ========================================= */
.value-prop-section {
    background-color: rgba(255, 255, 255, 0.03);
    padding: clamp(30px, 6vw, 50px) 0;
    margin: clamp(20px, 5vw, 40px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-block-center {
    text-align: center;
    max-width: min(800px, 90%);
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.sub-text {
    margin-top: 15px;
    color: #bdc3c7;
}

.tech-stack-container,
.tech-stack-section {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(40px, 6vw, 60px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-group {
    margin-bottom: clamp(25px, 4vw, 40px);
    text-align: center;
}

.tech-text {
    margin-bottom: clamp(20px, 4vw, 30px);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* Ikony služeb */
.services-icons,
.icons-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    margin: 2rem 0;
}

.service-item,
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(70px, 12vw, 100px);
    text-align: center;
    transition: transform var(--transition);
}

.service-item:hover,
.icon-item:hover {
    transform: translateY(-5px);
}

.service-item i,
.icon-item i {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.service-item p,
.icon-item span {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    margin: 0;
    opacity: 0.8;
    color: #aaa;
    /* Důležité pro německé názvy */
    word-break: break-word;
    hyphens: auto;
}

/* Barvy ikon */
.firebird-icon,
.fa-database { color: #FCC624; }
.fa-linux { color: #FCC624; }
.fa-windows { color: #0078D6; }
.fa-apple { color: #A2AAAD; }
.fa-android { color: #3DDC84; }

/* =========================================
   8. PROJECTS PAGE - Grid karet
   ========================================= */
.project-intro {
    max-width: min(800px, 90%);
    margin: 0 auto;
    color: #cbd5e1;
}

/* KLÍČOVÁ ZMĚNA - auto-fit grid */
.grid-wrapper {
    display: grid;
    /* Automatické přizpůsobení počtu sloupců */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(15px, 3vw, 25px);
    margin-top: clamp(25px, 4vw, 40px);
    align-items: stretch;
}

.project-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 25px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition), background var(--transition);
    /* Ochrana proti přetečení obsahu */
    overflow: hidden;
    word-wrap: break-word;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin: 15px 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    /* Ochrana pro dlouhé německé názvy */
    word-break: break-word;
    hyphens: auto;
}

.project-card p {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: #a0aec0;
    flex-grow: 1;
    hyphens: auto;
}

.project-card ul {
    margin-top: 15px;
    padding-left: 20px;
    color: #e2e8f0;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    list-style: disc;
}

.project-card ul li {
    margin-bottom: 5px;
    hyphens: auto;
}

.card-icon {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 15px;
}

/* Barevné varianty karet */
.card-red { border-top: 3px solid var(--gradient-red); }
.card-red .card-icon { color: var(--gradient-red); }

.card-blue { border-top: 3px solid var(--gradient-blue); }
.card-blue .card-icon { color: var(--gradient-blue); }

.card-gold { border-top: 3px solid var(--color-highlight); }
.card-gold .card-icon { color: var(--color-highlight); }

.card-orange { border-top: 3px solid #ff9800; }
.card-orange .card-icon { color: #ff9800; }

/* CTA Sekce */
.consultation-cta {
    position: relative;
    margin-top: clamp(40px, 8vw, 80px);
    padding: clamp(40px, 8vw, 80px) 0;
    overflow: hidden;
    background: linear-gradient(to right, rgba(15, 23, 42, 0), rgba(15, 23, 42, 1));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 40px);
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 15px;
}

.cta-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    max-width: 600px;
}

.bg-watermark {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    height: clamp(200px, 40vw, 400px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    filter: grayscale(100%);
}

/* =========================================
   9. TEAM PAGE
   ========================================= */
.member-card {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
    margin: clamp(30px, 5vw, 60px) 0;
    padding: clamp(25px, 4vw, 40px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition);
    flex-wrap: wrap;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.reverse-layout {
    flex-direction: row-reverse;
}

.member-content {
    flex: 1;
    min-width: min(100%, 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 5px;
    color: #fff;
    word-break: break-word;
}

.member-image-wrapper {
    flex: 0 0 auto;
    width: clamp(200px, 30vw, 300px);
    position: relative;
    margin: 0 auto;
}

.member-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

/* Záře kolem fotek */
.glow-red .member-photo {
    box-shadow: 0 0 30px rgba(255, 42, 42, 0.2);
    border: 2px solid rgba(255, 42, 42, 0.5);
}

.glow-blue .member-photo {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    border: 2px solid rgba(0, 210, 255, 0.5);
}

.member-role {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
    /* Pro dlouhé německé tituly */
    word-break: break-word;
    hyphens: auto;
}

.member-achievements {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 50px;
    white-space: nowrap;
}

.icon-red { color: var(--gradient-red); }
.icon-blue { color: var(--gradient-blue); }

.connector-line {
    height: clamp(50px, 10vw, 100px);
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 42, 42, 0.3), rgba(0, 210, 255, 0.3));
    margin: 0 auto;
}

/* =========================================
   10. CONTACT PAGE
   ========================================= */
.contact-grid {
    display: grid;
    /* Auto-fit pro automatické přeskládání */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.contact-logo {
    text-align: center;
    margin-bottom: clamp(25px, 4vw, 40px);
}

.animate-logo {
    max-width: min(250px, 60vw);
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 20px);
    padding: clamp(15px, 2.5vw, 20px);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    flex-wrap: wrap;
}

.info-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.06);
}

.icon-box {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #fff;
    flex-shrink: 0;
}

.item-red .icon-box {
    background: linear-gradient(135deg, #ff9a9e 0%, #ff2a2a 100%);
}

.item-blue .icon-box {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.item-gold .icon-box {
    background: linear-gradient(135deg, #fccb90 0%, #c97115 100%);
}

.info-text {
    flex: 1;
    min-width: 150px;
}

.info-text h3 {
    margin: 0 0 5px;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    text-transform: uppercase;
    color: #aaa;
}

.info-text a,
.info-text p {
    color: #fff;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: bold;
    margin: 0;
    word-break: break-word;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Formulář */
.contact-form-wrapper {
    background: rgba(15, 23, 42, 0.6);
    padding: clamp(25px, 4vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-title {
    margin-top: 0;
    margin-bottom: clamp(20px, 3vw, 30px);
    color: #fff;
}

.form-group {
    margin-bottom: clamp(15px, 2.5vw, 20px);
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
}

/* Grid pro poloviční pole */
.grid-half {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(15px, 2.5vw, 20px);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: color var(--transition);
    pointer-events: none;
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.form-control {
    width: 100%;
    padding: clamp(10px, 1.5vw, 12px) 15px clamp(10px, 1.5vw, 12px) 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-family: inherit;
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gradient-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-control:focus + .input-icon {
    color: var(--gradient-blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Flash zprávy */
.flash {
    padding: clamp(12px, 2vw, 15px);
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.flash.success {
    background: rgba(61, 220, 132, 0.2);
    border: 1px solid #3ddc84;
    color: #3ddc84;
}

.flash.error {
    background: rgba(255, 42, 42, 0.2);
    border: 1px solid #ff2a2a;
    color: #ff2a2a;
}

/* =========================================
   11. MEDIA QUERIES - Pouze pro specifické případy
   ========================================= */

/* Velké obrazovky */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablety na šířku a menší laptopy */
@media (max-width: 1100px) {
    .navbar-content {
        justify-content: center;
    }

    .cta-content {
        justify-content: center;
        text-align: center;
    }

    .cta-text {
        text-align: center;
    }
}

/* Tablety na výšku a velké mobily */
@media (max-width: 900px) {
    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .lang-switcher {
        margin-top: 5px;
    }

    .hero-grid {
        text-align: center;
    }

    .hero-image-wrapper,
    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .text-block {
        text-align: center;
        text-align-last: center;
    }

    .member-card,
    .member-card.reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .reverse-layout {
        text-align: center;
    }

    .member-content {
        align-items: center;
        text-align: center;
    }

    .member-achievements {
        justify-content: center;
    }

    .btn-outline-red {
        align-self: center;
    }

    .contact-info-wrapper {
        order: -1;
        text-align: center;
    }

    .info-item {
        justify-content: center;
        text-align: center;
    }

    .info-text {
        text-align: center;
    }
}

/* Malé mobily */
@media (max-width: 600px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .bg-watermark {
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.08;
    }

    .achievement-item {
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-glow,
    .btn-glow-large {
        width: 100%;
        text-align: center;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra malé mobily */
@media (max-width: 380px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        padding: 5px 6px;
        font-size: 0.8rem;
    }
}

/* =========================================
   12. PRINT STYLY
   ========================================= */
@media print {
    body {
        background: white;
        color: black;
    }

    .main-navbar,
    .btn-primary,
    .btn-glow,
    .bg-watermark {
        display: none;
    }

    .hero-section,
    .project-card,
    .member-card {
        background: white;
        border: 1px solid #ccc;
    }
}

/* =========================================
   13. ACCESSIBILITY - Přístupnost
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styly pro klávesovou navigaci */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--gradient-blue);
    outline-offset: 2px;
}

/* Vysoký kontrast */
@media (prefers-contrast: high) {
    :root {
        --color-bg: #000;
        --color-text: #fff;
    }

    .project-card,
    .member-card,
    .info-item {
        border: 2px solid #fff;
    }
}





/*posledni css team*/
/* =========================================
   TEAM PAGE - Kompaktnější verze
   ========================================= */

/* Karta člena týmu */
.member-card {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px); /* ZMENŠENO z 60px */
    margin: clamp(20px, 4vw, 40px) 0; /* ZMENŠENO z 60px */
    padding: clamp(20px, 3vw, 30px); /* ZMENŠENO z 40px */
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition);
    flex-wrap: wrap;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* První karta bez horního marginu */
.member-card:first-child {
    margin-top: 0;
}

/* Poslední karta bez dolního marginu */
.member-card:last-child {
    margin-bottom: 0;
}

.reverse-layout {
    flex-direction: row-reverse;
}

/* Obsah člena */
.member-content {
    flex: 1;
    min-width: min(100%, 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Jméno člena */
.member-name {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); /* ZMENŠENO z 2.2rem */
    margin-bottom: 5px;
    color: #fff;
    word-break: break-word;
    line-height: 1.2;
}

/* Wrapper pro obrázek */
.member-image-wrapper {
    flex: 0 0 auto;
    width: clamp(150px, 25vw, 220px); /* ZMENŠENO z 300px */
    position: relative;
    margin: 0 auto;
}

/* Fotka člena */
.member-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md); /* ZMENŠENO z lg */
    position: relative;
    z-index: 2;
}

/* Záře kolem fotek */
.glow-red .member-photo {
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.2); /* ZMENŠENO z 30px */
    border: 2px solid rgba(255, 42, 42, 0.5);
}

.glow-blue .member-photo {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2); /* ZMENŠENO z 30px */
    border: 2px solid rgba(0, 210, 255, 0.5);
}

/* Role člena */
.member-role {
    font-size: clamp(0.9rem, 1.3vw, 1rem); /* ZMENŠENO z 1.1rem */
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px; /* ZMENŠENO z 10px */
    display: inline-block;
    margin-bottom: 15px; /* ZMENŠENO z 20px */
    word-break: break-word;
    hyphens: auto;
}

/* Úspěchy/achievements */
.member-achievements {
    display: flex;
    gap: clamp(8px, 1.5vw, 15px); /* ZMENŠENO z 20px */
    margin: 15px 0 20px; /* ZMENŠENO z 20px 0 30px */
    flex-wrap: wrap;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 8px; /* ZMENŠENO z 10px */
    font-size: clamp(0.8rem, 1.2vw, 0.9rem); /* ZMENŠENO z 0.95rem */
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px; /* ZMENŠENO z 8px 15px */
    border-radius: 50px;
    white-space: nowrap;
}

.icon-red { color: var(--gradient-red); }
.icon-blue { color: var(--gradient-blue); }

/* Spojovací čára mezi členy */
.connector-line {
    height: clamp(30px, 6vw, 60px); /* ZMENŠENO z 100px */
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 42, 42, 0.3), rgba(0, 210, 255, 0.3));
    margin: 0 auto;
}

/* Bio/popis člena */
.member-bio {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px; /* ZMENŠENO z 20px */
}

/* Tlačítko v kartě */
.member-card .btn-outline-red {
    margin-top: 10px; /* ZMENŠENO */
    align-self: flex-start;
}

/* =========================================
   TEAM PAGE - Responzivní úpravy
   ========================================= */
@media (max-width: 900px) {
    .member-card,
    .member-card.reverse-layout {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* Menší gap na mobilech */
        padding: 20px;
    }
    
    .reverse-layout {
        text-align: center;
    }
    
    .member-content {
        align-items: center;
        text-align: center;
    }
    
    .member-achievements {
        justify-content: center;
    }
    
    .member-card .btn-outline-red {
        align-self: center;
    }
    
    .member-image-wrapper {
        width: clamp(120px, 40vw, 180px); /* Menší na mobilech */
    }
    
    .connector-line {
        height: 30px;
    }
}

@media (max-width: 600px) {
    .member-card {
        margin: 15px 0;
        padding: 15px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .achievement-item {
        width: 100%;
        justify-content: center;
    }
    
    .connector-line {
        height: 20px;
    }
}

/* =========================================
   TEAM HERO - Kompaktnější
   ========================================= */
.team-hero {
    padding: clamp(2rem, 5vw, 3rem) 1rem; /* ZMENŠENO z 4rem */
}

.team-hero .hero-content {
    max-width: 700px; /* ZMENŠENO z 800px */
}

.team-hero .main-title {
    margin-bottom: 0.75rem; /* ZMENŠENO */
}

.team-hero .divider-gradient {
    margin-bottom: 1.5rem; /* ZMENŠENO z 2rem */
}

.team-hero .lead-text {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem); /* ZMENŠENO */
    margin-bottom: 0;
}

/* Sekce s členy týmu */
.team-members-section {
    padding: clamp(2rem, 4vw, 3rem) 0; /* ZMENŠENO */
}

/* Nadpis sekce */
.team-section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}



