:root {
  color-scheme: light;
  --ink: #fff7f3;
  --slate: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --sky: #38bdf8;
  --blue: #60a5fa;
  --violet: #a855f7;
  --rose: #fb7185;
  --emerald: #047857;
  --amber: #f59e0b;
  --line-sky: rgba(125, 211, 252, 0.7);
  --line-rose: rgba(254, 205, 211, 0.8);
  --card: rgba(255, 255, 255, 0.8);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.13);
  --glow: 0 18px 45px rgba(56, 189, 248, 0.16);
  --font-body: "Times New Roman", Times, serif;
  --font-heading: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.24), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(251, 113, 133, 0.24), transparent 32%),
    linear-gradient(135deg, #fff7f3 0%, #f0fdfa 48%, #fdf2f8 100%);
  color: var(--slate);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(251, 113, 133, 0.24);
  color: var(--slate);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

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

.wrap {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.aurora {
  opacity: 0.55;
  background:
    linear-gradient(115deg, transparent 0%, rgba(6, 182, 212, 0.18) 24%, transparent 46%),
    linear-gradient(245deg, transparent 12%, rgba(251, 113, 133, 0.18) 38%, transparent 64%),
    linear-gradient(180deg, rgba(255, 247, 243, 0), rgba(255, 247, 243, 0.92));
  background-size: 180% 180%;
  animation: aurora-shift 28s ease-in-out infinite alternate;
}

.mouse-glow {
  opacity: 0.7;
  background: radial-gradient(520px at var(--mx, 50%) var(--my, 50%), rgba(251, 113, 133, 0.16), rgba(6, 182, 212, 0.08) 32%, transparent 72%);
}

.grid-layer {
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251, 113, 133, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: grid-drift 46s linear infinite;
}

.scan-lines {
  opacity: 0.1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 9px, rgba(6, 182, 212, 0.045) 10px);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--slate);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  text-align: center;
  animation: load-in 0.55s ease both;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 2px solid var(--rose);
  border-top-color: #06b6d4;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.loader-text {
  margin-top: 8px;
  color: #f43f5e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 70;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--violet));
}

.cursor {
  pointer-events: none;
  position: fixed;
  z-index: 80;
  display: none;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(251, 113, 133, 0.7);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.38);
  transform: translate(-100px, -100px);
}

.cursor span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #06b6d4;
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 228, 230, 0.8);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand,
.desktop-nav,
.nav-actions,
.quick-links,
.contact-link,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.brand-photo {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: white;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accent {
  color: var(--sky);
}

.desktop-nav {
  gap: 4px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--soft);
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
  color: var(--slate);
}

.nav-actions {
  gap: 12px;
}

.icon-button {
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-rose);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 113, 133, 0.45);
  background: white;
  color: var(--slate);
}

.mobile-only {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  min-height: 100vh;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px);
}

.mobile-menu.open {
  display: block;
  animation: fade-in 0.25s ease;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.mobile-nav a {
  border: 1px solid rgba(254, 205, 211, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 20px;
  font-size: 18px;
}

.button {
  position: relative;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: transform 0.7s ease;
}

.button:hover::before {
  transform: translateX(110%);
}

.button > * {
  position: relative;
}

.button:hover,
.magnetic:hover {
  transform: translateY(-2px) scale(1.04);
}

.primary {
  background: linear-gradient(90deg, var(--slate), var(--emerald), var(--amber));
  color: white;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
}

.section {
  position: relative;
  padding: 96px 0;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.hero {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 208px;
  content-visibility: visible;
}

.hero-radial {
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.26), transparent 28%), radial-gradient(circle at 78% 8%, rgba(251, 113, 133, 0.22), transparent 34%);
}

.hero-line {
  position: absolute;
  left: 50%;
  top: 96px;
  width: min(72rem, 92vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.7), transparent);
  animation: pulse-line 9s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 672px;
}

.assistant-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 672px;
  margin-bottom: 20px;
}

.assistant-image {
  position: relative;
  flex: 0 0 256px;
  width: 256px;
  height: 256px;
}

.assistant-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 45px rgba(6, 182, 212, 0.22));
}

.assistant-bubble {
  max-width: 330px;
  border: 1px solid rgba(165, 243, 252, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 16px;
  box-shadow: var(--glow);
  backdrop-filter: blur(16px);
}

.assistant-bubble p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  margin-left: 4px;
  background: #06b6d4;
  transform: translateY(4px);
  animation: caret 0.8s step-end infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
}

