/* =============================================================================
   OBSAH:
   1. CSS PROMĚNNÉ (Custom Properties)
   2. RESET A ZÁKLADNÍ STYLY
   3. TYPOGRAFIE
   4. LAYOUT A KONTEJNERY
   5. HLAVIČKA (HEADER) A NAVIGACE
   6. HLAVNÍ OBSAH
   7. KOMPONENTY
   8. FORMULÁŘE
   9. PATIČKA (FOOTER)
   10. UTILITY TŘÍDY
   11. ANIMACE A PŘECHODY
   12. TMAVÝ REŽIM (DARK MODE)
   13. MEDIA QUERIES (RESPONSIVITA)
============================================================================= */

/* =============================================================================
   1. CSS PROMĚNNÉ (Custom Properties)
   ============================================================================= */
:root {
    /* HLAVNÍ BARVY POZADÍ */
    --light-bg-primary: #ffffff;
    --light-bg-secondary: #f8f9fa;
    --light-bg-tertiary: #f1f3f5;
    --light-bg-quaternary: #e9ecef;
    --dark-bg-primary: #0f0f23;
    --dark-bg-secondary: #1a1a2e;
    --dark-bg-tertiary: #16213e;
    --dark-bg-quaternary: #0f3460;
    
    /* BARVY TEXTU */
    --light-text-primary: #1a202c;
    --light-text-secondary: #4a5568;
    --light-text-tertiary: #718096;
    --dark-text-primary: #e2e8f0;
    --dark-text-secondary: #cbd5e0;
    --dark-text-tertiary: #a0aec0;
    
    /* AKCENTOVÉ BARVY */
    --accent-primary: #2b50f3;
    --accent-secondary: #2e3c7a;
    --accent-tertiary: #4ecdc4;
    --accent-quaternary: #45b7d1;
    --accent-danger: #ff6b6b;
    --accent-success: #4ecdc4;
    
    /* GRADIENT BARVY */
    --gradient-primary: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    --gradient-secondary: linear-gradient(45deg, var(--accent-tertiary), var(--accent-quaternary));
    --gradient-danger: linear-gradient(45deg, var(--accent-danger), #ee5a52);
    
    /* TRANSPARENTNÍ BARVY */
    --glass-light: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(255, 255, 255, 0.05);
    --glass-border-light: rgba(255, 255, 255, 0.2);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   2. RESET A ZÁKLADNÍ STYLY
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--light-bg-primary) 0%, var(--light-bg-secondary) 100%);
    color: var(--light-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    flex: 1;
}

#reference .card-text {
  font-style: italic;
}

/* =============================================================================
   3. TYPOGRAFIE
   ============================================================================= */
/* Sjednocené nadpisy */
h1, h2, h3, h4 {
    color: var(--accent-primary) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--accent-primary) !important;
    background-clip: initial !important;
}

/* Základní styly pro odstavce */
p {
    color: var(--light-text-secondary);
    line-height: 1.6;
}

/* Odkazy */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =============================================================================
   4. LAYOUT A KONTEJNERY
   ============================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass efekt kontejnery */
.glass-container {
    background: var(--glass-light);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   5. HLAVIČKA (HEADER) A NAVIGACE
   ============================================================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-light);
    backdrop-filter: blur(20px);
    height: 80px;
    padding: 0 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    animation: fadeInUp 0.8s ease;
    flex-shrink: 0;
    order: 0;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Hlavní navigace */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 1;
}

.main-nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: row;
}

