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

:root {
  /* ── 5-token palette ─────────────────────────────────── */
  --ink:     #0F1623;   /* deepest dark — bg, dark text          */
  --slate:   #1E3A8A;   /* single blue  — sidebar, dark surfaces  */
  --gold:    #D4AF37;   /* sole accent  — borders, highlights     */
  --surface: #F5F4F0;   /* warm off-white — light card bg, icons  */
  --muted:   #9A9A9A;   /* secondary text, dividers               */

  /* ── Layout tokens (unchanged) ──────────────────────── */
  --card-w: 680px;
  --card-h: 380px;
}

body {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

.hint {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.35);  /* --surface at low opacity */
  margin-bottom: 32px;
  z-index: 10;
}

/* ── Stack container ─────────────────────────────────── */
.card-stack {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  z-index: 10;
  perspective: 1400px;
}

/* ── Each card in the deck ───────────────────────────── */
.card {
  position: absolute;
  top: 0; left: 0;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease;
  cursor: pointer;
  will-change: transform;
}

.card-3 {
  transform: translateY(14px) translateX(10px) rotateZ(-1.5deg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  z-index: 1;
}
.card-2 {
  transform: translateY(7px) translateX(5px) rotateZ(-0.7deg);
  box-shadow: 0 12px 50px rgba(0,0,0,0.6);
  z-index: 2;
}
.card-1 {
  transform: translateY(0px) translateX(0px) rotateZ(0deg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.65);
  z-index: 3;
}

.card.flipped-out {
  transform: translateY(-440px) rotateX(15deg) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Card faces ──────────────────────────────────────── */
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ── CARD 1 FRONT (Contact / Profile) ───────────────── */
.c1-front {
  background: var(--surface);
  display: flex;
  flex-direction: row;
}

.c1-sidebar {
  width: 220px;
  background: var(--slate);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(212, 175, 55, 0.25); /* --gold at low opacity */
}
.c1-sidebar::before,
.c1-sidebar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: none;
  opacity: 0;
}
.c1-sidebar::before { bottom: -50px; left: -50px; width: 180px; height: 180px; }
.c1-sidebar::after  { top: -30px; right: -30px; width: 100px; height: 100px; }

.profile-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12); /* --gold tint */
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-placeholder svg { opacity: 0.55; }

.name-block { text-align: center; }
.name-block .fname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--surface);
  line-height: 1.1;
}
.name-block .role {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.divider-h {
  width: 40px; height: 1px;
  background: rgba(245, 244, 240, 0.25); /* --surface at low opacity */
}

.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(245, 244, 240, 0.07); /* --surface at low opacity */
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 244, 240, 0.18);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.social-icon:hover {
  background: rgba(212, 175, 55, 0.2); /* --gold at low opacity */
  border-color: var(--gold);
}
.social-icon svg { width: 13px; height: 13px; fill: var(--surface); }

.c1-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  gap: 20px;
  position: relative;
  background: var(--surface);
}

.company-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
}
.company-name span { color: var(--gold); }

.company-sub {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -14px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.1); /* --gold tint, replaces orphaned #fff0ef */
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 13px; height: 13px; }
.contact-text {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.website-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate);
  border-radius: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.website-bar span {
  font-size: 12px;
  color: rgba(245, 244, 240, 0.85);
  letter-spacing: 0.5px;
}
.website-bar .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* bottom accent strip */
.card-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.3) 100%);
  border-radius: 0 0 16px 16px;
}

/* ── CARD 2 (Skills) ─────────────────────────────────── */
.c2-face {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.card-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.card-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--surface);
  line-height: 1.05;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.skill-chip {
  background: rgba(245, 244, 240, 0.05);
  border: 1px solid rgba(245, 244, 240, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.skill-chip:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}
.skill-chip .skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.skill-chip span {
  font-size: 12.5px;
  color: rgba(245, 244, 240, 0.9);
  font-weight: 400;
}

/* ── CARD 3 (IT Support / About) ────────────────────── */
.c3-face {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.c3-face::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 220px; height: 220px;
  background: linear-gradient(135deg, transparent 35%, rgba(212, 175, 55, 0.08) 100%);
  pointer-events: none;
}
.c3-face::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.3));
  border-radius: 16px 16px 0 0;
}

.c3-face .card-label { color: var(--gold); font-weight: 600; }
.c3-face .card-heading { color: var(--ink); }

.it-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.it-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(154, 154, 154, 0.25); /* --muted at low opacity */
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-left-color 0.2s;
}
.it-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-left-color: rgba(212, 175, 55, 0.5);
}
.it-item .it-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.it-item .it-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ── Navigation dots ─────────────────────────────────── */
.nav-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  z-index: 10;
}
.dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 244, 240, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}
.dot-btn.active {
  background: var(--gold);
  transform: scale(1.4);
}

@media (max-width: 720px) {
  :root { --card-w: 340px; --card-h: 520px; }
  .c1-front { flex-direction: column; }
  .c1-sidebar { width: 100%; height: auto; padding: 28px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .c1-main { padding: 24px; }
  .skills-grid, .it-grid { grid-template-columns: 1fr; }
}