/* ============================================================
   ARUN RAMKUMAR — PORTFOLIO
   White → Royal Blue · Glassmorphism · Light theme
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

/* ========== DESIGN TOKENS ========== */
:root {
  --blue-900: #0a2472;
  --blue-700: #1e40af;
  --blue-500: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --white: #ffffff;
  --ink: #0f1b3d;
  --ink-muted: #5a6a94;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px rgba(30, 64, 175, 0.12);
  --glass-shadow-hover: 0 16px 48px rgba(30, 64, 175, 0.22);

  --grad-royal: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  --grad-bright: linear-gradient(135deg, var(--blue-700), var(--blue-300));

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ========== BASE ========== */
body {
  font-family: var(--font);
  background: linear-gradient(180deg, #ffffff 0%, #eaf1ff 40%, #c7d8ff 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--blue-500); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.gradient-text {
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== AURORA BACKGROUND ========== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.aurora-1 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, #3b82f6, transparent 65%);
  top: -18vw; right: -12vw;
  animation: drift1 26s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #93c5fd, transparent 65%);
  bottom: -10vw; left: -14vw;
  animation: drift2 32s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, #1e40af, transparent 65%);
  top: 40%; left: 35%;
  opacity: 0.18;
  animation: drift3 38s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(-10vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(12vw, -10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-8vw, -12vh) scale(1.25); } }

/* ========== GLASS SYSTEM ========== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.glass:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover);
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ========== ICONS ========== */
.line-icon {
  width: 26px; height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.line-icon.sm { width: 20px; height: 20px; }
.line-icon.xl { width: 72px; height: 72px; stroke-width: 1.2; }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-royal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.icon-circle.sm { width: 44px; height: 44px; }
.icon-circle.sm .line-icon { width: 20px; height: 20px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-royal);
  color: #fff;
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(30, 64, 175, 0.5);
  color: #fff;
}

.btn-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--blue-700);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.btn-glass:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover);
  color: var(--blue-900);
}

.btn-full { width: 100%; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 20px rgba(30, 64, 175, 0.06);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(30, 64, 175, 0.14);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-dot { color: var(--blue-500); -webkit-text-fill-color: var(--blue-500); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--grad-royal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover { color: var(--blue-700); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-700); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--blue-700);
  transition: all 0.3s ease;
  position: absolute;
  left: 10px;
}

.hamburger { top: 21px; }
.hamburger::before { top: -7px; left: 0; }
.hamburger::after { top: 7px; left: 0; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--blue-700);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name .ch {
  display: inline-block;
  white-space: pre;
}

.hero-typing {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  min-height: 2.2em;
  margin-bottom: 1rem;
}

.typing-text { color: var(--blue-500); }

.typing-cursor {
  color: var(--blue-500);
  animation: blink 1s step-end infinite;
}

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

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 2.25rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-chevron {
  display: block;
  width: 22px; height: 22px;
  border-right: 3px solid var(--blue-500);
  border-bottom: 3px solid var(--blue-500);
  transform: rotate(45deg);
  animation: bounce-chevron 2s infinite;
}

@keyframes bounce-chevron {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 0.4; }
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: center;
}

.monogram-card {
  aspect-ratio: 5 / 6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.monogram-card canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.about-text h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-text p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  min-height: 110px;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ========== INTERESTS ========== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.interest-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  position: relative;
}

.interest-card:hover { transform: translateY(-6px); }
.interest-card:hover .icon-circle {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.45);
}

.interest-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.interest-body p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.interest-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-300), var(--blue-700));
  border-radius: 3px;
  transform-origin: top;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.25rem 2.5rem 1.25rem 0;
}

.timeline-item:nth-child(odd) {
  left: 50%;
  padding: 1.25rem 0 1.25rem 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 2.4rem;
  right: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-royal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-card {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-card:hover { transform: translateY(-4px); }

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-badge.leadership { background: var(--blue-100); color: var(--blue-900); }
.timeline-badge.stem { background: #dcfce7; color: #14532d; }
.timeline-badge.service { background: #fef3c7; color: #78350f; }
.timeline-badge.work { background: #fae8ff; color: #701a75; }

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-500);
  white-space: nowrap;
}

.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  perspective: 1200px;
}

.project-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
}

.project-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform-style: preserve-3d;
}

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(147, 197, 253, 0.35));
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
}