.animated-gradient-text {
  display: block;
  background: linear-gradient(110deg, #0891b2, #fb7185, #8b5cf6, #06b6d4);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 7s ease-in-out infinite;
}

.hero-text {
  max-width: 672px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.quick-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.quick-links a,
.pill-row span,
.tech-pill,
.stack-pill,
.filter-row button {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 20px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.9);
  color: var(--slate);
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-top: 16px;
}

.hero-halo {
  position: absolute;
  inset: -32px;
  border-radius: 48px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.4), rgba(253, 164, 175, 0.35), rgba(196, 181, 253, 0.35));
  filter: blur(36px);
  animation: halo-float 16s ease-in-out infinite;
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-sky);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.8) 42%, transparent 62%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
  transition: opacity 0.35s ease, transform 0.9s ease;
}

.premium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(620px circle at var(--x, 50%) var(--y, 0%), rgba(251, 113, 133, 0.15), transparent 42%);
  border: 1px solid rgba(251, 113, 133, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.premium-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.premium-card:hover::after {
  opacity: 1;
}

.profile-card {
  border-radius: 32px;
  padding: 12px;
}

.profile-image {
  position: relative;
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  border-radius: 22px;
  background: #e2e8f0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shine {
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  animation: scan 10s ease-in-out infinite;
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.45), transparent 55%);
}

.floating-badges {
  position: absolute;
  display: grid;
  gap: 12px;
}

.floating-badges span {
  border: 1px solid var(--line-rose);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  color: #1e293b;
  font-size: 14px;
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  animation: bob-up 7s ease-in-out infinite;
}

.floating-badges span:nth-child(2) {
  animation-duration: 5s;
}

.floating-badges span:nth-child(3) {
  animation-duration: 6s;
}

.badge-top {
  left: -24px;
  top: 32px;
}

.badge-bottom {
  right: -20px;
  bottom: 32px;
}

.badge-bottom span {
  animation-name: bob-down;
}

.photo-strip {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 3;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.photo-tile {
  height: 128px;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f5f9;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: photo-in 0.35s ease both;
}

.section-beam {
  pointer-events: none;
  position: absolute;
  top: 64px;
  width: 50%;
  height: 256px;
  opacity: 0.5;
  filter: blur(34px);
}

.section-beam.left {
  left: 0;
  background: linear-gradient(110deg, rgba(6, 182, 212, 0.22), transparent);
}

.section-beam.right {
  right: 0;
  background: linear-gradient(250deg, rgba(251, 113, 133, 0.22), transparent);
}

.section-heading {
  max-width: 768px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-rose);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(6, 182, 212, 0.13), rgba(251, 113, 133, 0.16), rgba(139, 92, 246, 0.12));
  background-size: 220% 220%;
  padding: 8px 16px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  animation: gradient-pan 6s linear infinite;
}

.section-heading h2 {
  margin: 20px 0 0;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.text-card {
  border-radius: 24px;
  padding: 40px;
}

.text-card p {
  margin: 0;
  color: #334155;
  font-size: 18px;
  line-height: 2;
}

.text-card p + p {
  margin-top: 24px;
  color: var(--muted);
}

.fact-grid,
.timeline-list,
.contact-links {
  display: grid;
  gap: 16px;
}

.fact-card,
.timeline-card,
.achievement-card {
  border-radius: 18px;
  padding: 20px;
}

.label {
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.skill-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  border-block: 1px solid var(--line-sky);
  padding: 16px 0;
}

.edge {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 112px;
}

.edge.left {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.edge.right {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.tech-pill {
  padding: 8px 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.tech-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tech-card,
.cert-card,
.project-card,
.contact-card,
.contact-form {
  border-radius: 24px;
  padding: 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.1);
  color: #0284c7;
}

.tech-card h3,
.project-card h3,
.cert-card h3,
.timeline-card h3,
.contact-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.stack-list,
.pill-row,
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-list {
  margin-top: 20px;
}

.stack-pill {
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-row button {
  padding: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-row button:hover {
  transform: translateY(-3px);
  color: var(--slate);
  border-color: rgba(251, 113, 133, 0.6);
}

.filter-row button.active {
  border-color: rgba(253, 164, 175, 0.95);
  background: linear-gradient(90deg, #06b6d4, #fb7185);
  color: white;
  box-shadow: var(--glow);
}

.projects-grid,
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card.featured,
.profile-stat.wide {
  grid-column: span 2;
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.project-icon {
  border-color: rgba(253, 164, 175, 0.4);
  background: linear-gradient(135deg, #cffafe, #ffe4e6);
  color: #7c3aed;
}

.priority {
  color: var(--sky);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--line-sky);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--soft);
  font-size: 14px;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.live-link:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--slate);
}

.project-card p {
  max-width: 768px;
  margin: 20px 0 0;
  color: var(--soft);
  line-height: 1.9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
}

.feature svg {
  flex: 0 0 auto;
  color: #0284c7;
}

.project-stack {
  margin-top: 24px;
}

.project-stack span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.research-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 253, 250, 0.85));
}

.research-title {
  border-right: 1px solid var(--line-sky);
  padding: 32px;
}

.research-box {
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  background: rgba(56, 189, 248, 0.1);
  padding: 24px;
  animation: border-pulse 9s ease-in-out infinite;
}

.research-box div {
  color: var(--sky);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.research-box h3 {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.18;
}

.research-copy {
  padding: 32px;
}

.research-copy p {
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 2;
}

.pill-row {
  margin-top: 28px;
}

.pill-row span {
  padding: 8px 16px;
  color: var(--soft);
  font-size: 14px;
}

.cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card {
  display: block;
  min-height: 210px;
}

.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cert-card h3 {
  margin-top: 24px;
  font-size: 20px;
}

.cert-card p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.achievement-list {
  position: relative;
  display: grid;
  gap: 20px;
  margin-left: 12px;
  border-left: 1px solid var(--line-sky);
  padding-left: 28px;
}

.achievement-list::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 100%;
  transform-origin: top;
  background: linear-gradient(180deg, var(--sky), var(--violet), transparent);
}

.achievement-card {
  overflow: visible;
  margin: 0;
}

.achievement-dot {
  position: absolute;
  left: -46px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: white;
  color: #0284c7;
  animation: dot-glow 5s ease-in-out infinite;
}

.achievement-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
}

.timeline-card .year {
  color: var(--sky);
  font-size: 14px;
  font-weight: 800;
}

.timeline-card h3 {
  margin-top: 8px;
}

.timeline-card p {
  margin: 12px 0 0;
  color: var(--soft);
  line-height: 1.75;
}

.profile-stat {
  border-radius: 24px;
  padding: 16px;
}

.profile-stat img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.profile-stat .leet-card {
  max-width: 896px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.contact-card h3 {
  font-size: 24px;
}

.contact-card p {
  margin: 12px 0 0;
  color: var(--soft);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #0284c7;
}

.contact-links {
  margin-top: 32px;
}

.contact-link {
  justify-content: space-between;
  border: 1px solid var(--line-sky);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 20px;
  color: #334155;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover {
  transform: translateX(7px);
  border-color: rgba(56, 189, 248, 0.35);
}

.contact-link span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-form label + label,
.contact-form .form-grid + label {
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-sky);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate);
  outline: 0;
  padding: 0 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
  min-height: auto;
  resize: vertical;
  padding: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-2px);
  border-color: var(--sky);
  box-shadow: var(--glow);
}

