:root {
  --red: #E63736;
  --red-dark: #C8232C;
  --orange: #F78733;
  --orange-hover: #E0701D;
  --dark: #0F1115;
  --dark-2: #171A21;
  --gray-900: #181A1E;
  --gray-700: #4B5058;
  --gray-500: #6F7680;
  --gray-200: #E6E8EC;
  --gray-100: #F7F8FA;
  --white: #FFFFFF;
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Straight Red Crossing Line (Zero curves) with moving light pulse */
.red-cross-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(230, 55, 54, 0.28);
  overflow: hidden;
}
.red-cross-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--red), #FF8A7A, transparent);
  animation: beamSweep 4.2s linear infinite;
}
@keyframes beamSweep {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* Ambient Light Orbs */
.light-stage {
  position: relative;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: floatLight 11s ease-in-out infinite alternate;
}
.orb-orange {
  width: 480px;
  height: 480px;
  background: rgba(247, 135, 51, 0.14);
  top: -120px;
  right: -80px;
}
.orb-red {
  width: 380px;
  height: 380px;
  background: rgba(230, 55, 54, 0.09);
  bottom: -140px;
  left: -100px;
  animation-delay: -5s;
}
@keyframes floatLight {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-36px, 28px) scale(1.08); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 42px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--gray-900); }
.nav a:hover::after { width: 100%; }

/* Minimalist Prime Orange Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.55s ease;
}
.btn:hover::before { left: 130%; }

.btn-wa-minimal {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(247, 135, 51, 0.22);
}
.btn-wa-minimal:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(247, 135, 51, 0.32);
}
.btn-wa-outline {
  background: transparent;
  color: var(--orange);
  border-color: rgba(247, 135, 51, 0.55);
}
.btn-wa-outline:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-dark-minimal {
  background: var(--gray-900);
  color: var(--white);
}
.btn-dark-minimal:hover {
  background: var(--red);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--gray-900);
}

/* Hero */
.hero {
  padding: 84px 0 92px;
  background: var(--white);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.hero-kicker .straight-tick {
  width: 28px;
  height: 2px;
  background: var(--red);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin: 0 0 34px;
  font-size: 16.5px;
  color: var(--gray-700);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.hero-metrics {
  display: flex;
  gap: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-200);
}
.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric span {
  font-size: 12px;
  color: var(--gray-500);
}
.hero-media {
  position: relative;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(15, 17, 21, 0.12);
}
.hero-frame img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.hero-frame:hover img { transform: scale(1.03); }
.hero-straight-accent {
  position: absolute;
  top: 28px;
  left: -24px;
  width: 84px;
  height: 2px;
  background: var(--red);
}

/* Editorial Portfolio (Interactive List, NOT AI Cards) */
.section { padding: 96px 0; }
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
}
.kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.portfolio-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.portfolio-list {
  border-top: 1px solid var(--gray-200);
}
.portfolio-item {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 22px 14px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease;
}
.portfolio-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.portfolio-item.active::before,
.portfolio-item:hover::before { width: 100%; }
.portfolio-item.active,
.portfolio-item:hover {
  background: var(--gray-100);
}
.p-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
}
.portfolio-item.active .p-num { color: var(--red); }
.p-title {
  font-size: 17px;
  font-weight: 700;
}
.p-arrow {
  font-size: 18px;
  color: var(--gray-500);
  transition: transform 0.25s ease, color 0.25s ease;
}
.portfolio-item.active .p-arrow {
  color: var(--red);
  transform: translateX(4px);
}
.portfolio-detail {
  background: var(--gray-100);
  border-left: 2px solid var(--red);
  padding: 40px;
  position: sticky;
  top: 104px;
}
.portfolio-detail .detail-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.portfolio-detail h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
}
.portfolio-detail p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--gray-700);
}
.detail-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}
.detail-specs li::before {
  content: "— ";
  color: var(--red);
  font-weight: 700;
}

/* Light Infrastructure Section (Zero black background) */
.infra-section {
  background: var(--gray-100);
  color: var(--gray-900);
  padding: 100px 0;
}
.infra-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.infra-section p { color: var(--gray-700); font-size: 16px; }
.infra-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 24px 54px rgba(15, 17, 21, 0.1);
}
.infra-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.infra-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.infra-stat strong {
  display: block;
  font-size: 20px;
  color: var(--gray-900);
}
.infra-stat span { font-size: 13px; color: var(--gray-500); }

/* Infinite Looping Certifications Carousel (Light & Clean) */
.certs-block {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.certs-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}
.certs-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}
.certs-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--gray-500);
}
.certs-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.certs-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: certsLoop 34s linear infinite;
}
.certs-marquee:hover .certs-track {
  animation-play-state: paused;
}
@keyframes certsLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cert-item {
  flex: 0 0 185px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-item:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.06);
}
.cert-item img {
  max-height: 50px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  /* Convert pure-white transparent PNG/SVG badges into crisp Prime Charcoal #383838 */
  filter: brightness(0) opacity(0.76);
  transition: filter 0.25s ease;
}
.cert-item:hover img {
  filter: brightness(0) opacity(0.95);
}
.cert-item span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-align: center;
}

/* Blog */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}
.pill.active, .pill:hover {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-bottom: 2px solid transparent;
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-bottom-color: var(--red);
  transform: translateY(-4px);
}
.blog-thumb {
  height: 220px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 18px;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-meta {
  font-size: 11.5px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.blog-meta span.cat { color: var(--red); font-weight: 700; }
.blog-card h3 {
  margin: 0 0 10px;
  font-size: 18.5px;
  line-height: 1.32;
}
.blog-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--gray-700);
  flex: 1;
}
.read-more {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more:hover { color: var(--red); }

/* Contact */
.contact-section {
  background: var(--gray-100);
  padding: 96px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 { margin: 0 0 12px; font-size: 28px; }
.contact-info p { margin: 0 0 32px; color: var(--gray-700); }
.contact-rows {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
  border-left: 2px solid var(--red);
  padding-left: 20px;
}
.contact-row span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.contact-row a, .contact-row strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}
.contact-row a:hover { color: var(--red); }
.form-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 44px rgba(15, 17, 21, 0.05);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
}

/* Footer */
.site-footer {
  background: var(--white);
  padding: 48px 0 32px;
  border-top: 1px solid var(--gray-200);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}
.footer-brand img { height: 38px; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--gray-500); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; font-size: 13.5px; color: var(--gray-700); margin-bottom: 6px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
}

/* Minimalist Floating WhatsApp (Prime Orange) */
.wa-float-minimal {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(247, 135, 51, 0.34);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float-minimal:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  background: var(--white);
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.modal-hero { width: 100%; height: 260px; object-fit: cover; }
.modal-content { padding: 32px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-inner, .portfolio-layout, .infra-grid, .blog-grid, .contact-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .hero-straight-accent { display: none; }
}
