/* NeoVolt — Dark Navy + Electric Yellow. Plain CSS, no build step. */

:root {
  --bg: hsl(220 30% 7%);
  --fg: hsl(210 20% 94%);
  --card: hsl(220 28% 10%);
  --surface: hsl(220 25% 14%);
  --secondary: hsl(220 25% 15%);
  --muted: hsl(215 15% 55%);
  --border: hsl(220 20% 18%);
  --electric: hsl(47 100% 48%);
  --electric-glow: hsl(47 100% 60%);
  --electric-10: hsl(47 100% 48% / .10);
  --electric-15: hsl(47 100% 48% / .15);
  --electric-20: hsl(47 100% 48% / .20);
  --electric-30: hsl(47 100% 48% / .30);
  --electric-40: hsl(47 100% 48% / .40);
  --nav-h: 72px;
  --radius: .375rem;
  --font: sans-serif; /* matches the live site, whose Barlow import never loaded */
  --font-display: sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 3rem; height: 3rem; }
.icon-fill { fill: currentColor; }

.wrap { max-width: 80rem; margin: 0 auto; }
.section { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .section { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .section { padding-left: 5rem; padding-right: 5rem; } }
.bg-card { background: var(--card); }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.muted { color: var(--muted); }
.electric { color: var(--electric); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--electric); color: var(--bg); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(220 30% 7% / .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-bar { height: var(--nav-h); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand-mark {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
  background: var(--electric); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px hsl(47 100% 48% / .35), 0 0 60px hsl(47 100% 48% / .1);
  transition: transform .2s;
}
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 2rem; letter-spacing: -.025em; }
.brand-name .cap { font-size: 1.6rem; }
.brand-name .volt { color: var(--electric); }

.nav-desktop { display: none; align-items: center; gap: .25rem; }
.nav-link { padding: .5rem 1rem; border-radius: var(--radius); font-weight: 500; font-size: .875rem; letter-spacing: .025em; color: hsl(210 20% 94% / .8); transition: color .2s, background-color .2s; }
.nav-link:hover { color: var(--fg); background: var(--secondary); }
.nav-link[aria-current="page"] { color: var(--electric); background: var(--electric-10); }

.header-tools { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; align-items: center; gap: .25rem; background: var(--secondary); border-radius: 999px; padding: .125rem; }
.lang a { padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] { background: var(--electric); color: var(--bg); }

/* Mobile menu: CSS-only toggle, no JavaScript */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn { display: flex; padding: .5rem; border-radius: var(--radius); cursor: pointer; transition: background-color .2s; }
.menu-btn:hover { background: var(--secondary); }
.menu-toggle:focus-visible + .header-bar .menu-btn { outline: 2px solid var(--electric); outline-offset: 2px; }
.menu-btn .i-close { display: none; }
.menu-toggle:checked + .header-bar .i-open { display: none; }
.menu-toggle:checked + .header-bar .i-close { display: block; }
.nav-mobile { display: none; border-top: 1px solid var(--border); padding: 1rem 1.5rem; flex-direction: column; gap: .25rem; background: hsl(220 30% 7% / .96); }
.menu-toggle:checked ~ .nav-mobile { display: flex; }
.nav-mobile .nav-link { padding: .75rem 1rem; font-size: 1rem; letter-spacing: 0; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn, .nav-mobile, .menu-toggle:checked ~ .nav-mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 1.75rem; border-radius: var(--radius); font-size: 1rem; transition: all .2s; }
.btn-primary { background: var(--electric); color: var(--bg); font-weight: 700; box-shadow: 0 0 20px hsl(47 100% 48% / .35), 0 0 60px hsl(47 100% 48% / .1); }
.btn-primary:hover { background: var(--electric-glow); }
.btn-ghost { border: 1px solid var(--border); background: hsl(220 25% 15% / .4); font-weight: 600; }
.btn-ghost:hover { border-color: hsl(47 100% 48% / .5); background: var(--secondary); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: url(img/hero-bg.jpg) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, hsl(220 30% 7% / .95) 0%, hsl(220 30% 7% / .75) 50%, hsl(220 30% 7% / .3) 100%); }
.hero-inner { position: relative; padding: 8rem 1.5rem; }
@media (min-width: 768px) { .hero-inner { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .hero-inner { padding-left: 5rem; padding-right: 5rem; } }
.hero-copy { max-width: 42rem; animation: fade-up .6s ease-out both; }
.pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--electric-15); border: 1px solid var(--electric-30); border-radius: 999px; padding: .375rem 1rem; margin-bottom: 1.5rem; color: var(--electric); font-size: .875rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.pill-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--electric); animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.hero h1 { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; line-height: 1.625; color: hsl(210 20% 94% / .75); margin-bottom: 2.5rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } .hero p { font-size: 1.25rem; } }

