/* ============================================
   DESIGN TOKENS — Light Lavender Theme
============================================ */
:root {
  --bg-base:      #EEF0F8;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #E4E7F4;
  --bg-card:      #FFFFFF;

  --accent:       #6B46C1;
  --accent-dim:   rgba(107, 70, 193, 0.08);
  --accent-glow:  rgba(107, 70, 193, 0.05);
  --accent-border:rgba(107, 70, 193, 0.26);

  --text-primary:   #18163A;
  --text-secondary: #4A4568;
  --text-muted:     #8B88A8;

  --border:         rgba(107, 70, 193, 0.10);
  --border-hover:   rgba(107, 70, 193, 0.20);

  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;

  --max-w:      1200px;
  --tr:         0.22s cubic-bezier(0.4,0,0.2,1);

  --shadow-xs:  0 1px 2px rgba(107,70,193,0.06);
  --shadow-sm:  0 1px 4px rgba(107,70,193,0.09), 0 2px 8px rgba(107,70,193,0.06);
  --shadow-md:  0 4px 16px rgba(107,70,193,0.11), 0 2px 6px rgba(107,70,193,0.07);
  --shadow-lg:  0 8px 32px rgba(107,70,193,0.14), 0 4px 14px rgba(107,70,193,0.09);
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   LAYOUT
============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 112px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 48px;
  border-radius: 2px;
}

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ============================================
   NAVBAR
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(238, 240, 248, 0.95);
  border-bottom: 1px solid var(--border);
  transition: var(--tr);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 64px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text-primary);
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--tr);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-btn {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--accent); border: 1.5px solid var(--accent-border);
  padding: 8px 20px; border-radius: var(--radius-sm);
  transition: background var(--tr), box-shadow var(--tr), color var(--tr), border-color var(--tr);
  cursor: pointer; background: transparent;
}
.nav-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 144, 190, 0.30);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: var(--tr);
}
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 199;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  padding: 13px 0; border-bottom: 1px solid var(--border);
  transition: color var(--tr);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
}

.hero-cover {
  width: 100%;
  height: clamp(180px, 32vh, 300px);
  background: url('banner.jpg') center/cover no-repeat;
  position: relative;
  flex-shrink: 0;
}
.hero-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(238,240,248,0.04) 0%,
    rgba(238,240,248,0.18) 70%,
    rgba(238,240,248,0.82) 100%
  );
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 56px;
}

.hero-profile-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-top: -80px;
  margin-bottom: 28px;
}

.hero-avatar {
  flex-shrink: 0;
  width: 192px; height: 192px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-md);
  position: relative; z-index: 3;
}
.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

.hero-social-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 20px;
}

/* Social contact cards */
.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  flex: 1 1 150px;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}
.social-card-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-card-text {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0;
}
.social-card-label {
  font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-card-sub {
  font-size: 11px; color: var(--text-muted); line-height: 1.2;
}
.social-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--tr);
}
.social-card:hover .social-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.04em; color: var(--text-primary);
  margin-bottom: 12px;
}
.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400; color: var(--text-secondary);
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.hero-role strong { color: var(--accent); font-weight: 600; }
.hero-loc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}
.hero-loc svg { width: 14px; height: 14px; stroke: var(--text-muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: #FFFFFF; background: var(--accent);
  padding: 13px 28px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: box-shadow var(--tr), transform var(--tr);
  box-shadow: 0 2px 8px rgba(0,144,190,0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0,144,190,0.40), 0 2px 8px rgba(0,144,190,0.20);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--text-primary); background: var(--bg-surface);
  border: 1.5px solid var(--border-hover); padding: 13px 28px;
  border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--tr), background var(--tr), color var(--tr), box-shadow var(--tr);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.scroll-cue {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.scroll-cue span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.8} 50%{opacity:0.2} }

