/* ============================================================
   AK Engineering Services — Main Stylesheet
   ============================================================ */

:root {
  --gold:        #E8920A;
  --gold2:       #F5B830;
  --gold-dim:    rgba(232,146,10,0.15);
  --dark:        #08090D;
  --dark2:       #0F1118;
  --dark3:       #151820;
  --slate:       #1A1E2A;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(232,146,10,0.25);
  --text:        #CDD0DA;
  --muted:       #6E7485;
  --white:       #FFFFFF;
  --green:       #22C55E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5rem;
  background: rgba(8,9,13,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 0.5rem 1.4rem; border: 1px solid var(--gold); color: var(--gold);
  border-radius: 3px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: all 0.22s; background: transparent;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

/* ── HERO ── */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: var(--dark); overflow: hidden;
}
.hero-glow {
  position: absolute; right: -10%; top: 5%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,146,10,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute; left: -15%; bottom: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,146,10,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.hero-lines {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 1px, transparent 0, transparent 64px),
    repeating-linear-gradient(0deg,  var(--gold) 0, var(--gold) 1px, transparent 0, transparent 64px);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 0 5rem; padding-top: 5rem;
  display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-gold); border-radius: 2px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
  animation: fadeUp 0.7s ease both;
}
.dot {
  width: 5px; height: 5px; background: var(--gold);
  border-radius: 50%; animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700; line-height: 1.08; color: var(--white);
  animation: fadeUp 0.7s 0.12s ease both;
}
h1 em { font-style: italic; color: var(--gold); }

.hero-desc {
  margin-top: 1.6rem; font-size: 1rem; font-weight: 300;
  line-height: 1.8; color: var(--muted); max-width: 520px;
  animation: fadeUp 0.7s 0.24s ease both;
}
.hero-btns {
  margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.36s ease both;
}
.btn-gold {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--dark); border: none; border-radius: 3px;
  font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer; text-decoration: none;
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 0.45rem;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,146,10,0.35); }
.btn-ghost {
  padding: 0.8rem 2rem; background: transparent;
  border: 1px solid var(--border); color: var(--text); border-radius: 3px;
  font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.22s;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s 0.48s ease both; flex-wrap: wrap;
}
.stat-val {
  font-family: 'Playfair Display', serif; font-size: 2.4rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-lbl {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

/* Hero Card */
.hero-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hc-top {
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.hc-top img { height: 48px; width: auto; }
.hc-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hc-name { font-size: 1rem; font-weight: 600; color: var(--white); margin-top: 0.15rem; }
.hc-body { padding: 0.5rem 2rem 1.5rem; }
.hc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.hc-row:last-child { border-bottom: none; }
.hc-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.hc-value { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.hc-value.gold { color: var(--gold); }
.hc-value a { color: var(--gold); text-decoration: none; }
.status-dot {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; color: var(--green);
}
.status-dot::before {
  content: ''; width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; display: inline-block; animation: blink 2s infinite;
}

/* ── SECTION BASE ── */
.sec { padding: 7rem 5rem; }
.sec-inner { max-width: 1240px; margin: 0 auto; }
.label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.label::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700;
  line-height: 1.1; color: var(--white);
}
h2 em { font-style: italic; color: var(--gold); }

/* ── ABOUT ── */
#about { background: var(--dark2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 3.5rem; }
.about-body p { font-size: 0.95rem; font-weight: 300; line-height: 1.9; color: var(--muted); margin-bottom: 1.1rem; }
.about-pillars { display: flex; flex-direction: column; gap: 0.85rem; }
.pillar {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 5px; transition: all 0.25s;
}
.pillar:hover { border-color: var(--border-gold); background: var(--gold-dim); }
.pillar-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 5px;
  background: var(--gold-dim); display: flex; align-items: center;
  justify-content: center; font-size: 0.95rem;
}
.pillar-title { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 0.15rem; }
.pillar-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ── SERVICES ── */
#services { background: var(--dark); }
.svc-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.svc-header p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; font-weight: 300; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.svc-card {
  padding: 2.2rem; background: var(--dark2);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; transition: background 0.25s;
}
.svc-card:nth-child(3n) { border-right: none; }
.svc-card:nth-child(n+4) { border-bottom: none; }
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.svc-card:hover { background: var(--dark3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-n {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: rgba(232,146,10,0.1); line-height: 1; margin-bottom: 1.2rem;
}
.svc-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.svc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.75; font-weight: 300; }
.svc-chip {
  display: inline-block; margin-top: 1.2rem; padding: 0.22rem 0.65rem;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  border-radius: 2px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}

/* ── PRODUCTS ── */
#products { background: var(--dark3); }
.prod-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; margin-top: 3.5rem; }
.prod-side p { font-size: 0.92rem; color: var(--muted); line-height: 1.85; font-weight: 300; margin-top: 0.9rem; }
.prod-chips { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.38rem 0.85rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 0.78rem; color: var(--muted); transition: all 0.2s; cursor: default;
}
.chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.prod-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.prod-cat {
  padding: 1.6rem; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: 5px; transition: border-color 0.25s;
}
.prod-cat:hover { border-color: var(--border-gold); }
.pcat-title {
  font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.85rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.pcat-title::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 1px; flex-shrink: 0; }
.prod-cat ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.prod-cat li {
  font-size: 0.8rem; color: var(--muted); font-weight: 300;
  padding-left: 0.9rem; position: relative; line-height: 1.5;
}
.prod-cat li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-size: 0.85rem; }

/* ── PROJECTS ── */
#projects { background: var(--dark); }
.proj-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.proj-header p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; font-weight: 300; }
.proj-table { width: 100%; border-collapse: collapse; }
.proj-table thead th {
  text-align: left; padding: 0.85rem 1.2rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--border-gold);
}
.proj-table thead th:first-child { width: 52px; }
.proj-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.18s; }
.proj-table tbody tr:hover { background: rgba(232,146,10,0.03); }
.proj-table td { padding: 1.1rem 1.2rem; font-size: 0.83rem; vertical-align: top; line-height: 1.65; }
.proj-table td:first-child { color: var(--gold); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; }
.proj-table td:nth-child(2) { color: var(--text); font-weight: 400; }
.proj-table td:nth-child(3), .proj-table td:nth-child(4) { color: var(--muted); font-size: 0.79rem; }
.proj-badge {
  display: inline-block; margin-top: 0.3rem; padding: 0.18rem 0.55rem;
  background: var(--gold-dim); border-radius: 2px;
  font-size: 0.68rem; color: var(--gold); font-weight: 600; letter-spacing: 0.03em;
}

