/* ============================================================
   ALTMANN IT — DESIGN SYSTEM
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  color-scheme: dark;
  --bg:              #0b0904;
  --surface:         rgba(20, 12, 2, 0.95);
  --surface-glass:   rgba(15, 9, 2, 0.65);
  --border:          rgba(252, 211, 77, 0.12);
  --border-active:   rgba(252, 211, 77, 0.32);
  --gold:            #f59e0b;
  --gold-light:      #fbbf24;
  --gold-bright:     #fde047;
  --gold-glow:       rgba(245, 158, 11, 0.38);
  --text:            #f9f1d0;
  --text-dim:        #cbd5e1;
  --text-muted:      #94a3b8;
  --radius-xl:       2rem;
  --radius-lg:       1.5rem;
  --radius-md:       1rem;
  --radius-sm:       0.75rem;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --gold-glow-dynamic:   rgba(245, 158, 11, 0.65);
  --gold-shadow-dynamic: rgba(245, 158, 11, 0.55);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 8% 92%, rgba(120, 53, 15, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 92% 8%,  rgba(245, 158, 11, 0.09) 0%, transparent 50%),
    var(--bg);
}

main { flex: 1; }

img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 9, 4, 0.75);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
  z-index: -1;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled::before {
  background: rgba(8, 6, 2, 0.93);
  border-color: rgba(252, 211, 77, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  transition: padding 0.3s var(--ease);
}

.site-header.scrolled .header-bar {
  padding: 0.6rem 0;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow-dynamic), transparent 65%);
  animation: logo-pulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%       { opacity: 1.0; transform: scale(1.12); }
}

.logo:hover .logo-mark { transform: scale(1.06); }

.site-logo {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--gold-shadow-dynamic));
  transition: filter 0.35s ease;
}

.logo:hover .site-logo {
  filter: drop-shadow(0 0 22px var(--gold-shadow-dynamic));
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0b0904;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 32px var(--gold-shadow-dynamic);
  transition: box-shadow 0.3s ease;
}

.logo:hover .logo-placeholder {
  box-shadow: 0 0 52px var(--gold-shadow-dynamic);
}

.logo-text {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fde047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}

nav a {
  position: relative;
  color: #dcc97a;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.8rem);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

nav a:hover { color: var(--gold-light); background: rgba(251, 191, 36, 0.07); }
nav a:hover::after, nav a.active::after { transform: translateX(-50%) scaleX(1); }
nav a.active { color: var(--gold-bright); font-weight: 700; }

.nav-admin {
  color: #6b7280 !important;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid rgba(107, 114, 128, 0.2) !important;
  border-radius: 0.5rem !important;
  background: rgba(107, 114, 128, 0.06) !important;
  margin-left: 0.3rem;
}

.nav-admin::after { display: none !important; }

.nav-admin:hover {
  color: #9ca3af !important;
  background: rgba(107, 114, 128, 0.12) !important;
  border-color: rgba(107, 114, 128, 0.35) !important;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(252, 211, 77, 0.25);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 0.65rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(252, 211, 77, 0.45);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.25s ease, width 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, rgba(245, 158, 11, 0.04) 45%, transparent 70%);
  top: -30%;
  left: -25%;
  filter: blur(120px);
  animation: orb-drift-a 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 45%, transparent 70%);
  top: 0%;
  right: -18%;
  filter: blur(140px);
  animation: orb-drift-b 11s ease-in-out infinite;
}

.hero-orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(120, 53, 15, 0.22) 0%, rgba(120, 53, 15, 0.04) 45%, transparent 70%);
  bottom: -15%;
  left: 35%;
  filter: blur(130px);
  animation: orb-drift-a 17s ease-in-out infinite reverse;
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0px, 0px); }
  30%       { transform: translate(26px, -18px); }
  65%       { transform: translate(-14px, 22px); }
}

@keyframes orb-drift-b {
  0%, 100% { transform: translate(0px, 0px); }
  40%       { transform: translate(-22px, 16px); }
  72%       { transform: translate(18px, -12px); }
}

.hero-code-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: min(800px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - 1100px) / 2));
  animation: hero-enter 0.9s var(--ease) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text);
}

.gold-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #fde047 70%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% auto;
  animation: text-shimmer 5s linear infinite;
}

@keyframes text-shimmer {
  from { background-position: 250% center; }
  to   { background-position: -250% center; }
}

.hero p {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0 0 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

.button, .button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 0.85rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0904;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.button:hover, .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
}

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

.button-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0904;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  min-width: 200px;
}

.button-primary:hover, .button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
}

.button-secondary {
  background: rgba(251, 191, 36, 0.08);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: none;
}

.button-secondary:hover, .button-secondary:focus-visible {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.14);
}

.button-small { padding: 0.65rem 1rem; font-size: 0.88rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-top: 3rem;
  margin-bottom: 1.75rem;
}

.section-header h2, .section-header h1 {
  margin: 0 0 0.6rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-header p { color: var(--text-muted); margin: 0; }

/* ============================================================
   OVERVIEW GRID (HOME CARDS)
   ============================================================ */
