/*-----------------------------------*\
  style.css — Arsh Ghotra Portfolio
\*-----------------------------------*/

:root {
  --bg:           #05050f;
  --surface:      #0d0d1f;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --cyan:         #00d4ff;
  --purple:       #7c3aed;
  --purple-soft:  #a78bfa;
  --gradient:     linear-gradient(135deg, #00d4ff, #7c3aed);
  --text:         #e2e8f0;
  --text-bright:  #f8fafc;
  --muted:        #94a3b8;
  --white:        #ffffff;

  --ff-heading: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --transition: 0.3s ease;
  --section-padding: 110px;
}

/*-----------------------------------*\
  RESET
\*-----------------------------------*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
li { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, textarea { background: none; border: none; font: inherit; width: 100%; }
ion-icon { display: block; pointer-events: none; }

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.6rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/*-----------------------------------*\
  UTILITIES
\*-----------------------------------*/

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-padding); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.25);
}
.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  background: var(--glass);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 42px; font-size: 1.7rem; }

/* Section header */
.section-header { text-align: center; margin-block-end: 64px; }

.section-label {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-block-end: 14px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

/*-----------------------------------*\
  HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding-block: 20px;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
}

.header.scrolled {
  background: rgba(5, 5, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding-block: 14px;
}

.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--ff-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  z-index: 2;
}
.logo-dot { color: var(--cyan); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/*-----------------------------------*\
  HERO
\*-----------------------------------*/

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 130px 90px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
}
.orb-1 {
  width: 700px; height: 700px;
  background: var(--purple);
  top: -250px; right: -150px;
  animation: orb-drift 10s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--cyan);
  bottom: -150px; left: -150px;
  animation: orb-drift 13s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(40px, -40px); }
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--cyan);
  margin-block-end: 8px;
}

.hero-name {
  font-family: var(--ff-heading);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-block-end: 16px;
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 3rem;
  margin-block-end: 24px;
}
.hero-title-text {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--muted);
}
.cursor {
  font-size: 2rem;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
  line-height: 1;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 1.6rem;
  color: var(--muted);
  max-width: 50ch;
  margin-block-end: 32px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 52px;
}

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 1.3rem;
  color: var(--muted);
  font-family: var(--ff-heading);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.avatar-ring {
  width: 270px; height: 270px;
  border-radius: 50%;
  background: var(--gradient);
  padding: 4px;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.18), 0 0 120px rgba(124, 58, 237, 0.1);
  animation: ring-pulse 5s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.18), 0 0 120px rgba(124, 58, 237, 0.10); }
  50%       { box-shadow: 0 0 90px rgba(124, 58, 237, 0.30), 0 0 160px rgba(0, 212, 255, 0.12); }
}

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar span {
  font-family: var(--ff-heading);
  font-size: 6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 13, 31, 0.92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.badge-icon {
  font-size: 1.6rem;
  color: var(--cyan);
  display: inline-block;
  flex-shrink: 0;
}
.badge-1 { top: 8%;  left: -8%;  animation: badge-float 4s ease-in-out infinite; }
.badge-2 { bottom: 14%; right: -4%; animation: badge-float 5s ease-in-out infinite 1s; }
.badge-3 { top: 72%; left: -4%; animation: badge-float 6s ease-in-out infinite 2s; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 1.2rem;
  font-family: var(--ff-heading);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.5); }
}

/*-----------------------------------*\
  ABOUT
\*-----------------------------------*/

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-block-end: 20px;
  font-size: 1.6rem;
  line-height: 1.85;
}
.about-text strong { color: var(--white); }

.about-honors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--white);
  transition: var(--transition);
}
.honor-badge ion-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  display: inline-block;
}
.honor-badge:hover { border-color: var(--cyan); }

.about-cards { display: grid; gap: 14px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.info-card:hover {
  border-color: rgba(0, 212, 255, 0.28);
  transform: translateX(6px);
}
.info-card ion-icon {
  font-size: 2.4rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.card-label {
  font-size: 1.2rem;
  color: var(--muted);
  font-family: var(--ff-heading);
  margin-block-end: 3px;
}
.card-value {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 600;
  font-family: var(--ff-heading);
}

/*-----------------------------------*\
  EXPERIENCE
\*-----------------------------------*/

.experience {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04) 50%, transparent);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 17px; top: 20px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-block-end: 36px;
}
.timeline-item:last-child { margin-block-end: 0; }

