/* ============================================================
   Mujahid Konda — Portfolio
   Design system: dark (default) + light, indigo/violet accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root,
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-2: #0e1424;
  --surface: #121829;
  --surface-2: #161d33;
  --surface-3: #1b2440;
  --border: #1e2740;
  --border-2: #2a3556;
  --text: #e6eaf2;
  --muted: #98a2b8;
  --muted-2: #6b7689;
  --accent: #818cf8;
  --accent-2: #a855f7;
  --accent-strong: #6366f1;
  --on-accent: #ffffff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.16), rgba(168,85,247,.16));
  --ring: rgba(129, 140, 248, .45);
  --header-bg: rgba(11, 15, 26, .72);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .55);
  --card-hover-border: rgba(129, 140, 248, .55);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-2: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f5f7fd;
  --surface-3: #eef1fb;
  --border: #e6e9f4;
  --border-2: #d6dcef;
  --text: #0f172a;
  --muted: #56607a;
  --muted-2: #8a93a8;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-strong: #5b54e6;
  --on-accent: #ffffff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.1), rgba(168,85,247,.1));
  --ring: rgba(99, 102, 241, .35);
  --header-bg: rgba(246, 247, 252, .8);
  --shadow: 0 18px 45px -20px rgba(30, 41, 99, .28);
  --shadow-sm: 0 8px 20px -14px rgba(30, 41, 99, .25);
  --card-hover-border: rgba(99, 102, 241, .5);
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* LinkedIn / GitHub glyphs are filled paths */
.hero-social .ico, .footer-social .ico, .contact-ico .ico { }
[aria-label="LinkedIn"] .ico, [aria-label="GitHub"] .ico { fill: currentColor; stroke: none; }
.contact-card[href*="linkedin"] .ico, .contact-card[href*="github"] .ico { fill: currentColor; stroke: none; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--accent-strong); color: #fff; padding: .6rem 1rem;
  border-radius: 10px; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.25rem; border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .ico { width: 1.1rem; height: 1.1rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }

.btn-primary {
  background: var(--grad); color: var(--on-accent);
  box-shadow: 0 12px 26px -12px var(--ring);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--ring); }

.btn-outline {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.btn-ghost { border: 1px solid var(--border-2); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-family: "Sora", sans-serif; }
.brand-badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: .95rem; letter-spacing: -.5px;
  box-shadow: 0 8px 18px -8px var(--ring);
}
.brand-name { font-size: 1.02rem; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative; padding: .5rem .8rem; border-radius: 9px; color: var(--muted);
  font-weight: 500; font-size: .95rem; transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-resume { margin-left: .5rem; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .18s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.icon-btn .ico { width: 1.25rem; height: 1.25rem; }

.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(2, 5, 12, .5);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 460px; height: 460px; background: radial-gradient(circle, #6366f1, transparent 65%); top: -120px; right: -60px; animation: float1 14s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #a855f7, transparent 65%); bottom: -140px; left: -80px; animation: float2 16s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: .4rem .8rem; border-radius: 999px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2.4s infinite; }

.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-top: 1.1rem; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-roles { font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--text); margin-top: .6rem; min-height: 1.6em; font-family: "Sora", sans-serif; }
.typed { color: var(--accent); }
.caret { color: var(--accent); font-weight: 400; animation: blink 1.05s step-end infinite; }

.hero-pitch { color: var(--muted); font-size: 1.06rem; max-width: 48ch; margin-top: 1.1rem; }
.hero-pitch strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-social { display: flex; gap: .6rem; margin-top: 1.8rem; }
.hero-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: transform .18s ease, color .2s ease, border-color .2s ease;
}
.hero-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.hero-social .ico { width: 1.3rem; height: 1.3rem; }

/* Hero photo */
.hero-photo { position: relative; justify-self: center; }
.photo-ring {
  position: relative; width: clamp(230px, 30vw, 330px); aspect-ratio: 1; padding: 6px;
  border-radius: 30px; background: var(--grad); box-shadow: 0 30px 70px -28px var(--ring);
}
.photo-ring::before {
  content: ""; position: absolute; inset: -14px; border-radius: 40px; z-index: -1;
  background: conic-gradient(from 0deg, #6366f1, #a855f7, #6366f1); filter: blur(26px); opacity: .45;
  animation: spin 9s linear infinite;
}
.photo-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; background: var(--surface-2); }

.photo-chip {
  position: absolute; display: inline-flex; align-items: center;
  padding: .45rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow); animation: floatY 5s ease-in-out infinite;
}
.chip-java { top: 8%; left: -10%; }
.chip-spring { top: 46%; right: -16%; animation-delay: 1.2s; }
.chip-sql { bottom: 6%; left: 2%; animation-delay: 2.1s; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1; opacity: .7; }
.mouse { display: block; width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s infinite; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-kicker {
  display: inline-block; font-family: "Sora", sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about-copy strong { color: var(--text); font-weight: 600; }
.fact-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.fact-chips li { background: var(--surface); border: 1px solid var(--border); padding: .5rem .9rem; border-radius: 11px; font-size: .9rem; font-weight: 500; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem 1.25rem;
  text-align: center; transition: transform .2s ease, border-color .2s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--card-hover-border); }
.stat-num { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num .plus { font-size: 1.2rem; }
.stat-label { display: block; color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--card-hover-border); box-shadow: var(--shadow); }
.skill-cat { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin-bottom: 1rem; }
.skill-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); font-size: 1.1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li {
  font-size: .85rem; font-weight: 500; padding: .4rem .8rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.skill-card:hover .pills li { color: var(--text); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent-strong), var(--accent-2), transparent); }
