/* ============================================================
   E.T. Technology Enterprises — core stylesheet
   Sleek dark / techy theme. Brand palette: red + black.
   ============================================================ */

:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --surface: #121419;
  --surface-2: #171a21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --text-muted: #9aa1ac;
  --text-dim: #6c7480;
  --red: #ed1c24;
  --red-2: #ff4d52;
  --red-glow: rgba(237, 28, 36, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(800px 500px at 80% -5%, rgba(237, 28, 36, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(237, 28, 36, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
/* Faint grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 90%);
  pointer-events: none;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 0; }
.section-sub { color: var(--text-muted); max-width: 620px; margin-top: 14px; font-size: 1.02rem; }
.text-grad {
  background: linear-gradient(100deg, #fff 10%, var(--red-2) 60%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.96rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(100deg, var(--red), var(--red-2));
  color: #fff; box-shadow: 0 8px 28px -8px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--red-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(8, 9, 11, 0.82); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--red-2); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-head); font-size: 0.95rem; color: var(--text-muted);
  padding: 9px 16px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.hero-inner { max-width: 820px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 22px 0 0; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-muted); margin-top: 24px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 64px; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
.stat .label { color: var(--text-dim); font-size: 0.88rem; letter-spacing: 0.04em; }

.hero-mark {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 520px); opacity: 0.10; pointer-events: none;
  filter: drop-shadow(0 0 60px var(--red-glow));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-50%) translateY(0); } 50% { transform: translateY(-50%) translateY(-18px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { margin-bottom: 54px; }

/* ---------- Capability cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 22px 50px -28px rgba(0,0,0,0.8); }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(237, 28, 36, 0.12); border: 1px solid rgba(237, 28, 36, 0.3); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; color: var(--red-2); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  font-family: var(--font-head); font-size: 0.86rem; color: var(--text-muted);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02); cursor: pointer; transition: all 0.2s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { color: #fff; background: linear-gradient(100deg, var(--red), var(--red-2)); border-color: transparent; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
  opacity: 0; transform: translateY(18px);
}
.proj.in { opacity: 1; transform: none; }
.proj:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 28px 60px -30px rgba(0,0,0,0.85); }
.proj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c0d10; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj:hover .proj-media img { transform: scale(1.06); }
.proj-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7,8,10,0.85));
}
.proj-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; color: #fff;
  background: rgba(7,8,10,0.55); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proj-body { padding: 20px 22px 24px; }
.proj-body h3 { font-size: 1.22rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proj-body h3 .arrow { color: var(--red-2); transition: transform 0.3s var(--ease); }
.proj:hover .proj-body h3 .arrow { transform: translate(4px, -4px); }
.proj-body p {
  color: var(--text-muted); font-size: 0.94rem; margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 5, 7, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 620px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden;
  max-height: 88vh; display: flex; flex-direction: column; animation: pop 0.3s var(--ease);
}
@keyframes pop { from { transform: scale(0.95) translateY(10px); opacity: 0; } }
.modal-media { aspect-ratio: 16 / 9; background: #0c0d10; position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(7,8,10,0.6); border: 1px solid var(--border-strong); color: #fff;
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
}
.modal-close:hover { background: var(--red); border-color: var(--red); }
.modal-body { padding: 28px; overflow-y: auto; }
.modal-body .proj-tag { position: static; display: inline-block; margin-bottom: 14px; }
.modal-body h2 { font-size: 1.7rem; }
.modal-body p { color: var(--text-muted); margin-top: 14px; line-height: 1.7; }
.modal-body .visit { margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(40px, 6vw, 70px);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(237,28,36,0.18), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 16px auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-head); }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 15px; font-family: var(--font-body); font-size: 0.96rem; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.contact-detail .ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(237,28,36,0.12); border: 1px solid rgba(237,28,36,0.3); }
.contact-detail .ico svg { width: 20px; height: 20px; color: var(--red-2); }
.contact-detail .label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-detail a, .contact-detail span { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 50px 0 36px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); padding: 5px 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--red-2); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-dim); font-size: 0.86rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,9,11,0.97); border-bottom: 1px solid var(--border);
    padding: 14px 24px 24px; transform: translateY(-130%); transition: transform 0.35s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: inline-flex; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-mark { opacity: 0.06; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 26px; }
  .container { padding: 0 18px; }
}
