/* =========================================================
   Ganeshprasad Shetty — Portfolio 2026
   Modern dark theme · signature orange accent
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #0d0d11;
  --surface: #131318;
  --surface-2: #191921;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --muted: #9a9aa7;
  --muted-2: #71717f;
  --accent: #ff7a00;
  --accent-2: #ff9d3c;
  --accent-soft: rgba(255, 122, 0, 0.14);
  --accent-glow: rgba(255, 122, 0, 0.45);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--accent); color: #0a0a0c; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #0a0a0c; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Animated background ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #15131a 0%, var(--bg) 55%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 22s var(--ease) infinite alternate;
}
.orb-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(255,122,0,0.5), transparent 70%); }
.orb-2 { width: 460px; height: 460px; top: 40%; left: -180px; background: radial-gradient(circle, rgba(120,80,255,0.28), transparent 70%); animation-delay: -6s; }
.orb-3 { width: 400px; height: 400px; bottom: -160px; right: 20%; background: radial-gradient(circle, rgba(255,122,0,0.22), transparent 70%); animation-delay: -12s; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}
@keyframes drift {
  to { transform: translate3d(40px, 50px, 0) scale(1.12); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #190c00; box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px var(--accent-glow); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 18px 0; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border); padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #190c00; font-size: 0.95rem; letter-spacing: -0.02em;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.brand-text { font-size: 1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: 9px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { color: #190c00 !important; margin-left: 6px; }
.nav-cta:hover { background: none !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 70px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.02em; margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #2ed47a;
  box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 212, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0); }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #b9b9c6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-role { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600; margin-top: 8px; }
.role-static { color: var(--muted); }
.role-rotator { color: var(--accent); position: relative; }
.role-rotator::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 3px; vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 530px; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-socials { display: flex; gap: 8px; margin-top: 30px; }
.hero-socials a, .contact-socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s, transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.hero-socials a:hover, .contact-socials a:hover {
  color: var(--accent); border-color: var(--accent); transform: translateY(-3px);
  background: var(--accent-soft);
}

/* Hero visual */
.hero-visual { display: grid; place-items: center; }
.photo-wrap { position: relative; width: min(380px, 80vw); aspect-ratio: 1; }
.photo-glow {
  position: absolute; inset: -8%; border-radius: 30px;
  background: conic-gradient(from 180deg, var(--accent), #7850ff, var(--accent));
  filter: blur(36px); opacity: 0.35; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.photo-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 12px; font-size: 0.78rem; font-weight: 600;
  background: rgba(15, 15, 19, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.6);
  animation: float 4s ease-in-out infinite;
}
.photo-badge svg { color: var(--accent); }
.badge-azure { top: 14%; left: -34px; }
.badge-snow { bottom: 14%; right: -26px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.hero-stats li { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.84rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), rgba(13,13,17,0)); }
.section-head { margin-bottom: 52px; position: relative; }
.section-index {
  display: inline-block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.2em; margin-bottom: 10px;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; max-width: 620px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.about-text .lead { font-size: 1.25rem; color: var(--text); font-family: var(--font-display); line-height: 1.45; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-meta span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--text);
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02);
}
.about-meta svg { color: var(--accent); }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.pillar-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.pillar h3 { font-size: 1.02rem; margin-bottom: 7px; }
.pillar p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.84rem; font-weight: 500; color: var(--text);
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.skill-card:hover .chips li { border-color: var(--border); }
.chips li:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255,122,0,0.05));
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center;
}
.tl-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl-dot-start { border-color: var(--muted-2); }
.tl-dot-start::after { background: var(--muted-2); }
.tl-badge {
  position: absolute; left: 26px; top: -2px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #190c00; background: var(--accent); padding: 3px 8px; border-radius: 999px;
}
.tl-card {
  padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover { transform: translateX(5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.tl-top h3 { font-size: 1.18rem; }
.tl-date { font-size: 0.82rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.tl-co { color: var(--muted); font-weight: 500; margin: 2px 0 12px; font-size: 0.95rem; }
.tl-card ul { display: grid; gap: 8px; }
.tl-card li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.tl-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card {
  position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.work-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%);
}
.work-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.work-card:hover::before { opacity: 1; }
.work-metric {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: 14px;
}
.work-card h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; }
.work-card > p { color: var(--muted); font-size: 0.94rem; position: relative; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; position: relative; }
.tags li { font-size: 0.76rem; color: var(--muted); padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; }

/* OSS strip */
.oss { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--border); }
.oss-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.oss-head h3 { font-size: 1.15rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.oss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.oss-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.oss-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-2); }
.oss-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.oss-desc { font-size: 0.85rem; color: var(--muted); flex: 1; }
.oss-lang { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-dart { background: #00b4ab; }
.dot-c { background: #555; }
.dot-java { background: #e8a33d; }
.dot-css { background: #563d7c; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cert-group { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cert-group h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.cert-group ul { display: grid; gap: 12px; }
.cert-group li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--text); }
.cert-badge {
  flex-shrink: 0; min-width: 64px; text-align: center; font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; color: var(--accent); padding: 5px 10px;
  border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft);
}

/* ---------- Awards ---------- */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.award:hover { transform: translateY(-4px); border-color: var(--accent); }
.award-year {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft);
}
.award h3 { font-size: 1rem; margin-bottom: 5px; }
.award p { font-size: 0.84rem; color: var(--muted); }

/* ---------- Education ---------- */
.edu-card {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.edu-main { flex: 1; min-width: 280px; }
.edu-main h3 { font-size: 1.3rem; margin-bottom: 6px; }
.edu-school { color: var(--accent); font-weight: 500; margin-bottom: 14px; }
.edu-courses { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.edu-activities { color: var(--muted); font-size: 0.9rem; }
.edu-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.edu-year { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.edu-cgpa { font-size: 0.9rem; color: var(--muted); }
.edu-cgpa strong { color: var(--accent); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.section-contact { padding: 110px 0; text-align: center; }
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 18px; }
.contact-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 28px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-bottom: 28px; }
.contact-list a { color: var(--text); font-weight: 500; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.contact-socials { display: flex; gap: 10px; justify-content: center; }

/* ---------- Footer / Time machine ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 36px; position: relative; }
.time-machine {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  padding: 30px; border-radius: var(--radius); margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(255,122,0,0.10), rgba(120,80,255,0.08));
  border: 1px solid var(--border-strong);
}
.tm-icon { font-size: 2.4rem; line-height: 1; }
.tm-copy { flex: 1; min-width: 240px; }
.tm-copy h3 { font-size: 1.25rem; margin-bottom: 5px; }
.tm-copy p { color: var(--muted); font-size: 0.95rem; }
.btn-time {
  background: rgba(10, 10, 12, 0.5); color: var(--text); border: 1px solid var(--accent);
}
.btn-time:hover { background: var(--accent); color: #190c00; transform: translateY(-2px); }
.btn-time:hover svg { transform: rotate(-25deg); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.footer-bottom p { color: var(--muted-2); font-size: 0.87rem; }
.footer-bottom .brand-mark { width: 34px; height: 34px; font-size: 0.85rem; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* Floating Time-Machine button */
.tm-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: rgba(15, 15, 19, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.tm-fab:hover { transform: translateY(-3px); background: var(--accent); color: #190c00; }
.tm-fab-ico { font-size: 1.1rem; }

/* ---------- Reveal animation (only hides when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .photo-wrap { width: min(300px, 70vw); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .oss-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 90px 24px 30px;
    background: rgba(12, 12, 16, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border); transform: translateX(100%);
    transition: transform 0.4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; font-size: 1rem; padding: 12px 14px; }
  .nav-cta { margin-top: 12px; }
  .nav-toggle { display: flex; z-index: 101; }
  .hero { padding: 130px 0 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .badge-azure { left: -14px; }
  .badge-snow { right: -10px; }
  .section { padding: 72px 0; }
  .tm-fab-text { display: none; }
  .tm-fab { padding: 13px; }
  .time-machine { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 460px) {
  .skills-grid, .awards-grid, .oss-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .orb { animation: none; }
}