nav li a {
    text-decoration: none;
    color: var(--light-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav li a:hover {
    color: var(--accent-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav li a:hover::after {
    width: 100%;
}

nav li a i {
    margin-right: 0.3rem;
    color: inherit;
}

/* Hamburger menu */
.menu-toggle-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    min-width: 50px;
    height: 22px;
    padding: 0 10px;
    cursor: pointer;
    z-index: 1002 !important;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    order: 3;
}

.menu-icon .bar {
    position: absolute;
    width: 30px;
    height: 4px;
    background: var(--light-text-secondary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-icon .top {
    top: 0;
}

.menu-icon .middle {
    top: 9px;
}

.menu-icon .bottom {
    bottom: 0;
}

.menu-icon .menu-text {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--light-text-secondary);
    font-size: 0.85rem;
    position: static;
    transform: none;
    margin-left: 40px;
}

/* Hamburger menu animace */
.menu-toggle-checkbox:checked + .menu-icon .top {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle-checkbox:checked + .menu-icon .middle {
    opacity: 0;
}

.menu-toggle-checkbox:checked + .menu-icon .bottom {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Theme toggle tlačítko */
.mode-container {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: auto;
}

.theme-toggle {
    padding: 0.75rem;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.theme-toggle:hover::before {
    left: 100%;
}

.icon-light {
    display: inline;
    transition: all 0.3s ease;
}

.icon-dark {
    display: none;
    transition: all 0.3s ease;
}

/* =============================================================================
   6. HLAVNÍ OBSAH
   ============================================================================= */
/* Welcome sekce */
.welcome {
    height: 40px;
}

/* About Me Container */
.about-me-container {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
    position: relative;
}

/* About Me Photo */
.about-me-photo {
    position: sticky;
    top: 120px;
    text-align: center;
    z-index: 1;
}

.about-me-photo img {
    width: 100%;
    max-width: 380px;
    height: 500px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    object-fit: cover;
    aspect-ratio: 1;
    position: relative;
    z-index: 2;
}

.about-me-photo:hover img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* About Me Content */
.about-me {
    position: relative;
}

.about-me h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    position: relative;
}

.about-me h1 i {
    font-size: 3rem;
    margin-right: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.about-me p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-text-secondary);
    margin-bottom: 1.5rem;
}

.about-me p:first-child {
    font-size: 1.3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    border-left: 4px solid var(--accent-primary);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.about-me h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin: 3rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-me h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-me h3 i {
    color: var(--accent-primary);
}

.about-me ul {
    list-style: none;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-light);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-me ul li {
    font-size: 1.15rem;
    color: var(--light-text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.about-me ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.about-me ul li:hover {
    transform: translateX(10px);
    color: var(--accent-primary);
}

.about-me p strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Hero Intro */
.hero-intro {
    max-width: 800px;
    margin: 0 auto;
}

.hero-intro p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hero-intro p:last-child {
    margin-bottom: 0;
}

.text-highlight {
    font-weight: 600;
    color: #2563eb;
}

/* Collaboration sekce */
#collaboration {
    background: linear-gradient(135deg, var(--light-bg-tertiary) 0%, var(--light-bg-quaternary) 100%);
    padding: 5rem 2rem;
    margin: 4rem 0;
}

#collaboration h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    position: relative;
}

#collaboration h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.item {
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border-light);
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.item h4 {
    font-size: 1.3rem;
    color: var(--light-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item p {
    color: var(--light-text-tertiary);
    line-height: 1.6;
}

/* =============================================================================
   7. KOMPONENTY
   ============================================================================= */
/* Moderní tlačítko */
.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-custom:active {
    transform: translateY(-1px);
}

.btn-custom.primary {
    background: white;
    color: var(--accent-primary);
}

.btn-custom.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.about-me .btn-custom {
    display: flex;
    width: fit-content;
    margin: 2rem auto;
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    background: var(--gradient-primary);
}

.about-me .btn-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
}

/* Modern button */
.modern-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.modern-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.modern-btn:hover .btn-shine {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* Scroll to top tlačítko */
.up {
    position: fixed;
    bottom: 2rem;
    right: 8rem;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999 !important;
    cursor: pointer;
    box-shadow: none;
    border: none;
    pointer-events: auto !important;
}

.up:hover {
    transform: translateY(-5px) scale(1.1);
}

.up img {
    width: 60px;
    height: 60px;
    display: block !important;
}

.up:hover img {
    transform: scale(1.1);
}

/* Certificates sekce */
.certificates-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg-tertiary) 0%, var(--light-bg-quaternary) 100%);
}

.certificates-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.certificates-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.certifikaty-uvod-wrapper {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.certifikaty-uvod {
    font-size: 1.2rem;
    color: var(--light-text-tertiary);
    line-height: 1.7;
    padding: 2rem;
    background: var(--glass-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 2rem;
    background: var(--glass-light);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.certificate, .modern-certificate {
    background: var(--glass-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border-light);
}

.certificate::before, .modern-certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 2;
}

.certificate:hover, .modern-certificate:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.certificate-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-text-primary);
    margin-bottom: 1rem;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.certificate-badge {
    background: var(--gradient-danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.certificate-image-container {
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.certificate-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificate-image:hover {
    transform: scale(1.05);
}

.certificate-description {
    color: var(--light-text-tertiary);
    font-style: italic;
    margin-top: 1rem;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag, .tech-tag {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    transition: transform 0.3s ease;
}

.skill-tag:hover, .tech-tag:hover {
    transform: translateY(-2px);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.certificate-image-container:hover .image-overlay,
.personal-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-overlay *,
.image-overlay {
    pointer-events: none;
}

/* Certificates Hero */
.certificates-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.certificates-hero h2 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.intro-card {
    background: var(--glass-light);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border-light);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.intro-card i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: block;
}

/* Skills Summary */
.skills-summary {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem;
    background: var(--glass-light);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skills-summary h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category-card {
    background: var(--glass-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border-light);
    position: relative;
    overflow: hidden;
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.skill-category-card:hover {
    transform: translateY(-10px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.category-header h4 {
    font-size: 1.5rem;
    color: var(--light-text-primary);
    margin: 0;
}

.skill-progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-progress-item span:first-child {
    min-width: 120px;
    font-weight: 600;
    color: var(--light-text-secondary);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-out;
}

.percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Projects sekce */
.projects-page {
    background-color: #f5f5f5;
}

.projects-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
    pointer-events: none;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.projects-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
}

.projects-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-danger), var(--accent-tertiary), var(--accent-quaternary));
    border-radius: 2px;
    margin: 0 auto;
    animation: shimmer 3s ease-in-out infinite;
}

/* Project cards */
.project-card,
.modern-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a202c !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    transform: none !important;
}

    .project-card ul li {
        font-size: 1.2rem;
    }

.modern-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.modern-card:hover .card-glow {
    transform: translateX(100%);
}

.project-card h3,
.modern-card h3 {
    color: #1a202c !important;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    font-size: 3rem;
    color: var(--accent-tertiary);
    margin-bottom: 1.5rem;
}

.project-icon i {
    color: var(--accent-tertiary);
    text-shadow: none;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-duration,
.project-type {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #1a202c;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.modern-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.modern-card ul li {
    position: relative;
    padding-left: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    color: var(--light-text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.modern-card ul li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); 
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    pointer-events: none !important;
    z-index: 1 !important;
}

.modern-card ul li:hover {
    transform: translateX(5px);
}

.modern-details {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--accent-tertiary);
    backdrop-filter: blur(10px);
    animation: expandDown 0.5s ease-out;
}

.modern-details p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

.details-content {
    padding: 1rem 0;
}

.details-content h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.achievement {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid var(--accent-tertiary);
    backdrop-filter: blur(5px);
}

.achievement i {
    color: var(--accent-tertiary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.achievement span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Skills showcase */
.skills-showcase {
    margin-top: 4rem;
    padding: 1rem;
    background: white !important;
    backdrop-filter: blur(20px);
    border-radius: 25px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.skills-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    position: relative;
    min-width: 250px;
}

/* Dark mode skill-item */
body.dark-mode .skill-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-tertiary);
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.skill-icon i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: none;
}

/* Skill elements default */
.skill-name {
    font-size: 1.2rem;
    color: var(--light-text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dark mode skill-name */
body.dark-mode .skill-name {
    color: rgba(255, 255, 255, 0.9) !important;
}

.skill-percentage {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 2rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0.5rem;
}

.skill-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 10px;
    width: 0;
    animation: progressFill 2s ease-out forwards;
    animation-delay: 1s;
}

.skill-percentage {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 2rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0.5rem;
}

/* Stats section */
.stats-section {
    margin-top: 4rem;
    padding: 1rem;
    background: white !important;
    backdrop-filter: blur(20px);
    border-radius: 25px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.stats-section h2,
.stats-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text-primary);
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    /*background: rgba(255, 255, 255, 0.95) !important;*/
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    position: relative;
    min-width: 250px;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-tertiary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--light-text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stats-section,
.skill-item, .skills-showcase {
    /*background-color: #f5f5f5;*/
    border: 1px solid #d0d0d0;
    color: #1a1a1a;
}

.stat-icon {
    color: var(--accent-primary);
    font-size: 3rem;
    opacity: 1;
}

/* Floating particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

/* About page specific styles */
.about-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light-bg-primary) 0%, var(--light-bg-secondary) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-text-secondary);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

/* Timeline sekce */
.timeline-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg-tertiary) 0%, var(--light-bg-quaternary) 100%);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent-primary);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-icon {
    position: absolute;
    left: 35px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.timeline-content {
    background: var(--glass-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin: 0;
}

.timeline-period {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-body {
    color: var(--light-text-secondary);
    line-height: 1.7;
}

.timeline-body p {
    margin-bottom: 1rem;
}

.timeline-achievements {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-tertiary);
    font-weight: 600;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-pill {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/*.timeline-item.current .timeline-content {
    border: 2px solid var(--accent-primary);
}*/

/* Personal sekce */
.personal-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg-primary) 0%, var(--light-bg-secondary) 100%);
}

.personal-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.personal-card {
    background: var(--glass-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border-light);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.card-header h3 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin: 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.interest-item {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.interest-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.personal-image {
    position: relative;
    text-align: center;
}

.personal-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Values sekce */
.values-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg-tertiary) 0%, var(--light-bg-quaternary) 100%);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-primary);
}

.values-grid {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--glass-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border-light);
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.value-card p {
    line-height: 1.6;
    display: block !important;
    margin: 0;
    padding: 0;
    color: var(--light-text-secondary) !important;
}

/* CTA sekce */
.cta-section {
    padding: 5rem 2rem;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Web links */
.timeline-body .web-link,
.modern-card .web-link,
.achievement .web-link,
.web-link {
    color: var(--accent-primary) !important;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(43, 80, 243, 0.1);
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.timeline-body .web-link:hover,
.modern-card .web-link:hover,
.achievement .web-link:hover,
.web-link:hover {
    background: var(--accent-primary);
    color: white !important;
    border-bottom: 1px solid var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(43, 80, 243, 0.3);
}

/* Force enable clicks */
.timeline-body,
.timeline-content,
.modern-card,
.timeline-item,
.timeline-body *,
.modern-card *,
.timeline-body a,
.modern-card a,
.achievement a {
    pointer-events: auto !important;
}

/* Disable pointer events for decorative elements */
.timeline-item::before,
.timeline-item::after,
.modern-card::before,
.modern-card::after,
.modern-card .card-glow,
.image-overlay,
.floating-particles,
.particle {
    pointer-events: none !important;
    z-index: -1 !important;
}

/* =============================================================================
   8. FORMULÁŘE
   ============================================================================= */
.contact-form-section {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.05"/></svg>');
    animation: float 10s ease-in-out infinite;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Kontaktní container - výchozí styl */
.contactContainer {
    background: var(--gradient-primary);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contactContainer strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.contactContainer h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contactContainer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-danger);
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--accent-success);
}

/* Submit button */
.form-group button,
button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-danger);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.form-group button::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.form-group button:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

.form-group button:hover,
button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

/* =============================================================================
   9. PATIČKA (FOOTER)
   ============================================================================= */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 3rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.footer-left span,
.footer-right span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-right {
    align-items: flex-end;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Contact info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-info div a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info div a:hover {
    color: var(--accent-primary);
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    min-width: 20px;
}

.email-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--accent-primary);
}

/* Copyright section */
.footer-center {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 0;
    /*margin-top: 2rem;*/
    font-size: 0.95rem;
}

.footer-create {
    color: inherit;
}

/* =============================================================================
   10. UTILITY TŘÍDY
   ============================================================================= */
/* Fade in animace */
.animate-in {
    animation: fadeInUp 0.8s ease;
}

.fade-in-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   11. ANIMACE A PŘECHODY
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.7; 
    }
}

