﻿/* ═══════════════════════════════════════════════════════
   RAHUL R — PORTFOLIO  |  Bootstrap + Custom CSS
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f4f5;
  --bg-card:   #ffffff;
  --text:      #09090b;
  --muted:     #71717a;
  --border:    #e4e4e7;
  --accent:    #09090b;
  --font:      'Plus Jakarta Sans', sans-serif;
  --nav-h:     72px; /* navbar height — used for canvas offset */
}
[data-theme="dark"] {
  --bg:        #09090b;
  --bg-alt:    #111113;
  --bg-card:   #18181b;
  --text:      #fafafa;
  --muted:     #a1a1aa;
  --border:    #27272a;
  --accent:    #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background .4s, color .4s;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout helpers ─────────────────────────────────── */
.container-main { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .4s, border-color .4s;
}
[data-theme="dark"] .site-nav {
  background: rgba(9,9,11,.88);
}
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-bar   { width: 6px; height: 32px; background: var(--text); border-radius: 99px; transition: background .4s; }
.nav-name  { font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links .nav-link {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em;
  position: relative; padding-bottom: 3px;
  color: var(--text); opacity: .7; transition: opacity .2s;
}
.nav-links .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--text);
  transition: width .3s;
}
.nav-links .nav-link:hover { opacity: 1; }
.nav-links .nav-link:hover::after { width: 100%; }

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

.btn-resume {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem;
  background: var(--text); color: var(--bg);
  border-radius: 99px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  transition: opacity .2s;
}
.btn-resume:hover { opacity: .75; color: var(--bg); }

.btn-theme {
  background: none; border: none; cursor: pointer;
  padding: .5rem; border-radius: 50%;
  color: var(--text); font-size: 1.1rem;
  transition: background .2s;
}
.btn-theme:hover { background: var(--bg-alt); }

/* ── Hamburger button — mobile only ────────────────── */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  width: 36px;
  height: 36px;
}
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
@media (max-width: 768px) {
  .btn-hamburger { display: flex; }
}

/* ── Mobile slide-in menu ───────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 500;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text);
  padding: .5rem;
  margin-bottom: 2rem;
  border-radius: .5rem;
  transition: background .2s;
}
.mobile-menu-close:hover { background: var(--bg-alt); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.mobile-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  border-radius: .875rem;
  transition: background .2s;
  text-decoration: none;
}
.mobile-nav-link:hover { background: var(--bg-alt); }

.mobile-resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 1rem;
  font-weight: 700;
  font-size: .9rem;
  margin-top: 1.5rem;
  transition: opacity .2s;
  text-decoration: none;
}
.mobile-resume-btn:hover { opacity: .8; color: var(--bg); }

/* Backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-resume { display: none; }
}

/* ── Reveal animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,1,.3,1), transform .8s cubic-bezier(.2,1,.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── HERO ───────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  position: relative;
  overflow: visible;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 2;
  padding-top: 8rem;
}

.hero-card-desktop {
  flex: 0 0 44%;
  height: 100vh;
  align-self: flex-start;
  margin-top: -80px;
  position: relative;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}
.hero-card-desktop canvas {
  pointer-events: none;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-card-mobile { display: none; }

@media (max-width: 1024px) {
  .hero-card-desktop { flex: 0 0 40%; }
  .hero-content { padding-top: 7rem; }
}

@media (max-width: 768px) {
  .section-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: auto;
    gap: 0;
    max-width: 100%;
  }

  .hero-content {
    padding: 2rem 1.5rem 3rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    order: 2;
  }

  .hero-card-desktop { display: none; }

  /* Mobile card — zero gap from navbar */
  .hero-card-mobile {
    display: block;
    width: 100%;
    /* Push canvas top to sit exactly at navbar bottom */
    margin-top: var(--nav-h);
    padding: 0;
    order: 1;
    background: transparent;
    position: relative;
  }

  #id-card-canvas-mobile {
    display: block;
    width: 100%;
    height: 420px;
    margin: 0;
    padding: 0;
  }
  #id-card-canvas-mobile canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-title   { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-ctas    { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .social-links { justify-content: center; }
}

@media (max-width: 480px) {
  #id-card-canvas-mobile { height: 360px; }
}
.status-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 99px; margin-bottom: 2rem;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted);
}
.status-dot {
  width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800; line-height: .88;
  letter-spacing: -.04em; margin-bottom: 1.75rem;
}
.hero-amp { font-style: italic; font-weight: 300; color: var(--border); }

