header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  padding: 20px 10px;
  box-shadow: 0 6px 15px rgba(0, 139, 139, 0.4);
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-grow: 1;
  text-align: center;
}

header #logo {
  height: 190px;
  width: 200px;
  position: absolute;
  left: 20px;
  top: 60%;
  transform: translateY(-50%);
}

header p {
  margin: 5px 0 10px;
}

nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 139, 139, 0.2);
  border-radius: 13px;
  width: 325px;
  margin: 0 auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-list li {
  display: inline;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
  will-change: transform, color;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  outline-offset: 4px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
  transform-origin: center;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
  left: 0;
}

.hero {
  width: 100%;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  min-height: 100vh;
}

.hero > div {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 20px;
  color: #ddd;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;

  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.hero h2 {
  font-size: 2.1rem;
  color: rgb(0, 139, 139);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 139, 139, 0.45);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 480px) {
  .hero {
    padding-left: 4vw;
    padding-right: 4vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero > div {
    padding: 14px 4vw;
    font-size: 1.09rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100vw;
  }
  .hero h2 {
    font-size: 1.3rem;
    word-break: break-word;
  }
  .hero p {
    font-size: 1.2rem;
    word-break: break-word;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  position: relative;
  width: 450px;
  padding: 30px;
  margin: 20px auto;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  will-change: transform, box-shadow, opacity;
  cursor: default;
}

.section:hover {
  box-shadow: 0 12px 24px rgba(0, 139, 139, 0.7);
  transform: translateZ(10px);
}

.section h3 {
  font-size: 1.85rem;
  margin-bottom: 18px;
  color: rgb(0, 139, 139);
  text-shadow: 0 2px 10px rgba(0, 139, 139, 0.45);
  font-weight: 600;
}

.section p {
  font-size: 1.5rem;
  color: #ddd;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.section ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.section ul li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
  font-size: 1rem;
  color: #eee;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.95;
}

.section ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(0, 139, 139);
  font-size: 1.1rem;
  font-weight: bold;
  animation: pulse 1.5s infinite ease-in-out;
  will-change: transform, opacity;
}

.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(0, 139, 139, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateX(0) translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
}

.section:hover::after {
  opacity: 1;
}

.section:hover[data-hover-direction="top"]::after {
  transform: translateY(-100%);
}

.section:hover[data-hover-direction="right"]::after {
  transform: translateX(100%);
}

.section:hover[data-hover-direction="bottom"]::after {
  transform: translateY(100%);
}

.section:hover[data-hover-direction="left"]::after {
  transform: translateX(-100%);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

a:focus-visible, button:focus-visible {
  outline: 3px solid rgb(0, 139, 139);
  outline-offset: 3px;
  border-radius: 4px;
}

nav a {
  color: rgb(0, 139, 139);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: #005757;
  font-weight: 600;
  text-decoration: underline;
}

.footer a {
  color: rgb(0, 139, 139);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #005757;
  text-decoration: underline;
}

.treatments p {
  font-size: 2rem;
}