.timeline-dot {
  position: absolute;
  left: 9px; top: 26px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
}

.timeline-card {
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 4px;
}

.timeline-role {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.timeline-company {
  font-family: var(--ff-heading);
  font-size: 1.45rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

.timeline-date {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-location {
  font-size: 1.3rem;
  color: var(--muted);
  margin-block: 4px 18px;
}

.timeline-bullets { margin-block-end: 20px; }
.timeline-bullets li {
  color: var(--muted);
  font-size: 1.5rem;
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 1.3rem;
  top: 7px;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tags span {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 4px 13px;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.14);
}

/*-----------------------------------*\
  PROJECTS
\*-----------------------------------*/

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: block;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.04); }

.project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 15, 0.9));
}

.project-content { padding: 24px 26px 26px; }

.project-tag {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-block-end: 8px;
}

.project-title {
  font-family: var(--ff-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-block-end: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 1.45rem;
  color: var(--muted);
  line-height: 1.75;
  margin-block-end: 20px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech span {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--transition);
}
.project-link ion-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  transition: transform var(--transition);
}
.project-card:hover .project-link ion-icon { transform: translate(4px, -4px); }

/*-----------------------------------*\
  SKILLS
\*-----------------------------------*/

.skills {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03) 50%, transparent);
}

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

.skill-group {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.skill-group:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.skill-group-title {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-block-end: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-icon {
  font-size: 1.8rem;
  color: var(--cyan);
  display: inline-block;
  flex-shrink: 0;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.skill-tags span:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/*-----------------------------------*\
  PUBLICATIONS
\*-----------------------------------*/

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.pub-card {
  display: flex;
  gap: 20px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pub-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.pub-icon {
  font-size: 3rem;
  color: var(--cyan);
  flex-shrink: 0;
  display: inline-block;
  margin-top: 2px;
}

.pub-content h3 {
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-block: 8px 10px;
  line-height: 1.4;
}

.pub-content p {
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1.75;
}

.pub-tag {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 14px;
  transition: gap var(--transition);
}
.pub-link ion-icon { font-size: 1.4rem; color: var(--cyan); }
.pub-card:hover .pub-link { gap: 8px; }

/*-----------------------------------*\
  CONTACT
\*-----------------------------------*/

.contact-wrapper {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.contact-text {
  font-size: 1.7rem;
  color: var(--muted);
  line-height: 1.85;
  margin-block-end: 36px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.social-link ion-icon { font-size: 2.2rem; color: var(--text); transition: color var(--transition); }
.social-link:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}
.social-link:hover ion-icon { color: var(--cyan); }

/*-----------------------------------*\
  FOOTER
\*-----------------------------------*/

.footer {
  padding-block: 40px;
  border-top: 1px solid var(--glass-border);
}
.footer-text {
  text-align: center;
  font-size: 1.4rem;
  color: var(--muted);
  font-family: var(--ff-heading);
}
.footer-text a {
  color: var(--cyan);
  font-weight: 600;
  transition: opacity var(--transition);
}
.footer-text a:hover { opacity: 0.75; }

/*-----------------------------------*\
  BACK TO TOP
\*-----------------------------------*/

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.back-to-top ion-icon { font-size: 2rem; color: var(--white); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 212, 255, 0.35); }

/*-----------------------------------*\
  MEDIA QUERIES
\*-----------------------------------*/

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

@media (max-width: 900px) {
  :root { --section-padding: 80px; }

  .hero > .container { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-bio { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

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

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

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

@media (max-width: 768px) {
  :root { --section-padding: 64px; }

  .nav-toggle { display: flex; }

  .navbar {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5, 5, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 24px 32px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .navbar.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .nav-list .btn { margin-top: 8px; }

  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .timeline-dot { display: none; }

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

@media (max-width: 480px) {
  .hero-stats { gap: 28px; }
  .timeline-header { flex-direction: column; }
  .timeline-date { align-self: flex-start; }
}

/*-----------------------------------*\
  ENHANCED EFFECTS
\*-----------------------------------*/

/* ── Custom cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  transition: opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background 0.22s ease, opacity 0.3s;
}
.cursor-ring.hover {
  width: 54px; height: 54px;
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Particle canvas ── */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
}

/* ── Hero name glitch on hover ── */
.hero-name { cursor: default; }
.hero-name:hover {
  animation: hero-glitch 0.38s steps(2, end) both;
}
@keyframes hero-glitch {
  0%   { transform: none; }
  15%  { transform: skew(-2.5deg) translateX(-3px); }
  30%  { transform: skew(0)       translateX(0); }
  45%  { transform: skew(1.5deg)  translateX(3px); }
  60%  { transform: skew(-1deg)   translateX(-2px); }
  80%  { transform: skew(0.5deg); }
  100% { transform: none; }
}

/* ── Section title glow ── */
.section-title {
  text-shadow: 0 0 80px rgba(0, 212, 255, 0.07);
}

/* ── Section label glowing underline ── */
.section-label::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 8px auto 0;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.55);
}

/* ── Timeline dot pulse ring ── */
.timeline-dot { position: absolute; }
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.7);
  opacity: 0;
  animation: dot-pulse 2.8s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ── Timeline line draw animation ── */
.timeline::before {
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline.line-visible::before {
  transform: scaleY(1);
}

/* ── Shimmer sweep on cards ── */
.project-card::after,
.skill-group::after,
.pub-card::after,
.timeline-card::after {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  pointer-events: none;
  transition: left 0.8s ease;
  z-index: 1;
}
.project-card:hover::after,
.skill-group:hover::after,
.pub-card:hover::after,
.timeline-card:hover::after {
  left: 160%;
}

/* ── Enhanced card glows ── */
.project-card:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.22),
              0 24px 64px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(0, 212, 255, 0.07);
}
.timeline-card:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.16),
              0 12px 40px rgba(0, 0, 0, 0.35);
}
.skill-group:hover {
  border-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08),
              0 16px 48px rgba(0, 0, 0, 0.3),
              0 0 28px rgba(0, 212, 255, 0.05);
}
.pub-card:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.16),
              0 12px 40px rgba(0, 0, 0, 0.35);
}
.info-card:hover {
  box-shadow: -4px 0 24px rgba(0, 212, 255, 0.1);
}

