/* =============================================================
   MARIA NAMITHA NELSON — PORTFOLIO  |  style.css
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

/* =============================================================
   1. RESET & TOKENS
   ============================================================= */

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

:root {
  /* Surfaces */
  --bg: #080c10;
  --surface: #0d1218;
  --card: #111a24;
  --card-hover: #162030;

  /* Borders */
  --border: #1e3044;
  --border-hi: #2a4560;

  /* Accents */
  --accent: #38bdf8;
  /* sky blue — readable, calm */
  --accent-lo: rgba(56, 189, 248, 0.10);
  --accent-glow: rgba(56, 189, 248, 0.20);
  --accent2: #818cf8;
  /* indigo */
  --accent2-lo: rgba(129, 140, 248, 0.10);
  --green: #34d399;
  /* emerald */
  --green-lo: rgba(52, 211, 153, 0.10);
  --orange: #fb923c;
  /* orange */
  --orange-lo: rgba(251, 146, 60, 0.10);
  --rose: #fb7185;

  /* Text — designed for readability */
  --text: #f0f4f8;
  /* near-white, not harsh */
  --text-sub: #94a3b8;
  /* slate-400 */
  --muted: #4e6478;
  --dim: #1e3044;

  /* Typography — UX-standard readable stack */
  --font-display: 'Playfair Display', Georgia, serif;
  /* headings: warm, distinctive */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  /* body: gold standard for readability */
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;
  /* code */

  /* Spacing */
  --page-pad: 60px;
  --max-w: 1100px;
  --max-w-wide: 1240px;
  --nav-h: 64px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Motion */
  --t-fast: 0.15s ease;
  --t-med: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* =============================================================
   2. TYPOGRAPHY
   ============================================================= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

/* body text default */
p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

/* alias */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* =============================================================
   3. TAGS
   ============================================================= */

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  /* pill shape — more friendly */
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-blue {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: var(--accent-lo);
}

.tag-purple {
  color: var(--accent2);
  border-color: rgba(129, 140, 248, 0.25);
  background: var(--accent2-lo);
}

.tag-green {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.25);
  background: var(--green-lo);
}

.tag-orange {
  color: var(--orange);
  border-color: rgba(251, 146, 60, 0.25);
  background: var(--orange-lo);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* =============================================================
   4. BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--t-fast);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #04111c;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border-color: var(--border-hi);
}

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

.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
}

/* =============================================================
   5. NAVIGATION
   ============================================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 48, 68, 0.6);
  transition: background var(--t-med);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Active nav highlight — set by JS IntersectionObserver */
.nav-links a.nav-active {
  color: var(--accent);
  background: var(--accent-lo);
}

.nav-links .nav-github {
  border: 1.5px solid var(--border-hi);
  color: var(--text-sub);
  margin-left: 8px;
}

.nav-links .nav-github:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lo);
}

/* =============================================================
   6. HERO
   ============================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--page-pad) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 65% at 78% 35%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 10% 70%, rgba(129, 140, 248, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  opacity: 0;
  animation: a-up 0.5s ease 0.15s forwards;
}

.hero-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: a-blink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  opacity: 0;
  animation: a-up 0.5s ease 0.28s forwards;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 22px;
  opacity: 0;
  animation: a-up 0.5s ease 0.42s forwards;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  animation: a-up 0.5s ease 0.56s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: a-up 0.5s ease 0.70s forwards;
}

.scroll-hint {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: a-fade 1s ease 1.2s forwards;
}

.scroll-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--muted), transparent);
}



.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.hero-logo-wrap {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* outer glow ring */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 340px;
  height: 340px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  background: rgba(13, 18, 24, 0.8);
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 0 60px rgba(56, 189, 248, 0.12),
    inset 0 0 30px rgba(56, 189, 248, 0.05);
}

