@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Base Styles */
:root {
  --text-color: #000000;
  --link-color: #ffffff;
  --background-color: #eeeff1;
  font-size: 17px; /* Set the base font size */
}

html::-webkit-scrollbar,
.swiper::-webkit-scrollbar,
.intro-swiper::-webkit-scrollbar {
  display: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Adjust this value based on the height of your nav bar */
}

body {
  font-family: "Montserrat", serif;
}

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

h1,
h2 {
  font-family: "Montserrat", serif;
  font-weight: bold;
}

hr {
  border: solid black 1px;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 0 3.125rem;
  height: 5rem;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 203, 0, 0.9);
  backdrop-filter: blur(5px);
}

nav .left a {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0.625rem;
}

nav .right a:hover {
  color: var(--link-color);
  transition: color 0.3s ease-in-out;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* General Section Styles */
section {
  padding: 8rem 2rem;
  min-height: 80vh; /* Reduce the default minimum height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

section:nth-of-type(odd) {
  background-color: #ffde59; /* Light gray for odd sections */
}

section:nth-of-type(even) {
  background-color: #ffffff; /* White for even sections */
}

/* Section Heading Styles */
section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background-color: #ffcb00;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* intro Section */
#intro-section {
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.5rem;
}

#intro-section h2 {
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 700;
}

#intro-section .headshot {
  overflow: hidden;
}

#intro-section .headshot img {
  width: 100%;
  height: 100%;
}

#intro-section .profile {
  overflow: hidden;
}

#intro-section .profile img {
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
}

#intro-section .bio {
  margin-bottom: 2rem;
  padding: 0 2rem;
  max-width: 56.25rem;
}

#intro-section .bio p,
li {
  font-size: 1.25rem;
  font-weight: 300;
}

#intro-section .social-links {
  font-size: 2.25rem;
}

#intro-section .social-links a {
  padding: 0;
  margin: 0 0.75rem;
}

#intro-section .social-links a i {
  transition: transform 0.3s, color 0.3s;
}

#intro-section .social-links a:hover i {
  color: #000000;
  transform: scale(1.2);
}

#intro-section a:hover {
  color: var(--link-color);
  transition: color 0.3s ease-in-out;
}

#intro-section .social-links i {
  color: #737373;
  font-weight: 500;
}

/* Projects Section */
#projects-section {
  width: 100%;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

#projects-section h2 {
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 700;
}

#projects-section h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: underline;
}

.project-subsection {
  width: 100%;
  margin-bottom: 4rem; /* Add space between subsections */
}

.intro-subsection {
  width: 100%;
  margin-bottom: 4rem; /* Add space between subsections */
}

.intro-subsection h3 {
  text-align: center;
  font-size: 1.25rem;
}

.projects-scroll-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  width: 100%;
  max-width: 1600px;
  overflow-x: auto; /* Allow horizontal scrolling if needed */
  margin: 0 auto;
}

.project-box,
.team-box,
.intro-box {
  flex: 0 0 16rem; /* Fixed width for the boxes */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #ffcb00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important; /* Smooth transition for scaling */
}

.project-box:hover,
.intro-box:hover {
  transform: scale(0.95); /* Grow the box slightly on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.intro-box:hover {
  cursor: default;
}

.intro-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.intro-box:hover h4 {
  color: #000000 !important; /* Zajistí černou barvu textu */
}

.intro-box img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.team-box:hover {
  transform: scale(0.95); /* Grow the box slightly on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact {
  font-weight: bold;
}

.team-box img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.project-box h4,
.team-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.project-box h5,
.team-box h5 {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.project-box p,
.team-box p {
  font-size: 0.8rem;
  font-weight: 300;
  color: #444;
  margin-bottom: 0.5rem;
}

.project-box img {
  width: 100%;
  height: 12rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.intro-box img {
  width: 100%;
  height: 9rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

/* team Section */
#team-section {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem; /* Add gap between elements */
}