.hero-bio {
  font-size: 1.05rem; color: var(--muted);
  line-height: 1.7; max-width: 480px; margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.cta-primary {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  color: var(--text);
}
.cta-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg);
  border-radius: 50%; transition: transform .2s;
  font-size: 1.1rem;
}
.cta-primary:hover .cta-icon { transform: scale(1.1); }

.social-links { display: flex; gap: 1.25rem; opacity: .35; transition: opacity .3s; }
.social-links:hover { opacity: 1; }
.social-links a { transition: transform .2s; color: var(--text); font-size: 1.2rem; }
.social-links a:hover { transform: scale(1.15); }

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-num   { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; }
.stat-label { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: .2rem; }

/* ── Section helpers ────────────────────────────────── */
.section-main { padding: 7rem 0; }
.section-alt  { padding: 7rem 0; background: var(--bg-alt); }
.section-dark { padding: 7rem 0; background: #09090b; color: #fafafa; }

.section-heading    { margin-bottom: 4rem; }
.section-heading-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem;
}
.section-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .35em;
  color: var(--muted); margin-bottom: .75rem;
}
.section-label.muted { color: #52525b; }
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.col-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .35em;
  color: var(--muted); margin-bottom: 2rem;
}
.col-label.muted { color: #52525b; }
.mt-32 { margin-top: 2rem; }

/* ── ABOUT ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; } }

.bio-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2rem;
  transition: background .4s, border-color .4s;
}
.bio-icon {
  width: 56px; height: 56px;
  background: var(--bg-alt); border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.bio-name { font-size: 1.4rem; font-weight: 800; margin-bottom: .75rem; }
.bio-text { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.bio-details { display: flex; flex-direction: column; gap: .75rem; }
.bio-details li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; color: var(--muted);
}
.bio-details i { width: 16px; text-align: center; flex-shrink: 0; }

/* ID details table inside bio card */
.bio-id-details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.bio-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}
.bio-id-row span:first-child {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-size: .68rem;
}
.bio-id-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* ── Timeline ───────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item {
  position: relative; padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}