.overview-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 1.5rem 0 1rem;
}

.overview-grid article {
  position: relative;
  background: rgba(15, 9, 2, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(252, 211, 77, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 280px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.overview-grid article::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.11) 0%, transparent 60%);
  left: calc(var(--mouse-x, 0px) - 210px);
  top:  calc(var(--mouse-y, 0px) - 210px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateZ(0);
}

.overview-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(251, 191, 36, 0.1),
    inset 0 1px 0 rgba(251, 191, 36, 0.18);
}

.overview-grid article:hover::after { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.18);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.overview-grid article:hover .card-icon {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.2);
}

.overview-grid article > div { flex: 1; }

.overview-grid article h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.overview-grid article p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

.overview-grid article a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-grid article a::after {
  content: 'arrow_forward';
  font-family: sans-serif;
  content: '→';
  transition: transform 0.2s ease;
}

.overview-grid article a:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.overview-grid article a:hover::after { transform: translateX(4px); }

/* ============================================================
   CARD GRID (Blog / Portfolio)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(20, 12, 2, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.card h3 { margin-top: 0; font-size: 1.1rem; font-weight: 700; }
.card p  { margin: 0.75rem 0 0; color: #e2c97a; }
.card a:not(.button)  { display: inline-block; margin-top: 1rem; color: var(--gold-light); text-decoration: none; font-weight: 600; }
.card a:not(.button):hover { color: var(--gold-bright); }
.meta { color: var(--gold-light); font-size: 0.88rem; }

/* Card Mini-Slider */
.card-slider-wrap {
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.card-img-single {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease;
}

.card-slider-track img {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-slider-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.card-slider-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.card-slider-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* ============================================================
   FADE-IN (IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.65s var(--ease) var(--delay, 0s),
    transform 0.65s var(--ease) var(--delay, 0s);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; gap: 1rem; }
.form-grid button.button-primary { width: auto; align-self: flex-start; }

label { display: grid; gap: 0.5rem; color: var(--text-dim); }

input, textarea {
  width: 100%;
  background: rgba(20, 12, 2, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus { outline: none; border-color: rgba(251, 191, 36, 0.4); }

.file-upload-label { position: relative; display: grid; gap: 0.75rem; color: var(--text-dim); }

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #111827;
  border-radius: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}

.file-upload-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(251, 191, 36, 0.25); }

.file-upload-label input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.upload-row { display: grid; grid-template-columns: 1fr 220px; gap: 1rem; align-items: center; }
.upload-field { display: grid; gap: 0.75rem; }

.preview-box {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(249, 115, 22, 0.35);
  border-radius: 0.85rem;
  color: #f9e18c;
  padding: 1rem;
}

.preview-box img { max-height: 80px; max-width: 180px; object-fit: contain; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 1, 0.72));
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.site-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.38), transparent);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer p { margin: 0; color: #f9e18c; font-size: 0.92rem; flex: 1 1 280px; }

.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.footer-links a {
  position: relative;
  color: #fff4c7;
  text-decoration: none;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a::before {
  content: 'bullet';
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
}

.footer-links a:hover { color: var(--gold-bright); }

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.page-detail #project-detail,
.page-detail #post-detail,
.page-legal #page-content {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
}

/* Project Detail Layout */
.detail-back {
  margin-bottom: 1.5rem;
}
.detail-back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.detail-back a:hover { color: var(--gold-light); }

.project-header { margin-bottom: 1.25rem; }
.project-header h1 { margin: 0 0 0.5rem; }
.project-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
}
.tech-tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.tech-tag--secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.28);
}

