/* ==========================================================================
   Auroria Magna — Design System (WordPress site-wide asset)
   Generated from the original static prototype's style.css.
   Component/utility classes are prefixed "am-" to avoid collisions with
   Elementor/theme classes. Structural layout (.container/.grid/.section)
   is intentionally NOT ported — pages use Elementor's native container
   system for structure; this file only supplies visual/component styling.
   ========================================================================== */

:root {
  /* Core palette */
  --bg-void: #05070d;
  --bg-deep: #080c17;
  --bg-panel: #0d1424;
  --bg-panel-alt: #0b1220;
  --border-cyan: rgba(66, 232, 255, 0.28);
  --border-cyan-strong: rgba(66, 232, 255, 0.6);

  --cyan: #35e7ff;
  --cyan-soft: #8ff3ff;
  --blue: #4c8dff;
  --violet: #b45bff;
  --amber: #ffb020;
  --green: #39ff8a;
  --slate: #64748b;
  --red: #ff5470;

  --text-bright: #eaf4ff;
  --text: #c3d3ea;
  --text-dim: #7e91ad;

  --grad-cyan: linear-gradient(135deg, #35e7ff 0%, #4c8dff 100%);
  --grad-violet: linear-gradient(135deg, #b45bff 0%, #4c8dff 100%);
  --grad-amber: linear-gradient(135deg, #ffb020 0%, #ff7a35 100%);
  --grad-panel: linear-gradient(160deg, rgba(20, 30, 52, 0.9) 0%, rgba(8, 12, 23, 0.92) 100%);

  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;

  --radius-panel: 4px;
  --container-w: 1200px;
  --glow-cyan: 0 0 18px rgba(53, 231, 255, 0.35), 0 0 2px rgba(53, 231, 255, 0.8);
  --glow-violet: 0 0 18px rgba(180, 91, 255, 0.35);
}

/* ---------- Safe global reset/typography ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-void);
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .am-scanlines::after, .am-status-dot, .am-glow-pulse, .am-ticker-track, .am-typewriter-cursor { animation: none !important; }
}

/* ---------- Ambient background layers ---------- */
#am-starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-void);
  pointer-events: none;
}
.am-scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(53, 231, 255, 0.035) 0px,
    rgba(53, 231, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.am-scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(53, 231, 255, 0.06) 50%, transparent 100%);
  height: 12%;
  animation: am-scan-sweep 7s linear infinite;
}
@keyframes am-scan-sweep {
  0% { transform: translateY(-20%); }
  100% { transform: translateY(920%); }
}
.am-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 232, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.am-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2, 4, 10, 0.75) 100%);
  pointer-events: none;
}

/* ---------- Eyebrow / labels ---------- */
.am-eyebrow {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.am-eyebrow::before { content: "// "; opacity: 0.6; }

.am-section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.am-section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.am-section-head p { color: var(--text-dim); font-size: 1.05rem; }
.am-section-head.am-align-left { margin: 0 0 48px; text-align: left; }

.am-glow-text { text-shadow: 0 0 24px rgba(53, 231, 255, 0.45); }

/* ---------- Buttons ---------- */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  position: relative;
}
.am-btn-primary {
  background: var(--grad-cyan);
  color: #04121a;
  box-shadow: var(--glow-cyan);
}
.am-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(53, 231, 255, 0.6); }
.am-btn-outline {
  background: rgba(53, 231, 255, 0.04);
  border-color: var(--border-cyan-strong);
  color: var(--cyan-soft);
}
.am-btn-outline:hover { background: rgba(53, 231, 255, 0.12); box-shadow: var(--glow-cyan); transform: translateY(-3px); }
.am-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}
.am-btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-soft); }
.am-btn-sm { padding: 10px 22px; font-size: 0.72rem; }
.am-btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.am-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(66, 232, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.am-header.am-is-scrolled {
  background: rgba(5, 7, 13, 0.92);
  border-color: var(--border-cyan);
  box-shadow: 0 4px 30px rgba(53, 231, 255, 0.08);
}
.am-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.am-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-bright);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.am-logo-mark {
  width: 40px; height: 40px;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  background: var(--grad-cyan);
  display: flex; align-items: center; justify-content: center;
  color: #04121a; font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--glow-cyan);
}
.am-logo .am-brand-sub { color: var(--cyan); }