@media (max-width: 1024px) {
  .hero-logo {
    width: 260px;
    height: 260px;
  }

  .hero-logo-wrap {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .hero-logo-wrap {
    flex: none;
  }
}

/* =============================================================
   7. ABOUT
   ============================================================= */

.about {
  padding: 110px var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-text .highlight {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.edu-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.edu-item {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 18px;
  margin-bottom: 24px;
  transition: border-left-color var(--t-fast);
}

.edu-item:hover {
  border-left-color: var(--accent);
}

.edu-degree {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-school {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
}

.edu-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 4px;
}

.edu-wes {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 3px;
  font-style: italic;
}

/* Skills */
.skill-group {
  margin-bottom: 24px;
}

.skill-group-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 5px 12px;
  border-radius: 99px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lo);
}

/* =============================================================
   8. CERTIFICATIONS SECTION
   ============================================================= */

.certs-section {
  padding: 80px var(--page-pad) 100px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}

.cert-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-icon-aws {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.cert-icon-sas {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.cert-icon-gen {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.cert-icon-udemy {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.cert-info {
  flex: 1;
  min-width: 0;
}

.cert-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.cert-issuer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
}

.cert-year {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
  display: block;
}

.cert-link-hint {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  align-self: center;
  transition: color var(--t-fast);
}

.cert-card:hover .cert-link-hint {
  color: var(--accent);
}

/* Modal */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.85);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}

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

.cert-modal {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 580px;
  width: 100%;
  position: relative;
  transform: translateY(16px);
  transition: transform var(--t-med);
}

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

.cert-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.cert-modal-close:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.cert-modal h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 6px;
  padding-right: 40px;
}

.cert-modal-issuer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.cert-modal-placeholder {
  width: 100%;
  height: 200px;
  background: var(--surface);
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cert-modal-placeholder span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
}

.cert-modal-img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  display: none;
}

.cert-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================================
   9. PROJECT CARDS (index grid)
   ============================================================= */

.projects {
  padding: 60px var(--page-pad) 100px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.projects-header {
  margin-bottom: 44px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* All cards span 1 column — uniform grid */
.card-std,
.card-featured {
  grid-column: span 1;
}

/* Legacy aliases — kept for any remaining references */
.card-span-7,
.card-span-6 {
  grid-column: span 1;
}

.card-span-5,
.card-span-4 {
  grid-column: span 1;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med), transform var(--t-med),
    background var(--t-med), box-shadow var(--t-med);
  position: relative;
}

.project-card:hover {
  border-color: var(--border-hi);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--t-med);
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.project-card:hover::before {
  opacity: 1;
}

.accent-blue::before {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.accent-purple::before {
  background: linear-gradient(90deg, var(--accent2), #c4b5fd);
}

.accent-green::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.accent-orange::before {
  background: linear-gradient(90deg, var(--orange), #fcd34d);
}


.card-thumb {
  height: 175px;
  background: var(--surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-icon {
  font-size: 2.6rem;
  opacity: 0.12;
  user-select: none;
  transition: transform var(--t-med), opacity var(--t-med);
}

.project-card:hover .thumb-icon {
  transform: scale(1.1);
  opacity: 0.2;
}

.thumb-blue {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.10), rgba(0, 40, 70, 0.5));
}

.thumb-purple {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.12), rgba(25, 0, 70, 0.5));
}

.thumb-green {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.10), rgba(0, 50, 28, 0.5));
}

.thumb-orange {
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.12), rgba(70, 15, 0, 0.5));
}

.thumb-teal {
  background: linear-gradient(145deg, rgba(0, 255, 200, 0.08), rgba(0, 50, 50, 0.5));
}

.card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Small icon at top of card — no separate thumbnail div needed */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-icon-blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-icon-purple {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.card-icon-green {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.card-icon-orange {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.card-icon-teal {
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.15);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.35;
  transition: color var(--t-fast);
}

.project-card:hover .card-title {
  color: #fff;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
  transition: color var(--t-fast);
}

.project-card:hover .card-desc {
  color: var(--text-sub);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.card-arrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-card:hover .card-arrow {
  color: var(--accent);
}

.card-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all var(--t-fast);
  background: transparent;
  white-space: nowrap;
}

.card-github:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.05);
}

.card-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: all var(--t-fast);
  background: transparent;
}

.card-github:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
}

/* =============================================================
   10. CONTACT
   ============================================================= */

.contact {
  border-top: 1px solid var(--border);
  padding: 100px var(--page-pad);
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.contact>p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-sub);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   11. PROJECT HERO (detail pages)
   ============================================================= */

.project-hero {
  padding: 110px var(--page-pad) 52px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.project-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color var(--t-fast);
  padding: 6px 0;
}

.project-hero-back:hover {
  color: var(--accent);
}

.project-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 16px 0 26px;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 52px;
  background: var(--border);
  gap: 1px;
}

.meta-block {
  padding: 16px 24px;
  background: var(--card);
  flex: 1;
  min-width: 130px;
  transition: background var(--t-fast);
}

.meta-block:hover {
  background: var(--card-hover);
}

.meta-block label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.meta-block span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.meta-block a {
  color: var(--accent);
  text-decoration: none;
}

.meta-block a:hover {
  text-decoration: underline;
}

/* =============================================================
   12. PROJECT CONTENT (detail pages)
   ============================================================= */

.project-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad) 90px;
}

.project-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.project-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.82;
  color: var(--text-sub);
  max-width: 720px;
  margin-bottom: 16px;
}