.project-body {
  color: var(--text-dim);
  line-height: 1.8;
  margin: 1.5rem 0 0;
}

.project-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.status  { min-height: 1.5rem; color: #f8fafc; }
button   { cursor: pointer; }
.hidden  { display: none; }

/* ============================================================
   ADMIN
   ============================================================ */
.page-admin { padding-bottom: 3rem; }

.admin-card { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.admin-card h2 { margin-top: 0; }
.admin-card button { align-self: flex-start; }

.admin-link-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ============================================================
   IMAGE SLIDER
   ============================================================ */
.project-slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.slider-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.6);
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 9, 4, 0.72);
  border: 1px solid var(--border-active);
  color: var(--gold-light);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  padding: 0;
}

.slider-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev { left: 0.75rem; }
.slider-btn.next { right: 0.75rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border-active);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.slider-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 5;
}

/* Admin image gallery */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-gallery-item {
  position: relative;
  width: 7rem;
  height: 5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-gallery-item .delete-image-btn {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ============================================================
   ABOUT PAGE — PUBLIC
   ============================================================ */
.page-about { padding-bottom: 3rem; }

.about-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-avatar {
  flex-shrink: 0;
}
.about-avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}
.about-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 3px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.about-intro { flex: 1; min-width: 200px; }
.about-name   { margin: 0 0 0.4rem; font-size: 2rem; }
.about-tagline {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-social-link {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: var(--gold-light);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.about-social-link:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold);
}

.about-section { margin-bottom: 1.5rem; }
.about-section h2 { margin-top: 0; }
.about-bio-text { color: var(--text-dim); line-height: 1.8; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.skill-category-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.skill-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
}
.skill-item-name { font-size: 0.9rem; color: var(--text-dim); }
.skill-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
  width: 90px;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.skill-level-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Vita Timeline */
.vita-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.vita-timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 1px;
}
.vita-entry {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}
.vita-marker {
  position: absolute;
  left: -1.65rem;
  top: 0.85rem;
  font-size: 1rem;
  line-height: 1;
  width: 1.4rem;
  text-align: center;
}
.vita-content { flex: 1; }
.vita-year {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.vita-title {
  margin: 0.2rem 0 0.15rem;
  font-size: 1rem;
}
.vita-org  { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.vita-desc { margin: 0.35rem 0 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   ABOUT PAGE — ADMIN
   ============================================================ */
.about-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.about-admin-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.about-admin-row-main { flex: 1; font-size: 0.9rem; }
.about-admin-row-meta { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }

.section-divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin: 1.25rem 0;
}
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.form-inline input,
.form-inline select {
  min-width: 0;
  flex: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 900px) {
  .container { width: calc(100% - 1.5rem); }

  .nav-toggle { display: flex; }

  nav {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    order: 3;
  }

  nav.open { max-height: 520px; opacity: 1; }

  nav a {
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.98rem;
  }

  nav a::after { display: none; }

  .nav-admin { margin-left: 0 !important; margin-top: 0.25rem !important; width: auto !important; }

  .header-bar { flex-wrap: wrap; }

  .hero { min-height: 72vh; padding: 4rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .buttons { flex-direction: column; align-items: stretch; }
  .button, .button-small { width: 100%; justify-content: center; }
  .button-primary { min-width: auto; }

  .form-grid { gap: 0.875rem; }

  .page-detail #project-detail,
  .page-detail #post-detail,
  .page-legal #page-content { padding: 1.5rem; }
}

@media (max-width: 700px) { .upload-row { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .footer-links { width: 100%; }
  .section-header { margin-top: 2rem; }
  .card,
  .admin-card,
  .page-detail #project-detail,
  .page-detail #post-detail,
  .page-legal #page-content { padding: 1.25rem; }
}