.am-main-nav { display: flex; align-items: center; gap: 6px; }
.am-main-nav a {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.am-main-nav a:hover, .am-main-nav a.am-active { color: var(--cyan-soft); }
.am-main-nav a.am-active::before { content: "["; margin-right: 4px; color: var(--cyan); }
.am-main-nav a.am-active::after { content: "]"; margin-left: 4px; color: var(--cyan); }

.am-header-actions { display: flex; align-items: center; gap: 14px; }
.am-header-cta { }

/* Language switcher */
.am-lang-switch { position: relative; }
.am-lang-switch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--cyan-soft);
}
.am-lang-switch-btn:hover { border-color: var(--border-cyan-strong); }
.am-lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 8px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1100;
}
.am-lang-switch.am-is-open .am-lang-switch-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.am-lang-switch-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: none; border: none;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  text-align: left;
}
.am-lang-switch-menu button:hover { background: rgba(53, 231, 255, 0.08); color: var(--cyan-soft); }
.am-lang-switch-menu button.am-active { background: rgba(53, 231, 255, 0.12); color: var(--cyan); }
.am-flag { font-size: 1.05rem; }

.am-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; padding: 8px;
}
.am-nav-toggle span { width: 26px; height: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); }

/* ---------- Hero (video background) ---------- */
.am-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 78px;
  background: var(--bg-void);
}
.am-hero-video-wrap { position: absolute; inset: 0; top: -15%; height: 130%; z-index: 0; overflow: hidden; will-change: transform; }
.am-hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(0.55);
}
.am-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.35) 40%, rgba(5,7,13,0.92) 100%),
    linear-gradient(100deg, rgba(53,231,255,0.12) 0%, transparent 35%, transparent 65%, rgba(180,91,255,0.12) 100%);
  z-index: 1;
}
.am-hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}
.am-hero .am-eyebrow { color: var(--cyan-soft); }
.am-hero h1 { margin-bottom: 20px; }
.am-hero p.am-lead { font-size: 1.12rem; color: var(--text); max-width: 580px; margin-bottom: 34px; }
.am-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.am-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: -0.1em;
  animation: am-blink 0.9s steps(1) infinite;
}
@keyframes am-blink { 50% { opacity: 0; } }

.am-hero-scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.am-hero-scroll-cue .am-dot {
  width: 6px; height: 6px; background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: am-bounce 1.6s infinite;
}
@keyframes am-bounce { 0%,100% { transform: translateY(0); opacity: 1;} 50% { transform: translateY(10px); opacity: 0.3;} }

/* ---------- Status ticker ---------- */
.am-status-ticker {
  position: relative;
  border-top: 1px solid rgba(66,232,255,0.15);
  border-bottom: 1px solid rgba(66,232,255,0.15);
  background: var(--bg-deep);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.am-ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: am-ticker-scroll 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.am-ticker-track span { color: var(--cyan-soft); }
@keyframes am-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Page hero (non-video pages) */
.am-page-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(66,232,255,0.12);
}
.am-page-hero p { color: var(--text-dim); max-width: 640px; font-size: 1.05rem; }

/* ---------- HUD panels (cards) ---------- */
.am-hud-panel {
  background: var(--grad-panel);
  border: 1px solid var(--border-cyan);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  padding: 34px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.am-hud-panel::before, .am-hud-panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  opacity: 0.7;
  pointer-events: none;
}
.am-hud-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.am-hud-panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.am-hud-panel:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(53,231,255,0.12); border-color: var(--border-cyan-strong); }

.am-icon-badge {
  width: 54px; height: 54px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: rgba(53, 231, 255, 0.08);
  border: 1px solid var(--border-cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ---------- Status badges ---------- */
.am-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.am-status-badge.am-is-active { color: var(--green); border-color: rgba(57,255,138,0.4); background: rgba(57,255,138,0.06); }
.am-status-badge.am-is-inactive { color: var(--slate); border-color: rgba(100,116,139,0.4); background: rgba(100,116,139,0.06); }
.am-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.am-status-badge.am-is-active .am-status-dot { animation: am-pulse-dot 1.8s ease-in-out infinite; box-shadow: 0 0 8px var(--green); }
@keyframes am-pulse-dot { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.4; transform: scale(0.7);} }

/* ---------- Project cards ---------- */
.am-project-card { position: relative; display: flex; flex-direction: column; }
.am-project-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; margin: -34px -34px 24px; border-bottom: 1px solid var(--border-cyan); }
.am-project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(1.05) brightness(0.85); }
.am-project-card:hover .am-project-card-img img { transform: scale(1.06); filter: saturate(1.2) brightness(0.95); }
.am-project-card.am-is-inactive .am-project-card-img img { filter: grayscale(0.6) brightness(0.55); }
.am-project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.am-project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.am-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
}
.am-project-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,0.12); }

.am-panel-quote { font-style: italic; color: var(--text); }

/* Skills / values */
.am-value-card { text-align: center; }
.am-value-card .am-icon-badge { margin-left: auto; margin-right: auto; }

