:root {
  --navy-950: #07111f;
  --navy-900: #0b1d33;
  --navy-800: #123055;
  --gold-500: #c8a95a;
  --sky-500: #4ea8de;
  --slate-100: #eef2f7;
  --slate-200: #dde5ef;
  --slate-700: #4b5b70;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 168, 222, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(200, 169, 90, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 45%, #f8fafc 100%);
  color: #0f172a;
}

.font-display {
  font-family: 'Montserrat', sans-serif;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.section-kicker {
  letter-spacing: 0.18em;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.hero-grid {
  background-image:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(18, 48, 85, 0.82)),
    url('https://images.unsplash.com/photo-1529486364198-b0d4f66e5a2e?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
}

.hero-visual {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.18)),
    var(--image);
  background-size: cover;
  background-position: center;
}

.brand-badge {
  letter-spacing: 0.22em;
}

.fade-up {
  animation: fadeUp 700ms ease both;
}

.fade-up-delay-1 { animation-delay: 100ms; }
.fade-up-delay-2 { animation-delay: 200ms; }
.fade-up-delay-3 { animation-delay: 300ms; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floaty {
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.service-card,
.gallery-item,
.contact-card,
.info-card,
.chat-window,
.chat-toggle,
.whatsapp-fab {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}

.gallery-overlay {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.05), rgba(7, 17, 31, 0.78));
}

.chat-panel {
  max-height: min(72vh, 520px);
}

.chat-message.bot {
  background: #eff6ff;
  color: #0f172a;
}

.chat-message.user {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white;
}

.no-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.no-scrollbar {
  scrollbar-width: none;
}

.input-focus:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(78, 168, 222, 0.12);
}

.modal-backdrop {
  background: rgba(7, 17, 31, 0.85);
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(78, 168, 222, 0.12), transparent 26%),
      radial-gradient(circle at top right, rgba(200, 169, 90, 0.1), transparent 28%),
      linear-gradient(180deg, #f8fbfe 0%, #eef3f8 42%, #f8fafc 100%);
  }

  .section-kicker {
    letter-spacing: 0.14em;
  }

  .hero-grid {
    background-position: center top;
  }

  .hero-grid > div {
    gap: 2rem;
  }

  .hero-grid h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
    line-height: 1.02;
  }

  .hero-visual-wrap {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-grid .hero-visual {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 10rem !important;
    border-radius: 1.35rem;
  }

  .hero-grid .hero-visual:nth-of-type(3) {
    grid-column: 1 / -1;
    height: 11.5rem !important;
  }

  .glass-panel.floaty {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 0.25rem;
    grid-column: 1 / -1;
  }

  .service-card,
  .info-card,
  .contact-card,
  .gallery-item {
    border-radius: 1.5rem;
  }

  .chat-toggle,
  .whatsapp-fab {
    padding: 0.85rem 1rem;
  }

  .chat-toggle span:last-child,
  .whatsapp-fab span {
    font-size: 0.8rem;
  }

  [data-chatbot-window] {
    width: min(94vw, 380px);
  }
}

@media (max-width: 480px) {
  .hero-grid {
    min-height: auto;
  }

  .hero-grid > div {
    gap: 2rem;
  }

  .chat-panel {
    max-height: 74vh;
  }
}

@media (max-width: 420px) {
  .hero-visual-wrap {
    grid-template-columns: 1fr;
  }

  .hero-grid .hero-visual,
  .hero-grid .hero-visual:nth-of-type(3) {
    height: 9.75rem !important;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    background-attachment: fixed;
  }
}
