* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e1dedc;
    font-family: sans-serif;
    font-weight: 300;
    color: #2b0e02;
}


/* Znovupoužitelné */
.row {
    width: 80%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    padding-top: 60px;
    font-size: 35px;
}

h2:after {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    margin: 15px auto;
    background: linear-gradient(90deg, #ff7f50, #bb3d06);
}

h3 {
    display: inline-block;
    position: relative;
    text-align: left;
    padding-top: 60px;
    font-size: 30px;
}

h3:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, #ff7f50, #bb3d06);
}

.down {
    margin-top: 150px;
}

h4 {
    font-size: 25px;
    color: #bb3d06;
    margin-bottom: 10px;
}

/* Header */
header {
    background: linear-gradient(#00000089, #83726bb3), url("../img/illustration.jpg");
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.nav-bar-wrapper  {
    position: fixed;
    z-index: 200;
    width: 100%;
    height: 80px;
    background-color: #000000C6;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

#logo {
    padding-top: 20px;
    cursor: pointer;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    list-style: none;
}

nav ul li {
    margin-top: 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 23px;
    color: #f4e8e3;
    border-bottom: 2px solid transparent;
    transition: border-color 0.5s;
}

nav ul li a:hover,
nav ul li a:active {
    border-bottom: 2px solid #dc4403;
}

nav ul li a.nav-bar-contact:link,
nav ul li a.nav-bar-contact:visited {
  color: #dc4403;
}

nav ul li a.active {
    border-bottom: 2px solid #dc4403;
}


.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
    padding: 100px 20px 50px 0px;
}

.header-text h1 {
    font-family: "Acme", sans-serif;
    font-size: 41px;
    font-weight: 400;
    text-transform: uppercase;
    color: #f4e8e3;
    letter-spacing: 1.8px;
    word-spacing: 6px;
}

.header-text p {
    font-size: 22px;
    line-height: 35px;
    color: #c7b0a5;
    letter-spacing: 1px;
    word-spacing: 1.8px;
    margin-top: 20px;
}

.inline {
    display: flex;
}

.btn {
    display: inline-block;
    width: 180px;
    margin-top: 20px;
    padding: 6px 12px;
    border: 2px solid #bb3d06;
    border-radius: 10px;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    color: #f4e8e3;
    letter-spacing: 1px;
    transition-duration: 0.5s;
}

.btn:hover,
.btn:active {
    background-color: #dc4403;
    border: 2px solid #dc4403;
}

.btn-full {
    background-color: #bb3d06;
}

.btn-empty {
    margin-left: 10px;
}

/* Mobilní navigace */
.mobile-menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: #f4e8e3;
  cursor: pointer;
}

/* O mně */
.about-me-card {
    width: 300px;
    height: 525px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #ccc8c6;
    box-shadow: 7px 7px 7px #583939B3;
}

.about-me-card img {
    display: block;
    margin: 35px auto 25px auto;
    border-radius: 10px;
}

.about-me-card p {
    padding: 15px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.highlight {
    font-size: 1.1em;
    font-weight: bold;
    color: #dc4403;
}

/* Projekty */
.projects-wrapper {
    margin-top: 70px;
    color: #dc4403;
}

.grid-item.gallery-container {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 15px;
    overflow: scroll;
}

.grid-item.gallery-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    border-radius: 15px;
}

/* transparentní overlay pro blokování scrollu */
.iframe-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #f4e8e3;
    font-size: 18px;
    color: #2b0e02;
    cursor: pointer;
    z-index: 100;
}

.overlay {
    position: absolute;
    top: -2px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #000000e6;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    color: #f4e8e3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #f4e8e3;
    font-size: 18px;
    color: #2b0e02;
    cursor: pointer;
    z-index: 100;
}

.overlay p {
    font-size: 20px;
    letter-spacing: 1.5px;
}

/* Spolupráce */
.process-card {
    position: relative;
    width: 280px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 7px 7px 7px #583939B3;
    background-color: #ccc8c6;
    text-align: center;
    font-size: 20px;
}

