html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.back {
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem;
  text-decoration: none;
}

.back button {
  padding: 0.75rem 1.5rem;
  background-color: #0000ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(135deg, #0066ff, #00aaff);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.back button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc, #0088ff);
}

.navbar {
  background: linear-gradient(135deg, #78acff, #377efa);
  background-size: 400% 400%;
  animation: ICE 18s ease infinite;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  height: 100px;
  box-sizing: border-box;
  z-index: 1;
}

.navbar img {
  height: 150px;
  width: auto;
  flex-shrink: 0;
  margin-top: 15px;
  padding: 0;

  animation: floatLogo 3s ease-in-out infinite;
  position: relative;
  z-index: 2;

  transition: transform 0.3s ease;
}

.navbar img:hover {
  transform: translateY(-3px) scale(1.05);
}

.navbar button:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.navbar::before,
.navbar::after {
  z-index: 0;
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: transparent;
  border: 16px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: wave 25s linear infinite;
  opacity: 0.6;
}

.navbar::after {
  animation-duration: 32s;
  animation-direction: reverse;
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  margin: 0;
  padding: 0 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #efebeb;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}

.nav-link {
  color: #efebeb;
  text-decoration: none;
  margin-left: 1rem;
  transition: all 0.35s ease;
}

.nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc, #0088ff);
  border-radius: 16px;
}

.nav-link:active {
  transform: scale(0.97);
}

.search {
  display: flex;
  align-items: center;
}

.search input {
  padding: 0.5rem;
  border: 1px solid #34373a;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.search button {
  padding: 0.75rem 1.5rem;
  background-color: #0000ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(135deg, #0066ff, #00aaff);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.search button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc, #0088ff);
}

.search button:active {
  transform: scale(0.97);
}

main {
  text-align: start;
  padding: 90px 50px;
  flex: 1 0 auto;
}

.container {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #78acff, #377efa);
  background-size: 400% 400%;
  animation: ICE 18s ease infinite;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 10rem;
  margin-top: 5rem;
  color: rgb(245, 235, 235);
  border: 1px solid #34373a;
}

.container::before,
.container::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: transparent;
  border: 16px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: wave 25s linear infinite;
  opacity: 0.6;
}

.container::after {
  animation-duration: 32s;
  animation-direction: reverse;
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  animation: fadeIn 0.75s ease-in-out;
}

.form-group input,
.form-group textarea {
  width: 300px;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  animation: fadeIn 0.75s ease-in-out;
}

.container,
button {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0.75rem 1.5rem;
  background-color: #0000ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(135deg, #0066ff, #00aaff);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc, #0088ff);
}

.container button:active {
  transform: scale(0.97);
}

@keyframes ICE {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes wave {
  from {
    transform: rotate(0deg) translate(0, 0);
  }
  to {
    transform: rotate(360deg) translate(30px, 40px);
  }
}

.modal {
  position: fixed;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;

  transform: scale(0.8);
  opacity: 0;

  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  position: absolute;

  right: 15px;
  top: 10px;

  font-size: 28px;

  cursor: pointer;
}

.saada button {
  padding: 0.75rem 1.5rem;
  background-color: #0000ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  background: linear-gradient(135deg, #0066ff, #00aaff);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.saada button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 102, 255, 0.4);
  background: linear-gradient(135deg, #0052cc, #0088ff);
}

.saada button:active {
  transform: scale(0.97);
}

.footer {
  position: relative;
  padding: 2rem 2rem;
  text-align: center;

  background: linear-gradient(135deg, #78acff, #377efa);
  background-size: 400% 400%;
  animation: ICE 18s ease infinite;

  overflow: hidden;
}

/* RINGID */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border-radius: 50%;
  border: 16px solid rgba(255, 255, 255, 0.12);

  width: 120px;
  height: 120px;

  animation: wave 30s linear infinite;
}

.footer::after {
  width: 260px;
  height: 260px;
  border: 10px solid rgba(255, 255, 255, 0.08);
  animation-direction: reverse;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  color: white;
}

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