@font-face {
    font-family: 'Helvetica-Neue';
    src: url('./helvetica-neue/HelveticaNeue-Light-08.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica-Neue';
    src: url('./helvetica-neue/HelveticaNeue-Bold-02.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('./poppins/Poppins-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* --- CSS Proměnné pro Dark/Light mód --- */
:root {
    --bg-color: #ffffff;
    --element-color: #000000;
    --green-color: #29FD53;

    --form-bg: #DDDDDD;
    --form-focus-bg: #E5E5E5;
    --form-border: transparent;
    --form-focus-border: #000000;
    --form-focus-shadow: rgba(0, 0, 0, 0.15);
    --placeholder-color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] {
    --bg-color: #111111;
    --element-color: #ffffff;

    --form-bg: #2A2A2A;
    --form-focus-bg: #333333;
    --form-border: transparent;
    --form-focus-border: #ffffff;
    --form-focus-shadow: rgba(255, 255, 255, 0.2);
    --placeholder-color: rgba(255, 255, 255, 0.5);
}

/* --- Reset odkazů --- */
a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

/* --- Základní reset a barvy --- */
html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--element-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Hlavní kontejner menu (Liquid Glass Efekt) --- */
.top-menu {
    position: sticky;
    top: 20px;
    z-index: 1000;
    max-width: 1100px;
    height: 60px;
    margin: 50px auto 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 20px;
    box-sizing: border-box;

    background: linear-gradient(90deg,
        color-mix(in srgb, var(--bg-color) 75%, transparent) 0%,
        color-mix(in srgb, var(--bg-color) 65%, transparent) 25%,
        color-mix(in srgb, var(--bg-color) 55%, transparent) 50%,
        color-mix(in srgb, var(--bg-color) 65%, transparent) 75%,
        color-mix(in srgb, var(--bg-color) 75%, transparent) 100%
    );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--element-color) 20%, transparent);

    box-shadow:
        inset 0px 2px 4px rgba(255, 255, 255, 0.40),
        inset 0px -2px 4px rgba(0, 0, 0, 0.20);

    transition: background 0.3s ease, border-color 0.3s ease;
}

/* --- Nadpis --- */
.title {
    position: static;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--element-color);
}

.title .dot {
    color: var(--green-color);
}

/* --- Skupina tlačítek napravo --- */
.right-group {
    position: static;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* --- Textové tlačítko "O mně" --- */
.text-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--element-color);
    margin: 0;
}

/* --- Společné styly pro tlačítka --- */
button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    /* OPRAVA: sloučena dvojitá transition do jedné */
    transition: color 0.3s ease, opacity 0.2s ease;
}

/* --- Hover efekty pouze pro zařízení s myší --- */
@media (hover: hover) {
    button:hover,
    .text-btn:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }

    #theme-toggle:hover {
        transform: scale(1.1);
    }

    /* OPRAVA: #contact-btn:hover přesunut sem, aby nefungoval na dotykových zařízeních */
    #contact-btn:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* --- Ikonová tlačítka --- */
.icon-btn svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
    fill: currentColor;
}

/* --- Oddělovač --- */
.separator {
    width: 2px;
    height: 36px;
    background-color: var(--element-color);
    transition: background-color 0.3s ease;
}

/* --- Přepínač tématu --- */
#theme-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: var(--element-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity 0.4s ease, transform 0.5s ease;
    overflow: visible;
}

/* --- Výchozí stav (Light Mode) --- */
.slunce-svg {
    opacity: 0;
    transform: rotate(90deg);
}

.mesic-svg {
    opacity: 1;
    transform: rotate(0deg);
}

/* --- Dark Mode stav --- */
[data-theme="dark"] .slunce-svg {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .mesic-svg {
    opacity: 0;
    transform: rotate(-90deg);
}

#back-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--element-color);
    display: flex;
    align-items: center;
    justify-content: center;
    /* OPRAVA: sloučena dvojitá transition do jedné */
    transition: color 0.3s ease, opacity 0.2s ease;
}

#back-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* =====================================================
   MOBILNÍ HEADER — náhrada top-menu na mobilu a tabletu
   ===================================================== */

.mobile-header-content {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-header-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mobile-header-logo svg {
    height: 100%;
    width: auto;
    color: var(--element-color);
    opacity: 8%;
}

.mobile-header-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--element-color);
    line-height: 1;
    letter-spacing: -0.01em;
}

.mobile-header-dot {
    color: var(--green-color);
}


/* --- HLAVNÍ KONTEJNER FORMULÁŘE --- */
.contact-page {
    margin: 80px auto 0 auto;
    width: 1120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Podnadpis */
.contact-subtitle {
    font-family: 'Helvetica-Neue', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--element-color);
    margin: 0;
}

/* Obal formuláře */
.contact-form {
    width: 600px;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Skupina: Popisek + Kolonka */
.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 60px;
}

.form-group.textarea-group {
    margin-bottom: 40px;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--element-color);
    text-align: left;
}