#team-section .team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* Add gap between icons */
}

#team-section i {
  font-size: 1.2rem;
  color: #737373;
  transition: transform 0.3s ease, color 0.3s ease;
  margin: 1rem 0; /* Add margin to ensure proper spacing */
}

/* Contact Section */
#contact-section {
  min-height: 50vh; /* Make it half the viewport height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

#contact-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 600px;
  line-height: 1.6;
}

#contact-section a:hover {
  color: #ffcb00;
  transition: color 0.3s ease-in-out;
}

#references-section p {
  font-size: 1.25rem;
  color: #000;
  max-width: 600px;
  line-height: 1.6;
}

.reference-carousel-container {
  width: 80%;
  margin: 0 auto;
  position: relative;
}

.reference-carousel {
  position: relative;
  overflow: hidden;
}

.reference-carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.reference-carousel-item {
  min-width: 100%;
  text-align: center;
}

.reference-carousel-item img {
  max-width: 100%;
  height: auto;
}

.reference-carousel-control-prev,
.reference-carousel-control-next {
  position: absolute;
  top: 50% !important; /* Vynucení vertikálního centrování */
  transform: translateY(-50%) !important; /* Vynucení přesného centrování */
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reference-carousel-control-prev {
  left: 10px;
}

.reference-carousel-control-next {
  right: 10px;
}

.reference-carousel-control-prev:hover,
.reference-carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

footer {
  background-color: #ffcb00;
  color: #000;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
}

footer a:hover {
  color: var(--link-color);
  transition: color 0.3s ease-in-out;
}

/* Cards Swiper */
.swiper {
  width: 100%;
  overflow-x: scroll !important;
}

.swiper-slide {
  width: 272px !important;
  height: 375.75px;
}

.swiper-slide > a {
  display: block;
  transform: scale(0.9);
  width: 272px;
  height: 375.75px;
}

.intro-swiper {
  width: 100%;
  overflow-x: scroll !important;
}

.intro-swiper-slide {
  width: 204px !important;
  height: 281.8125px;
}

.intro-swiper-slide > a {
  display: block;
  transform: scale(0.9);
  width: 204px;
  height: 281.8125px;
}

.portfolioImage {
  width: 600px !important;
  height: auto !important;
}

.bcImage {
  width: 400px !important;
  height: auto !important;
}

#partners-section {
  min-height: 150px;
}

.logo-container {
  width: 100%;
  margin-top: 3rem;
  overflow: hidden;
}

.carousel {
  position: relative;
}

.logo-row {
  display: flex;
  align-items: center;
}

.logo-row img {
  width: 100px;
  height: 50px;
  object-fit: contain;
  margin: 0 2rem;
}

/* Formulář */
form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffcb00;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Montserrat", serif;
}

textarea {
  resize: none;
  min-height: 100px;
}

button[type="submit"] {
  background-color: #ffde59;
  color: black;
  padding: 10px 20px;
  border: solid 1px #ffcb00;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out;
  font-family: "Montserrat", serif;
}

button[type="submit"]:hover {
  background-color: #ffcb00;
  border: solid 1px #ffde59;
}

/* Fokus efekt pro inputy */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #ffde59;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backBtn {
  background-color: #ffcb00;
  color: black;
  padding: 10px 20px;
  border: solid 1px #ffde59;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out,
    border 0.3s ease-in-out;
  font-family: "Montserrat", serif;
}

.backBtn:hover {
  background-color: #ffde59;
  border: solid 1px #ffcb00;
  transform: scale(1.2);
}

/* Media Queries for Responsiveness */
@media (min-width: 1690px) {
  .swiper-wrapper,
  .intro-swiper-wrapper {
    justify-content: center;
  }

  .logo-row img {
    height: 60px;
    margin: 0 3rem;
  }
}

