/* Základní styly */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #415a77;
    --text-light-color: #e0e1dd;
    --text-dark-color: #333;
    --border-color: #778da9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark-color);
    background-color: var(--text-light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Hlavička */
.header {
    background: var(--primary-color);
    color: var(--text-light-color);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(13, 27, 42, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light-color);
    letter-spacing: 1px;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-light-color);
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Hero sekce */
.hero {
    background: url('img/bg.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: transparent;
    border: 2px solid var(--accent-color);
}

/* O nás sekce */
.about, .contact {
    padding: 6rem 0;
    background: var(--text-light-color);
    color: var(--text-dark-color);
}

.about h2, .portfolio h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Portfolio sekce */
.portfolio {
    padding: 6rem 0;
    background: var(--secondary-color);
    color: var(--text-light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(10%); /* obrázek ztmavený na 90 % */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #fff;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
}


/* Kontakt sekce */

.contact .cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--text-light-color); /* Použijeme světlou barvu pro decentní ohraničení */
  border-radius: 5px;
  background-color: transparent; /* Bez výplně, aby byl jen vidět rámeček */
  color: var(--text-light-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease; /* Plynulá animace */
  margin-right: 1.5rem; /* Mezera mezi tlačítky */
}

.contact .cta-button:hover {
  background-color: var(--text-light-color); /* Po najetí se vyplní světlou barvou */
  color: var(--primary-color); /* Text se změní na primární barvu pozadí */
  transform: translateY(-2px); /* Jemný posun nahoru */
}

.contact-details {
    max-width: 700px;
    margin: 0 auto;
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: var(--text-light-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 1.2rem;
}

.contact-details strong {
    display: inline-block;
    min-width: 120px;
    font-weight: 700;
    color: var(--text-light-color);
}

.contact-details a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}
/* Kontejner pro 2 sloupce */
.contact-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Nastavení, aby sloupce byly stejně široké */
.contact-columns .contact-list {
    flex: 1;
}

/* Styly pro zarovnání textu a ikonek v seznamu */
.contact-list dt {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-light-color);
    margin-bottom: 0.5rem;
}

.contact-list dd {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Na menších obrazovkách se sloupce vrátí pod sebe */
@media (max-width: 768px) {
    .contact-columns {
        flex-direction: column;
        gap: 0;
    }
}
/* Styly pro zarovnání adresy na střed */
.bottom-info .contact-list dt {
    justify-content: center;
}

.bottom-info .contact-list dd {
    text-align: center;
    margin-left: 0;
}

/* Patička */
.footer {
    background: var(--primary-color);
    color: var(--text-light-color);
    text-align: center;
    padding: 2rem 0;
}

/* Responzivní design pro menší obrazovky */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .navigation {
        margin-top: 1rem;
    }
    .navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero {
        text-align: left;
        padding-left: 20px;
        align-items: flex-start;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .about-content {
        font-size: 1rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.fade-in.delay-1 { animation-delay: 0.5s; }
.fade-in.delay-2 { animation-delay: 1s; }

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Základní styly */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #415a77;
    --text-light-color: #e0e1dd;
    --text-dark-color: #333;
    --border-color: #778da9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark-color);
    background-color: var(--text-light-color);
    overflow-x: hidden; /* Důležité pro zabránění horizontálního scrollování při animacích */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Hlavička */
.header {
    background: var(--primary-color);
    color: var(--text-light-color);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(13, 27, 42, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light-color);
    letter-spacing: 1px;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-light-color);
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navigation a:hover {
    transform: translateY(-3px); /* Mikroanimace při najetí myší */
    color: var(--accent-color);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

/* Hero sekce s paralaxou */
.hero {
    background: url('img/bg.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    background-attachment: fixed; /* Klíčový řádek pro paralaxu */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* O nás sekce */
.about, .testimonials, .contact {
    padding: 6rem 0;
    background: var(--text-light-color);
    color: var(--text-dark-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Portfolio sekce */
.portfolio {
    padding: 6rem 0;
    background: var(--secondary-color);
    color: var(--text-light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03); /* Mírné zvětšení */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Sekce reference */
.testimonials {
    background-color: var(--text-light-color);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--accent-color);
}
.testimonial-item:hover {
    transform: translateY(-10px);
}
.testimonial-item .quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.testimonial-item .author {
    font-weight: 700;
    color: var(--accent-color);
}

/* Kontakt sekce */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: var(--text-light-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: #fff;
    color: var(--text-dark-color);
}

.contact .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact .cta-button:hover {
    transform: translateY(-5px);
}

/* Patička */
.footer {
    background: var(--primary-color);
    color: var(--text-light-color);
    text-align: center;
    padding: 2rem 0;
}

/* Responzivní design pro menší obrazovky */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .navigation {
        margin-top: 1rem;
    }
    .navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero {
        text-align: left;
        padding-left: 20px;
        align-items: flex-start;
        justify-content: center;
        background-attachment: scroll; /* Vypneme paralaxu na mobilech */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .about-content {
        font-size: 1rem;
    }
    .portfolio-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .navigation ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .navigation.active ul {
        display: flex;
    }
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.fade-in.delay-1 { animation-delay: 0.5s; }
.fade-in.delay-2 { animation-delay: 1s; }

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Sekce Ceník */
.pricing {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}

.pricing h2 {
    color: var(--text-light-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card.recommended {
    background-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.pricing-card.recommended:before {
    content: "Doporučujeme";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.pricing-card .period {
    font-size: 1rem;
    display: block;
    font-weight: 300;
    color: var(--text-light-color);
    margin-bottom: 1.5rem;
}

.pricing-card .features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card .features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 25px;
    font-weight: 300;
}
.pricing-card .features li:last-child {
    border-bottom: none;
}

.pricing-card .features li::before {
    content: '✓';
    color: #00ff00; /* Zelená fajfka */
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Tlačítka v ceníku */
.pricing-card .cta-button {
    background: var(--text-light-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease
    }

  /* STYLY PRO MODÁLNÍ OKNO */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;

    /* Výchozí stav - neviditelný */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.visible {
    /* Viditelný stav */
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--text-light-color);
    color: var(--text-dark-color);
    padding: 2.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
    position: relative;
    
    /* Animace při zobrazení */
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark-color);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

#modal-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

#modal-body h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

#modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

