:root{
  --bg:#0b1a2b;
  --bg2:#10263e;
  --ink:#0c1220;
  --text:#eef3ff;
  --muted:rgba(238,243,255,.78);
  --card:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.12);
  --white:#ffffff;
--primary: #0f172a;

--shadow: 0 18px 60px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  background:#f4f6fb;
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin-inline:auto;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(180deg, rgba(11,26,43,.92), rgba(11,26,43,.75));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.brand{
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
}
.nav{display:flex; gap:18px}
.nav a{
  color:rgba(238,243,255,.85);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.nav a:hover{color:#fff}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  background: radial-gradient(1200px 600px at 30% 20%, rgba(47,119,255,.35), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  padding:70px 0 26px;
}
.hero__bg{
  position:absolute;
  inset:0;
  opacity:.22;
  /* Replace with a real ISO tank photo later (assets/hero-bg.jpg) */
  background-image: url("assets/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  filter:saturate(1.1) contrast(1.05);
  pointer-events:none;
}
.hero__inner{position:relative}
.hero h1{
  margin:0;
  font-size: clamp(32px, 5vw, 54px);
  line-height:1.08;
  text-align:center;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero__sub{
  margin:18px auto 0;
  max-width:820px;
  text-align:center;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}

/* CTA */
/* CTA */
.hero__cta{
  margin-top:26px;
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
  transition: all .2s ease;
  cursor:pointer;
}

/* Primary (NAVY) */
.btn-primary{
  background:#1E3A5F;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.btn-primary:hover{
  background:#274B78;
  transform:translateY(-2px);
  box-shadow:0 14px 35px rgba(0,0,0,.30);
}

/* Outline / subtle */
.btn--ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.30);
  color:#ffffff;
  box-shadow:none;
}

.btn--ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}

/* Dark button */
.btn--dark{
  background:rgba(8,14,24,.75);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
}

.btn--dark:hover{
  background:rgba(8,14,24,.88);
  transform: translateY(-2px);
}

/* Header/nav button variant */
.btn--nav{
  padding:10px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(238,243,255,.92);
  box-shadow:none;
}

.btn--nav:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}

.btn:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(39,75,120,.30);
}

.btn:active{ transform: translateY(0); }

/* Showcase */
.showcase{
  margin:36px auto 0;
  display:grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap:18px;
  align-items:end;
  max-width:1050px;
}
.showcase__item{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.showcase__item img{
  width:100%;
  display:block;
  aspect-ratio: 16/10;
  object-fit:cover;
  filter: contrast(1.03) saturate(1.02);
}
.showcase__item--tiltL{transform: rotate(-2.5deg) translateY(10px)}
.showcase__item--tiltR{transform: rotate(2.5deg) translateY(10px)}
.showcase__item--center{transform: translateY(0)}

/* Triple cards */
.triple{
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.triple__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  padding:26px 0;
}
.card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:18px 18px 16px;
}
.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0; color:rgba(0,0,0,.72); line-height:1.5}

/* Sections */
.section{padding:56px 0}
.section--light{background:#ffffff; border-top:1px solid rgba(0,0,0,.06)}
.section__head{margin-bottom:20px}
.section__head h2{margin:0 0 8px; font-size:28px}
.section__head p{margin:0; color:rgba(0,0,0,.68)}

/* Projects */
.projects{display:grid; gap:18px}
.project{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.project__meta h3{margin:0 0 8px}
.project__meta p{margin:0 0 12px; color:rgba(0,0,0,.72); line-height:1.55}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px}
.chips span{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#f1f4ff;
  border:1px solid rgba(47,119,255,.15);
}
.link{color:var(--primary); font-weight:800; text-decoration:none}
.link:hover{text-decoration:underline}

.project__thumb{
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb{
  width:100%;
  border-radius:14px;
  border:1px dashed rgba(0,0,0,.18);
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  display:grid;
  place-items:center;
  color:rgba(0,0,0,.55);
  font-weight:700;
  min-height:150px;
}

/* About */
.about{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:center;
}
.about p{color:rgba(0,0,0,.72); line-height:1.6}
.muted{color:rgba(0,0,0,.55)}
.about__cta{display:flex; gap:12px; justify-content:flex-end; flex-wrap:wrap}

/* Contact */
.contact{display:flex; gap:12px; flex-wrap:wrap}
.contact__item{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  text-decoration:none;
  color:#0c1220;
  font-weight:700;
}
.contact__item:hover{border-color:rgba(47,119,255,.35)}

/* Footer */
.footer{
  padding:18px 0;
  background:#0b1220;
  color:rgba(255,255,255,.85);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.footer .muted{color:rgba(255,255,255,.6)}

/* Responsive */
@media (max-width: 900px){
  .showcase{grid-template-columns:1fr; max-width:680px}
  .showcase__item--tiltL, .showcase__item--tiltR{transform:none}
  .triple__grid{grid-template-columns:1fr}
  .project{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .about__cta{justify-content:flex-start}
  .nav{gap:12px}
}

.hero__eyebrow {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.2s ease;
}

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

.pdf-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pdf-modal-content{
  width: min(1000px, 90vw);
  height: 85vh;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.pdf-close{
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

#pdfViewer{
  width: 100%;
  height: 100%;
  border: none;
}

.execution-diagram{
  height: 220px;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.execution-diagram:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}

.diagram-text{
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.arrow{
  opacity: 0.4;
  font-size: 18px;
}


.project{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.project__meta,
.project__thumb{
  min-width: 0;
}

/* Fix AE diagram sizing */
.project__thumb a {
  display: block;
  width: 100%;
}

.execution-diagram {
  width: 100%;
  height: 260px;
  border-radius: 18px;
}

.kpi-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-mockup:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.kpi-mockup{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  transform: none;                 /* 👈 makes it NOT crooked */
  transition: transform .25s ease, box-shadow .25s ease;
}

.thumblink:hover .kpi-mockup{
  transform: translateY(-6px);     /* hover lift only */
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

.project__thumb{
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumblink{
  width: 100%;
}

.project__thumb img.project-image {
  object-fit: contain;
  background: #fff;
}