:root {
  --white: #0f2a3d;
  --primary: #1fb6ff;
  --primary-dark: #0284c7;
  --text-soft: #486273;
  --surface: #ffffff;
  --surface-2: #eef8ff;
  --border: rgba(15, 42, 61, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f6fcff;
  color: var(--white);
  line-height: 1.6;
}

.floating-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1100px, calc(100% - 30px));
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 12px 22px 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(3, 60, 100, 0.18);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  position: relative;
  overflow: hidden;
}

/* ── Navbar wave video ───────────────────────────────── */
.nav-wave-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
  transform: rotate(180deg);
  /* Smooth fade: video fully visible, blends into transparent at top — no hard line */
  -webkit-mask-image: linear-gradient(
    to top,
    black 0%,
    black 30%,
    rgba(0,0,0,0.85) 50%,
    rgba(0,0,0,0.4) 70%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    black 0%,
    black 30%,
    rgba(0,0,0,0.85) 50%,
    rgba(0,0,0,0.4) 70%,
    transparent 100%
  );
}

.nav-wave-overlay {
  position: absolute;
  /* Only overlay the bottom water portion */
  top: 45%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 20, 45, 0.28) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 110px;
  height: 55px;
  display: block;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.nav-links a {
  text-decoration: none;
  color: #0a3a58;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #006fa6;
}

.cta-btn {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 10px 18px;
  border-radius: 999px;
}

.hero {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding: 92px 0 28px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(31, 182, 255, 0.22),
      transparent 45%
    ),
    rgba(0, 20, 36, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92%);
  text-align: center;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(420px, 66vw);
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(255, 255, 255, 0.5))
    drop-shadow(0 4px 12px rgba(236, 235, 235, 0.35));
}

main > section:not(.hero) {
  position: relative;
  z-index: 3;
}

.hero-tag {
  color: #b6eaff;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.hero-content h2 {
  font-size: clamp(1.4rem, 3.6vw, 2.65rem);
  line-height: 1.23;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero-content p {
  width: min(700px, 100%);
  margin: 0 auto 14px;
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #02101b;
  background: #d8f5ff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 2px;
  box-shadow: 0 8px 18px rgba(5, 30, 48, 0.28);
}

.section-padding {
  padding: 90px 0;
}

.section-container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-label {
  color: #0a87c9;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 26px;
}

.about {
  background: linear-gradient(180deg, #f8fdff 0%, #edf8ff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  min-height: 320px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(8, 76, 117, 0.12);
}

.about-image-secondary {
  transform: translateY(28px);
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.products {
  background: linear-gradient(135deg, #4f8ba8, #0a8fd8);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.products::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/images/products-bg-texture.png") center / cover
    no-repeat;
  opacity: 0.23;
  mix-blend-mode: multiply;
  filter: saturate(80%) contrast(95%);
  transform: scale(1.02);
}

.products::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 42%
    );
  pointer-events: none;
}

.products .section-container {
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.product-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(2, 23, 39, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: auto -25% -54%;
  height: 94%;
  border-radius: 43%;
  background: linear-gradient(
    135deg,
    rgba(31, 182, 255, 0.22),
    rgba(2, 132, 199, 0.12),
    rgba(31, 182, 255, 0.2)
  );
  transform: translateY(44%) rotate(0deg);
  transition: transform 0.55s ease;
  z-index: -1;
  clip-path: inset(0 0 0 0 round 20px);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 70%
  );
  transform: translateX(-125%);
  transition: transform 0.75s ease;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 20px);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 22px 34px rgba(8, 86, 128, 0.18);
}

.product-card:hover::before,
.product-card:focus-within::before {
  transform: translateY(3%) rotate(8deg);
  animation: water-flow 3s ease-in-out infinite;
}

.product-card:hover::after,
.product-card:focus-within::after {
  transform: translateX(125%);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.product-card-small,
.product-card-family {
  background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.95),
      rgba(241, 249, 255, 0.94)
    ),
    url("./assets/images/Aabesafa Logo.png") center / cover no-repeat;
  overflow: visible;
}

.product-card-small::before,
.product-card-family::before {
  content: none;
}

