/* ===== TOKENS ===== */
:root {
  --cream:    #faf8f0;
  --cream2:   #f5f2e4;
  --cream3:   #ede9d5;
  --yellow:   #f5c842;
  --yellow2:  #fad96a;
  --yellow-bg:#fef9e4;
  --blue:     #6ec6e8;
  --blue2:    #a8dcf0;
  --blue-bg:  #eaf7fc;
  --coral:    #f0826a;
  --coral-bg: #fdf0ed;
  --mint:     #7dd9b0;
  --mint-bg:  #eaf8f2;
  --text:     #2a2218;
  --text2:    #5a5040;
  --text3:    #8a7e68;
  --max:      1160px;
  --r:        24px;
  --r-sm:     14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }

/* ===== DECORATIVE BLOBS (fixed background) ===== */
.blob {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(0px);
}

.blob-yellow {
  width: 320px; height: 320px;
  top: -80px; left: -80px;
  background: var(--yellow);
  opacity: 0.55;
  border-radius: 50%;
}

.blob-blue {
  width: 200px; height: 200px;
  top: 60px; right: 40px;
  background: var(--blue);
  opacity: 0.45;
  border-radius: 50%;
}

.blob-coral {
  width: 260px; height: 260px;
  bottom: 120px; right: -80px;
  background: var(--coral);
  opacity: 0.25;
  border-radius: 50%;
}

.blob-mint {
  width: 180px; height: 180px;
  bottom: 60px; left: 60px;
  background: var(--mint);
  opacity: 0.3;
  border-radius: 50%;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,240,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--cream3);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.brand span { color: var(--yellow); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-left { position: relative; }

/* Large circle deco — matches resume's yellow circle */
.hero-deco-circle {
  border-radius: 50%;
  position: absolute;
  z-index: 0;
}
.hero-deco-circle.yellow {
  width: 200px; height: 200px;
  background: var(--yellow);
  top: -40px; left: -40px;
  opacity: 0.8;
  animation: floatY 6s ease-in-out infinite;
}
.hero-deco-circle.blue {
  width: 60px; height: 60px;
  background: var(--blue);
  bottom: 20px; left: 340px;
  opacity: 0.7;
  animation: floatY 8s ease-in-out infinite reverse;
}
.hero-deco-circle.small { width: 50px; height: 50px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.name-block { position: relative; z-index: 1; margin-bottom: 8px; }

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(60px, 9vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 900;
}

.hero-role {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
  position: relative; z-index: 1;
}

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  max-width: 500px;
  margin-bottom: 24px;
  line-height: 1.75;
  position: relative; z-index: 1;
}

.hero-contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--cream);
  transition: all 0.2s;
}
.contact-pill:hover {
  background: var(--yellow);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative; z-index: 1;
}
.hero-skills-row span {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--cream2);
  border: 1.5px solid var(--cream3);
  color: var(--text2);
  letter-spacing: 0.04em;
}

/* Hero right — stat cards */
.hero-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  border-radius: var(--r);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  opacity: 0.7;
}

.stat-label-main {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.stat-card-1 { background: var(--yellow); color: var(--text); }
.stat-card-2 { background: var(--blue-bg); color: var(--text); border: 1.5px solid var(--blue2); }
.stat-card-3 { background: var(--text); color: var(--cream); }
.stat-card-4 { background: var(--coral-bg); color: var(--text); border: 1.5px solid rgba(240,130,106,0.3); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-tinted { background: var(--cream2); }

.section-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
  position: relative;
}

.section-deco-blob {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.section-deco-blob.coral { background: var(--coral); opacity: 0.75; }
.section-deco-blob.blue { background: var(--blue); opacity: 0.8; }
.section-deco-blob.small { width: 32px; height: 32px; }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.05;
}

/* ===== EXPERIENCE ===== */
.exp-list {
  display: grid;
  gap: 0;
  border-left: 2.5px solid var(--cream3);
  margin-left: 10px;
}

.exp-card {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
  align-items: flex-start;
}
.exp-card:last-child { padding-bottom: 0; }

.exp-line-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--yellow2);
  flex-shrink: 0;
  margin-left: -11px;
  margin-top: 4px;
}

.exp-year-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.exp-body { flex: 1; }