@keyframes shimmer {
    0% { 
        background-position: -1000px 0; 
    }
    100% { 
        background-position: 1000px 0; 
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes progressShine {
    0% { 
        left: -100%; 
    }
    100% { 
        left: 100%; 
    }
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    to { 
        width: var(--progress, 0%); 
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(0);
    }
}

/* =============================================================================
   12. TMAVÝ REŽIM (DARK MODE)
   ============================================================================= */
/* Body */
body.dark-mode {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    color: var(--dark-text-primary);
}

/* Typography */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: var(--accent-primary) !important;
}

body.dark-mode p {
    color: var(--dark-text-secondary);
}

/* Header */
body.dark-mode header {
    background: var(--glass-dark);
    border-bottom: 1px solid var(--glass-border-dark);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navigation */
body.dark-mode nav li a {
    color: var(--dark-text-secondary);
}

body.dark-mode .menu-icon .bar {
    background: var(--dark-text-secondary);
}

body.dark-mode .menu-icon .menu-text {
    color: var(--dark-text-secondary);
}

/* Theme toggle */
body.dark-mode .theme-toggle {
    background: linear-gradient(45deg, #2d3748, #4a5568);
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

body.dark-mode .icon-light {
    display: none;
}

body.dark-mode .icon-dark {
    display: inline;
}

/* About Me */
body.dark-mode .about-me p {
    color: var(--dark-text-secondary);
}

body.dark-mode .about-me p:first-child {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
}

body.dark-mode .about-me ul {
    background: var(--glass-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .about-me ul li {
    color: var(--dark-text-secondary);
}

/* Collaboration */
body.dark-mode #collaboration {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode #collaboration h2 {
    color: var(--dark-text-primary);
}

body.dark-mode .item {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .item h4 {
    color: var(--dark-text-primary);
}

body.dark-mode .item p {
    color: var(--dark-text-tertiary);
}

/* Contact Form */
body.dark-mode .contact-form-section {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%) !important;
    color: var(--dark-text-primary) !important;
}

body.dark-mode .contactContainer {
    background: linear-gradient(145deg, #1b1c30, #22233d);
}

body.dark-mode #contactForm label {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode #contactForm input,
body.dark-mode #contactForm textarea {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #contactForm input::placeholder,
body.dark-mode #contactForm textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode #contactForm input:focus,
body.dark-mode #contactForm textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Certificates */
body.dark-mode .certificates-section {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .certificates-section h2 {
    color: var(--dark-text-primary);
}

body.dark-mode .certifikaty-uvod {
    color: var(--dark-text-tertiary);
    background: var(--glass-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .certificate,
body.dark-mode .modern-certificate {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.dark-mode .certificate-title {
    color: var(--dark-text-primary);
}

body.dark-mode .certificate-description {
    color: var(--dark-text-tertiary);
}

body.dark-mode .intro-card {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
}

body.dark-mode .skills-summary {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .skills-summary h3 {
    color: var(--dark-text-primary);
}

body.dark-mode .skill-category-card {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
}

body.dark-mode .category-header h4 {
    color: var(--dark-text-primary);
}

body.dark-mode .skill-progress-item span:first-child {
    color: var(--dark-text-secondary);
}

/* Projects */
body.dark-mode .projects-section {

}

body.dark-mode .projects-section h2 {
    color: var(--dark-text-primary);
}

body.dark-mode .project-card,
body.dark-mode .modern-card {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
}

body.dark-mode .project-card h3,
body.dark-mode .modern-card h3 {
    color: #e2e8f0 !important;
}

body.dark-mode .project-card ul li,
body.dark-mode .modern-card ul li {
    color: var(--dark-text-primary);
}

body.dark-mode .project-duration,
body.dark-mode .project-type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .skills-title {
    color: var(--dark-text-primary);
}

body.dark-mode .stats-section h2,
body.dark-mode .stats-title {
    color: var(--dark-text-primary);
}

body.dark-mode .skills-showcase {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    padding: 3rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    margin: 4rem 0 !important;
}

body.dark-mode .stats-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    padding: 3rem 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    margin: 4rem 0 !important;
}

/* About page */
body.dark-mode .about-hero {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

body.dark-mode .hero-subtitle {
    color: var(--dark-text-secondary);
}

body.dark-mode .hero-intro {
    color: var(--dark-text-tertiary);
}

body.dark-mode .timeline-section {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .timeline-content {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
}

body.dark-mode .timeline-body {
    color: var(--dark-text-secondary);
}

body.dark-mode .personal-section {
    background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

body.dark-mode .personal-card {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
}

body.dark-mode .values-section {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .value-card {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);
}

body.dark-mode .value-card p {
    color: var(--dark-text-secondary) !important;
}

/* Web links in dark mode */
body.dark-mode .timeline-body .web-link,
body.dark-mode .modern-card .web-link,
body.dark-mode .achievement .web-link {
    color: var(--accent-primary);
    background: rgba(43, 80, 243, 0.15);
}

body.dark-mode .timeline-body .web-link:hover,
body.dark-mode .modern-card .web-link:hover,
body.dark-mode .achievement .web-link:hover {
    background: var(--accent-primary);
    color: white;
}

/* Footer */
body.dark-mode .footer-center {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-primary);
}

/* =============================================================================
   13. MEDIA QUERIES (RESPONSIVITA)
   ============================================================================= */
/* Oprava viditelnosti textů na mobilu v light mode */
@media (max-width: 768px) {
    /* Základní text */
    body:not(.dark-mode) p,
    body:not(.dark-mode) span,
    body:not(.dark-mode) div,
    body:not(.dark-mode) li {
        color: var(--light-text-primary) !important;
    }
    
    /* Navigace */   
    body:not(.dark-mode) .main-nav {
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    body:not(.dark-mode) nav li a {
        color: var(--light-text-primary) !important;
    }
    
    body:not(.dark-mode) nav li a:hover {
        color: var(--accent-primary) !important;
        background: rgba(43, 80, 243, 0.1) !important;
    }
    
    /* Menu icon */
    body:not(.dark-mode) .menu-icon .bar {
        background: var(--light-text-primary) !important;
    }
    
    body:not(.dark-mode) .menu-icon .menu-text {
        color: var(--light-text-primary) !important;
    }
    
    /* Formuláře */
    body:not(.dark-mode) .form-group label {
        color: var(--light-text-primary) !important;
    }
    
    body:not(.dark-mode) .contactContainer p,
    body:not(.dark-mode) .contactContainer strong {
        color: var(--light-text-primary) !important;
    }
    
    /* Karty a komponenty */
    body:not(.dark-mode) .item p,
    body:not(.dark-mode) .certificate p,
    body:not(.dark-mode) .modern-card p,
    body:not(.dark-mode) .project-card p {
        color: var(--light-text-secondary) !important;
    }
    
    /* Statistiky - správné barvy textů v light mode */
    body:not(.dark-mode) .stat-label {
        /*color: var(--light-text-primary) !important; 
        font-size: 1.2rem;
        font-weight: 600;*/
        color: rgba(255, 255, 255, 0.9) !important;
}
    }
    
    body:not(.dark-mode) .skill-name {
        color: var(--light-text-primary) !important; /* #1a202c - tmavě šedá/černá */
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Obnovení barevných čísel */
    body:not(.dark-mode) .stat-number {
        color: var(--accent-tertiary) !important;
    }
    
    body:not(.dark-mode) .skill-percentage {
        color: var(--accent-primary) !important;
    }
    
    /* Barevné ikony ve statistikách */
    body:not(.dark-mode) .stat-icon {
        color: var(--accent-primary) !important; /* Modrá barva pro ikony */
        opacity: 1;
    }
    
    body:not(.dark-mode) .skill-icon i {
        color: var(--accent-primary) !important;
    }
    
    /* Obnovení ohraničení karet */
    body:not(.dark-mode) .stat-item,
    body:not(.dark-mode) .skill-item {
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    body:not(.dark-mode) .project-card,
    body:not(.dark-mode) .modern-card {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
    }
    
    body:not(.dark-mode) .certificate,
    body:not(.dark-mode) .modern-certificate {
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }
    
    body:not(.dark-mode) .value-card {
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }
    
    body:not(.dark-mode) .item {
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Timeline */
    body:not(.dark-mode) .timeline-body,
    body:not(.dark-mode) .timeline-body p {
        color: var(--light-text-secondary) !important;
    }
    
    /* About sekce */
    body:not(.dark-mode) .about-me p,
    body:not(.dark-mode) .hero-intro p {
        color: var(--light-text-secondary) !important;
    }
    
    /* Hodnoty */
    body:not(.dark-mode) .value-card p {
        color: var(--light-text-secondary) !important;
    }
    
    /* Footer */
    body:not(.dark-mode) .footer {
        background: #f8f9fa !important;
    }
    
    body:not(.dark-mode) .footer-left span,
    body:not(.dark-mode) .footer-right span,
    body:not(.dark-mode) .contact-info div,
    body:not(.dark-mode) .email-link {
        color: var(--light-text-primary) !important;
    }
    
    /* Zajistit čitelnost na světlém pozadí */
    body:not(.dark-mode) {
        background: #ffffff !important;
    }
    
    body:not(.dark-mode) main {
        background: #ffffff !important;
    }
    
    /* Přidání kontrastního pozadí pro sekce */
    body:not(.dark-mode) section {
        background: #ffffff !important;
    }
    
    body:not(.dark-mode) .about-me-container,
    body:not(.dark-mode) .projects-section,
    body:not(.dark-mode) .certificates-section,
    body:not(.dark-mode) .contact-form-section {
        background: #ffffff !important;
    }
    
    /* Zajištění viditelnosti navigace při otevření */
    body:not(.dark-mode) .menu-toggle-checkbox:checked ~ .main-nav::before {
        background: #ffffff !important;
    }



/* =============================================================================
   LIGHT MODE ÚPRAVY
   ============================================================================= */
/* Contact form light mode */
body:not(.dark-mode) .contactContainer {
    background: var(--light-bg-secondary);
    color: var(--light-text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .contactContainer p,
body:not(.dark-mode) .contactContainer strong {
    color: var(--light-text-secondary);
}

body:not(.dark-mode) {
    background-color: var(--light-bg-quaternary);
}

body:not(.dark-mode) .contactContainer h2 {
    color: var(--accent-primary);
}

body:not(.dark-mode) #contactForm label {
    color: var(--light-text-primary);
}

body:not(.dark-mode) #contactForm input,
body:not(.dark-mode) #contactForm textarea {
    background: #fff;
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) #contactForm input::placeholder,
body:not(.dark-mode) #contactForm textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body:not(.dark-mode) #contactForm input:focus,
body:not(.dark-mode) #contactForm textarea:focus {
    background: #f9f9f9;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: #111;
}

/* Footer light mode */
body:not(.dark-mode) .footer {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

body:not(.dark-mode) .footer-left span,
body:not(.dark-mode) .footer-right span {
    color: #1a202c;
}

body:not(.dark-mode) .contact-info div {
    color: #2d3748;
}

body:not(.dark-mode) .email-link {
    color: #2d3748;
}

body:not(.dark-mode) .footer-center {
    background: rgba(255, 255, 255, 0.5);
    color: #1a202c;
}

/* Projects light mode */
body:not(.dark-mode) .modern-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    color: #1a202c;
}

body:not(.dark-mode) .projects-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body:not(.dark-mode) .project-icon i {
    color: var(--accent-tertiary);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .modern-btn {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .modern-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

body:not(.dark-mode) .modern-details {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .certificates-container
 {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);

}

body.dark-mode .skills-summary
 {
    background: var(--glass-dark);
    border: 1px solid var(--glass-border-dark);

}

/* Oprava light mode borders a border-radius */
body:not(.dark-mode) .project-card,
body:not(.dark-mode) .modern-card {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark-mode) .skills-showcase,
body:not(.dark-mode) .stats-section {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark-mode) .skill-item,
body:not(.dark-mode) .stat-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Dark mode borders a border-radius */
body.dark-mode .project-card,
body.dark-mode .modern-card,
body.dark-mode .skills-showcase,
body.dark-mode .stats-section {
    border-radius: 20px !important;
}

body.dark-mode .skill-item,
body.dark-mode .stat-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
}

/* OPRAVA DARK MODE */
body.dark-mode .project-card,
body.dark-mode .modern-card {
    background: rgba(26, 32, 44, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .skill-item,
body.dark-mode .stat-item {
    background: rgba(26, 32, 44, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
}

body.dark-mode .skills-showcase,
body.dark-mode .stats-section {
    background: rgba(26, 32, 44, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px !important;
}

body.dark-mode .projects-title-wrapper {
    background: rgba(26, 32, 44, 0.6) !important;  /* Tmavé pozadí místo světlého */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px);
}

/* =============================================================================
   OPRAVA CTA SEKCE - VIDITELNOST TEXTU
   ============================================================================= */

/* CTA sekce - základní nastavení */
.cta-section {
    padding: 5rem 2rem !important;
    text-align: center !important;
    position: relative !important;
}

/* Light mode - CTA sekce */
body:not(.dark-mode) .cta-section {
    background: var(--gradient-primary) !important; /* Modrý gradient pozadí */
}

body:not(.dark-mode) .cta-section h2 {
    color: white !important; /* Bílý text na modrém pozadí */
}

body:not(.dark-mode) .cta-section p {
    color: rgba(255, 255, 255, 0.9) !important; /* Lehce průhledný bílý text */
}

/* Dark mode - CTA sekce */
body.dark-mode .cta-section {
    background: var(--gradient-primary) !important; /* Stejný modrý gradient */
}

body.dark-mode .cta-section h2 {
    color: white !important;
}

body.dark-mode .cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* CTA obsah */
.cta-content h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: white !important; /* Zajistí bílou barvu v obou režimech */
}

.cta-content p {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    color: rgba(255, 255, 255, 0.9) !important; /* Zajistí viditelnost v obou režimech */
}

/* CTA tlačítka */
.cta-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Tlačítko styly */
.btn-custom {
    background: white !important;
    color: var(--accent-primary) !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.btn-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Sekundární tlačítko */
.btn-custom.secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-custom.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* =============================================================================
   RESPONZIVNÍ DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 1.5rem !important;
    }
    
    .cta-content h2 {
        font-size: 2rem !important;
    }
    
    .cta-content p {
        font-size: 1.1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .btn-custom {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 3rem 1rem !important;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
    }
    
    .btn-custom {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* =============================================================================
   OPRAVA VIDITELNOSTI MODERN-DETAILS
   ============================================================================= */

/* Light mode - modern details */
body:not(.dark-mode) .modern-details {
    display: none; /* Výchozí stav - skryté */
    margin-top: 2rem !important;
    padding: 2rem !important;
    background: rgba(0, 0, 0, 0.03) !important; /* Velmi světlé šedé pozadí */
    border-radius: 15px !important;
    border-left: 4px solid var(--accent-tertiary) !important;
    animation: expandDown 0.5s ease-out;
}

body:not(.dark-mode) .modern-details p {
    font-size: 1.1rem !important;
    color: var(--light-text-primary) !important; /* Tmavý text na světlém pozadí */
    line-height: 1.7 !important;
    margin: 0 0 1rem 0 !important;
}

body:not(.dark-mode) .details-content h4 {
    color: var(--accent-primary) !important; /* Modrý nadpis */
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.2rem !important;
}

body:not(.dark-mode) .achievement {
    background: rgba(0, 0, 0, 0.05) !important; /* Světle šedé pozadí */
    padding: 1rem !important;
    border-radius: 10px !important;
    margin: 1rem 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    border-left: 4px solid var(--accent-tertiary) !important;
}

body:not(.dark-mode) .achievement i {
    color: var(--accent-tertiary) !important;
    font-size: 1.2rem !important;
    margin-top: 0.2rem !important;
    min-width: 20px !important;
}

body:not(.dark-mode) .achievement span {
    font-weight: 600 !important;
    color: var(--light-text-primary) !important; /* Tmavý text */
    line-height: 1.5 !important;
}

/* Dark mode - modern details */
body.dark-mode .modern-details {
    display: none; /* Výchozí stav - skryté */
    margin-top: 2rem !important;
    padding: 2rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    border-left: 4px solid var(--accent-tertiary) !important;
    backdrop-filter: blur(10px) !important;
    animation: expandDown 0.5s ease-out;
}

body.dark-mode .modern-details p {
    font-size: 1.1rem !important;
    color: var(--dark-text-primary) !important;
    line-height: 1.7 !important;
    margin: 0 0 1rem 0 !important;
}

body.dark-mode .details-content h4 {
    color: var(--accent-primary) !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.2rem !important;
}

body.dark-mode .achievement {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    margin: 1rem 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    border-left: 4px solid var(--accent-tertiary) !important;
    backdrop-filter: blur(5px) !important;
}

body.dark-mode .achievement i {
    color: var(--accent-tertiary) !important;
    font-size: 1.2rem !important;
    margin-top: 0.2rem !important;
    min-width: 20px !important;
}

body.dark-mode .achievement span {
    font-weight: 600 !important;
    color: var(--dark-text-primary) !important;
    line-height: 1.5 !important;
}

/* Odkazy v modern details */
body:not(.dark-mode) .modern-details .web-link {
    color: var(--accent-primary) !important;
    background: rgba(43, 80, 243, 0.1) !important;
}

body:not(.dark-mode) .modern-details .web-link:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

body.dark-mode .modern-details .web-link {
    color: var(--accent-primary) !important;
    background: rgba(43, 80, 243, 0.15) !important;
}

body.dark-mode .modern-details .web-link:hover {
    background: var(--accent-primary) !important;
    color: white !important;
}

/* Animace rozbalení */
@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* === Reference přes celou šířku === */
#reference.projects-section,
#reference .projects-container,
#reference .grid {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* vnitřní odsazení, ať to neleží na krajích */
#reference .projects-container {
  padding-left: clamp(16px, 3vw, 40px) !important;
  padding-right: clamp(16px, 3vw, 40px) !important;
}

/* adaptivní mřížka */
#reference .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* mobil: 1 sloupec + menší padding karty */
@media (max-width: 768px) {
  #reference .grid { grid-template-columns: 1fr !important; }
  #reference .modern-card { padding: 16px 18px !important; }
}

/* kurzíva jen pro text referencí */
#reference .card-text { font-style: italic; }

/* recaptcha*/
/* vycentrování */
.recaptcha-wrap{
  display:flex;
  justify-content:center;     /* vodorovně na střed */
  align-items:center;          /* svisle, kdyby bylo potřeba */
  margin: 12px 0 20px;         /* rozestupy nad/pod */
}

/* reCAPTCHA má fixní šířku, ať se nechová divně v layoutech */
.recaptcha-wrap .g-recaptcha{
  display:inline-block;
}

/* Mobil: zmenšení pomocí scale (Google widget ~302x78px) */
@media (max-width: 480px){
  .recaptcha-wrap{
    transform: scale(0.90);        /* jemně zúží */
    transform-origin: center top;  /* škálovat ze středu nahoru */
  }
}

/* Ještě menší telefony */
@media (max-width: 360px){
  .recaptcha-wrap{
    transform: scale(0.82);
  }
}

/* CHYBOVÉ HLÁŠKY U FORMULÁŘE */
.error-message {
  background-color: #ffe6e6;           /* světle červené pozadí */
  color: #b30000;                      /* sytě červený text */
  border: 1px solid #ff4d4d;           /* kontrastní rámeček */
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.1);
  animation: shake 0.3s ease-in-out;   /* lehká animace při zobrazení */
}

/* Ikonka v hlášce */
.error-message i {
  color: #e60000;
  font-size: 1.2em;
}

/* Jemný pohyb při zobrazení (volitelné) */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* Dark mode varianta */
body.dark-mode .error-message {
  background-color: #3d0000;
  color: #ffb3b3;
  border-color: #ff4d4d;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}