.timeline-item.current { border-left-color: var(--text); }
.timeline-dot {
  position: absolute; left: -5px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.timeline-item.current .timeline-dot { background: var(--text); }
.timeline-period { font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; }
.timeline-title  { font-size: 1rem; font-weight: 800; line-height: 1.2; margin-bottom: .2rem; }
.timeline-sub    { font-size: .85rem; color: var(--muted); font-weight: 500; }
.timeline-loc    { font-size: .75rem; color: var(--muted); }
.timeline-desc   { font-size: .8rem; color: var(--muted); margin-top: .5rem; line-height: 1.6; }
.timeline-badge  {
  display: inline-block; margin-top: .5rem;
  font-size: .72rem; font-weight: 700;
  padding: .2rem .7rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: .4rem;
}

/* ── PROJECTS ───────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 2rem; padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 420px;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.project-tagline { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.project-num { font-size: 4rem; font-weight: 800; letter-spacing: -.05em; color: var(--border); line-height: 1; margin-top: .25rem; }
.project-link-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-alt); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.project-link-btn:hover { background: var(--text); color: var(--bg); }
.project-name  { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }
.project-desc  { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .35rem 1rem; background: var(--bg-alt); border-radius: 99px;
}

.gh-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; color: var(--text); opacity: .5;
  transition: opacity .2s;
}
.gh-link:hover { opacity: 1; }

/* ── SKILLS ─────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }

.tags-wrap { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.skill-tag {
  padding: .55rem 1.25rem;
  border: 1px solid #3f3f46; border-radius: 99px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  cursor: default; transition: background .25s, color .25s;
}
.skill-tag:hover { background: #fff; color: #000; }

.dot-list { display: flex; flex-direction: column; gap: .6rem; }
.dot-list li { display: flex; align-items: center; gap: .6rem; font-size: .875rem; }
.dot-list li::before { content: ''; width: 5px; height: 5px; background: #52525b; border-radius: 50%; flex-shrink: 0; }
.light-text li { color: #d4d4d8; }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dark-card {
  background: #18181b; border: 1px solid #27272a;
  border-radius: 1.5rem; padding: 2rem;
}
.card-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: #52525b; margin-bottom: 1.25rem; }
.interest-icon { font-size: 1.8rem; color: #71717a; margin-bottom: 1rem; display: block; }
.interest-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.interest-text  { font-size: .78rem; color: #71717a; line-height: 1.6; }

/* ── CERTIFICATIONS ─────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 992px) { .certs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px)  { .certs-grid { grid-template-columns: 1fr; } }

.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2rem;
  transition: transform .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cert-icon {
  width: 48px; height: 48px;
  background: var(--bg-alt); border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.cert-period { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: .35rem; }
.cert-title  { font-size: 1.1rem; font-weight: 800; margin-bottom: .25rem; }
.cert-issuer { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
.cert-desc   { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ── CONTACT ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-bio { font-size: .95rem; color: var(--muted); line-height: 1.7; max-width: 400px; margin: 1.5rem 0 2.5rem; }

.contact-links { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text);
}
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--bg-alt); border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  font-size: 1.1rem;
}
a.contact-item:hover .contact-icon { background: var(--text); color: var(--bg); }
.contact-item small { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.contact-item strong { display: block; font-size: .875rem; font-weight: 700; }

/* ── Form ───────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); border-radius: 1rem;
  padding: 1rem 1.25rem; font-size: .875rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem; border: none; cursor: pointer;
  background: var(--text); color: var(--bg);
  border-radius: 1rem; font-size: .9rem; font-weight: 700;
  font-family: var(--font); transition: opacity .2s;
}
.btn-submit:hover { opacity: .8; }

.form-status { text-align: center; font-size: .875rem; font-weight: 600; color: #22c55e; }
.hidden { display: none; }

/* ── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2.5rem;
  max-width: 380px; width: 100%;
  box-shadow: 0 25px 80px rgba(0,0,0,.2);
}
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; }
.modal-desc  { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-bottom: 2rem; }
.modal-actions { display: flex; gap: 1rem; }
.btn-outline {
  flex: 1; padding: .75rem; border-radius: .875rem; cursor: pointer;
  background: none; border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: .875rem; font-family: var(--font);
  transition: background .2s;
}
.btn-outline:hover { background: var(--bg-alt); }
.btn-solid {
  flex: 1; padding: .75rem; border-radius: .875rem; cursor: pointer;
  background: var(--text); border: none;
  color: var(--bg); font-weight: 700; font-size: .875rem; font-family: var(--font);
  transition: opacity .2s;
}
.btn-solid:hover { opacity: .8; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; opacity: .4;
}
.footer-built { font-size: .72rem; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: var(--text);
  transition: opacity .2s;
}
.footer-links a:hover { opacity: .5; }

/* ── 3D Canvas (desktop only — mobile handled in hero section) ── */







/* ═══════════════════════════════════════════════════════
   RESPONSIVE FIXES — All sections, all breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Global section padding — reduce on mobile ──────── */
@media (max-width: 768px) {
  .section-main  { padding: 4rem 0; }
  .section-alt   { padding: 4rem 0; }
  .section-dark  { padding: 4rem 0; }
  .section-heading    { margin-bottom: 2.5rem; }
  .section-heading-row { margin-bottom: 2.5rem; }
  .container-main { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .section-main  { padding: 3rem 0; }
  .section-alt   { padding: 3rem 0; }
  .section-dark  { padding: 3rem 0; }
  .container-main { padding: 0 1rem; }
}

/* ── HERO — mobile alignment fixes ─────────────────── */
@media (max-width: 768px) {
  .status-badge  { margin: 0 auto 1.5rem; }
  .hero-bio      { max-width: 100%; margin-left: auto; margin-right: auto; font-size: .95rem; }
  .hero-ctas     { gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
  .hero-stats    { gap: 1.5rem; justify-content: center; padding-top: 2rem; }
  .cta-primary   { flex-direction: column; gap: .75rem; align-items: center; }
  .social-links  { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-stats    { gap: 1.25rem; }
  .stat-num      { font-size: 1.5rem; }
  .hero-ctas     { flex-direction: column; align-items: center; gap: 1.25rem; }
  .cta-primary   { flex-direction: row; }
}

/* ── ABOUT — responsive grid & spacing ─────────────── */
@media (max-width: 992px) {
  .about-grid    { gap: 2rem; }
}
@media (max-width: 768px) {
  .about-grid    { gap: 1.5rem; }
  .bio-card      { padding: 1.5rem; }
  .timeline      { gap: 1.5rem; }
  .col-label     { margin-bottom: 1.25rem; }
}

/* ── PROJECTS — card sizing on mobile ───────────────── */
@media (max-width: 768px) {
  .project-card  { padding: 1.75rem; min-height: auto; border-radius: 1.5rem; }
  .project-name  { font-size: 1.8rem; }
  .project-num   { font-size: 3rem; }
  .project-top   { margin-bottom: 1.25rem; }
  .projects-grid { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .project-card  { padding: 1.5rem; }
  .project-name  { font-size: 1.6rem; }
}

/* ── SKILLS — dark section mobile ──────────────────── */
@media (max-width: 768px) {
  .skills-grid   { gap: 2.5rem; }
  .tools-grid    { gap: 1rem; }
  .dark-card     { padding: 1.5rem; }
  .tags-wrap     { gap: .5rem; }
}
@media (max-width: 480px) {
  .tools-grid    { grid-template-columns: 1fr; }
}

/* ── CERTIFICATIONS ─────────────────────────────────── */
@media (max-width: 768px) {
  .certs-grid    { gap: 1rem; }
  .cert-card     { padding: 1.5rem; }
}

/* ── CONTACT ────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-bio   { max-width: 100%; margin-bottom: 2rem; font-size: .9rem; }
  .contact-links { gap: 1rem; }
  .contact-icon  { width: 42px; height: 42px; font-size: 1rem; }
  .contact-item strong { font-size: .82rem; }
}
@media (max-width: 480px) {
  .form-row      { grid-template-columns: 1fr; gap: 1rem; }
  .btn-submit    { font-size: .85rem; }
}

/* ── FOOTER — stack on mobile ───────────────────────── */
@media (max-width: 768px) {
  .site-footer   { padding: 2.5rem 0; }
  .footer-inner  { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer-links  { gap: 1.5rem; }
}

/* ── NAV — mobile padding ───────────────────────────── */
@media (max-width: 768px) {
  .site-nav      { padding: 1rem 1.25rem; }
  --nav-h:       64px;
}

/* ── Section title — fluid on all screens ───────────── */
@media (max-width: 480px) {
  .section-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .bio-name      { font-size: 1.2rem; }
  .cert-title    { font-size: 1rem; }
  .timeline-title { font-size: .95rem; }
}

/* ── Scroll padding for fixed nav ───────────────────── */
html { scroll-padding-top: var(--nav-h, 72px); }

/* ═══════════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS — animated thumbnail
   ═══════════════════════════════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* Card base */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,1,.3,1),
              border-color .3s ease,
              box-shadow .35s ease;
  padding: 0;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 56px rgba(0,0,0,.12);
}
[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,.45);
}

/* ── Thumbnail ─────────────────────────────────────── */
.project-card-thumb {
  width: 100%;
  height: 210px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

/* Shimmer loading animation */
.project-card-thumb::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.18) 40%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.18) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
[data-theme="dark"] .project-card-thumb::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.06) 40%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.06) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
}
/* Hide shimmer once image loads */
.project-card-thumb.loaded::before { display: none; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* The actual background image — zooms on hover */
.project-card-thumb-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.2,1,.3,1), opacity .4s ease;
  transform: scale(1.0);
  opacity: 0;
}
.project-card-thumb.loaded .project-card-thumb-img {
  opacity: 1;
}
.project-card:hover .project-card-thumb-img {
  transform: scale(1.06);
}