.process-card img {
    display: block;
    width: 100px;
    margin: 10px auto;
}

.process-card p {
    margin: auto 30px;
}

.round-number {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
}

.first {
    color: #fb8256;
}

.second {
    color: #fb6124;
}

.third {
    color: #e85217;
}

.fourth {
    color: #dc4403;
}

.round-number.one {
    background-color: #fb8256;
}

.round-number.two {
    background-color: #fb6124;
}

.round-number.three {
    background-color: #e85217;
}

.round-number.four {
    background-color: #dc4403;
}

.btn-contact-process-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: -30px;
}

.btn-contact-process {
    width: 400px;
    height: 40px;
    padding: 8px 12px;
    margin-top: 15px;
    margin-bottom: 90px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 5px 5px 5px grey;
    background-color: #dc4403;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    color: #f4e8e3;
    letter-spacing: 1.3px;
    transition: 0.5s;
}

.btn-contact-process:hover,
.btn-contact-process:active {
    background-color: #e85217;
    font-size: 20px;
}

/* Hodnoty */
.values {
    background: linear-gradient(#00000089, #83726bb3), url("../img/illustration.jpg");
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-size: 18px;
    padding-bottom: 50px;
}

.values h2 {
    color: #f4e8e3;
}

.values h2:after {
    background: linear-gradient(90deg, #f4e8e3, #ff7f50);
}

.symbol-and-value {
    display: flex;
    margin-top: 50px;
    margin-bottom: 8px;

}

.symbol {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.value {
    margin-left: 10px;
    padding-top: 20px;
    font-style: italic;
}

.rating {
    width: 25%;
}

.values p {
    margin-top: 10px;
    margin-bottom: 30px;
    padding-right: 100px;
    font-style: italic;
    color: #f4e8e3;
    letter-spacing: 1px;
}

/* Kontakt */
#email-address:link,
#email-address:visited {
    width: 200px;
    height: auto;
    line-height: 23px;
    text-decoration: none;
    color: #2b0e02;
    margin-top: 12px;
    margin-left: 15px;
    font-size: 20px;
    transition-duration: 0.5s;
}

#email-address:hover,
#email-address:active {
    font-size: 22px;
}

.email {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 150px auto;
}

form input, textarea, .btn-submit {
    height: 40px;
    margin-bottom: 12px;
    padding: 20px 12px;
    outline: none;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 5px 5px 5px grey;
}

form input:focus, textarea:focus {
    border: 1.5px solid #e85217;
}

form textarea {
    height: 180px;
}

input::placeholder,
textarea::placeholder {
    color: #2b0e02;
    opacity: 0.5;
}

.btn-submit {
    height: 40px;
    line-height: 0px;
    margin-top: 20px;
    background-color: #dc4403;
    font-size: 18px;
    color: #f4e8e3;
    letter-spacing: 1.3px;
    transition: 0.5s;
}

.btn-submit:not(.btn-success):not(:disabled):hover {
    background-color: #e85217;
    font-size: 20px;
}

/* Validace */
.field-error {
    margin-top: -3px;
    margin-bottom: 10px;
    margin-left: 10px;
    font-size: 0.8rem;
    color: #e74c3c;
}

.btn-success {
    background-color: #4c8e19;
    color: #f4e8e3;
}

.btn-error {
    background-color: #c70707;
    color: #f4e8e3;
}

/* Animace teček při odesílání */
.dot-loading span {
    display: inline-block;
    animation: blink 1s infinite;
    opacity: 0;
    font-weight: bold;
}

.dot-loading span:nth-child(1) { animation-delay: 0s; }
.dot-loading span:nth-child(2) { animation-delay: 0.2s; }
.dot-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Footer */
footer {
    line-height: 60px;
    background-color: #f3c8b8;
    text-align: center;
    font-size: 15px;
    color: #2b0e0285;
}