/* Timeline / log */
.am-timeline { position: relative; max-width: 760px; margin: 0 auto; }
.am-timeline::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--cyan), transparent); }
.am-timeline-item { position: relative; padding-left: 68px; margin-bottom: 42px; }
.am-timeline-item::before {
  content: "";
  position: absolute; left: 16px; top: 4px;
  width: 18px; height: 18px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--grad-cyan);
  box-shadow: var(--glow-cyan);
}
.am-timeline-item .am-year { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Skills grid */
.am-skill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.am-skill-row li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--cyan-soft);
  border: 1px solid var(--border-cyan);
  padding: 8px 16px;
  background: rgba(53,231,255,0.05);
}

/* Filter buttons (project status filter) — styling kept for reuse with Elementor's native filtering widget */
.am-filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; justify-content: center; }
.am-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.2s ease;
}
.am-filter-btn:hover { border-color: var(--border-cyan-strong); color: var(--cyan-soft); }
.am-filter-btn.am-is-active { border-color: var(--cyan); color: var(--cyan); background: rgba(53,231,255,0.08); box-shadow: var(--glow-cyan); }

/* Log / blog */
.am-blog-card { background: var(--grad-panel); border: 1px solid var(--border-cyan); overflow: hidden; transition: transform 0.3s ease; position: relative; }
.am-blog-card:hover { transform: translateY(-6px); }
.am-blog-card-img { aspect-ratio: 16/10; overflow: hidden; filter: saturate(1.05) brightness(0.8); }
.am-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.am-blog-card-body { padding: 26px; }
.am-blog-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.am-blog-meta .am-cat { color: var(--cyan); }
.am-blog-card p { color: var(--text-dim); font-size: 0.92rem; }
.am-blog-read { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }

.am-article-body { max-width: 760px; margin: 0 auto; }
.am-article-body h2 { margin-top: 1.6em; }
.am-article-body blockquote {
  border-left: 2px solid var(--cyan);
  margin: 32px 0; padding: 4px 0 4px 24px;
  font-style: italic; font-size: 1.1rem; color: var(--text-bright);
}
.am-article-author { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--bg-panel); border: 1px solid var(--border-cyan); margin-top: 48px; }
.am-article-author img { width: 56px; height: 56px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); object-fit: cover; }

/* CTA banner */
.am-cta-banner {
  background: var(--grad-panel);
  border: 1px solid var(--border-cyan);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.am-cta-banner p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }

/* Contact */
.am-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.am-contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.am-contact-info-item .am-icon-badge { margin-bottom: 0; flex-shrink: 0; width: 46px; height: 46px; font-size: 1.2rem; }
.am-contact-info-item h4 { margin-bottom: 4px; font-size: 1rem; }
.am-contact-info-item p { color: var(--text-dim); margin: 0; }

.am-form-card { background: var(--grad-panel); border: 1px solid var(--border-cyan); padding: 40px; position: relative; }
.am-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.am-form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.am-form-group label { font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.am-form-group input, .am-form-group textarea, .am-form-group select {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.02);
  color: var(--text-bright);
  transition: border-color 0.2s ease;
}
.am-form-group input:focus, .am-form-group textarea:focus, .am-form-group select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.am-form-note { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); margin-top: 12px; }
.am-form-success { display: none; background: rgba(57,255,138,0.08); border: 1px solid rgba(57,255,138,0.4); color: var(--green); padding: 16px 20px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.85rem; }
.am-form-success.am-show { display: block; }

/* Legal pages */
.am-legal-content { max-width: 820px; margin: 0 auto; }
.am-legal-content h2 { margin-top: 2em; }
.am-legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.am-legal-content ul li { margin-bottom: 6px; }
.am-legal-placeholder-note {
  background: rgba(255,176,32,0.06); border: 1px solid rgba(255,176,32,0.35);
  padding: 16px 20px; font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 36px; color: var(--amber);
}

/* ---------- Footer ---------- */
.am-footer { background: var(--bg-deep); color: var(--text-dim); padding: 80px 0 0; border-top: 1px solid rgba(66,232,255,0.12); }
.am-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.am-footer-brand .am-logo { color: var(--text-bright); margin-bottom: 16px; }
.am-footer-brand p { color: var(--text-dim); font-size: 0.92rem; }
.am-social-row { display: flex; gap: 10px; margin-top: 20px; }
.am-social-row a {
  width: 40px; height: 40px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.am-social-row a:hover { background: rgba(53,231,255,0.1); border-color: var(--border-cyan-strong); transform: translateY(-3px); }
.am-footer-col h4 { color: var(--text-bright); font-size: 0.85rem; margin-bottom: 20px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.am-footer-col ul li { margin-bottom: 12px; }
.am-footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s ease; }
.am-footer-col a:hover { color: var(--cyan-soft); }
.am-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); flex-wrap: wrap; gap: 12px;
}
.am-footer-bottom ul { display: flex; gap: 22px; }
.am-footer-bottom a:hover { color: var(--cyan-soft); }