/* Gradient overlay */
.project-card-thumb-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)   40%,
    rgba(0,0,0,.55) 100%
  );
}

/* Number badge */
.project-num-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 3;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .22rem .65rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

/* Status pill on thumb */
.project-status-pill {
  position: absolute; bottom: .9rem; right: .9rem; z-index: 3;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .7rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}
.project-status-pill.live {
  background: rgba(34,197,94,.2);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.35);
}
.project-status-pill.wip {
  background: rgba(245,158,11,.2);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,.35);
}

/* ── Card content ──────────────────────────────────── */
.project-card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.project-tagline {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--muted); margin-bottom: .2rem;
}
.project-name {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}
.project-desc {
  font-size: .82rem; color: var(--muted);
  line-height: 1.65; flex: 1;
}
.project-link-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.project-link-btn:hover {
  background: var(--text); color: var(--bg);
  border-color: var(--text); transform: scale(1.1);
}
.project-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.stack-tag {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .28rem .8rem;
  background: var(--bg-alt); border-radius: 99px;
  color: var(--text);
}
.project-card-footer {
  display: flex; gap: .6rem; margin-top: .1rem;
}
.project-live-btn,
.project-gh-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .9rem;
  border-radius: 99px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.project-live-btn:hover,
.project-gh-btn:hover { opacity: .75; transform: translateY(-1px); }
.project-live-btn { background: var(--text); color: var(--bg); }
.project-gh-btn   { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }

@media (max-width: 480px) {
  .project-card-thumb  { height: 170px; }
  .project-name        { font-size: 1.15rem; }
  .project-card-content { padding: 1.1rem; }
}

/* ═══════════════════════════════════════════════════════
   PROJECT POPUP
   ═══════════════════════════════════════════════════════ */

.project-popup-backdrop {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.project-popup-backdrop.open { opacity: 1; pointer-events: auto; }

.project-popup {
  position: fixed; inset: 0; z-index: 601;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,1,.3,1);
}
.project-popup.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}

.project-popup-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  width: 100%;
  max-width: 800px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Close button — fixed inside popup */
.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(6px);
}
.popup-close:hover { background: rgba(0,0,0,.8); transform: scale(1.1); }

/* ── Image gallery ─────────────────────────────────── */
.popup-images-wrap {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
}

.popup-images {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}

/* Slides — horizontal slide transition */
.popup-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,1,.3,1);
  pointer-events: none;
}
.popup-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.popup-slide.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

.popup-slide img {
  width: 100%; height: 100%;
  object-fit: contain;   /* show full image, no cropping */
  display: block;
  background: #0a0a0a;
}

/* Image counter */
.popup-img-counter {
  position: absolute; top: 1rem; left: 1rem; z-index: 5;
  font-size: .65rem; font-weight: 700;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: .25rem .7rem;
  border-radius: 99px;
  backdrop-filter: blur(6px);
  letter-spacing: .1em;
}

/* Placeholder */
.popup-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: #555;
}
.popup-img-placeholder i  { font-size: 2.5rem; }
.popup-img-placeholder p  { font-size: .85rem; font-weight: 600; }

/* Nav arrows */
.popup-img-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; z-index: 5;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(6px);
}
.popup-img-nav:hover { background: rgba(0,0,0,.85); transform: translateY(-50%) scale(1.08); }
.popup-img-nav.prev { left: .85rem; }
.popup-img-nav.next { right: .85rem; }

/* Dots */
.popup-dots {
  position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .45rem; z-index: 5;
}
.popup-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.35);
  transition: background .25s, transform .25s, width .25s;
}
.popup-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
  transform: none;
}

/* ── Popup body ────────────────────────────────────── */
.popup-body { padding: 2rem; }

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.popup-tagline {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--muted); margin-bottom: .4rem;
}
.popup-name {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
}
.popup-actions { display: flex; gap: .65rem; flex-shrink: 0; flex-wrap: wrap; }
.popup-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.popup-btn:hover { opacity: .75; transform: translateY(-1px); }
.popup-btn-solid   { background: var(--text); color: var(--bg); }
.popup-btn-outline { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }

.popup-desc {
  font-size: .9rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 1.5rem;
}

/* Highlights */
.popup-hl-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .75rem;
  margin-bottom: 1.75rem;
  list-style: none; padding: 0;
}
.popup-hl-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .82rem; line-height: 1.5;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .6rem .85rem;
}
.popup-hl-list li i {
  color: #22c55e; font-size: .7rem;
  margin-top: .2rem; flex-shrink: 0;
}