/* ============================================
   ABOUT
============================================ */
.about {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: start;
}
.about-body p {
  font-size: 17px; line-height: 1.82; color: var(--text-secondary);
  margin-bottom: 22px; font-weight: 400;
}
.about-body p:first-of-type {
  font-size: 20px; line-height: 1.65; color: var(--text-primary); font-weight: 600;
}
.about-body p strong { color: var(--accent); }
.about-body p:last-child { margin-bottom: 0; }
.metrics { display: flex; flex-direction: column; gap: 12px; }
.metric {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 28px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.metric:hover { border-color: var(--accent-border); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.metric-num {
  font-family: var(--font-heading); font-size: 38px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 5px;
}
.metric-lbl { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; }

/* ============================================
   VENTURES
============================================ */
.ventures-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-lg);
  padding: 32px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px);
}
.card.full-width { border-left-color: var(--accent-border); }
.card-logo-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.card-name {
  font-family: var(--font-heading); font-size: 22px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.025em; margin-bottom: 8px;
}
.card-role {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 11px; border-radius: 4px; margin-bottom: 16px;
  border: 1px solid var(--accent-border);
}
.card-desc { font-size: 15px; line-height: 1.68; color: var(--text-secondary); margin-bottom: 20px; font-weight: 400; }
.card-bullets { list-style: none; margin-bottom: 20px; }
.card-bullets li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.55; font-weight: 400;
  padding: 10px 0 10px 20px; position: relative;
  border-bottom: 1px solid var(--border);
}
.card-bullets li:last-child { border-bottom: none; }
.card-bullets li::before {
  content: '›'; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-size: 18px; font-weight: 700; line-height: 1.3;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: var(--radius-sm);
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}
.tag:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }

/* Timeline */
.timeline-title {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 24px;
}
.tl-item {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-role {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.tl-co { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.tl-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.62; font-weight: 400; }
.tl-period {
  font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap;
  background: var(--accent-dim); padding: 5px 11px; border-radius: 5px;
  height: fit-content; border: 1px solid var(--accent-border);
}

/* Card click hint */
.card-hint {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  margin-top: 16px; opacity: 0.55;
  transition: opacity var(--tr), gap var(--tr);
}
.card:hover .card-hint { opacity: 1; gap: 8px; }
.card { cursor: pointer; }

/* ============================================
   CREDENTIALS
============================================ */
.creds {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.creds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 56px; }
.cred-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.cred-card:hover { border-color: var(--accent-border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cred-ico {
  width: 44px; height: 44px; background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cred-ico svg { width: 20px; height: 20px; stroke: var(--accent); }
.cred-name {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700;
  color: var(--text-primary); line-height: 1.3; margin-bottom: 4px;
}
.cred-detail { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.eco-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px;
}
.eco-item {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  filter: grayscale(1) opacity(0.50);
  transition: filter var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  cursor: default;
  box-shadow: var(--shadow-xs);
}
.eco-item:hover {
  filter: grayscale(0) opacity(1);
  border-color: var(--accent-border); transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.eco-mono {
  width: 38px; height: 38px; background: var(--accent-dim);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 11.5px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.02em;
  border: 1px solid var(--accent-border);
}
.eco-name { font-size: 11px; font-weight: 500; color: var(--text-secondary); text-align: center; line-height: 1.4; }

/* ============================================
   SKILLS
============================================ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.skill-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.skill-ico {
  width: 50px; height: 50px; background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.skill-ico svg { width: 22px; height: 22px; stroke: var(--accent); }
.skill-title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 12px;
}
.skill-desc { font-size: 15px; line-height: 1.72; color: var(--text-secondary); font-weight: 400; }

/* ============================================
   CONTACT
============================================ */
.contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
}
.contact-ico svg { width: 18px; height: 18px; stroke: var(--accent); }
.contact-meta { display: flex; flex-direction: column; gap: 3px; }
.contact-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-muted); }
.contact-val { font-size: 15px; font-weight: 500; color: var(--text-primary); transition: color var(--tr); }
.contact-val:hover { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 16px; }
.fgroup { display: flex; flex-direction: column; gap: 7px; }
.flabel { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-muted); }
.finput, .ftextarea {
  width: 100%; background: var(--bg-elevated); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
  font-family: var(--font-body); font-size: 15px; color: var(--text-primary); outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.finput::placeholder, .ftextarea::placeholder { color: var(--text-muted); }
.finput:focus, .ftextarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-surface);
}
.ftextarea { resize: vertical; min-height: 120px; }
.fsubmit {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: #FFFFFF; background: var(--accent); border: none;
  padding: 14px 28px; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,144,190,0.25);
  transition: box-shadow var(--tr), transform var(--tr);
}
.fsubmit:hover {
  box-shadow: 0 6px 28px rgba(0,144,190,0.40);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-surface); border-top: 1px solid var(--border); padding: 28px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-brand { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; }