.project-content p strong {
  color: var(--text);
  font-weight: 600;
}

.project-content ul {
  list-style: none;
  margin-bottom: 18px;
}

.project-content ul li {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-sub);
  padding: 7px 0 7px 20px;
  position: relative;
  max-width: 720px;
  border-bottom: 1px solid rgba(30, 48, 68, 0.4);
}

.project-content ul li:last-child {
  border-bottom: none;
}

.project-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--accent);
  font-size: 0.72rem;
  font-family: var(--font-body);
}

.project-content ul li strong {
  color: var(--text);
}

/* =============================================================
   13. STAT ROWS
   ============================================================= */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 32px 0;
  background: var(--border);
  gap: 1px;
}

.stat-cell {
  background: var(--card);
  padding: 24px 20px;
  transition: background var(--t-fast);
}

.stat-cell:hover {
  background: var(--card-hover);
}

.stat-cell .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.stat-cell .lbl {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  display: block;
  line-height: 1.5;
}

/* =============================================================
   14. CODE BLOCKS
   ============================================================= */

code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  color: var(--accent);
}

.code-block {
  background: #0a1520;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 18px 0 26px;
}

.code-block-header {
  padding: 8px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block-header::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.code-block pre {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #cbd5e1;
  overflow-x: auto;
  tab-size: 2;
}

.code-block .kw {
  color: #7dd3fc;
}

.code-block .fn {
  color: #c4b5fd;
}

.code-block .str {
  color: #fcd34d;
}

.code-block .cm {
  color: var(--muted);
  font-style: italic;
}

.code-block .num {
  color: var(--green);
}

/* =============================================================
   15. IMAGES
   ============================================================= */

.project-img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin: 24px 0 6px;
  display: block;
  transition: border-color var(--t-fast);
}

.project-img:hover {
  border-color: var(--border-hi);
}

.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.img-grid img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast);
}

.img-grid img:hover {
  border-color: var(--border-hi);
}

.img-caption {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 20px;
  letter-spacing: 0.06em;
}

/* =============================================================
   16. CALLOUT BLOCKS
   ============================================================= */

.callout {
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 30px 0;
  border: 1px solid;
}

.callout-green {
  background: rgba(52, 211, 153, 0.04);
  border-color: rgba(52, 211, 153, 0.2);
  border-left: 3px solid var(--green);
}

.callout-orange {
  background: rgba(251, 146, 60, 0.04);
  border-color: rgba(251, 146, 60, 0.2);
  border-left: 3px solid var(--orange);
}

.callout-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.callout-green .callout-title {
  color: var(--green);
}

.callout-orange .callout-title {
  color: var(--orange);
}

.callout p {
  font-family: var(--font-body);
  font-size: 0.97rem !important;
  line-height: 1.75 !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  color: var(--text) !important;
}

.callout p+p {
  margin-top: 8px !important;
  color: var(--text-sub) !important;
}

/* =============================================================
   17. FOOTER
   ============================================================= */

footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.foot-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

footer a:hover {
  color: var(--accent);
}

/* =============================================================
   18. ANIMATIONS
   ============================================================= */

@keyframes a-up {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes a-fade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes a-blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--green);
  }

  50% {
    opacity: 0.3;
    box-shadow: none;
  }
}

/* =============================================================
   19. RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
  :root {
    --page-pad: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-span-7,
  .card-span-6 {
    grid-column: span 2;
  }

  .card-span-5,
  .card-span-4 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --page-pad: 20px;
    --nav-h: 56px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .scroll-hint {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 72px var(--page-pad);
    gap: 40px;
  }

  .projects {
    padding: 52px var(--page-pad) 72px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card-featured,
  .card-std,
  .card-span-7,
  .card-span-6,
  .card-span-5,
  .card-span-4 {
    grid-column: span 1;
  }

  .contact {
    padding: 72px var(--page-pad);
  }

  .project-hero {
    padding: 86px var(--page-pad) 36px;
  }

  .project-hero-meta {
    flex-direction: column;
  }

  .project-content {
    padding: 0 var(--page-pad) 52px;
  }

  .img-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .certs-section {
    padding: 60px var(--page-pad) 72px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .contact-links,
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* =============================================================
   CAROUSEL — Web Dev Section
   ============================================================= */

.webdev-section {
  padding: 60px var(--page-pad) 100px;
  max-width: 860px;
  margin: 0 auto;
}

