/* ===================================
   Victor Jaglen – Resume Stylesheet
   Theme: Executive Minimal / Dark Luxury
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────── */
:root {
  --bg:        #0d0f14;
  --surface:   #13161e;
  --surface2:  #1a1e28;
  --border:    #252a38;
  --accent:    #c8a96e;
  --accent2:   #7c9cff;
  --text:      #e8eaf0;
  --muted:     #7a8099;
  --white:     #ffffff;
  --radius:    12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

ul { list-style: none; padding: 0; }

/* ── Grain Texture Overlay ──────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Layout ─────────────────────────── */
.page-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── Header / Hero ──────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 60px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.7s ease both;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-text .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface2);
  transition: all var(--transition);
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Profile Picture ────────────────── */
.profile-pic-wrapper {
  flex-shrink: 0;
  position: relative;
}

.profile-pic-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  z-index: -1;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg);
  cursor: pointer;
  transition: transform var(--transition);
}

.profile-pic:hover {
  transform: scale(1.04);
}

/* Upload Placeholder State */
.pic-upload-label {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  gap: 6px;
}

.pic-upload-label:hover {
  border-color: var(--accent);
  background: rgba(200,169,110,0.05);
}

.pic-upload-label svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted);
  transition: stroke var(--transition);
}

.pic-upload-label:hover svg { stroke: var(--accent); }

.pic-upload-label span {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  padding: 0 12px;
}

#pic-input { display: none; }

/* ── Contact Bar ────────────────────── */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  animation: fadeSlideUp 0.7s 0.1s ease both;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  transition: all var(--transition);
  flex: 1;
  min-width: 180px;
}

.contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  flex-shrink: 0;
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Main Grid ──────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ── Section ────────────────────────── */
.section {
  animation: fadeSlideUp 0.7s 0.15s ease both;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Card ───────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ── Experience Card ────────────────── */
.exp-card {
  margin-bottom: 16px;
  position: relative;
}

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

.exp-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.exp-company {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.exp-date {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Accordion ── */
.exp-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.exp-toggle:hover { color: var(--accent); }

.exp-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--transition);
}

.exp-toggle.open svg { transform: rotate(180deg); }

.exp-bullets {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.exp-bullets.visible { display: block; }

.exp-bullets li {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.6;
}

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

/* ── About Card ─────────────────────── */
.about-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Skills ─────────────────────────── */
.skill-group { margin-bottom: 20px; }

.skill-group:last-child { margin-bottom: 0; }

.skill-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface2);
  transition: all var(--transition);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,169,110,0.06);
}

.skill-pill.highlight {
  border-color: rgba(124,156,255,0.4);
  color: var(--accent2);
  background: rgba(124,156,255,0.06);
}

/* ── Achievements ───────────────────── */
.achievement-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: all var(--transition);
}

.achievement-item:last-child { border-bottom: none; padding-bottom: 0; }
.achievement-item:first-child { padding-top: 0; }

.achievement-item:hover .ach-icon { background: rgba(200,169,110,0.15); }

.ach-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.ach-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}

.achievement-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}

/* ── Sidebar Sections ───────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

/* ── Animations ─────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }

  .hero::before { display: none; }
  .profile-pic-wrapper, .pic-upload-label { margin: 0 auto; }
  .hero-badges { justify-content: center; }

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

  .contact-item { min-width: 140px; }
}

@media (max-width: 520px) {
  .page-wrapper { padding: 20px 14px 60px; }
  .hero { padding: 32px 20px; }
  .card { padding: 20px; }
  .contact-bar { flex-direction: column; }
}

/* ── Print ───────────────────────────── */
@media print {
  body { background: white; color: #111; }
  .card, .hero { border: 1px solid #ddd; box-shadow: none; background: white; }
  .exp-bullets { display: block !important; }
  .exp-toggle { display: none; }
}
