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

:root {
  --mantis: #7ac74f;
  --argentinian-blue: #4bb3fd;
  --ghost-white: #f7f7ff;
  --prussian-blue: #0b3954;
  --ut-orange: #ff8811;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

html,
body {
  height: 100%;
  background-color: var(--ghost-white);
  color: var(--prussian-blue);
  line-height: 1.6;
}

h1 {
  font-size: 36px;
}
h2 {
  font-size: 28px;
}
p {
  font-size: 18px;
}

body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

.dark-mode footer {
  background-color: #0f0f0f !important;
  color: #e8eef6 !important;
  border-top: 1px solid #2e2e2e;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-mode .text-dark {
  color: #f1f1f1 !important;
}

.dark-mode .btn-outline-light {
  border-color: #f1f1f1;
}
@media (max-width: 1024px) {
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  p {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  main section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .text-content {
    width: 90%;
    margin: 0;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .food-image {
    width: 180px;
    height: 180px;
  }
}

/* HEADER & NAVBAR */
#header,
.navbar-custom {
  background-color: var(--prussian-blue) !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--ghost-white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--mantis) !important;
}

.navbar-toggler {
  border-color: var(--ghost-white) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.logo {
  height: 40px;
  width: auto;
}

main section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 5%;
  min-height: 80vh;
}

.food-image {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 4px solid var(--mantis);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-content {
  flex: 1.2;
  font-size: 1rem;
  line-height: 1.8;
  margin: 2rem;
  padding: 1.5em;
  border: 3px solid var(--ut-orange);
  width: 60%;
}

.text-content h2::before {
  content: "★ ";
  color: var(--ut-orange);
  margin-right: 0.5rem;
}

.text-content h2::after {
  content: " ★";
  color: var(--mantis);
  margin-left: 0.5rem;
}

/* CARDS */
#card-section .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

#card-section .card img {
  object-fit: cover;
  height: 220px;
}

#card-section .card-body {
  flex-grow: 1;
}

/* BUTTONS */
.card-btn,
.btn-mantis,
.btn-outline-mantis,
.btn-argentinian {
  border-radius: 5px;
  padding: 0.7rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-mantis {
  background-color: var(--mantis);
  color: #fff;
  border: none;
}

.btn-mantis:hover {
  background-color: #63b13f;
}

.btn-outline-mantis {
  border: 2px solid var(--mantis);
  color: var(--mantis);
}

.btn-outline-mantis:hover {
  background-color: var(--mantis);
  color: #fff;
}

.btn-argentinian {
  background-color: var(--argentinian-blue);
  color: #fff;
  border: none;
}

.btn-argentinian:hover {
  background-color: #2f9be4;
}

/* FOOTER */
.footer {
  padding: 64px 0;
  background-color: var(--prussian-blue) !important;
  color: #f7f7ff;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
}

.footer-link {
  text-decoration: none;
  font-size: 16px;
  color: #dedee6;
  transition: 0.3s;
}

.footer-link:hover {
  color: #adadb3;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
}

.social-icon {
  height: 24px;
  width: 24px;
}

/* MOBILE STYLES */
@media (max-width: 600px) {
  main section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .text-content {
    width: 90%;
    margin: 0;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .food-image {
    width: 180px;
    height: 180px;
  }
}

.dish-container {
  background-color: #ffffffd9;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  text-align: center;
  transition: transform 0.3s ease;
}

.dark-mode .dish-container {
  background-color: #202020;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  text-align: center;
  transition: transform 0.3s ease;
}

.dish-container:hover {
  transform: translateY(-5px);
}

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

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.notification.show {
  opacity: 1;
  transform: translateY(0);
}
/* Прогресс-бар сверху */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px; /* толщина линии */
  width: 0%;
  background: linear-gradient(90deg, #28a745, #80ed99);
  z-index: 9999;
  transition: width 0.15s ease-out;
}
