/* ==========================================================================
   Skanda P R - Portfolio Stylesheet
   Modern Developer Theme: Dark / Futuristic / Refined
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #6366f1;       /* Indigo */
  --accent-secondary: #06b6d4;     /* Cyan */
  --accent-emerald: #10b981;       /* Emerald */
  --accent-amber: #f59e0b;         /* Amber */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --accent-glow: rgba(99, 102, 241, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --max-width: 1140px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Grid overlay background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Ensure media and long text fit containers defensively */
img, svg {
  max-width: 100%;
}

.exp-desc,
.project-desc,
.subrepo-item,
.hero-desc,
.contact-desc,
.pub-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

/* Typography & Utilities */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '//';
  color: var(--accent-primary);
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 1.05rem;
  max-width: 600px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 20, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  padding: 100px 0 70px 0;
  position: relative;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #34d399;
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-roles {
  font-size: 1.45rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-education {
  font-size: 1.05rem;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.metric-number {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline & Experience Section */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.experience-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.exp-role {
  font-size: 1.3rem;
  font-weight: 700;
}

.exp-company {
  color: var(--accent-secondary);
  font-weight: 600;
}

.exp-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.exp-desc {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

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

.project-card.featured-wide {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(20, 29, 50, 0.8), rgba(15, 23, 42, 0.9));
  border-color: rgba(99, 102, 241, 0.25);
}

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

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.project-summary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  margin-bottom: 14px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.project-subrepos {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.project-subrepos-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.subrepo-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.subrepo-item:last-child {
  margin-bottom: 0;
}

.subrepo-link {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subrepo-link:hover {
  color: var(--accent-primary);
}

.project-list {
  list-style: none;
  margin-bottom: 22px;
}

.project-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.project-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.skill-category:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.category-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

/* Publications & Honors Section */
.pubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 18px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.pub-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.pub-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pub-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pub-highlight {
  display: inline-block;
  color: var(--accent-emerald);
  font-weight: 600;
}

.pub-card-wide {
  grid-column: span 2;
}

/* GitHub Stats Container */
.github-stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.github-stats-container img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

/* Contact Section */
.contact-container {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Action Dock (Bottom Right) */
.floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 95;
}

.floating-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.floating-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--accent-primary);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

#back-to-top:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.floating-dock .floating-btn[href*="mailto"]:hover {
  border-color: var(--accent-emerald);
  color: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.floating-dock .floating-btn[href*="github"]:hover {
  border-color: #f8fafc;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.floating-dock .floating-btn[href*="linkedin"]:hover {
  border-color: #0a66c2;
  color: #38bdf8;
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured-wide {
    grid-column: span 1;
  }
  .pubs-grid {
    grid-template-columns: 1fr;
  }
  .pub-card-wide {
    grid-column: span 1;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(10, 13, 20, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-roles {
    font-size: 1.2rem;
  }
  .contact-container {
    padding: 40px 20px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 55px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-section {
    padding: 60px 0 40px 0;
  }
  .hero-status-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
    gap: 8px;
    white-space: normal;
    line-height: 1.4;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-roles {
    font-size: 1.1rem;
  }
  .hero-education {
    font-size: 0.88rem;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .project-card {
    padding: 22px 18px;
  }
  .project-title {
    font-size: 1.25rem;
  }
  .experience-card {
    padding: 22px 18px;
  }
  .pub-card {
    padding: 18px 14px;
    gap: 12px;
  }
  .pub-icon-wrap {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline::before {
    left: 4px;
  }
  .timeline-dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    padding: 36px 16px;
  }
  .contact-title {
    font-size: 1.85rem;
  }
  .contact-desc {
    font-size: 0.98rem;
  }
  .contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 10px 14px;
    text-align: center;
    word-break: break-word;
  }
  .copy-toast {
    right: 16px;
    left: 16px;
    bottom: 20px;
    justify-content: center;
  }
  .floating-dock {
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }
  .floating-btn {
    width: 38px;
    height: 38px;
  }
  .floating-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-education {
    font-size: 0.82rem;
  }
  .social-link {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
  .project-card {
    padding: 18px 14px;
  }
  .experience-card {
    padding: 18px 14px;
  }
  .metric-number {
    font-size: 1.75rem;
  }
}
