html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Brand logo (PNG on white chip — works on dark navbar) */
.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-logo-link:hover .site-logo-wrap {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.site-logo-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

#navbar.scrolled nav {
  background-color: rgba(15, 42, 74, 0.98);
  box-shadow: 0 8px 20px rgba(9, 51, 241, 0.687);
}

/* Ambient background orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: #0e9f9a;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: #f97316;
  bottom: 20%;
  right: -5%;
  animation-delay: -6s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: #0f2a4a;
  top: 50%;
  right: 20%;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

/* Hero */
.hero-kenburns {
  animation: kenburns 28s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.12);
  }
}

.hero-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-title-line {
  animation: title-in 0.9s ease forwards;
  opacity: 0;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title-accent {
  display: inline-block;
  animation: title-in 0.9s ease forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

.hero-title-line:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-chip {
  animation: chip-in 0.8s ease 0.05s forwards;
  opacity: 0;
}

@keyframes chip-in {
  to {
    opacity: 1;
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.range-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.range-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e9f9a, #0f2a4a);
  color: #fff;
  border-radius: 9999px;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(14, 159, 154, 0.25);
}

.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 42, 74, 0.12);
}

.catalogue-mockup {
  transition: transform 0.4s ease;
}

.catalogue-mockup:hover {
  transform: perspective(800px) rotateY(-2deg) translateY(-4px);
}

.float-animation {
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.catalogue-btn:hover {
  transform: translateY(-2px);
}

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

.contact-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 159, 154, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
}

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 1024px) {
  .gallery-item {
    height: 100%;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px rgba(15, 42, 74, 0.16);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  border-radius: 0.9rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background-color: #fff;
  color: #0f2a4a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.form-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0e9f9a;
  box-shadow: 0 0 0 4px rgba(14, 159, 154, 0.15);
}

.error-text {
  min-height: 1.2rem;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.social-link {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: #f97316;
  border-color: #f97316;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 9999px;
  background: #0f2a4a;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 45;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0e9f9a;
  transform: translateY(-2px);
}

.product-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 42, 74, 0.12);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.product-card:hover .product-image-wrap::after {
  left: 125%;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

.product-image-wrap img {
  transition: transform 0.55s ease;
}

/* Accordion (uses Tailwind `hidden` for show/hide) */
.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

/* Scroll reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
}