@media (max-width: 992px) {
  nav .left a {
    font-size: 1.25rem;
  }

  nav .right a {
    font-size: 1.2rem;
    margin: 0.4 0.4rem;
  }

  nav .right {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background-color: rgba(255, 203, 0, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
  }

  nav .right.active {
    display: flex;
  }

  nav .right a {
    margin: 0.5rem 0;
  }

  .hamburger {
    display: block;
  }

  #intro-section .headshot {
    width: 18rem;
    height: 18rem;
  }

  #intro-section h2 {
    font-size: 2.25rem;
  }

  #projects-section .project-box {
    flex: 0 0 14rem; /* Adjust width for smaller screens */
  }

  #team-section i {
    font-size: 2.5rem;
  }

  #team-section .team-box {
    flex: 0 0 14rem; /* Adjust width for smaller screens */
  }

  .logo-row img {
    height: 50px;
    margin: 0 1.5rem;
  }

  .bcImage,
  .portfolioImage {
    width: 300px !important;
    height: auto !important;
  }

  form {
    max-width: 300px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffcb00;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .reference-carousel-container {
    width: 95%;
  }

  .reference-carousel-item {
    min-width: 50%;
  }

  .reference-carousel-control-prev,
  .reference-carousel-control-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  nav .left a {
    font-size: 1.25rem;
  }

  nav .right a {
    font-size: 1.2rem;
    margin: 0.4rem 0.4rem;
  }

  nav {
    padding: 0 1.5rem;
  }

  #intro-section .headshot {
    width: 16rem;
    height: 16rem;
  }

  #projects-section .project-box {
    flex: 0 0 14rem;
  }

  #team-section i {
    font-size: 2rem;
  }

  #team-section .team-container {
    gap: 1.25rem;
  }

  #team-section .team-box {
    flex: 0 0 14rem;
  }

  .logo-row img {
    height: 50px;
    margin: 0 1rem;
  }

  .carousel {
    width: 300%;
  }

  .logo-row {
    min-width: 100%;
  }

  .bcImage,
  .portfolioImage {
    width: 300px !important;
    height: auto !important;
  }

  .reference-carousel-container {
    width: 100%;
  }

  .reference-carousel-item {
    min-width: 100%;
  }

  .reference-carousel-control-prev {
    left: 5px;
  }

  .reference-carousel-control-next {
    right: 5px;
  }

  .reference-carousel-control-prev,
  .reference-carousel-control-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 576px) {
  nav {
    padding: 0 1rem;
  }

  nav .left a {
    font-size: 1.1rem;
  }

  nav .right a {
    font-size: 1.2rem;
    margin: 0.4rem 0.4rem;
  }

  #intro-section .social-links {
    font-size: 1.75rem;
  }

  section h2 {
    font-size: 2rem;
  }

  #intro-section .headshot {
    width: 12rem;
    height: 12rem;
  }

  #projects-section .project-box {
    flex: 0 0 14rem;
  }

  #team-section i {
    font-size: 1.5rem;
  }

  #team-section .team-container {
    gap: 1rem;
  }

  section {
    padding: 6rem 1rem; /* Adjust padding for smaller screens */
  }

  #projects-section {
    padding: 6rem 1rem; /* Adjust padding for smaller screens */
  }

  #contact-section {
    padding: 3rem 1rem; /* Adjust padding for smaller screens */
  }

  .logo-row img {
    height: 50px;
    margin: 0 0.75rem;
  }

  .carousel {
    width: 400%; /* Ještě větší šířka pro mobilní zobrazení */
  }

  .logo-row {
    min-width: 150%;
  }

  .bcImage,
  .portfolioImage {
    width: 300px !important;
    height: auto !important;
  }

  footer {
    font-size: 0.7rem;
    padding: 0.75rem;
  }

  .reference-carousel-item {
    padding: 0 5px;
  }

  .reference-carousel-control-prev,
  .reference-carousel-control-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-66.66%);
    }
  }
}