/* ---------- Boot sequence overlay ---------- */
.am-boot-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--bg-void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.am-boot-overlay.am-is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.am-boot-lines {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.95rem;
  text-align: left;
  min-width: 300px;
}
.am-boot-lines div { opacity: 0; margin-bottom: 8px; animation: am-boot-line-in 0.35s ease forwards; }
.am-boot-lines div:nth-child(1) { animation-delay: 0.1s; }
.am-boot-lines div:nth-child(2) { animation-delay: 0.4s; }
.am-boot-lines div:nth-child(3) { animation-delay: 0.7s; }
.am-boot-lines div:nth-child(4) { animation-delay: 1.0s; color: var(--green); }
@keyframes am-boot-line-in { to { opacity: 1; } }

/* ---------- Utilities ---------- */
.am-text-center { text-align: center; }
.am-mt-0 { margin-top: 0; }
.am-mb-0 { margin-bottom: 0; }
.am-flex-center { display: flex; align-items: center; justify-content: center; }
.am-stack-gap { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .am-contact-grid { grid-template-columns: 1fr; }
  .am-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .am-main-nav { display: none; }
  .am-nav-toggle { display: flex; }
  .am-header-cta { display: none; }
  .am-hero h1 { font-size: 2.3rem; }
  .am-cta-banner { padding: 40px 24px; }
  .am-form-row { grid-template-columns: 1fr; }
  .am-footer-grid { grid-template-columns: 1fr; }
  .am-project-card-img { margin: -34px -34px 20px; }
}

/* ---------- Bugfixes: WordPress/Elementor wrapper-vs-inner-element mismatches ---------- */
/* Elementor's "button" widget puts _css_classes on the widget wrapper div, not on the
   actual <a class="elementor-button"> inside it. Our .am-btn* rules above already style
   that wrapper correctly (shape/gradient/padding) — this neutralizes Elementor's own
   default pill-button styling on the inner link so it doesn't show through/double up. */
.am-btn .elementor-button {
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.am-btn .elementor-button-content-wrapper,
.am-btn .elementor-button-text { display: contents; }

/* Same issue for WordPress core/button (used in the header CTA): _css_classes-equivalent
   className lands on the .wp-block-button wrapper div, not on .wp-block-button__link. */
.am-btn.wp-block-button .wp-block-button__link {
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
}

/* Twenty Twenty-Five's theme.json content-size (645px) squeezes any WP "constrained"
   layout group by default — override it site-wide so the 1200px design width we
   intend is used instead of the theme's narrower article-reading width. This affects
   the header/footer template parts AND every Elementor page: Elementor's whole output
   (.elementor.elementor-<id>) is a direct child of the theme's constrained
   .entry-content wrapper, so it inherited the same 645px squeeze, and every
   .e-con-boxed section inside it (which is max-width:100% relative to that parent)
   was squeezed along with it. */
:root {
  --wp--style--global--content-size: 1200px;
  --wp--style--global--wide-size: 1200px;
}
.am-header-inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.am-footer-grid, .am-footer-bottom { max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.am-footer > .wp-block-group { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

/* Core/navigation link default color/padding can outrank our generic ".am-main-nav a"
   rule depending on stylesheet order — force our intended look. */
.am-main-nav a, .am-footer-col a, .am-footer-bottom a {
  color: var(--text-dim) !important;
}
.am-main-nav a:hover, .am-footer-col a:hover, .am-footer-bottom a:hover { color: var(--cyan-soft) !important; }
.am-main-nav .current-menu-item > a { color: var(--cyan-soft) !important; }
.am-main-nav { flex-wrap: nowrap; }

/* ---------- Flex column width utilities (reliable alternative to Elementor's
   _element_width/_element_custom_width controls, which save correctly to
   _elementor_data but do not reliably produce a working generated CSS rule
   when content is written directly via PHP instead of the visual editor). ---------- */
.am-col-25 { width: 25%; max-width: 25%; }
.am-col-33 { width: 33.333%; max-width: 33.333%; }
.am-col-40 { width: 40%; max-width: 40%; }
.am-col-50 { width: 50%; max-width: 50%; }
.am-col-60 { width: 60%; max-width: 60%; }
@media (max-width: 1024px) {
  .am-col-25, .am-col-33 { width: 50%; max-width: 50%; }
}
@media (max-width: 860px) {
  .am-col-25, .am-col-33, .am-col-40, .am-col-50, .am-col-60 { width: 100%; max-width: 100%; }
}

/* ---------- Mobile nav drawer ---------- */
.am-mobile-nav {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  border-left: 1px solid var(--border-cyan);
}
.am-mobile-nav.am-is-open { transform: translateX(0); }
.am-mobile-nav a { color: var(--text-bright); font-size: 1.3rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-display); letter-spacing: 0.03em; }
.am-mobile-nav-close { position: absolute; top: 30px; right: 28px; background: none; border: none; color: var(--cyan); font-size: 2rem; }