/* Meta row */
.popup-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: start;
}
.popup-meta-label {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--muted); margin-bottom: .5rem;
}
.popup-meta-value { font-size: .85rem; font-weight: 700; }
.popup-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-live { color: #22c55e; }
.status-wip  { color: #f59e0b; }

/* ── Responsive popup ──────────────────────────────── */
@media (max-width: 640px) {
  .project-popup { padding: .5rem; }
  .project-popup-inner { border-radius: 1.5rem; max-height: 96vh; }
  .popup-images-wrap { aspect-ratio: 4/3; border-radius: 1.5rem 1.5rem 0 0; }
  .popup-body { padding: 1.25rem; }
  .popup-name { font-size: 1.5rem; }
  .popup-header { flex-direction: column; }
  .popup-hl-list { grid-template-columns: 1fr; }
  .popup-meta { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .popup-img-nav { width: 36px; height: 36px; font-size: .8rem; }
}
@media (max-width: 400px) {
  .popup-images-wrap { aspect-ratio: 1/1; }
  .popup-meta { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   HERO QUICK LINKS
   ═══════════════════════════════════════════════════════ */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 2rem;
}
.hero-quick-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  font-family: var(--font);
}
.hero-quick-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hero-quick-btn i { font-size: .8rem; color: var(--muted); }
.hero-quick-btn-solid {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.hero-quick-btn-solid i { color: var(--bg); }
.hero-quick-btn-solid:hover { opacity: .8; }

@media (max-width: 480px) {
  .hero-quick-links { flex-direction: column; align-items: center; }
  .hero-quick-btn   { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT FORM — WhatsApp preview
   ═══════════════════════════════════════════════════════ */
.msg-preview {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
[data-theme="dark"] .msg-preview {
  background: #052e16;
  border-color: #166534;
}
.msg-preview-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: #16a34a; margin-bottom: .6rem;
  display: flex; align-items: center; gap: .4rem;
}
.msg-preview pre {
  font-family: var(--font);
  font-size: .82rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  color: var(--text); margin: 0;
}
.form-btn-row {
  display: flex; gap: .75rem;
}
.btn-preview {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text);
  border-radius: 1rem; font-size: .85rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: border-color .2s;
}
.btn-preview:hover { border-color: var(--accent); }
.btn-submit { flex: 1; }

/* ═══════════════════════════════════════════════════════
   CONFIRMATION MODALS (WhatsApp + Resume)
   ═══════════════════════════════════════════════════════ */
.confirm-backdrop {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.confirm-backdrop.open { opacity: 1; pointer-events: auto; }

.confirm-modal {
  position: fixed; inset: 0; z-index: 701;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  pointer-events: none; opacity: 0;
  transform: scale(.95) translateY(10px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,1,.3,1);
}
.confirm-modal.open {
  opacity: 1; pointer-events: auto;
  transform: scale(1) translateY(0);
}
.confirm-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  text-align: center;
}
.confirm-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}
.wa-icon     { background: #dcfce7; color: #16a34a; }
.resume-icon { background: var(--bg-alt); color: var(--text); }
[data-theme="dark"] .wa-icon { background: #052e16; color: #4ade80; }

.confirm-modal-title {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: .6rem;
}
.confirm-modal-desc {
  font-size: .875rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.25rem;
}
.confirm-preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: .85rem 1rem;
  font-size: .78rem; line-height: 1.6;
  text-align: left; white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px; overflow-y: auto;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-family: var(--font);
}
.confirm-modal-actions {
  display: flex; gap: .75rem;
}
.confirm-modal-actions .btn-outline,
.confirm-modal-actions .btn-solid,
.confirm-modal-actions .btn-wa-solid {
  flex: 1; padding: .75rem;
  border-radius: .875rem; cursor: pointer;
  font-weight: 700; font-size: .875rem;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  text-decoration: none;
  transition: opacity .2s;
}
.confirm-modal-actions .btn-outline {
  background: none; border: 1px solid var(--border); color: var(--text);
}
.confirm-modal-actions .btn-outline:hover { background: var(--bg-alt); }
.confirm-modal-actions .btn-solid {
  background: var(--text); color: var(--bg); border: none;
}
.confirm-modal-actions .btn-solid:hover { opacity: .8; color: var(--bg); }
.confirm-modal-actions .btn-wa-solid {
  background: #16a34a; color: #fff; border: none;
}
.confirm-modal-actions .btn-wa-solid:hover { opacity: .85; }

/* ── External confirm modal icon variants ─────────── */
.ext-icon-github   { background: #f3f4f6; color: #111827; }
.ext-icon-linkedin { background: #dbeafe; color: #1d4ed8; }
.ext-icon-email    { background: #fef3c7; color: #d97706; }
.ext-icon-phone    { background: #dcfce7; color: #16a34a; }
.ext-icon-external { background: var(--bg-alt); color: var(--text); }

[data-theme="dark"] .ext-icon-github   { background: #1f2937; color: #f9fafb; }
[data-theme="dark"] .ext-icon-linkedin { background: #1e3a5f; color: #93c5fd; }
[data-theme="dark"] .ext-icon-email    { background: #451a03; color: #fbbf24; }
[data-theme="dark"] .ext-icon-phone    { background: #052e16; color: #4ade80; }

/* URL preview in confirm modal */
.confirm-ext-url {
  font-size: .75rem; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: .5rem; padding: .4rem .75rem;
  margin-bottom: 1.25rem;
  word-break: break-all; text-align: center;
  font-family: monospace;
}