.exp-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.exp-org {
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exp-bullets { list-style: none; display: grid; gap: 8px; }
.exp-bullets li {
  font-size: 15px;
  color: var(--text2);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ===== SKILLS BENTO ===== */
.skills-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skill-tile {
  border-radius: var(--r);
  padding: 22px;
  transition: transform 0.2s;
}
.skill-tile:hover { transform: translateY(-3px); }

.tile-prog, .tile-blue, .tile-coral, .tile-mint, .tile-adobe, .tile-others, .tile-blue2 {
  grid-column: auto; grid-row: auto;
}

.tile-yellow { background: var(--yellow); color: var(--text); }
.tile-blue   { background: var(--blue-bg); color: var(--text); border: 1.5px solid var(--blue2); }
.tile-blue2  { background: #e8f4fd; color: var(--text); border: 1.5px solid #b3d9f5; }
.tile-coral  { background: var(--coral-bg); color: var(--text); border: 1.5px solid rgba(240,130,106,0.25); }
.tile-mint   { background: var(--mint-bg); color: var(--text); border: 1.5px solid rgba(125,217,176,0.35); }
.tile-adobe  { background: #fde8e0; color: var(--text); border: 1.5px solid rgba(240,100,60,0.25); }
.tile-cream  { background: var(--cream); color: var(--text); border: 1.5px solid var(--cream3); }

.tile-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  color: inherit;
}

.skill-tile h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tile-sub {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 12px;
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip-row span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  letter-spacing: 0.04em;
}
.tile-yellow .chip-row span { background: rgba(0,0,0,0.1); }

.tile-coral .chip-highlight {
  background: var(--coral) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 800;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.proj-card {
  background: #fff;
  border: 1.5px solid var(--cream3);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(245,200,66,0.1);
}

/* PIA card — same size, subtle left accent */
.proj-pia {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-bg);
}
.proj-pia:hover {
  border-color: var(--yellow);
  border-left-color: var(--yellow);
}

.proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proj-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cream3);
  line-height: 1;
}
.proj-pia .proj-num { color: rgba(245,200,66,0.5); }

.proj-award-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text);
}

.proj-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.proj-card p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.proj-chips span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream2);
  border: 1.5px solid var(--cream3);
  color: var(--text2);
  letter-spacing: 0.03em;
}

/* Other 3D Work block */
.other3d-block {
  margin-top: 32px;
}

.other3d-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.other3d-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream3);
}

.other3d-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.other3d-item {
  background: var(--cream2);
  border: 1.5px solid var(--cream3);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.other3d-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== EDUCATION ===== */
.edu-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.edu-card {
  background: #fff;
  border: 1.5px solid var(--cream3);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s;
}
.edu-card:hover { transform: translateY(-3px); }

.edu-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.edu-icon.yellow { background: var(--yellow); color: var(--text); }
.edu-icon.blue   { background: var(--blue-bg); color: var(--text); border: 1.5px solid var(--blue2); }
.edu-icon.coral  { background: var(--coral-bg); color: var(--text); border: 1.5px solid rgba(240,130,106,0.3); }

.edu-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-org { font-size: 13px; color: var(--text3); margin-bottom: 8px; line-height: 1.4; }
.edu-yr {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  background: var(--cream2);
  border-radius: 999px;
  color: var(--text2);
}

/* Pro dev */
.prodev-block h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.prodev-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prodev-pills span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1.5px solid var(--cream3);
  color: var(--text2);
  transition: all 0.18s;
  cursor: default;
}
.prodev-pills span:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
}
.footer-name span { color: var(--yellow); }
.footer-sub { font-size: 13px; color: rgba(250,248,240,0.5); margin-top: 2px; }

.footer-contacts { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(250,248,240,0.65);
  transition: color 0.2s;
}
.footer-contacts a:hover { color: var(--yellow); }

.footer-copy { font-size: 13px; color: rgba(250,248,240,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1020px) {
  .skills-bento { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .other3d-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-stack { display: none; }
  .edu-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 58px; }
  .section { padding: 56px 0; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-bento { grid-template-columns: 1fr; }
  .exp-card { flex-direction: column; gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== PROJ CARD CLICKABLE ===== */
.proj-card { cursor: pointer; }

.proj-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.proj-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  flex-shrink: 0;
}
.proj-card:hover .proj-more { color: var(--text); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42,34,24,0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.modal-overlay.active { display: block; }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 28px;
  padding: 36px;
  z-index: 300;
  box-shadow: 0 24px 64px rgba(42,34,24,0.18);
}
.modal.active { display: block; }

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: var(--cream2);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  font-family: inherit;
}
.modal-close:hover { background: var(--cream3); }

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cream3);
  line-height: 1;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #1a72d9;
  margin-bottom: 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,114,217,0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.modal-link:hover { color: #0f56b3; border-color: #0f56b3; }

.modal-section { margin-bottom: 20px; }

.modal-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text3);
  margin-bottom: 10px;
}

.modal-bullets {
  list-style: none;
  display: grid;
  gap: 8px;
}
.modal-bullets li {
  font-size: 15px;
  color: var(--text2);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.modal-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.modal-bullets li:empty { display: none; }