/* ── Skill group content above shimmer ── */
.skill-group-title,
.skill-tags { position: relative; z-index: 1; }

/* ── Skill tag stagger pop on reveal ── */
.skill-group.visible .skill-tags span {
  animation: tag-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.skill-group.visible .skill-tags span:nth-child(1)  { animation-delay: 0.04s; }
.skill-group.visible .skill-tags span:nth-child(2)  { animation-delay: 0.09s; }
.skill-group.visible .skill-tags span:nth-child(3)  { animation-delay: 0.14s; }
.skill-group.visible .skill-tags span:nth-child(4)  { animation-delay: 0.19s; }
.skill-group.visible .skill-tags span:nth-child(5)  { animation-delay: 0.24s; }
.skill-group.visible .skill-tags span:nth-child(6)  { animation-delay: 0.29s; }
.skill-group.visible .skill-tags span:nth-child(7)  { animation-delay: 0.34s; }
.skill-group.visible .skill-tags span:nth-child(8)  { animation-delay: 0.39s; }
@keyframes tag-pop {
  from { opacity: 0; transform: scale(0.8) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ── Skill tag hover glow ── */
.skill-tags span {
  transition: border-color var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}
.skill-tags span:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.18);
  transform: translateY(-1px);
}

/* ── Button primary glow bloom ── */
.btn-primary { position: relative; }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient);
  z-index: -1;
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn-primary:hover::before { opacity: 0.55; }

/* ── Social link neon ring on hover ── */
.social-link:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.45),
              0 8px 32px rgba(0, 212, 255, 0.2);
}

/* ── Contact section pulsing glow ── */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.055) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: contact-glow 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes contact-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.28); opacity: 1; }
}

/* ── Honor badge hover glow ── */
.honor-badge:hover {
  background: rgba(0, 212, 255, 0.07);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

/* ── Active nav link text glow ── */
.nav-link.active {
  text-shadow: 0 0 22px rgba(0, 212, 255, 0.28);
}

/* ── Logo dot pulse ── */
.logo-dot {
  display: inline-block;
  transition: text-shadow 0.3s ease;
}
.logo:hover .logo-dot {
  text-shadow: 0 0 16px var(--cyan);
  animation: dot-blink 0.6s ease;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Back-to-top icon bounce ── */
.back-to-top:hover ion-icon {
  animation: icon-bounce 0.45s ease;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── Floating badge enhanced ── */
.floating-badge {
  border-color: rgba(0, 212, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 255, 0.07);
}

/* ── Project tech tag hover ── */
.project-tech span {
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.project-tech span:hover {
  border-color: var(--purple-soft);
  color: var(--white);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.22);
}