/* --- Vzhled kolonek --- */
.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--form-bg);
    color: var(--element-color);
    border: 1px solid var(--form-border);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 10px;
    line-height: 20px;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--form-focus-bg);
    border-color: var(--form-focus-border);
    box-shadow: 0 0 0 0px var(--form-focus-shadow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--placeholder-color);
}

.form-group input {
    height: 40px;
}

.form-group textarea {
    height: 200px;
    resize: none;
}

/* --- GDPR TEXT --- */
.gdpr-text {
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: var(--element-color);
    opacity: 0.5;
    margin-top: -2px;
    line-height: 1;
    transition: color 0.3s ease;
}

/* --- ODESÍLACÍ TLAČÍTKO --- */
.submit-btn {
    width: 120px;
    height: 40px;
    background-color: var(--element-color);
    color: var(--green-color);
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.8;
}


/* --- KONTEJNER PRO SOCIÁLNÍ SÍTĚ --- */
.social-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    margin-bottom: 60px;
}

.social-item {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.social-item .icon-svg {
    width: 24px;
    height: 24px;
    color: var(--element-color);
    transition: color 0.4s ease;
}

.social-item .text-btn {
    text-decoration: none;
    color: var(--element-color);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.social-item .text-btn:hover {
    opacity: 0.7;
}

/* --- ROZDĚLOVACÍ ČÁRY --- */
.social-sep {
    height: 44px;
    width: 2px;
    background-color: var(--element-color);
    margin: 0 80px;
    transition: background-color 0.4s ease;
}

/* =====================================================
   COPYRIGHT SEKCE
   ===================================================== */
.copyright-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.copyright-line {
    width: 100%;
    max-width: 1000px;
    height: 1px;
    border: none;
    background-color: var(--element-color);
    opacity: 0.25;
    margin: 0;
    margin-bottom: 50px;
}

.copyright-text {
    font-family: 'Helvetica-Neue', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--element-color);
    opacity: 0.5;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}


/* =====================================================
   RESPONSIVITA — mobil (max. šířka 768 px)
   ===================================================== */
@media (max-width: 768px) {

    /* --- Header --- */
    .top-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        height: clamp(80px, 25vw, 130px);
    }

    /* OPRAVA: skrýt title a right-group, zobrazit jen mobile-header-content */
    .top-menu .title,
    .top-menu .right-group {
        display: none;
    }

    .mobile-header-content {
        display: flex;
    }

    .mobile-header-title {
        font-size: clamp(24px, 9.3vw, 40px);
    }

    #theme-toggle {
        display: grid;
        place-items: center;
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
        overflow: visible;
    }

    #theme-toggle svg {
        position: static;
        grid-area: 1 / 1;
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
        overflow: visible;
    }

    .icon-btn svg {
        width: clamp(18px, 5vw, 24px);
        height: clamp(18px, 5vw, 24px);
    }

    /* --- Hlavní obsah a Formulář --- */
    .contact-page {
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
        margin-top: 24px;
    }

    .contact-subtitle {
        font-size: clamp(18px, 5vw, 24px);
        text-align: center;
    }

    .contact-form {
        width: 100%;
        margin-top: 40px;
    }

    .form-group {
        margin-bottom: 30px;
    }

    .form-group.textarea-group {
        margin-bottom: 24px;
    }

    .gdpr-text {
        line-height: 1.4;
    }

    .submit-btn {
        margin-bottom: 20px;
    }

    /* --- Footer — sociální sítě --- */
    .social-footer {
        width: 70%;
        margin: clamp(20px, 5.5vw, 40px) auto;
        justify-content: space-between;
    }

    .social-item {
        width: auto;
        gap: 0;
    }

    .social-item .text-btn {
        display: none;
    }

    .social-item .icon-svg {
        width: clamp(18px, 5.5vw, 24px);
        height: clamp(18px, 5.5vw, 24px);
        margin-right: 0;
        overflow: visible;
    }

    .social-sep {
        height: clamp(16px, 6vw, 28px);
        margin: 0;
    }

    /* --- Copyright sekce --- */
    .copyright-section {
        padding-bottom: clamp(28px, 8vw, 44px);
    }

    .copyright-line {
        max-width: 90%;
        margin-bottom: clamp(28px, 8vw, 44px);
    }

    .copyright-text {
        font-size: clamp(10px, 2.8vw, 14px);
        line-height: 1.7;
        padding: 0 clamp(12px, 4vw, 24px);
    }
}


/* =====================================================
   RESPONSIVITA — tablet (769 px – 1399 px)
   ===================================================== */
