/* ===== DESIGN TOKENS ===== */
:root {
  --bg-deep:        #040d1a;
  --bg-card:        #080f1e;
  --bg-card-hover:  #0d1830;
  --border:         rgba(196, 164, 68, 0.16);
  --border-hover:   rgba(196, 164, 68, 0.35);
  --gold:           #c9a84c;
  --gold-light:     #e8c96a;
  --gold-dim:       rgba(196, 164, 68, 0.08);
  --green:          #00c896;
  --green-dim:      rgba(0, 200, 150, 0.08);
  --red:            #e05c5c;
  --text-primary:   #e8e0d0;
  --text-secondary: #8a9ab5;
  --text-muted:     #445066;
}

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

/* ===== BASE ===== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(196, 164, 68, 0.09) 0%, transparent 65%),
    linear-gradient(180deg, #040d1a 0%, #060f1e 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* Subtle terminal grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 164, 68, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 164, 68, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
header, .stats-bar, section, footer {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER ===== */
header {
  padding: 72px 32px 44px;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

.header-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.tagline {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

.header-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.header-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 28px 32px;
  margin-bottom: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(196, 164, 68, 0.05), rgba(0, 200, 150, 0.03));
  animation: fadeUp 0.7s 0.1s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 36px;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 36px 40px;
  margin: 0 auto 20px;
  width: calc(100% - 64px);
  max-width: 880px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.about.card   { animation: fadeUp 0.7s 0.15s ease both; }
.education.card { animation: fadeUp 0.7s 0.2s ease both; }
.skills.card  { animation: fadeUp 0.7s 0.25s ease both; }
.experience.card { animation: fadeUp 0.7s 0.3s ease both; }
.certifications.card { animation: fadeUp 0.7s 0.35s ease both; }

/* ===== SECTION HEADERS ===== */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-marker {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex-shrink: 0;
}

h3 {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 12px;
}

/* ===== ABOUT ===== */
.about p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 700px;
}

/* ===== EDUCATION ===== */
.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-list li {
  padding-left: 18px;
  border-left: 2px solid rgba(196, 164, 68, 0.28);
  transition: border-color 0.2s;
}

.edu-list li:hover {
  border-left-color: var(--gold);
}

.edu-school {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.edu-degree {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ===== SKILLS ===== */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 15px;
  border-radius: 2px;
  border: 1px solid rgba(0, 200, 150, 0.28);
  color: var(--green);
  background: var(--green-dim);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.tag:hover {
  background: rgba(0, 200, 150, 0.14);
  border-color: var(--green);
}

.tag-soft {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--gold-dim);
}

.tag-soft:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196, 164, 68, 0.12);
}

/* ===== EXPERIENCE ===== */
.exp-card {
  border-left: 3px solid rgba(196, 164, 68, 0.2);
  padding: 18px 0 18px 24px;
  margin-bottom: 28px;
  transition: border-left-color 0.25s;
}

.exp-card:last-child {
  margin-bottom: 0;
}

.exp-card:hover {
  border-left-color: var(--gold);
}

.exp-card.current {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(196, 164, 68, 0.05), transparent 70%);
  border-radius: 0 3px 3px 0;
  padding: 22px 20px 22px 24px;
  margin-bottom: 32px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.exp-company {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.exp-role {
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.exp-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.exp-location {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.exp-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0, 200, 150, 0.38);
  padding: 2px 9px;
  border-radius: 2px;
  background: var(--green-dim);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-bullets li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.exp-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
}

.cert-card {
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px 18px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.cert-card:hover {
  background: rgba(196, 164, 68, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.cert-icon {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.65;
}

.cert-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 7px;
}

.cert-issuer {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===== TICKER ===== */
.ticker-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(4, 13, 26, 0.8);
  overflow: hidden;
  margin: 12px 0;
  height: 40px;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tick {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0 22px;
  letter-spacing: 0.04em;
}

.tick.up   { color: var(--green); }
.tick.down { color: var(--red); }

.tick-sep {
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.35;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 32px 60px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

footer p { margin-bottom: 7px; }

.footer-sub a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===== FADE-UP ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  header { padding: 48px 20px 32px; }

  .card {
    width: calc(100% - 24px);
    padding: 24px 20px;
  }

  .stats-bar {
    gap: 20px;
    padding: 22px 16px;
  }

  .stat { padding: 0 10px; }

  .stat-divider { display: none; }

  .exp-header { flex-direction: column; }

  .exp-meta { align-items: flex-start; }

  .cert-grid { grid-template-columns: 1fr 1fr; }

  h1 { font-size: 2.2rem; }
}
