/* ══════════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM & DESIGN TOKENS
   Ponmudi M R — Portfolio
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfbfa;
  --bg2: #f2f1ed;
  --bg3: #eae8e2;
  --text: #1a1d21;
  --text2: #475056;
  --text3: #7a8288;
  --border: #dcdad4;
  --accent: #1e7a34;
  --accent-hover: #166028;
  --accent-light: rgba(30, 122, 52, 0.09);
  --radius: 3px;
  --radius-sm: 2px;
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(26, 29, 33, 0.04);
  --shadow-md: 0 6px 20px rgba(26, 29, 33, 0.07);
}

.dark-mode {
  --bg: #14161a;
  --bg2: #1a1d22;
  --bg3: #21242a;
  --text: #e8e6e1;
  --text2: #b7bcc2;
  --text3: #71777d;
  --border: #2a2d33;
  --accent: #3fb950;
  --accent-hover: #56d364;
  --accent-light: rgba(63, 185, 80, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ACCESSIBILITY SKIP LINK */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 1rem;
}

/* RESET & CORE STYLES */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ACCESSIBILITY FOCUS INDICATOR */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* TEXT SELECTION — inverted, like selecting in a terminal */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── NAVIGATION ── */
nav#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dark-mode nav#navbar {
  background: rgba(11, 15, 25, 0.82);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo .prompt-user { color: var(--accent); }
.prompt-cursor {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

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

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: var(--bg2);
  border-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* ── HERO SECTION ── */
#hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2.5rem;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-photo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
}

.hero-photo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 1;
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
  background: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
}

.hero-name {
  font-size: clamp(2.1rem, 5.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text2);
  font-weight: 400;
  min-height: 2.2rem;
  margin-bottom: 2.25rem;
}

#typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  background: var(--accent);
  color: #ffffff !important;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary::before { content: '['; color: var(--text3); }
.btn-secondary::after { content: ']'; color: var(--text3); }

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.btn-secondary:hover::before,
.btn-secondary:hover::after {
  color: var(--accent);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  animation: float 2.4s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text3), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── COMMON SECTIONS ── */
section {
  padding: 4rem 1.5rem;
  position: relative;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}
.section-tag .prompt-sym {
  color: var(--accent);
  margin-right: 0.55em;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2.25rem;
  color: var(--text);
  position: relative;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.profile-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
}

.profile-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0;
  margin-top: 0.15rem;
  font-weight: 400;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tl-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.tl-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
}

.tl-year {
  font-size: 0.85rem;
  color: var(--text);
  min-width: 3.5rem;
  margin-top: 0.1rem;
  font-weight: 700;
}

.tl-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tl-content p {
  font-size: 0.9rem;
  color: var(--text3);
  line-height: 1.55;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.skill-card:hover {
  border-left-color: var(--accent);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-level {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.visible .skill-fill {
  transform: scaleX(1);
}

.skill-percentage {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 400;
}

/* ── OPEN SOURCE ── */
.os-philosophy {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.os-contribution {
  margin-bottom: 2rem;
}

.os-contribution-link {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  color: inherit;
}

.os-contribution-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  margin-bottom: 0.6rem;
}

.os-merged-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-right: 0.4em;
}

.os-contribution-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.os-contribution-detail {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.65;
  max-width: 68ch;
}

.os-repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.os-repo-card {
  display: block;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
  color: inherit;
}

.os-repo-card:hover {
  border-left-color: var(--accent);
}

.os-repo-name {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.os-repo-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.os-repo-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text3);
  display: flex;
  gap: 0.9rem;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.project-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover,
.project-card:focus-visible {
  border-left-color: var(--accent);
  background: var(--bg3);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 0;
  font-weight: 500;
}

.project-built-with {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text3);
  margin-bottom: 0.9rem;
}
.project-built-with span { color: var(--accent); }

.project-has-img {
  font-size: 0.9rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.project-short-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text2);
  font-weight: 500;
}

.project-arrow {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

/* ── MODALS ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

#modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.modal-title {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h4 {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text3);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.modal-section p,
.modal-section ul {
  font-size: 0.94rem;
  color: var(--text2);
  line-height: 1.7;
}

.modal-section ul {
  padding-left: 1.25rem;
}

.modal-section li {
  margin-bottom: 0.35rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.modal-project-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  display: block;
}

/* ── CERTS ── */
.certs-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-card:hover {
  border-left-color: var(--accent);
}

.cert-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cert-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0;
  background: var(--accent-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.cert-year {
  font-size: 0.78rem;
  color: var(--text3);
  font-weight: 600;
}

.cert-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.cert-by {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.4;
}

.cert-id-tag {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.cert-action-prompt {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cert-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cert-modal-inner {
  background: var(--bg);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  position: relative;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cert-large {
  width: 100%;
  height: 280px;
  background: var(--bg2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── RESUME ── */
.resume-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .resume-wrap { grid-template-columns: 1fr; }
}

.resume-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.resume-preview {
  width: 100%;
  height: 300px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text3);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.resume-lines {
  position: absolute;
  inset: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.3;
}

.resume-line {
  height: 3px;
  background: var(--border);
  border-radius: 1.5px;
}

.resume-line:nth-child(odd) { width: 85%; }
.resume-line:nth-child(even) { width: 60%; }

.resume-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.resume-info p {
  font-size: 0.96rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.resume-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease;
  min-width: 0;
}

.contact-card > div {
  min-width: 0;
}

.contact-card:hover {
  border-left-color: var(--accent);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: break-word;
}

.contact-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-cta p {
  font-size: 1.05rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text3);
}

footer span {
  color: var(--text);
  font-weight: 600;
}

.footer-prompt {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}
.footer-prompt .prompt-sym { color: var(--accent); margin-right: 0; }
.footer-prompt .prompt-cursor { margin-left: 2px; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-indicator {
    animation: none !important;
  }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  section { padding: 3rem 1rem; }
  .projects-grid, .certs-grid, .contact-grid { grid-template-columns: 1fr; }
}