@media (min-width: 769px) and (max-width: 1399px) {

    /* --- Hlavička --- */
    .top-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        height: clamp(130px, 17vw, 200px);
    }

    /* OPRAVA: skrýt title a right-group, zobrazit jen mobile-header-content */
    .top-menu .title,
    .top-menu .right-group {
        display: none;
    }

    .mobile-header-content {
        display: flex;
    }

    .mobile-header-title {
        font-size: clamp(40px, 5.5vw, 80px);
    }

    #theme-toggle {
        display: grid;
        place-items: center;
        width: clamp(20px, 2.8vw, 24px);
        height: clamp(20px, 2.8vw, 24px);
        overflow: visible;
    }

    #theme-toggle svg {
        position: static;
        grid-area: 1 / 1;
        width: clamp(20px, 2.8vw, 24px);
        height: clamp(20px, 2.8vw, 24px);
        overflow: visible;
    }

    /* --- Hlavní obsah a Formulář --- */
    .contact-page {
        width: 100%;
        padding: 0 48px;
        box-sizing: border-box;
    }

    .contact-form {
        width: 100%;
        max-width: 600px;
        margin-top: 60px;
    }

    .submit-btn {
        margin-bottom: 20px;
    }

    .gdpr-text {
        line-height: 1.4;
    }

    /* --- Footer --- */
    .social-footer {
        width: 70%;
        margin: clamp(20px, 5.5vw, 40px) auto;
        justify-content: space-between;
    }

    .social-item {
        width: auto;
        gap: 0;
    }

    .social-item .text-btn {
        display: none;
    }

    .social-item .icon-svg {
        width: clamp(20px, 3vw, 28px);
        height: clamp(20px, 3vw, 28px);
        margin-right: 0;
        overflow: visible;
    }

    .social-sep {
        height: clamp(20px, 4vw, 44px);
        margin: 0;
    }

    /* --- Copyright sekce --- */
    .copyright-section {
        padding-bottom: clamp(36px, 4.5vw, 54px);
    }

    .copyright-line {
        max-width: min(90%, 1000px);
        margin-bottom: clamp(36px, 4.5vw, 54px);
    }

    .copyright-text {
        font-size: clamp(14px, 1.5vw, 16px);
    }
}


/* =====================================================
   SPODNÍ NAVIGAČNÍ MENU
   ===================================================== */

/* --- Odsazení stránky --- */
@media (max-width: 1399px) {
    body {
        padding-bottom: 80px;
    }
}

/* --- Kontejner menu --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;

    background: linear-gradient(180deg,
        color-mix(in srgb, var(--bg-color) 85%, transparent) 0%,
        color-mix(in srgb, var(--bg-color) 75%, transparent) 50%,
        color-mix(in srgb, var(--bg-color) 85%, transparent) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid color-mix(in srgb, var(--element-color) 20%, transparent);

    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 68px;
    position: relative;
}

.bottom-nav__item {
    position: relative;
    flex: 1;
    height: 68px;
    z-index: 1;
}

.bottom-nav__item a,
.bottom-nav__item button.bottom-nav__theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--element-color);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- Ikona --- */
.bottom-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.3s ease,
                opacity 0.3s ease;
    color: var(--element-color);
    opacity: 0.45;
}

.bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    transition: inherit;
    fill: currentColor;
}

.bottom-nav__icon .ionicon {
    fill: none;
}
.bottom-nav__icon .ionicon circle,
.bottom-nav__icon .ionicon path {
    fill: none;
    stroke: currentColor;
}

/* --- Popis --- */
.bottom-nav__text {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: color-mix(in srgb, var(--element-color) 45%, transparent);
    transition: opacity 0.35s ease, color 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
}

/* --- Aktivní stav --- */
.bottom-nav__item.active .bottom-nav__icon {
    transform: translateY(-10px);
    color: var(--element-color);
    opacity: 1;
}

.bottom-nav__item.active .bottom-nav__text {
    opacity: 1;
    color: var(--element-color);
}

@media (hover: hover) {
    .bottom-nav__item:not(.bottom-nav__item--center):not(.active) a:hover .bottom-nav__icon,
    .bottom-nav__item:not(.bottom-nav__item--center):not(.active) button:hover .bottom-nav__icon {
        color: color-mix(in srgb, var(--element-color) 70%, transparent);
        transform: translateY(-4px);
    }
}

/* --- Indikátor (zelený proužek) --- */
.bottom-nav__indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--green-color);
    border-radius: 0 0 3px 3px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
    pointer-events: none;
}

/* --- Zelený stroke kolem střední (chat) ikony při aktivaci --- */
.bottom-nav__icon--center.stroke-active {
    box-shadow: 0 0 0 3px var(--green-color),
                0 4px 16px color-mix(in srgb, var(--element-color) 25%, transparent);
    transition: box-shadow 0.3s ease,
                transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease;
}

/* --- Přepínač tématu uvnitř menu --- */
.bottom-nav__theme-btn .bottom-nav__icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.bottom-nav__theme-btn .bottom-nav__icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.bottom-nav__theme-btn .bottom-nav__icon .mesic-svg {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.bottom-nav__theme-btn .bottom-nav__icon .slunce-svg {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

[data-theme="dark"] .bottom-nav__theme-btn .bottom-nav__icon .slunce-svg {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

[data-theme="dark"] .bottom-nav__theme-btn .bottom-nav__icon .mesic-svg {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* --- Zobrazení menu na mobilu a tabletu --- */
@media (max-width: 1399px) {
    .bottom-nav {
        display: block;
    }
}