.webdev-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.webdev-header .section-title {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  background: var(--card);
  color: var(--text-sub);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

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

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 40px;
  text-align: center;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--r-md);
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide takes full width */
.carousel-card {
  min-width: 100%;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 36px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color var(--t-fast);
  box-sizing: border-box;
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.carousel-card.accent-blue::before {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.carousel-card.accent-purple::before {
  background: linear-gradient(90deg, var(--accent2), #c4b5fd);
}

.carousel-card.accent-green::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.carousel-card.accent-orange::before {
  background: linear-gradient(90deg, var(--orange), #fcd34d);
}

.carousel-card:hover {
  border-color: var(--border-hi);
}

.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.cc-icon-blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.cc-icon-purple {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.cc-icon-green {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.cc-icon-orange {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.cc-icon-teal {
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.15);
}

.cc-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cc-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.cc-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--text-sub);
  flex: 1;
}

/* "click" hint at bottom of card */
.carousel-card::after {
  content: 'View full project →';
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  transition: color var(--t-fast);
}

.carousel-card:hover::after {
  color: var(--accent);
}

/* dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border-hi);
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast);
}

.cdot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* =============================================================
   EDUCATION POPUP
   ============================================================= */

.edu-clickable {
  cursor: pointer;
}

.edu-clickable:hover {
  border-left-color: var(--accent);
}

.edu-view-hint {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.edu-clickable:hover .edu-view-hint {
  opacity: 1;
}

@media (max-width: 768px) {
  .webdev-section {
    padding: 52px var(--page-pad) 72px;
  }

  .webdev-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .carousel-card {
    padding: 24px 22px 20px;
  }

  .cc-title {
    font-size: 1.05rem;
  }
}


/* =============================================================
   HERO VISUAL — LAPTOP + YARN
   ============================================================= */

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.hero-inner {
  flex: 1;
  max-width: 580px;
}

.hero-visual {
  flex-shrink: 0;
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: a-up 0.7s ease 0.8s forwards;
}

/* ── Laptop ── */
.laptop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 40px rgba(56, 189, 248, 0.12));
}

.laptop-screen {
  width: 100%;
  background: #0a1628;
  border: 2px solid #1e3a5f;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 18px 16px 14px;
  position: relative;
}

.laptop-screen::before {
  content: '● ● ●';
  display: block;
  font-size: 7px;
  letter-spacing: 4px;
  color: #2a4a6a;
  margin-bottom: 12px;
}

.screen-content {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
}

.screen-line {
  display: block;
}

.s-blue {
  color: #60a5fa;
}

.s-green {
  color: #34d399;
}

.s-yellow {
  color: #fcd34d;
}

.s-white {
  color: #e2e8f0;
}

.screen-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  border-radius: 1px;
  margin-top: 4px;
  animation: a-blink 1s step-end infinite;
  vertical-align: middle;
}

.laptop-hinge {
  width: 100%;
  height: 5px;
  background: linear-gradient(180deg, #1a3a5c, #0f2236);
  border-left: 2px solid #1e3a5f;
  border-right: 2px solid #1e3a5f;
}

.laptop-base {
  width: 108%;
  height: 22px;
  background: linear-gradient(180deg, #0f2236, #091929);
  border: 2px solid #1e3a5f;
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-trackpad {
  width: 52px;
  height: 10px;
  border: 1px solid #1e3a5f;
  border-radius: 3px;
  background: #0a1628;
}

/* ── Yarn / Crochet ── */
.yarn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.9;
  animation: yarn-float 4s ease-in-out infinite;
}

.yarn-ball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f9a8d4, #ec4899 60%, #be185d);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.yarn-lines {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 5px,
      rgba(255, 255, 255, 0.15) 5px,
      rgba(255, 255, 255, 0.15) 6px),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.10) 8px,
      rgba(255, 255, 255, 0.10) 9px);
}

.yarn-hook {
  font-size: 1.4rem;
  animation: yarn-float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

.yarn-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}

@keyframes yarn-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ── Laptop screen typing animation ── */
.screen-line {
  opacity: 0;
  animation: line-appear 0.4s ease forwards;
}

.screen-line:nth-child(1) {
  animation-delay: 1.0s;
}

.screen-line:nth-child(2) {
  animation-delay: 1.5s;
}

.screen-line:nth-child(3) {
  animation-delay: 2.0s;
}

.screen-line:nth-child(4) {
  animation-delay: 2.5s;
}

.screen-line:nth-child(5) {
  animation-delay: 3.0s;
}

@keyframes line-appear {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .hero-visual {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column;
    gap: 32px;
  }

  .hero-visual {
    width: 100%;
    max-width: 320px;
  }

  .hero-inner {
    max-width: 100%;
  }
}

.hero h1 {
  min-height: 4.0em;
}