.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 159, 28, 0.45), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(120, 146, 98, 0.35), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(142, 197, 252, 0.25), transparent 60%);
  animation: floatAnimation 20s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33% { transform: scale(1.05) rotate(1deg); }
  66% { transform: scale(0.98) rotate(-1deg); }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: multiply;
  animation: zoomAnimation 25s ease-in-out infinite alternate;
}

@keyframes zoomAnimation {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.nav-link {
  position: relative;
  font-family: "Baloo 2", cursive;
  color: #5C3A2E;
  transition: color 0.2s ease-in-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ee903c, #F3722C);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ee903c;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee903c, #F3722C);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(243, 114, 44, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 45px rgba(243, 114, 44, 0.35);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px dashed rgba(92, 58, 46, 0.4);
  color: #5C3A2E;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cta-secondary:hover,
.cta-secondary:focus {
  border-color: rgba(92, 58, 46, 0.7);
  background: rgba(255, 244, 230, 0.6);
}

.cta-link {
  font-weight: 600;
  color: #ee903c;
  transition: color 0.2s ease;
}

.cta-link:hover,
.cta-link:focus {
  color: #F3722C;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section-content {
  max-width: 1040px;
  margin: 0 auto;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-family: "Baloo 2", cursive;
  font-size: 0.925rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(92, 58, 46, 0.65);
}

.section-title {
  margin-top: 1.5rem;
  font-family: "Baloo 2", cursive;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: #5C3A2E;
}

.section-lead {
  margin-top: 1rem;
  color: rgba(92, 58, 46, 0.75);
}

.service-card,
.product-card,
.alfons-panel,
.contact-card,
.contact-form {
  background: linear-gradient(145deg, #ffffff, #fffdf8);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(92, 58, 46, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(92, 58, 46, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
}

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

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 159, 28, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
}

.service-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.5rem;
  color: #5C3A2E;
}

.service-desc {
  color: rgba(92, 58, 46, 0.75);
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  color: #5C3A2E;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.service-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.service-link:hover,
.service-link:focus {
  color: #ee903c;
}

.service-link:hover::after,
.service-link:focus::after {
  transform: translateX(4px);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-family: "Baloo 2", cursive;
  font-size: 1.45rem;
  color: #5C3A2E;
}

.product-desc {
  color: rgba(92, 58, 46, 0.75);
}

.product-link {
  font-weight: 600;
  color: #F3722C;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.product-link::after {
  content: "↗";
  font-size: 0.9rem;
}

.product-link:hover,
.product-link:focus {
  color: #ee903c;
}

.alfons-card {
  padding: 2.5rem;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 244, 230, 0.98), rgba(255, 255, 255, 0.95)),
              linear-gradient(135deg, rgba(142, 197, 252, 0.1), transparent);
  box-shadow: 0 25px 60px rgba(92, 58, 46, 0.15),
              0 10px 30px rgba(255, 159, 28, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(92, 58, 46, 0.06);
  position: relative;
  overflow: hidden;
}

.alfons-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(120, 146, 98, 0.05) 0%, transparent 60%);
  animation: floatAnimation 15s ease-in-out infinite;
}

.alfons-panel {
  position: relative;
  overflow: hidden;
}

.alfons-panel::after {
  content: "🏠";
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 100px;
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
}

.alfons-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 36px;
  background: linear-gradient(120deg, rgba(255, 244, 230, 0.85), rgba(142, 197, 252, 0.35));
  box-shadow: 0 22px 50px rgba(92, 58, 46, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "📞";
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 60px;
  opacity: 0.1;
  transform: rotate(-10deg);
}

#contact-form,
.contact-form {
  background: rgba(255, 255, 255, 0.95);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #5C3A2E;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(92, 58, 46, 0.15);
  background: rgba(255, 253, 248, 0.9);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input:hover {
  border-color: rgba(92, 58, 46, 0.25);
  background: white;
}

.input:focus {
  border-color: #ee903c;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.15);
  outline: none;
}

.contact-link {
  color: #F3722C;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #ee903c;
}

.footer-link {
  position: relative;
  padding-bottom: 4px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #fff;
}

.footer-link:hover::after,
.footer-link:focus::after {
  transform: scaleX(1);
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #ee903c;
  color: #fff;
  font-size: 1.5rem;
  line-height: 3rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(255, 159, 28, 0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-open #nav-links {
  display: flex;
}

.nav-open #nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-open #nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open #nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}


@media (max-width: 1023px) {
  #nav-links {
    position: absolute;
    top: calc(100% + 1rem);
    right: 1rem;
    background: rgba(255, 253, 248, 0.95);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(92, 58, 46, 0.12);
  }

  .nav-link::after {
    display: none;
  }

  .alfons-banner {
    text-align: center;
    align-items: center;
  }

}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-content {
    max-width: 100%;
  }

  .service-card,
  .product-card,
  .alfons-panel,
  .contact-card,
  .contact-form {
    border-radius: 22px;
  }


  .product-image {
    height: 200px;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

body {
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

#navbar {
  top: 32px;
}

#mobile-menu {
  margin-top: 0;
  padding-top: 0;
  top: auto;
}

.alfons-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ee903c 0%, #F3722C 100%);
  border-radius: 2px;
}

.hero-section-height {
  min-height: calc(100vh - 6rem);
}

.hero-content-height {
  min-height: calc(100vh - 20rem);
}

@media (min-width: 640px) {
  .hero-content-height {
    min-height: calc(100vh - 16rem);
  }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-element {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.alfons-card,
.alfons-panel,
.alfons-banner {
  animation: slideInFromRight 0.8s ease-out backwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.product-card:hover,
.alfons-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(92, 58, 46, 0.2),
              0 10px 30px rgba(255, 159, 28, 0.15);
}

.logo-max-width {
  max-width: 100px;
}

.img-max-full {
  max-width: 100%;
}

.icon-8xl {
  font-size: 8rem;
}
