/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #070D1F;
  --bg-2:       #0A1328;
  --bg-3:       #0F1A40;
  --surface:    #111D45;
  --border:     rgba(255,255,255,0.07);
  --border-h:   rgba(255,255,255,0.14);
  --accent:     #3B82F6;
  --accent-2:   #06B6D4;
  --glow:       rgba(59,130,246,0.25);
  --text:       #E8EBF4;
  --muted:      #6B7FA8;
  --dim:        #3A4F70;
  --font-d:     'Space Grotesk', sans-serif;
  --font-b:     'Inter', sans-serif;
  --r:          12px;
  --r-lg:       20px;
  --ease:       0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  overflow-x: hidden;
  cursor: none;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== BACKGROUND ===== */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ===== CURSOR ===== */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 9999;
  transition: transform .1s, background .2s;
}
.cursor.hover { transform: translate(-50%,-50%) scale(2.5); background: var(--accent-2); }
.cursor-follower {
  position: fixed; width: 30px; height: 30px;
  border: 1px solid rgba(59,130,246,0.35); border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 9998;
}

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0; transition: var(--ease);
}
#nav.scrolled {
  background: rgba(7,13,31,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  font-family: var(--font-d); font-size: 20px; font-weight: 700;
  text-decoration: none; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 32px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color var(--ease); letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 10px 24px;
  border-radius: 100px; text-decoration: none; transition: var(--ease); white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--ease); }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--bg-2); border-left: 1px solid var(--border);
  z-index: 99; padding: 80px 40px;
  transition: right .4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.mobile-menu a {
  font-family: var(--font-d); font-size: 28px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: color var(--ease);
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== SHARED ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; z-index: 1; }

.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.label-num { font-family: var(--font-d); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.label-text { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700; color: var(--text); margin-bottom: 60px; line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  padding-bottom: 0.18em; /* prevents -webkit-background-clip cutting off descenders like 'y' */
  display: inline-block;
}

/* ===== HERO ===== */
.section-hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 100px; position: relative; z-index: 1; overflow: clip;
}
.section-hero::before {
  content: ''; position: absolute; top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.section-hero::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px; padding: 8px 20px;
  font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 40px;
}
.badge-dot {
  width: 8px; height: 8px; background: #22C55E; border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-name {
  font-family: var(--font-d);
  font-size: clamp(64px, 11vw, 144px);
  font-weight: 300; line-height: 1.0; letter-spacing: -.04em;
  margin-bottom: 28px; display: block; overflow: visible;
}
.hero-name span { display: block; }
/* Scoped fix: generous padding so -webkit-background-clip:text includes the 'y' descender */
.hero-name .gradient-text {
  padding-bottom: 0.28em;
  display: block;
}

.hero-role {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-d); font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 500; color: var(--muted); margin-bottom: 28px; height: 36px;
}
.role-prefix { color: var(--accent); }
.role-carousel { position: relative; height: 36px; overflow: hidden; flex: 1; }
.role-item {
  position: absolute; top: 0; left: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease; white-space: nowrap;
}
.role-item.active { opacity: 1; transform: translateY(0); }

.hero-desc {
  font-size: 17px; line-height: 1.75; color: var(--muted);
  max-width: 520px; margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 72px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-h); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-d); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--dim); font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse { 0%,100% { opacity:.3; } 50% { opacity:1; } }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text h2 {
  font-family: var(--font-d); font-size: clamp(28px, 3vw, 44px);
  font-weight: 700; line-height: 1.15; margin-bottom: 28px; letter-spacing: -.02em;
}
.about-text p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-links { display: flex; gap: 16px; margin-top: 36px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: color var(--ease);
  padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }

