html {
  scroll-behavior: smooth;
}

:root {
  --navy-950: #587a78;
  --navy-900: #6d908d;
  --navy-850: #84a8a3;
  --navy-800: #9fc0bb;
  --slate-100: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --accent: #cb937d;
  --accent-dark: #b77d67;
  --logo-green: #22c55e;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 155, 150, 0.16), transparent 32%),
    linear-gradient(180deg, #f5ede6 0%, #f7f1eb 55%, #efe3d8 100%);
  color: #183133;
}

body.is-loading {
  overflow: hidden;
}

.industrial-grid {
  background-image:
    linear-gradient(rgba(88, 122, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 122, 120, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-shell,
.page-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(203, 147, 125, 0.18), transparent 18%),
    radial-gradient(circle at left center, rgba(159, 192, 187, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
}

.hero-shell::before,
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 42rem;
  height: 42rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(203, 147, 125, 0.16), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.section-panel-dark {
  background:
    linear-gradient(180deg, rgba(108, 145, 141, 0.96), rgba(133, 169, 164, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.steel-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(245, 241, 236, 0.94), rgba(227, 236, 234, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(109, 144, 141, 0.28);
  box-shadow: 0 24px 60px rgba(100, 118, 116, 0.18);
}

.steel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.section-label {
  letter-spacing: 0.26em;
  color: var(--accent);
}

.eyebrow-line::after {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 1px;
  margin-left: 0.85rem;
  vertical-align: middle;
  background: rgba(203, 147, 125, 0.78);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 40px rgba(203, 147, 125, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 50px rgba(183, 125, 103, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.surface-card {
  border-radius: 1rem;
  border: 1px solid rgba(124, 163, 159, 0.22);
  background: rgba(255, 252, 249, 0.94);
  box-shadow: 0 18px 40px rgba(111, 124, 123, 0.14);
}

.service-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(124, 163, 159, 0.18);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(247, 243, 238, 0.96));
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(111, 124, 123, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(203, 147, 125, 0.38);
  box-shadow: 0 26px 54px rgba(111, 124, 123, 0.2);
}

.service-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-image {
  transform: scale(1.04);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.service-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.65;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: var(--accent);
}

.metric-card,
.info-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.project-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(6, 17, 31, 0.92), rgba(21, 45, 70, 0.78)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.02));
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
}

.project-visual::before {
  top: 14%;
  left: -10%;
  width: 140%;
  height: 1px;
  background: rgba(226, 232, 240, 0.22);
  box-shadow:
    0 46px 0 rgba(226, 232, 240, 0.08),
    0 92px 0 rgba(226, 232, 240, 0.12),
    0 138px 0 rgba(226, 232, 240, 0.08);
  transform: rotate(-8deg);
}

.project-visual::after {
  inset: 16% 10%;
  border: 1px solid rgba(226, 232, 240, 0.18);
}

.project-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px rgba(111, 124, 123, 0.18);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 15%, rgba(2, 6, 23, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-visual {
  transform: scale(1.03);
}

.project-card .project-visual {
  transition: transform 0.4s ease;
}

.project-image {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.image-frame {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 22px 50px rgba(111, 124, 123, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.38rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  box-shadow:
    0 14px 30px rgba(111, 124, 123, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(203, 147, 125, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(243, 236, 229, 0.98), rgba(221, 236, 234, 0.98));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo-wrap {
  perspective: 1200px;
}

.loading-logo {
  width: 8rem;
  height: 8rem;
  padding: 0.55rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.45);
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(111, 124, 123, 0.22));
  box-shadow:
    0 20px 60px rgba(111, 124, 123, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: logoFlip 1.8s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes logoFlip {
  0% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(90deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  75% {
    transform: rotateY(270deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.list-chip {
  border-radius: 9999px;
  border: 1px solid rgba(111, 155, 150, 0.18);
  background: rgba(255, 250, 246, 0.92);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-hero {
  animation: fadeHero 1s ease both;
}

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

input,
textarea {
  border-radius: 0.9rem;
}

input:focus,
textarea:focus {
  border-color: rgba(203, 147, 125, 0.92) !important;
  box-shadow: 0 0 0 4px rgba(203, 147, 125, 0.14);
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
