/* Core Global Theme Stylesheet
   File: assets/css/style.css */

:root {
  --red: #e11d2e;
  --ink: #0a0a0c;
  --ink2: #14141a;
  --paper: #f4f4f6;
  --mut: #9a9aa6;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Safe skip link that hides off-screen until Tab-focused */
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  font-weight: 700;
  z-index: 999;
  border-radius: 6px;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 92%); margin: auto; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; }
h1 em { color: var(--red); font-style: normal; display: block; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 1rem; }

.tag {
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .8rem;
  display: flex;
  gap: .6rem;
  align-items: center;
}
.tag:before { content: ""; width: 28px; height: 3px; background: var(--red); }
.muted { color: var(--mut); }
.lead { color: #d4d4dc; max-width: 46ch; margin: 1.2rem 0 1.6rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff2a3d; }
.btn-ghost { border: 1px solid #ffffff55; }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Header Navigation */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); transition: box-shadow .3s; }
.hdr.on { box-shadow: 0 4px 24px #0004; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 900; letter-spacing: .04em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--red); color: #fff; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: .88rem; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--red); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--ink); margin: 6px 8px; }

/* Hero Slider */
.hero { background: radial-gradient(80% 90% at 75% 40%, #5a0d18 0, var(--ink) 65%); overflow: hidden; padding: clamp(2rem, 6vw, 5rem) 0; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; color: var(--mut); font-size: .8rem; }
.stage { position: relative; height: clamp(300px, 42vw, 480px); perspective: 1400px; transform-style: preserve-3d; }

.slide {
  position: absolute;
  inset: 6% 14%;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  border: 1px solid #ffffff30;
  box-shadow: 0 30px 80px #000a;
  opacity: 0;
  pointer-events: none;
  background-color: #161822;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .35s ease-out;
  transform: translateZ(-400px) scale(.6);
}
.slide[data-pos="0"] { opacity: 1; pointer-events: auto; transform: rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)); }
.slide[data-pos="1"] { opacity: .65; transform: translateX(62%) rotateY(-38deg) translateZ(-160px) scale(.82); }
.slide[data-pos="-1"] { opacity: .65; transform: translateX(-62%) rotateY(38deg) translateZ(-160px) scale(.82); }
.slide figcaption { display: grid; text-shadow: 0 2px 12px #000; }
.slide strong { font-size: 1.4rem; }
.slide span { color: #e6e6ee; font-size: .9rem; }

.ctrl { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; align-items: center; font-size: .85rem; }
.ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff6; background: #0008; color: #fff; font-size: 1.4rem; cursor: pointer; }
.ctrl button:hover { background: var(--red); }

/* SVG Bounds Protection */
svg { max-width: 100%; height: auto; }

/* General Strip & Sections */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.tile { min-height: 220px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; transition: filter .3s; }
.tile:hover { filter: brightness(1.25); }
.tile h2 { font-size: 1.15rem; margin: 0; }
.tile p { font-size: .82rem; color: #e0e0e8; }

.sec { padding: clamp(3rem, 7vw, 6rem) 0; }
.light { background: var(--paper); color: var(--ink); }
.alt { background: var(--ink2); }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.two p { margin-bottom: 1.4rem; max-width: 50ch; }

.stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.stats dt { font-size: 2rem; font-weight: 800; color: var(--red); }
.stats dt:after { content: "+"; }
.stats dd { font-size: .82rem; }

.map {
  aspect-ratio: 2/1;
  position: relative;
  background: radial-gradient(#c9c9d2 1.6px, transparent 2px) 0 0/12px 12px;
  -webkit-mask: radial-gradient(120% 100% at 50% 50%, #000 40%, transparent 75%);
  mask: radial-gradient(120% 100% at 50% 50%, #000 40%, transparent 75%);
}
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 2.4s infinite; }
.p1 { left: 22%; top: 34%; }
.p2 { left: 48%; top: 28%; }
.p3 { left: 58%; top: 50%; animation-delay: .6s; }
.p4 { left: 76%; top: 40%; animation-delay: 1.2s; }
.p5 { left: 30%; top: 64%; animation-delay: 1.8s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #e11d2e99; } 70%, 100% { box-shadow: 0 0 0 16px #e11d2e00; } }

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { min-height: 300px; border-radius: var(--r); padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid #ffffff22; background-color: var(--ink2); transition: transform .3s; }
.card:hover { transform: translateY(-6px); }
.card.short { min-height: 200px; }
.card p { font-size: .82rem; color: #dcdce4; }

.pcard { background: #fff; border-radius: var(--r); padding: 1rem; box-shadow: 0 8px 30px #0001; transition: transform .3s; }
.pcard:hover { transform: translateY(-6px); }
.pimg { aspect-ratio: 16/10; border-radius: 10px; margin-bottom: 1rem; overflow: hidden; background: #e5e7eb; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pcard h3 { font-size: 1rem; letter-spacing: 0; }
.pcard p { color: #666; font-size: .85rem; }

.tabs [role=tablist] { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tabs button { background: #ffffff12; color: #fff; border: 0; padding: .55rem 1rem; border-radius: 99px; cursor: pointer; font-weight: 600; }
.tabs button[aria-selected=true] { background: var(--red); }
.tabs h3 { margin-bottom: 1rem; }
.tabs li { padding: .5rem 0 .5rem 1.6rem; border-bottom: 1px solid #ffffff18; position: relative; }
.tabs li:before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

.cta { padding: 5rem 0; text-align: center; background: radial-gradient(60% 120% at 50% 120%, #8a0f1d, var(--ink)); }
.cta p { margin: .6rem 0 1.6rem; color: #d4d4dc; }
.cta .row { justify-content: center; }

.ftr { background: #fff; color: var(--ink); padding-top: 3rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 2rem; }
.ftr h3 { font-size: .9rem; margin-bottom: .8rem; letter-spacing: 0; }
.ftr li { font-size: .85rem; padding: .2rem 0; color: #555; }
.ftr a:hover { color: var(--red); }
.ftr .muted { font-size: .85rem; margin: .6rem 0; }
.ftr-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #ddd; margin-top: 2rem; padding: 1.2rem 0; font-size: .8rem; color: #666; }
.ftr-bot a { margin-left: 1rem; }

@media (max-width: 1000px) {
  .cards, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .stage { height: 320px; }
  .burger { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1rem 4%; display: none; box-shadow: 0 20px 30px #0003; }
  .nav.open { display: flex; }
}
@media (max-width: 520px) {
  .cards, .cards.four { grid-template-columns: 1fr; }
  .slide { inset: 6% 8%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* ==========================================================================
   Real Projects, Real Impact - 3D Showcase
   ========================================================================== */
.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.proj-more-desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}
.proj-more-desktop:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.proj-grid-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.proj-card-3d {
  display: block;
  text-decoration: none;
  perspective: 1000px;
}

.proj-card-inner {
  position: relative;
  min-height: 380px;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  background-color: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

.proj-card-3d:hover .proj-card-inner {
  box-shadow: 0 28px 50px -14px rgba(225, 29, 46, 0.45), 0 0 0 1px rgba(225, 29, 46, 0.7);
}

/* Real Image Container */
.proj-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.08) 15%, rgba(10, 10, 12, 0.88) 100%);
}

.proj-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.proj-content {
  position: relative;
  z-index: 2;
  transform: translateZ(28px);
}

.proj-pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 0.6rem;
}

.proj-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.proj-more-mobile {
  display: none;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .proj-grid-3d { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid-3d { grid-template-columns: 1fr; }
  .proj-more-desktop { display: none; }
  .proj-more-mobile { display: block; }
  .proj-card-inner { min-height: 290px; }
}