/* ============================================================
   Life in Progress — main.css
   Aesthetic: Editorial / Organic-Modern
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  /* Light mode */
  --bg:          #f7f5f0;
  --bg-2:        #eeeae1;
  --bg-card:     #ffffff;
  --text:        #1a1a18;
  --text-muted:  #6b6b60;
  --accent:      #2d6a4f;
  --accent-2:    #52b788;
  --accent-glow: rgba(82,183,136,.20);
  --border:      rgba(0,0,0,.10);
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 16px 56px rgba(0,0,0,.13);
  --navbar-bg:   rgba(247,245,240,.88);
  --hero-text:   #1a1a18;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-h: 68px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .28s;
}

[data-theme="dark"] {
  --bg:          #0f1210;
  --bg-2:        #171d16;
  --bg-card:     #1c2420;
  --text:        #e8ede8;
  --text-muted:  #7a8c7a;
  --accent:      #52b788;
  --accent-2:    #95d5b2;
  --accent-glow: rgba(82,183,136,.18);
  --border:      rgba(255,255,255,.08);
  --shadow:      0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:   0 16px 56px rgba(0,0,0,.55);
  --navbar-bg:   rgba(15,18,16,.90);
  --hero-text:   #e8ede8;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: var(--nav-h);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ===== CURSOR BLOB ===== */
.cursor-blob {
  position: fixed;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: var(--accent-glow);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform .06s linear, opacity .3s;
  z-index: 0;
  filter: blur(60px);
  opacity: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 3rem);
  z-index: 900;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.logo-mark {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  width: 1.6em; height: 1.6em;
  line-height: 1.6em;
  text-align: center;
  border-radius: 6px;
  margin-right: .3em;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem;
  border-radius: 99px;
}

.toggle-icon { font-size: .9rem; transition: opacity var(--dur) var(--ease); }
.toggle-track {
  width: 36px; height: 20px;
  background: var(--bg-2);
  border-radius: 99px;
  border: 1.5px solid var(--border);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
[data-theme="dark"] .toggle-track::after { transform: translateX(16px); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h); right: 0;
  width: min(280px, 80vw);
  height: calc(100dvh - var(--nav-h));
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.2rem;
  transform: translateX(105%);
  transition: transform .35s var(--ease);
  z-index: 850;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 840;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

/* ===== SECTION WRAPPER ===== */
.section {
  padding: clamp(64px, 10vh, 120px) clamp(1rem, 6vw, 5rem);
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== HERO ===== */
#home.section {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow), transparent),
    var(--bg);
  padding-top: 0;
}

.hero-inner { max-width: 820px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.8rem;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--hero-text);
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: 99px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: .5rem 1.2rem;
  font-size: .82rem;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bobble 2.4s ease-in-out infinite;
}
.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes bobble {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
#about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: .35;
  transform: rotate(-2deg);
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  position: relative;
  z-index: 1;
}

.about-text .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-body { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }

/* ===== TEAM ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.member-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.member-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.member-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.member-card:hover .member-img { transform: scale(1.06); }

.member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.member-card:hover .member-overlay { opacity: 1; }

.member-body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.member-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.member-role {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
}
.member-loc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

/* ===== PROJECTS ===== */
#projects { background: var(--bg-2); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .4rem 1.1rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card.hidden { display: none; }

.project-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.project-card:hover .project-thumb { transform: scale(1.04); }
.project-thumb-wrap { overflow: hidden; position: relative; }

.project-tag {
  position: absolute;
  top: .8rem; left: .8rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 99px;
}

.project-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.project-desc {
  font-size: .88rem;
  color: var(--text-muted);
  flex: 1;
}
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .3rem;
}
.tech-chip {
  font-size: .72rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  padding: .2rem .65rem;
  border-radius: 6px;
}
.project-actions {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.94);
  width: min(560px, 92vw);
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  z-index: 960;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.open .modal-box {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.modal-close:hover { background: var(--border); }

.modal-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.modal-desc { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.modal-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.modal-meta span { color: var(--accent); font-weight: 600; }

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: .8rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 1.4rem; line-height: 1.8; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.contact-detail-icon {
  width: 34px; height: 34px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 130px; resize: vertical; }

.form-msg {
  display: none;
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-top: 1rem;
}
.form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: .9rem;
  margin-bottom: .6rem;
}
.footer-copy { font-size: .8rem; color: var(--text-muted); }

/* ===== PROFILE PAGE ===== */
.profile-hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, var(--accent-glow), transparent),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 6vw, 4rem);
}

.profile-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-glow);
}

.profile-meta-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .2rem;
}
.profile-meta-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .4rem;
}
.profile-meta-loc {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.profile-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.profile-contact-row a { color: var(--accent); text-decoration: underline; }

.profile-actions-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Profile Subnav */
.profile-subnav {
  position: sticky;
  top: var(--nav-h);
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 clamp(1rem, 6vw, 4rem);
}
.subnav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.profile-subnav a {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.2rem;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.profile-subnav a:hover,
.profile-subnav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Profile Content */
.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 6vw, 2rem);
}

.profile-section {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.profile-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-icon { font-size: 1.1rem; }

/* Skill bars */
.skills-list { display: flex; flex-direction: column; gap: .9rem; }
.skill-item { display: flex; flex-direction: column; gap: .3rem; }
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 500;
}
.skill-pct { color: var(--accent); font-weight: 600; }
.skill-bar { height: 7px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  width: 0;
  transition: width 1s var(--ease);
}

/* Experience timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: .4rem;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-company {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .1rem;
}
.timeline-role {
  font-size: .88rem;
  color: var(--accent);
  font-weight: 500;
}
.timeline-period {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.timeline-desc { font-size: .9rem; color: var(--text-muted); }

/* Education cards */
.edu-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent);
}
.edu-degree { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.edu-school { font-size: .88rem; color: var(--text-muted); }
.edu-period { font-size: .78rem; color: var(--accent); font-weight: 600; margin-top: .2rem; }

/* Cert cards */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cert-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cert-title { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.cert-issuer { font-size: .82rem; color: var(--text-muted); }
.cert-period { font-size: .75rem; color: var(--accent); font-weight: 600; margin-top: .3rem; }

/* Skill tags (for profiles with no level) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.skill-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .9rem;
  border-radius: 99px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.skill-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .7rem 1.8rem;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .4s var(--ease);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ===== DIVIDER ===== */
.section-divider {
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

/* ===== PLACEHOLDER IMG ===== */
.img-placeholder {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 320px; margin: 0 auto; }

  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }

  .profile-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .profile-avatar { margin: 0 auto; }
  .profile-actions-row { justify-content: center; }
  .profile-contact-row { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .card-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  #home.section { min-height: auto; padding: 3rem 2rem; }
}
