:root {
    /* Tady jsou tvoje CSS proměnné */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --primary: #22c55e;    /* Ta tvá zelená */
    --secondary: #eab308;  /* Ta tvá žlutá */
    --accent: #38bdf8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}


/* Hero Sekce */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(34, 197, 94, 0.212) 100%);
}

nav {
    position: absolute;
    top: 20px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

h1 {
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    text-shadow:
        0 6px 18px rgba(34,197,94,0.10),
        0 3px 8px rgba(34,197,94,0.12),
        0 0 36px rgba(34,197,94,0.14),
        0 0 80px rgba(56,189,248,0.06);
}

.subtitle {
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    margin: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    cursor: pointer;
    font-weight: bold;
}

/* Layout */
.container {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border-bottom: 3px solid transparent;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--secondary);
}

.note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 15px;
}

/* Kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    background: var(--bg-card);
    border: 1px solid #334155;
    padding: 12px;
    color: white;
    border-radius: 5px;
}

textarea { height: 120px; }

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #334155;
    background-color: var(--bg-card);
    margin-top:10em;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-dim);
    margin: 0 10px;
    text-decoration: none;
}

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

.bg-alt { background-color: rgba(255,255,255,0.02); }
.center { text-align: center; margin-top: 30px; }
.link-secondary { color: var(--secondary); text-decoration: none; }


:root {
    --bg-dark: #070a13;
    --bg-card: #111827;
    --text-main: #f8fafc;
    --primary: #22c55e;
    --secondary: #eab308;
    --glow-color: rgba(34, 197, 94, 0.15); /* Barva světla za myší */
}

/* --- EFEKT MYŠI --- */
#mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none; /* Aby světlo neblokovalo klikání */
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width 0.3s, height 0.3s;
}

/* Skrytí světla na dotykových zařízeních */
@media (hover: none) {
    #mouse-glow { display: none; }
}

/* Mouse glow styles */
#mouse-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--glow-size, 220px);
  height: var(--glow-size, 220px);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.12) 40%, rgba(255,255,255,0.05) 70%, rgba(255,255,255,0) 80%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 50ms linear;
  z-index: 1;
}

/* Ensure content stacks above/below appropriately */
header.hero, main, footer {
  position: relative;
  z-index: 2;
}

/* Optional: theme-aware glow for dark backgrounds */
@media (prefers-color-scheme: dark) {
  #mouse-glow {
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.1) 45%, rgba(255,255,255,0.04) 70%, rgba(255,255,255,0) 85%);
    filter: blur(16px);
  }
}

/* --- OSTATNÍ STYLY --- */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: sans-serif;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Projektové karty s náhledy */
.project-card {
    text-decoration: none;
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* --- RESPONZIVITA (MOBIL) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .contact-wrapper {
        grid-template-columns: 1fr; /* Zlomí kontakty pod sebe */
        gap: 30px;
    }

    .hero { height: auto; padding: 100px 20px; }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Na mobilu obrázky karet víc ztmavíme */
    .project-card {
        background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)) !important;
    }
}

/* Klasické karty zůstávají v gridu, který se sám láme díky minmax v minulém kódu */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Formátování formuláře */
.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

a{
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    text-decoration: underline;
}

.intext-icon {
    width: 2em;
    height: 2em;
    vertical-align: middle;
    margin-right: 8px;
}

.card-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.important-section {
    box-shadow: var(--secondary) 0px 0px 20px 0px;
    border-radius: 12px;
    padding: 40px;
}

.highlight{
    color: var(--primary);
    font-weight: bold;
}
:not(.card) p{
    margin-bottom: 20px;
}

.halfed-container {
    display: flex;
    gap: 40px;
}

/* Karusel log - jednotná velikost a fade animace */
#about-logos {
  position: relative;
  width: 230px;        
  height: 120px;       
  margin: 0 auto;
  overflow: hidden;
}

#about-logos .logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* udrží poměr stran */
  opacity: 0;
  transition: opacity 500ms ease;
}

#about-logos .logo.active {
  opacity: 1;
}