.footer-brand em { color: var(--accent); font-style: normal; }

/* ============================================
   VENTURE MODALS
============================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 48px 24px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.modal-overlay.open  { display: flex; }
.modal-overlay.visible { opacity: 1; }
.modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  width: 100%; max-width: 860px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(36px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.34,1.45,0.64,1);
  margin: auto;
}
.modal-overlay.visible .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  color: var(--text-muted);
}
.modal-close:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.modal-hero-area {
  padding: 44px 48px 0;
  display: flex; align-items: center; gap: 28px;
}
.modal-logo {
  width: 88px; height: 88px; border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.modal-logo svg { width: 54px; height: 54px; }
.modal-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.modal-logo-meta { display: flex; flex-direction: column; gap: 8px; }
.modal-brand {
  font-family: var(--font-heading);
  font-size: 36px; font-weight: 800; line-height: 1;
  letter-spacing: -0.035em; color: var(--text-primary);
}
.modal-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 4px 12px; border-radius: 5px; width: fit-content;
}
.modal-body { padding: 32px 48px 48px; }
.modal-desc {
  font-size: 16px; line-height: 1.80; color: var(--text-secondary);
  font-weight: 400; margin-bottom: 32px;
  border-left: 3px solid var(--accent-border);
  padding-left: 20px;
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.modal-sec-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.modal-bullets { list-style: none; margin-bottom: 32px; }
.modal-bullets li {
  font-size: 14.5px; color: var(--text-secondary); font-weight: 400;
  line-height: 1.68; padding: 11px 0 11px 24px; position: relative;
  border-bottom: 1px solid var(--border);
}
.modal-bullets li:last-child { border-bottom: none; }
.modal-bullets li::before {
  content: '›'; position: absolute; left: 0; top: 10px;
  color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1.3;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 32px; }
.modal-tag {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-sm);
}
.modal-socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  padding: 11px 14px; border-radius: var(--radius-sm);
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: box-shadow var(--tr), transform var(--tr), background var(--tr);
}
.modal-social-btn:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px);
  background: var(--accent-border);
}
.modal-social-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.modal-tl-item {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.modal-tl-item:last-child { border-bottom: none; }
.modal-tl-role {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.modal-tl-co { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.modal-tl-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; font-weight: 400; }
.modal-tl-period {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  padding: 5px 11px; border-radius: 5px; white-space: nowrap; height: fit-content;
}

/* ============================================
   CERTIFICATE GALLERY
============================================ */
.cert-section-title {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px; margin-top: 56px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  cursor: default;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.cert-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8ecf2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cert-label {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
@media (max-width: 1024px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE HERO (for inner pages)
============================================ */
.page-hero {
  padding-top: 64px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  padding: 56px 0 48px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }
  .hero-avatar { width: 148px; height: 148px; }
  .hero-profile-row { margin-top: -72px; }
  .hero-social-row { flex-wrap: wrap; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .metrics { flex-direction: row; flex-wrap: wrap; }
  .metrics .metric { flex: 1; min-width: 130px; }
  .ventures-pair { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .modal-overlay.open { padding: 0; align-items: flex-end; }
  .modal-panel { border-radius: 22px 22px 0 0; max-width: 100%; }
  .modal-hero-area { padding: 28px 24px 0; }
  .modal-body { padding: 24px 24px 48px; }
  .modal-brand { font-size: 28px; }
  .modal-logo { width: 72px; height: 72px; border-radius: 16px; }
  .modal-tl-item { grid-template-columns: 1fr; gap: 8px; }
  .modal-socials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .creds-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .social-card { flex: 1 1 100%; }
}