.send-button {
  margin-top: 24px;
  background: var(--sky);
  color: var(--slate);
}

.send-button:hover {
  background: #7dd3fc;
}

.footer {
  border-top: 1px solid var(--line-sky);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  gap: 12px;
}

.footer-inner a {
  transition: color 0.25s ease;
}

.footer-inner a:hover {
  color: var(--slate);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 211, 252, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate);
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.back-top.show {
  display: inline-flex;
  animation: rise-in 0.25s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hidden {
  display: none !important;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes aurora-shift {
  0% { background-position: 0% 20%; filter: saturate(1); }
  100% { background-position: 100% 80%; filter: saturate(1.25); }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes load-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) scaleX(0.7); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

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

@keyframes halo-float {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(2deg) scale(1.03); }
  66% { transform: rotate(-2deg) scale(1); }
}

@keyframes scan {
  0% { transform: translateY(-120%); }
  62% { transform: translateY(520%); }
  100% { transform: translateY(520%); }
}

@keyframes bob-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bob-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes photo-in {
  from { opacity: 0.35; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes border-pulse {
  0%, 100% { border-color: rgba(56, 189, 248, 0.2); }
  50% { border-color: rgba(168, 85, 247, 0.45); }
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0); }
  50% { box-shadow: 0 0 28px rgba(56, 189, 248, 0.36); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .cursor {
    display: block;
  }
}

@media (max-width: 1100px) {
  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .research-card,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 120px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    margin-inline: auto;
  }

  .photo-strip {
    position: relative;
    top: auto;
    margin-top: 16px;
  }

  .research-title {
    border-right: 0;
    border-bottom: 1px solid var(--line-sky);
  }
}

@media (max-width: 900px) {
  .tech-grid,
  .cert-grid,
  .projects-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured,
  .profile-stat.wide {
    grid-column: span 1;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .assistant-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .assistant-image {
    flex-basis: 208px;
    width: 208px;
    height: 208px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1280px);
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 72px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text,
  .text-card p,
  .research-copy p {
    font-size: 16px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .text-card,
  .research-title,
  .research-copy,
  .contact-card,
  .contact-form,
  .project-card,
  .tech-card,
  .cert-card {
    padding: 22px;
  }

  .features-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .badge-top {
    left: 12px;
  }

  .badge-bottom {
    right: 8px;
  }

  .floating-badges span {
    max-width: 150px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .photo-tile {
    height: 100px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .mouse-glow,
  .scan-lines {
    display: none;
  }
}

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