/* Profile Card */
.profile-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; position: sticky; top: 100px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 14px;
  background: var(--surface); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.profile-logo { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.profile-name { font-family: var(--font-d); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.profile-location { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); margin-bottom: 20px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.tag { font-size: 11px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 11px; border-radius: 100px; }
.profile-langs { display: flex; flex-direction: column; gap: 11px; }
.lang-item { display: grid; grid-template-columns: 56px 1fr 26px; align-items: center; gap: 10px; }
.lang-name { font-size: 12px; font-weight: 500; color: var(--muted); }
.lang-bar { height: 3px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.lang-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.lang-level { font-size: 10px; font-weight: 600; color: var(--accent); text-align: right; }

/* ===== EXPERIENCE ===== */
.experience-timeline { display: flex; flex-direction: column; }
.exp-item {
  display: grid; grid-template-columns: 180px 1fr; gap: 40px;
  padding: 40px 0; border-bottom: 1px solid var(--border); position: relative;
}
.exp-item:last-child { border-bottom: none; }
.exp-item::before {
  content: ''; position: absolute; left: 175px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.exp-item::after {
  content: ''; position: absolute; left: 171px; top: 48px;
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
  border: 2px solid var(--bg); box-shadow: 0 0 0 3px var(--glow);
}
.exp-period { font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 4px; letter-spacing: .01em; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 14px; }
.exp-role { font-family: var(--font-d); font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.exp-company { font-size: 14px; font-weight: 500; color: var(--accent); }
.exp-location {
  font-size: 12px; color: var(--muted); white-space: nowrap;
  background: var(--surface); padding: 4px 12px; border-radius: 100px; border: 1px solid var(--border);
}
.exp-desc { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-tags span { font-size: 11px; font-weight: 500; color: var(--dim); background: var(--surface); padding: 3px 10px; border-radius: 100px; }

/* ===== WORK ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card.wide { grid-column: span 2; }

.work-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: var(--ease);
}
.work-card:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.work-card > .work-img + .work-info { /* standard vertical */ }
.work-card.wide { display: flex; }
.work-card.wide .work-img { width: 300px; flex-shrink: 0; }

.work-img {
  height: 220px; display: flex; align-items: center; justify-content: center;
}
.work-card.wide .work-img { height: auto; min-height: 220px; }

.work-info { padding: 24px; flex: 1; }
.work-tags-row { display: flex; gap: 8px; margin-bottom: 12px; }
.work-tag { font-size: 11px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: .07em; }
.work-info h3 { font-family: var(--font-d); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.work-info p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.work-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; transition: color var(--ease); }
.work-link:hover { color: var(--accent-2); }
.work-link-na { font-size: 13px; color: var(--dim); }
.work-logo { max-width: 160px; max-height: 72px; object-fit: contain; }
.work-flag { font-size: 15px; margin-left: auto; }
.work-logo-block { display: inline-flex; align-items: center; justify-content: center; }

/* ===== SKILLS ===== */
.section-skills { background: linear-gradient(180deg, transparent 0%, rgba(10,19,40,0.5) 50%, transparent 100%); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-category {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; transition: var(--ease);
}
.skill-category:hover { border-color: rgba(59,130,246,0.28); background: var(--bg-3); }
.skill-cat-icon {
  width: 42px; height: 42px; background: rgba(59,130,246,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px;
}
.skill-category h3 { font-family: var(--font-d); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.skill-category ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.skill-category li { font-size: 13px; color: var(--muted); line-height: 1.4; padding-left: 14px; position: relative; }
.skill-category li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%; opacity: .55;
}

/* ===== EDUCATION ===== */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: var(--ease);
}
.edu-card:hover { border-color: var(--border-h); }
.edu-icon {
  width: 52px; height: 52px; background: rgba(59,130,246,0.1); border-radius: 13px;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.edu-content h3 { font-family: var(--font-d); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 7px; line-height: 1.3; }
.edu-school { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.edu-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.edu-details { display: flex; flex-direction: column; gap: 10px; }
.edu-detail { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 10px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.detail-value { font-size: 13px; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-content { max-width: 720px; }
.contact-heading {
  font-family: var(--font-d); font-size: clamp(44px, 6vw, 76px);
  font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 22px;
}
.contact-sub { font-size: 17px; line-height: 1.75; color: var(--muted); margin-bottom: 44px; }
.contact-grid { display: flex; flex-direction: column; gap: 10px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 22px; text-decoration: none; transition: var(--ease);
}
.contact-card:hover { border-color: var(--accent); background: rgba(59,130,246,0.04); transform: translateX(4px); }
.contact-card-icon {
  width: 42px; height: 42px; background: rgba(59,130,246,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0;
}
.contact-card-text { flex: 1; }
.contact-card-label { font-size: 10px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 3px; }
.contact-card-value { font-size: 15px; font-weight: 500; color: var(--text); }
.contact-arrow { color: var(--dim); flex-shrink: 0; transition: var(--ease); }
.contact-card:hover .contact-arrow { color: var(--accent); transform: translateX(3px); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.footer-logo {
  font-family: var(--font-d); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color var(--ease); }
.footer-links a:hover { color: var(--accent); }

/* ===== ABOUT PHOTO ===== */
.about-photo-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 100px;
}
.about-photo-wrap {
  position: relative; overflow: hidden;
}
.about-photo-img {
  width: 100%; height: 260px; object-fit: cover; object-position: center 8%;
  display: block; filter: brightness(0.92) saturate(1.05);
}
.about-photo-fallback {
  width: 100%; height: 260px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #1a3060 100%);
  font-family: var(--font-d); font-size: 56px; font-weight: 300;
  color: rgba(255,255,255,0.12); letter-spacing: -2px;
}
.about-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--bg-2) 0%, transparent 100%);
  pointer-events: none;
}
.about-photo-badge {
  position: absolute; bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7,13,31,0.8); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 5px 12px;
  font-size: 10px; font-weight: 600; color: var(--text); white-space: nowrap;
  letter-spacing: .05em; text-transform: uppercase;
}
.about-photo-badge-dot { width: 5px; height: 5px; background: var(--accent-2); border-radius: 50%; }
.about-photo-info { padding: 20px 24px 24px; }

/* ===== PUBLICATIONS ===== */
.pub-grid { display: flex; flex-direction: column; gap: 12px; }
.pub-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 24px;
  text-decoration: none; color: var(--text);
  -webkit-text-fill-color: var(--text); /* override any browser link fill */
  transition: var(--ease);
}
.pub-card:hover { border-color: var(--border-h); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.pub-card h3 { color: var(--text); -webkit-text-fill-color: var(--text); }
.pub-card p  { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.pub-card .pub-code { -webkit-text-fill-color: var(--accent-2); }
.pub-icon {
  width: 48px; height: 48px; background: rgba(59,130,246,0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.pub-content { flex: 1; min-width: 0; }
.pub-content h3 { font-family: var(--font-d); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pub-content p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.pub-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-stat { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--dim); }
.pub-stat strong { color: var(--text); font-weight: 600; }
.pub-stat--verified { color: var(--accent); font-size: 11px; font-weight: 600; }
.pub-stat--platforms { color: var(--dim); font-size: 11px; }
.pub-badge {
  font-size: 11px; font-weight: 600; color: var(--accent-2); white-space: nowrap;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  padding: 3px 10px; border-radius: 100px;
}
.pub-badge--blue { color: var(--accent); background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); }
.pub-code {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: var(--surface); color: var(--accent-2);
  padding: 1px 7px; border-radius: 5px; white-space: nowrap;
}
.pub-content p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.pub-arrow { color: var(--dim); flex-shrink: 0; transition: var(--ease); }
.pub-card:hover .pub-arrow { color: var(--accent); transform: translateX(3px); }

@media (max-width: 640px) {
  .pub-card { flex-wrap: wrap; gap: 14px; }
  .pub-arrow { display: none; }
  .pub-meta { gap: 10px; }
  .pub-title-row h3 { font-size: 14px; }
}

/* ===== MOALY TECH LOGO MARK SVG ===== */
.mt-mark { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-badge { font-size: 11px; padding: 6px 14px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 0; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-card { position: static; }
  .about-photo-img, .about-photo-fallback { height: 220px; }

  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .exp-item::before, .exp-item::after { display: none; }
  .exp-header { flex-direction: column; gap: 8px; }
  .exp-location { align-self: flex-start; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card.wide { grid-column: auto; display: block; }
  .work-card.wide .work-img { width: 100%; height: 180px; }
  .work-img { height: 180px; }

  .skills-grid { grid-template-columns: 1fr 1fr; }
  .edu-grid { grid-template-columns: 1fr; }

  .container { padding: 0 20px; }
  .hero-container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .section { padding: 72px 0; }

  .contact-grid { gap: 8px; }
  .contact-card { padding: 14px 18px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }

  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(52px, 15vw, 80px); letter-spacing: -.035em; }
  .hero-desc { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-heading { font-size: clamp(36px, 12vw, 52px); }
  .skills-grid { grid-template-columns: 1fr; }
  .section-title { margin-bottom: 40px; }
  .work-logo { max-width: 120px; max-height: 55px; }
}
