:root {
  --bg-color: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --font-sans: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

.text-accent {
  color: var(--accent);
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo i {
  color: var(--accent);
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* --- Eye-catching gradient button --- */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes btnGlow {
  0%,
  100% {
    box-shadow:
      0 4px 20px rgba(255, 90, 50, 0.35),
      0 0 0 0 rgba(255, 90, 50, 0);
  }

  50% {
    box-shadow:
      0 6px 28px rgba(236, 64, 122, 0.45),
      0 0 30px 2px rgba(255, 90, 50, 0.15);
  }
}

.btn-gradient {
  background: linear-gradient(135deg, #ff5a32, #ec407a, #ab47bc, #ff5a32);
  background-size: 300% 300%;
  animation:
    gradientFlow 4s ease infinite,
    btnGlow 3s ease-in-out infinite;
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.1);
}

/* --- Modal overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 52px 44px 44px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.modal-close:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5a32, #ec407a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
}

.modal-box h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 12px;
  background: #25d366;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
  font-size: 1.3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 60px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: #f0f9ff;
  color: var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- SVG Animations --- */
@keyframes uploadFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.anim-upload-arrow {
  animation: uploadFloat 2s ease-in-out infinite;
}

@keyframes scanLine {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.anim-scan-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  animation: scanLine 2.5s linear infinite;
}

@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.anim-gear {
  transform-origin: center;
  animation: gearRotate 4s linear infinite;
}

@keyframes boxDelivery {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: translateX(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(20px);
    opacity: 0;
  }
}

.anim-box-delivery {
  animation: boxDelivery 3s ease-in-out infinite;
}

.card h3 {
  font-size: 1.4rem;
}

.card p {
  color: var(--text-secondary);
}

.tech-specs {
  margin: 80px 0 100px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.tech-specs h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.spec-item {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.spec-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.spec-value {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* ===== Examples Gallery ===== */
.examples {
  margin: 0 0 100px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.examples h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 36px;
}

.gallery-container {
  position: relative;
}

/* === STATE 1: Tile Grid (default) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  transition:
    opacity 0.35s ease,
    max-height 0.5s ease;
}

.gallery-grid.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
  gap: 0;
  padding: 0;
}

.gallery-tile {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-tile:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

/* Overlay hint on tile */
.gallery-tile::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  background: rgba(15, 23, 42, 0);
  border-radius: 10px;
  transition:
    background 0.25s ease,
    opacity 0.25s ease;
  opacity: 0;
}

.gallery-tile:hover::after {
  background: rgba(15, 23, 42, 0.3);
  opacity: 1;
}

/* === STATE 2: Spotlight view (after selection) === */
.gallery-detail {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeSlideIn 0.4s ease both;
}

.gallery-detail.visible {
  display: flex;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back button */
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.gallery-back:hover {
  background: var(--bg-color);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Spotlight row: selected image + zoom */
.gallery-spotlight-row {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

.gallery-spotlight {
  position: relative;
  flex: 1;
  max-width: 540px;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: crosshair;
  background: var(--bg-color);
  transition:
    flex 0.35s ease,
    max-width 0.35s ease;
}

/* When hovering, image slides left to make room for zoom */
.gallery-spotlight-row.zooming .gallery-spotlight {
  max-width: 480px;
}

.gallery-spotlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Zoom hint icon */
.gallery-spotlight .zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
  transition: opacity 0.25s;
}

.gallery-spotlight-row.zooming .zoom-hint {
  opacity: 0;
}

/* Zoom panel */
.gallery-zoom {
  width: 0;
  height: 360px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-color);
  background-repeat: no-repeat;
  opacity: 0;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  pointer-events: none;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-spotlight-row.zooming .gallery-zoom {
  width: 360px;
  opacity: 1;
}

/* Thumbnail strip below selected */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 90px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- Navigation Buttons --- */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.4);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.gallery-spotlight:hover .gallery-nav-btn {
  opacity: 1;
}

.gallery-nav-btn:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
  left: 12px;
}

.gallery-nav-btn.next {
  right: 12px;
}

.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.18);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .gallery-spotlight-row {
    flex-direction: column-reverse;
    /* Zoom panel on top */
    align-items: center;
  }

  .gallery-spotlight-row.zooming .gallery-zoom {
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
    /* Space between zoom and image */
  }

  .gallery-nav-btn {
    opacity: 1;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .nav {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-thumb {
    width: 64px;
    height: 48px;
  }
}

.footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- SEO Tags --- */
.seo-tag {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}

.seo-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-2px);
}