.product-card-small::after,
.product-card-family::after {
  content: none;
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0 0 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-thumb img {
  max-height: 108%;
  width: auto;
  filter: drop-shadow(0 16px 18px rgba(5, 71, 108, 0.26));
  transform: translateY(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1.04);
  transition: transform 0.5s ease, filter 0.5s ease;
  will-change: transform;
}

.product-card-small:hover .product-thumb img,
.product-card-small:focus-within .product-thumb img,
.product-card-family:hover .product-thumb img,
.product-card-family:focus-within .product-thumb img {
  transform: translateY(-22px) translateZ(34px) rotateY(-16deg) rotateX(10deg)
    scale(1.24);
  filter: drop-shadow(0 26px 22px rgba(4, 65, 98, 0.34));
}

.product-card-small p,
.product-card-family p {
  line-height: 1.45;
}

.product-card-small p:not(.product-size),
.product-card-family p:not(.product-size) {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.product-card-small h3,
.product-card-small .product-size,
.product-card-small p,
.product-card-small .product-badge,
.product-card-family h3,
.product-card-family .product-size,
.product-card-family p,
.product-card-family .product-badge {
  padding-inline: 4px;
}

.product-size {
  color: #0a87c9;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-soft);
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 168, 106, 0.12);
  border: 1px solid rgba(18, 168, 106, 0.38);
  color: #0c7a4a;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-card-soon {
  opacity: 0.92;
}

.product-badge-soon {
  background: rgba(220, 154, 22, 0.14);
  border: 1px solid rgba(220, 154, 22, 0.44);
  color: #8b5f0d;
}

@keyframes water-flow {
  0% {
    transform: translateY(3%) rotate(8deg) scale(1);
  }
  50% {
    transform: translateY(-3%) rotate(-5deg) scale(1.03);
  }
  100% {
    transform: translateY(3%) rotate(8deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card::before,
  .product-card::after {
    transition: none;
    animation: none;
  }
}

.products-grid[style] {
  margin-top: 34px !important;
}

.contact {
  background: linear-gradient(180deg, #edf8ff 0%, #f8fdff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: start;
}

.contact-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

.contact-content p {
  color: var(--text-soft);
}

.contact-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.contact-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.contact-item h3 {
  font-size: 0.95rem;
  color: #0a87c9;
  margin-bottom: 3px;
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(14, 90, 132, 0.08);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2f4f61;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
  margin-bottom: 14px;
  font: inherit;
  color: #204055;
  background: #fbfeff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #82cfff;
  box-shadow: 0 0 0 3px rgba(130, 207, 255, 0.22);
}

.contact-form button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  cursor: pointer;
}

.footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 19, 34, 0.86) 0%,
    rgba(0, 19, 34, 0.8) 40%,
    rgba(0, 19, 34, 0.72) 100%
  );
}

.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 56vh;
  background: #03111e;
  color: rgba(255, 255, 255, 0.86);
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
}

.footer-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  width: 155px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 370px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 22px;
}

.footer-links-grid h4 {
  font-size: 1rem;
  color: #c5ecff;
  margin-bottom: 10px;
}

.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li {
  margin-bottom: 8px;
}

.footer-links-grid a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.25s ease;
}

.footer-links-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 15px 18px 18px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .floating-navbar {
    top: 14px;
    width: min(100%, calc(100% - 20px));
  }

  .nav-container {
    gap: 14px;
    padding: 12px 16px 12px 12px;
  }

  .brand-logo {
    width: 116px;
    height: auto;
  }

  .hero-content {
    width: min(760px, 94%);
    padding-top: 14px;
  }

  .hero-logo {
    width: min(360px, 72vw);
  }

  .section-padding {
    padding: 76px 0;
  }
}

@media (max-width: 850px) {
  .nav-links {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
  }

  .cta-btn {
    font-size: 0.86rem;
    padding: 9px 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-image-secondary {
    transform: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .product-thumb {
    height: 190px;
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 28px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 92vh;
    padding: 86px 0 22px;
  }

  .hero-content {
    width: min(680px, 94%);
    padding-top: 28px;
  }

  .hero-logo {
    width: min(300px, 72vw);
    margin-bottom: 8px;
  }

  .hero-tag {
    letter-spacing: 2px;
    font-size: 0.76rem;
  }

  .hero-content h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .hero-content p {
    font-size: clamp(0.88rem, 2.8vw, 0.96rem);
    margin-bottom: 18px;
  }

  .hero-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .section-padding {
    padding: 64px 0;
  }

  .section-title,
  .about-content h2,
  .contact-content h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
}

@media (max-width: 560px) {
  .floating-navbar {
    top: 10px;
    width: calc(100% - 14px);
  }

  .nav-container {
    border-radius: 18px;
    padding: 10px 12px 10px 10px;
    gap: 10px;
  }

  .brand-logo {
    width: 104px;
  }

  .cta-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .hero-content {
    width: 94%;
    padding-top: 8px;
  }

  .hero-logo {
    width: min(255px, 74vw);
  }

  .hero-tag {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: clamp(1.3rem, 7.4vw, 1.75rem);
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .product-card {
    padding: 20px;
  }

  .product-thumb {
    height: 165px;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-logo-img {
    width: 134px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}
