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

:root {
  --navy:   #0A2E3F;
  --cyan:   #00C2D1;
  --cyan2:  #00E5F0;
  --light:  #F5FAFB;
  --white:  #ffffff;
  --ink:    #1A1A2E;
  --muted:  #5a7a8a;
  --card:   #ffffff;
  --border: #d0eaee;
  --sidebar-w: 300px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.resume {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: 960px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,30,50,0.18);
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.photo-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(var(--cyan), var(--cyan2), var(--cyan));
  box-shadow: 0 0 32px rgba(0,194,209,0.45);
  flex-shrink: 0;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--navy);
  display: block;
}

/* Placeholder shown when no real photo is embedded */
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00B4D8 0%, #0A2E3F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 4px solid var(--navy);
}

.name-block { text-align: center; }
.name-block h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.name-block .title {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Section headers in sidebar */
.s-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.s-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,194,209,0.3);
}

/* Contact */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.contact-list li .icon {
  width: 26px;
  height: 26px;
  background: rgba(0,194,209,0.15);
  border: 1px solid rgba(0,194,209,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.contact-list a { color: var(--cyan); text-decoration: none; word-break: break-all; }
.contact-list a:hover { text-decoration: underline; }

/* Skills */
.skill-item { margin-bottom: 12px; }
.skill-label { font-size: 0.75rem; color: rgba(255,255,255,0.75); margin-bottom: 5px; display: flex; justify-content: space-between; }
.skill-bar { height: 5px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan2)); border-radius: 999px; transition: width 1s ease; }

/* Chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: rgba(0,194,209,0.12);
  border: 1px solid rgba(0,194,209,0.3);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
}

/* ── MAIN ── */
.main {
  background: var(--white);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Top area */
.main-header { border-bottom: 2px solid var(--border); padding-bottom: 24px; }
.main-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.main-header h2 span { color: var(--cyan); }
.main-header .tagline {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Section heading */
.m-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.m-head .dot {
  width: 22px;
  height: 22px;
  background: var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--navy);
}
.m-head::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

/* Profile text */
.profile-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #3a4a55;
}

/* Timeline items */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 0 16px; position: relative; }
.tl-item::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 20px;
  bottom: -20px;
  width: 1px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }

.tl-date {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  padding-top: 2px;
  text-align: right;
  line-height: 1.4;
  text-transform: uppercase;
}

.tl-body { padding-left: 16px; border-left: 2px solid var(--cyan); margin-left: 0; }
.tl-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.tl-body .where {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 500;
  margin: 1px 0 6px;
}
.tl-body p, .tl-body ul { font-size: 0.78rem; color: #3a4a55; line-height: 1.7; }
.tl-body ul { padding-left: 16px; }
.tl-body ul li { margin-bottom: 3px; }

/* Project cards */
.projects { display: flex; flex-direction: column; gap: 16px; }
.proj-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--light);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.proj-card:hover { box-shadow: 0 6px 24px rgba(0,194,209,0.15); }
.proj-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan2));
  border-radius: 4px 0 0 4px;
}
.proj-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}
.proj-card .proj-tech {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: italic;
  margin: 2px 0 8px;
}
.proj-card p { font-size: 0.78rem; color: #3a4a55; line-height: 1.7; margin-bottom: 10px; }
.proj-links { display: flex; gap: 10px; }
.proj-links a {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
}
.proj-links a:hover { background: var(--cyan); color: var(--navy); }

/* Responsive */
@media (max-width: 700px) {
  body { padding: 0; }
  .resume { grid-template-columns: 1fr; border-radius: 0; }
  .sidebar { padding: 32px 24px; }
  .main { padding: 32px 24px; }
  .tl-item { grid-template-columns: 70px 1fr; }
}