* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  padding: 0.5rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-content {
  padding-left: 5rem;
  padding-right: 10rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.logo {
  position: relative;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Poiret One", serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
  font-family: Poiret One, sans-serif;
  font-weight: 600;
}

.nav-links a:hover {
  color: #e2a9a9;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("https://www.foto-mk.cz/static/images/rusalka.jpg")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: start;
  text-align: start;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-left: 10rem;
  top: 15rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 400;
  font-family: Poiret One, sans-serif;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Portfolio Section */
.portfolio {
  padding: 7rem 2rem 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: xx-large;
  text-decoration: underline;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-item:hover img {
  transform: scale(1.05);
}
.photo-item .img-overlay h3 {
  color: #fff;
  opacity: 1;
  font-size: xx-large;
}

.photo-item .img-overlay {
  width: 100%;
  height: 100%;
  background: #666666;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
}

.photo-item:hover .img-overlay {
  display: visible;
  opacity: 0.9;
  color: #ffffff;
  font-size: 1.2rem;
  text-align: center;
  background: var(--accent-hover);
}

/* About Section */
.about {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.about-content {
  max-width: 1200px;
  padding-left: 5rem;
  padding-right: 2rem;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;

  font-size: 1.2rem;
}

.about-image {
  flex: 0 0 200px;
}

.about-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  padding: 5px;
}

.about-text {
  flex: 1;
}

.reviews {
  padding: 5rem 25rem 5rem 25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.review-grid {
  justify-content: center;
  position: relative;
  width: 100%;
  height: 300px; /* adjust the height to your liking */
}
.reviews h2 {
  font-size: xx-large;
  text-decoration: underline;
}

.review-item {
  position: absolute;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1s;
  text-align: center;
  gap: 2rem;
  font-size: 1.2rem;
  line-height: 2.5rem;
}

.review-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.review-item.active {
  opacity: 1;
}

.review-controls {
  text-align: center;
  margin-top: 10rem;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}

.prev-btn {
  left: 0;
  margin-left: -10rem;
  background-color: transparent;
  color: var(--button-color);
  border: none;
  border-radius: 20px;
  padding: 20px 20px;
  font-size: 3rem;
  cursor: pointer;
}

.next-btn {
  right: 0;
  margin-right: -10rem;
  background-color: transparent;
  color: var(--button-color);
  border: none;
  border-radius: 20px;
  padding: 20px 20px;
  font-size: 3rem;
  cursor: pointer;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--accent-hover);
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  margin-top: 10rem;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact h2 {
  text-align: center;
  /* margin-bottom: 3rem; */
  font-size: xx-large;
  text-decoration: underline;
}

.contact-form {
  width: 800px;
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  border-color: var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

button {
  padding: 1rem 2rem;
  background: #e2a9a9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: larger;
}

button:hover {
  background: #d88f8f;
}

.social-links {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.social-links a {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e2a9a9;
}

footer {
  padding: 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  font-size: small;
}

footer a {
  text-decoration: underline;
  color: var(--text-primary);
}

footer a:hover {
  color: #0a0b7a;
  font-weight: bold;
}

.telefon {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.mail i {
  padding-right: 1rem;
}

.telefon a,
.mail a {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-family: "Open Sans", sans-serif;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    background-color: var(--bg-primary);
    margin-right: 1rem;
  }
  .logo {
    font-size: 1.5rem;
  }

  .hero h1 {
    width: 100%;
    font-size: 2rem;
    text-align: center;
  }

  .hero p {
    text-align: center;
  }

  .hero-content {
    margin-left: 0;
    padding-left: 0rem;
    justify-content: center;
    top: 8rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .reviews {
    padding: 2.5rem 1rem 25rem 1rem;
  }

  .contact-form {
    width: 100%;
  }

  .review-item {
    padding: 1rem;
    order: 2;
  }
  .review-text-recomendation {
    padding-bottom: 2.5rem;
  }
  .review-controls {
    order: 1;
    display: flex;
    justify-items: start;
    margin-top: -3.4rem;
    gap: 50%;
    justify-content: center;
  }

  .theme-toggle {
    margin-top: 3rem;
    margin-left: 2rem;
  }
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --text-primary: #927152;
  --text-secondary: #666666;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --accent-color: #e2a9a9;
  --accent-hover: #d88f8f;
  --border-color: #ddd;
  --button-color: #927152;
  --button-text-color: #ffffff;
  --border-color-secondary: #927152;
  --icon-color: #927152;
  --card-hover: #fff4f4bf;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --nav-bg: rgba(26, 26, 26, 0.95);
  --accent-color: #e2a9a9;
  --accent-hover: #d88f8f;
  --border-color: #404040;
  --button-color: var(--text-secondary);
  --button-text-color: #000000;
  --border-color-secondary: #ffffff;
  --icon-color: #e2a9a9;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 4rem;
  right: 2rem;
  z-index: 1000;
  width: 3rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent-hover);
}
#toggleIcon {
  margin-left: -10px;
}

.up-button {
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  cursor: pointer;
  border-radius: 50%;
  background: var(--button-color);
  width: 3.5rem;
  height: 3.5rem;
  z-index: 1000;
  text-decoration: none;
}

.up-button i {
  color: var(--button-text-color);
  display: flex;
  margin-top: 1.25rem;
  align-items: center;

  justify-content: center;
}

.simple-footer {
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 2.5rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}