/* ---------- Headings ---------- */
.eyebrow { color: var(--electric); font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.page-title { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
@media (min-width: 768px) { .page-title { font-size: 3.75rem; } }
.lead { color: var(--muted); font-size: 1.125rem; line-height: 1.625; max-width: 42rem; }
.note { color: var(--muted); font-size: .875rem; font-style: italic; margin-top: .75rem; max-width: 42rem; }
.page-head { padding-top: calc(var(--nav-h) + 5rem); }
.line { display: inline-block; position: relative; }
.line::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 60px; height: 3px; border-radius: 2px; background: var(--electric); }
.h2-xl { font-size: 2.25rem; margin-bottom: 3rem; }
.h2-lg { font-size: 1.875rem; margin-bottom: 2.5rem; }
.h2-md { font-size: 1.875rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .h2-xl { font-size: 3rem; } .h2-lg { font-size: 2.25rem; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 40px hsl(47 100% 48% / .12); }
.feature { padding: 2rem; }
.feature h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.feature p { color: var(--muted); font-size: .875rem; line-height: 1.625; }
.icon-box { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--electric-10); border: 1px solid var(--electric-20); color: var(--electric); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: background-color .2s; }
.card:hover .icon-box { background: var(--electric-20); }

/* ---------- Services ---------- */
.services-list { display: flex; flex-direction: column; gap: 4rem; }
.service { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.service > * { width: 100%; }
.service-img { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.service-img img { width: 100%; height: 18rem; object-fit: cover; transition: transform .5s; }
.service-img img:hover { transform: scale(1.05); }
.service h2 { font-size: 1.875rem; margin-bottom: 1rem; }
.service-desc { color: var(--muted); line-height: 1.625; margin-bottom: 1.5rem; }
.includes { font-size: .875rem; font-weight: 600; color: hsl(210 20% 94% / .7); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.bullets { display: flex; flex-direction: column; gap: .5rem; }
.bullets li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: hsl(210 20% 94% / .8); }
.dot { width: .375rem; height: .375rem; border-radius: 50%; background: var(--electric); flex-shrink: 0; }
@media (min-width: 768px) {
  .service { flex-direction: row; }
  .service.reverse { flex-direction: row-reverse; }
  .service > * { width: 50%; }
  .service-img img { height: 24rem; }
  .service h2 { font-size: 2.25rem; }
}
.cta { text-align: center; }
.cta p { color: var(--muted); font-size: 1.125rem; margin-bottom: 1.5rem; }
.cta .btn { padding-left: 2rem; padding-right: 2rem; }

/* ---------- Projects ---------- */
.project { overflow: hidden; }
.project-img { height: 14rem; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.project-body p { color: var(--muted); font-size: .875rem; line-height: 1.625; margin-bottom: 1.25rem; }
.gallery { display: flex; align-items: center; gap: .5rem; color: var(--electric); font-size: .875rem; font-weight: 600; }
.gallery .icon { transition: transform .2s; }
.project:hover .gallery .icon { transform: translateX(4px); }
.badge { display: inline-block; margin: 0 1.5rem 1.25rem; background: var(--secondary); border: 1px solid var(--border); color: var(--muted); font-size: .75rem; padding: .25rem .75rem; border-radius: 999px; }

/* ---------- About ---------- */
.about-cols { display: grid; gap: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .about-cols { grid-template-columns: 1fr 1fr; } }
.quals { display: flex; flex-direction: column; gap: 1rem; }
.quals li { display: flex; align-items: flex-start; gap: .75rem; color: hsl(210 20% 94% / .85); }
.qual-mark { margin-top: .25rem; width: 1.25rem; height: 1.25rem; border-radius: var(--radius); background: var(--electric-15); border: 1px solid var(--electric-30); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.values { margin-top: 4rem; }
.values-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 1.5rem; text-align: center; }
.value .icon-box { margin: 0 auto 1rem; }
.value p { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.experience { color: var(--muted); line-height: 1.625; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 48rem; }
.social-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 48rem; }
@media (min-width: 768px) { .contact-grid, .social-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s, background-color .2s; }
.contact-card:hover { border-color: var(--electric-40); background: var(--surface); }
.contact-card.small { padding: 1rem 1.25rem; }
.contact-icon { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--electric-15); color: var(--electric); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card.small .contact-icon { width: 2.5rem; height: 2.5rem; }
.contact-card .label { font-weight: 600; }
.contact-card .value-text { color: var(--muted); font-size: .875rem; }
.contact-card.small .label { font-size: .875rem; }
.contact-card.small .value-text { font-size: .75rem; }
.fb { background: rgb(24 119 242 / .15); color: #1877F2; }
.ig { background: rgb(225 48 108 / .15); color: #E1306C; }
.follow { margin-top: 3rem; }
.follow-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--border); }
.footer-inner { padding: 3rem 1.5rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.footer-brand .brand-mark { width: 2rem; height: 2rem; box-shadow: none; }
.footer-brand .brand-name { font-size: 1.25rem; line-height: 1.75rem; letter-spacing: 0; }
.footer-brand .brand-name .cap { font-size: 1.35rem; }
.tagline { color: var(--muted); font-size: .875rem; max-width: 20rem; }
.socials { display: flex; align-items: center; gap: 1rem; }
.socials a { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.socials a:hover { background: var(--electric); color: var(--bg); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--muted); }
@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: flex-start; }
  .footer-bottom { flex-direction: row; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem; }
.notfound .big { font-family: var(--font-display); font-weight: 900; font-size: 6rem; line-height: 1; color: var(--electric); margin-bottom: 1rem; }
.notfound p { color: var(--muted); margin-bottom: 2rem; }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.contact-card .label { display: block; }
.nf-title { font-size: 1.75rem; margin-bottom: 2rem; }
.nf-actions { justify-content: center; }

/* ---------- Project galleries ---------- */
a.project { display: block; }
.badge-live { background: var(--electric-10); border-color: var(--electric-30); color: var(--electric); }
.gallery-section { padding-top: 1rem; scroll-margin-top: var(--nav-h); }
.gallery-section:last-of-type { padding-bottom: 6rem; }
.media-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
.media { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.media img, .media video { width: 100%; height: auto; }
.media-video video { aspect-ratio: 9 / 16; background: #000; }
.media a { display: block; overflow: hidden; }
.media a img { transition: transform .5s; }
.media a:hover img { transform: scale(1.03); }

/* Tsop Tech hosting credit in the footer */
.footer-bottom .credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.footer-bottom .credit a:hover { color: var(--electric); }