/* ── TEAM ── */
#team { background: var(--dark2); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
.team-card {
  background: var(--dark3); border: 1px solid var(--border); border-radius: 6px;
  padding: 2.2rem; position: relative; overflow: hidden; transition: all 0.28s;
}
.team-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.team-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; bottom: 0;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.t-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.t-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 1.1rem; line-height: 1.2; }
.t-bio { font-size: 0.83rem; color: var(--muted); line-height: 1.8; font-weight: 300; margin-bottom: 1.4rem; }
.t-points { display: flex; flex-direction: column; gap: 0.45rem; }
.t-pt { font-size: 0.79rem; color: var(--muted); line-height: 1.55; padding-left: 1rem; position: relative; }
.t-pt::before { content: '▸'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.1rem; }

/* ── WHY ── */
#why { background: var(--dark3); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 3.5rem; }
.why-card {
  padding: 1.8rem; border: 1px solid var(--border); border-radius: 5px;
  background: rgba(255,255,255,0.01); transition: all 0.25s;
}
.why-card:hover { border-color: var(--border-gold); background: var(--gold-dim); }
.why-ico { width: 44px; height: 44px; background: var(--gold-dim); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1.1rem; }
.why-title { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.why-desc { font-size: 0.81rem; color: var(--muted); line-height: 1.75; font-weight: 300; }

/* ── GREEN ── */
#green { background: var(--dark); position: relative; overflow: hidden; }
#green::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,197,94,0.05) 0%, transparent 65%);
}
.green-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.green-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.7rem; }
.green-label::before { content: ''; width: 20px; height: 1px; background: var(--green); }
.green-text p { font-size: 0.92rem; color: var(--muted); line-height: 1.85; font-weight: 300; margin-top: 0.9rem; }
.green-cards { display: flex; flex-direction: column; gap: 1rem; }
.green-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.4rem; background: rgba(34,197,94,0.04); border: 1px solid rgba(34,197,94,0.12); border-radius: 5px; }
.gc-icon { width: 38px; height: 38px; flex-shrink: 0; background: rgba(34,197,94,0.1); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.gc-title { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.gc-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ── CONTACT ── */
#contact { background: var(--dark2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; margin-top: 3.5rem; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1.4rem; }
.c-items { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.2rem; }
.c-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.c-ico { width: 34px; height: 34px; flex-shrink: 0; background: var(--gold-dim); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.c-lbl { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.c-val { font-size: 0.87rem; color: var(--text); font-weight: 400; }
.c-val a { color: var(--gold); text-decoration: none; }
.c-val a:hover { text-decoration: underline; }
.cform { display: flex; flex-direction: column; gap: 1.1rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgrp { display: flex; flex-direction: column; gap: 0.35rem; }
label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.72rem 1rem;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.88rem;
  outline: none; transition: border 0.22s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: rgba(232,146,10,0.04); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--dark2); }
.submit-btn {
  padding: 0.82rem; background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--dark); border: none; border-radius: 4px;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer; transition: all 0.22s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,146,10,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 2.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.foot-logo { display: flex; align-items: center; gap: 0.7rem; }
.foot-logo img { height: 30px; width: auto; filter: brightness(0.85); }
.foot-copy { font-size: 0.76rem; color: var(--muted); }
.foot-links { display: flex; gap: 1.8rem; list-style: none; flex-wrap: wrap; }
.foot-links a { font-size: 0.76rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fu { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fu.vis { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0.9rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .sec { padding: 5rem 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 0 1.5rem; padding-top: 7rem; }
  .hero-card, .hero-lines { display: none; }
  h1 { font-size: 2.4rem; }
  .about-grid, .svc-header, .prod-layout, .proj-header,
  .team-grid, .contact-grid, .green-grid { grid-template-columns: 1fr; gap: 2rem; }
  .svc-grid, .why-grid, .prod-cats { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  footer { flex-direction: column; padding: 2rem 1.5rem; }
  .frow { grid-template-columns: 1fr; }
}