.tl-item { position: relative; padding-left: 1.6rem; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker { position: absolute; left: -1.5rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--grad-soft); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem; transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; }
.tl-card:hover { transform: translateX(4px); border-color: var(--card-hover-border); box-shadow: var(--shadow-sm); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.tl-role { font-size: 1.15rem; }
.tl-period { font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--grad-soft); padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.tl-company { color: var(--accent); font-weight: 600; margin: .25rem 0 .8rem; }
.tl-points li { position: relative; padding-left: 1.3rem; color: var(--muted); margin-bottom: .5rem; font-size: .98rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.edu-meta { color: var(--muted); font-weight: 500; }
.timeline-compact .tl-item { padding-bottom: 1.1rem; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.project-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .22s ease, border-color .2s ease, box-shadow .25s ease;
}
.project-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); opacity: 0; transition: opacity .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: var(--card-hover-border); box-shadow: var(--shadow); }
.project-card:hover::before { opacity: 1; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.project-emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); font-size: 1.6rem; }
.badge { font-size: .74rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; }
.badge-accent { background: var(--grad-soft); color: var(--accent); border: 1px solid var(--border-2); }
.project-title { font-size: 1.25rem; margin-bottom: .6rem; }
.project-desc { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0; }
.tags li { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.project-links { display: flex; gap: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--accent); font-size: .92rem; }
.link-arrow .ico { width: 1rem; height: 1rem; transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translate(2px, -2px); }

/* ---------- Education layout ---------- */
.edu-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.edu-col-title { font-size: 1.2rem; margin-bottom: 1.2rem; }
.cert-list { display: grid; gap: .9rem; }
.cert-item, .pub-card { display: flex; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; transition: transform .2s ease, border-color .2s ease; }
.cert-item:hover, .pub-card:hover { transform: translateY(-3px); border-color: var(--card-hover-border); }
.cert-ico { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); font-size: 1.3rem; }
.cert-name { font-weight: 600; }
.cert-org { color: var(--muted); font-size: .92rem; }
.pub-desc { color: var(--muted); font-size: .92rem; margin-top: .4rem; }

/* ---------- Contact ---------- */
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-bottom: 2.4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
a.contact-card:hover { transform: translateY(-5px); border-color: var(--card-hover-border); box-shadow: var(--shadow); }
.contact-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: .5rem; }
.contact-ico .ico { width: 1.3rem; height: 1.3rem; }
.contact-label { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-value { font-weight: 600; word-break: break-word; }
.contact-static { cursor: default; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-note { color: var(--muted); font-size: .92rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color .2s ease, border-color .2s ease, transform .18s ease; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social .ico { width: 1.2rem; height: 1.2rem; }
.footer-copy { color: var(--muted-2); font-size: .85rem; }

/* ---------- Back to top + Toast ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80; width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -12px var(--ring);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top .ico { width: 1.3rem; height: 1.3rem; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 30px); z-index: 120;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-2);
  padding: .8rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "✓"; color: #22c55e; margin-right: .5rem; font-weight: 700; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-26px, 24px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, -22px); } }
@keyframes wheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 18px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero-cta, .hero-social { justify-content: center; }
  .hero-pitch { margin-inline: auto; }
  .about-grid, .edu-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; z-index: 95; width: min(78vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .3rem;
    background: var(--surface); border-left: 1px solid var(--border);
    padding: 5rem 1.4rem 2rem; transform: translateX(105%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.6);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 11px; }
  .nav-link:hover { background: var(--surface-2); }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--grad-soft); color: var(--accent); }
  .nav-resume { margin-left: 0; margin-top: .6rem; justify-content: center; }
  .hamburger { display: flex; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .tl-top { flex-direction: column; }
  .photo-chip { font-size: .74rem; }
  .chip-java { left: -4%; } .chip-spring { right: -6%; }
  .btn-lg { width: 100%; justify-content: center; }
  .contact-cta { flex-direction: column; }
}

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