.project-image img {
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(30, 64, 175, 0.25));
}

.project-image-icon { color: var(--blue-700); }

.project-info {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-info p {
  font-size: 0.93rem;
  color: var(--ink-muted);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.project-link {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
              rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}

.project-card:hover .card-glare { opacity: 1; }

/* ========== ACHIEVEMENTS ========== */
.counters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1rem;
  min-height: 130px;
}

.counter-box:hover { transform: translateY(-5px); }

.counter-number-wrap { display: flex; align-items: baseline; }

.counter-number, .counter-suffix {
  font-size: 2.3rem;
  font-weight: 800;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.counter-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 0.4rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 2rem 1.5rem;
  min-height: 190px;
}

.award-card:hover { transform: translateY(-6px); }
.award-card:hover .icon-circle {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.45);
}

.award-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}

.award-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ========== RESUME ========== */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.resume-column {
  padding: 2rem 2rem 2.25rem;
}

.resume-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.75rem 0 1rem;
  background: var(--grad-royal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-heading:first-child { margin-top: 0; }

.resume-item { margin-bottom: 1.4rem; }

.resume-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.resume-meta {
  font-size: 0.85rem;
  color: var(--blue-500);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resume-item p {
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.skill-bar { margin-bottom: 1.1rem; }

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.skill-info span:last-child { color: var(--blue-500); }

.skill-track {
  height: 9px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--grad-royal);
  position: relative;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  animation: shimmer 2.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lang-tag {
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
}

.lang-tag small { color: var(--ink-muted); font-weight: 500; }

.resume-download {
  text-align: center;
  margin-top: 2.75rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.contact-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.contact-info > p {
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method strong {
  display: block;
  font-size: 0.92rem;
}

.contact-method a, .contact-method span:not(.icon-circle) {
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  gap: 0.9rem;
  margin-top: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--blue-700);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--grad-royal);
  color: #fff;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.4);
}

.contact-form {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group label {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  font-size: 0.97rem;
  color: var(--ink-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 0.25rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  left: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
  background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.9) 40%);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.back-to-top {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.back-to-top:hover { color: var(--blue-300); }

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-bright);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}

/* ========== SCROLL REVEAL STATES ========== */
.reveal-up:not(.revealed),
.reveal-left:not(.revealed),
.reveal-right:not(.revealed) {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up:not(.revealed) { transform: translateY(36px); }
.reveal-left:not(.revealed) { transform: translateX(-48px); }
.reveal-right:not(.revealed) { transform: translateX(48px); }

.stagger-up > :not(.revealed) {
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    width: min(78vw, 320px);
    height: calc(100vh - 68px);
    padding: 2rem 1.75rem;
    gap: 1.25rem;
    box-shadow: -8px 0 32px rgba(30, 64, 175, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open { transform: translateX(0); }

  .about-grid,
  .resume-grid,
  .contact-grid,
  .interests-grid { grid-template-columns: 1fr; }

  .about-visual { max-width: 340px; margin: 0 auto; }

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

  .timeline-line { left: 12px; }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    padding: 1rem 0 1rem 2.75rem;
  }

  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot {
    left: 4px;
    right: auto;
  }

  .timeline-meta { flex-wrap: wrap; }

  .section { padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .counters-row { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .awards-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .stat-card { min-height: 96px; }
  .hero-cta .btn { width: 100%; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .aurora-blob { animation: none; }
  .hero-canvas, #monogramCanvas { display: none; }

  .reveal-up:not(.revealed), .reveal-left:not(.revealed), .reveal-right:not(.revealed),
  .stagger-up > :not(.revealed) {
    opacity: 1;
    transform: none;
  }
}
