/* ==========================================================================
   Hariharan A — Portfolio Professional Design System
   Modern Dark Premium Aesthetic (Apple / Linear / Vercel Developer Style)
   Includes STRUCTUREV 2.0s Brand Intro, Dynamic Repos, Paid Client Cards, Mobile-First Layout
   ========================================================================== */

:root {
  /* Color Palette - Dark Premium Theme */
  --bg-primary: #05070c;
  --bg-secondary: #0c1019;
  --bg-card: rgba(15, 21, 34, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(124, 92, 255, 0.4);
  --border-client: rgba(245, 158, 11, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-purple: #7c5cff;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  
  --status-live: #10b981;
  --status-live-bg: rgba(16, 185, 129, 0.12);
  --status-client: #f59e0b;
  --status-client-bg: rgba(245, 158, 11, 0.12);
  --status-dev: #3b82f6;
  --status-dev-bg: rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 76px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease;
}

/* Light Theme Overrides */
.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);

  --border-color: rgba(0, 0, 0, 0.1);
  --border-highlight: rgba(124, 92, 255, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

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

body.intro-active, body.modal-open, body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 3px;
}

/* Global Responsive Bounds & Text Wrapping Utilities */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

.focus-pill, .dsa-tag, .tech-chip, .rec-pill, .social-chip, .badge, .cert-provider, .skill-tab, .ai-chip {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   1. STRUCTUREV 2-Second Brand Intro Overlay
   ========================================================================== */
.brand-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #030509;
  background-image: radial-gradient(circle at 50% 45%, rgba(124, 92, 255, 0.12) 0%, transparent 60%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
  overflow: hidden;
}

.brand-intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-intro-content {
  text-align: center;
  padding: 24px 16px;
  max-width: 100%;
  animation: introReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.brand-intro-badge {
  font-family: var(--font-code);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 2px;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0;
  animation: introTextFade 0.5s ease 0.2s forwards;
  word-break: break-word;
}

.brand-intro-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(124, 92, 255, 0.3);
  margin-bottom: 14px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.brand-intro-sub {
  font-family: var(--font-code);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: var(--text-secondary);
  letter-spacing: 1px;
  opacity: 0;
  animation: introTextFade 0.5s ease 0.4s forwards;
  word-break: break-word;
  overflow-wrap: break-word;
}

@keyframes introReveal {
  0% { opacity: 0; transform: scale(0.96); }
  25% { opacity: 1; transform: scale(1.0); }
  80% { opacity: 1; transform: scale(1.0); }
  100% { opacity: 0.9; transform: scale(1.01); }
}

@keyframes introTextFade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro-overlay {
    display: none !important;
  }
  body.intro-active {
    overflow: auto !important;
  }
}

/* Background Canvas & Ambient Orbs */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.ambient {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
}

.ambient-1 {
  top: -100px;
  left: -100px;
  background: var(--accent-purple);
}

.ambient-2 {
  bottom: -100px;
  right: -100px;
  background: var(--accent-cyan);
}

/* Global Container & Section Architecture */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

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

.section-tag {
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 1.8px;
  color: var(--accent-purple);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-title-text {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-top: 8px;
  max-width: 650px;
}

/* Scroll Section Reveal Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Guarantee 100% section visibility on mobile devices (no scroll observer dependency) */
@media (max-width: 768px) {
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* ==========================================================================
   2. Sticky Header & Premium Navigation
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  transition: width 0.1s ease;
  z-index: 1001;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.6);
}

.brand-text .dot {
  color: var(--accent-purple);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);

}

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

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

.recruiter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.recruiter-pill:hover {
  background: rgba(124, 92, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-btn:hover {
  background: var(--bg-glass-hover);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
  margin: 0 auto;
}

.mobile-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--status-live-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-live);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 20px;
  min-height: 38px;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-purple);
}

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

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 92, 255, 0.5);
}

.primary-btn.client-btn {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.primary-btn.client-btn:hover {
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.secondary-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.secondary-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.outline-btn {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.outline-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

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

.social-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-purple);
  background: var(--bg-glass-hover);
}

/* Hero Glass Card */
.hero-glass-card {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.4);
}

.avatar-initials {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.card-dept {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.about-text-panel {
  padding: 36px;
}

.about-paragraph {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.focus-pill {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-highlights-panel {
  padding: 36px;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hl-icon {
  font-size: 1.25rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
}

.highlight-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.highlight-list p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. Skills Matrix Section
   ========================================================================== */
.skills-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.skill-tab {
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.skill-tab:hover, .skill-tab.active {
  color: #fff;
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.skill-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-level-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skill-card-footer {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* ==========================================================================
   6. Projects Showcase Section (Most Important)
   ========================================================================== */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.status-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge.live {
  background: var(--status-live-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--status-live);
}

.badge.client {
  background: var(--status-client-bg);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--status-client);
}

.badge.client-mini {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--status-client);
  font-family: var(--font-code);
  font-size: 0.7rem;
}

.badge.dev {
  background: var(--status-dev-bg);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--status-dev);
}

.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Single Featured Project Card */
.project-card-featured {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 0;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.project-card-featured:hover {
  transform: translateY(-3px);
}

.project-card-featured.is-live {
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.project-card-featured.is-paid-client {
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
}

.project-visual {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(6, 182, 212, 0.08));
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 280px;
}

.project-card-featured.is-paid-client .project-visual {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 92, 255, 0.08));
}

.project-visual-icon {
  font-size: 3.8rem;
  margin: auto 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition);
}

.project-card-featured:hover .project-visual-icon {
  transform: scale(1.1);
}

.project-num {
  font-family: var(--font-code);
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.15;
  position: absolute;
  top: 20px;
  left: 24px;
}

.project-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.project-cat {
  font-family: var(--font-code);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.project-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-disabled {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: not-allowed;
}

/* ==========================================================================
   7. Experience Timeline Section
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 20px;
}

.timeline-track {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-indigo));
}

.timeline-card {
  padding: 28px;
  position: relative;
  margin-left: 20px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
}

.timeline-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-purple);
  margin-bottom: 8px;
}

.timeline-header {
  margin-bottom: 12px;
}

.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.company-tag {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-bullets {
  list-style: disc;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   8. Achievements Section
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.achievement-card {
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ach-icon-wrap {
  font-size: 2rem;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.ach-rank {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--accent-purple);
  font-weight: 700;
  margin-bottom: 4px;
}

.ach-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ach-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.certs-wrapper {
  margin-top: 32px;
}

.certs-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

.cert-card {
  padding: 20px;
}

.cert-provider {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-purple);
  font-weight: 600;
}

.cert-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 4px 0 6px;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   9. DSA & Algorithmic Foundation Grid
   ========================================================================== */
.dsa-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.dsa-box {
  padding: 36px;
}

.dsa-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}

.dsa-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.dsa-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.dsa-skills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dsa-tag {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.dsa-stats-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dsa-stat-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.dsa-stat-icon {
  font-size: 1.8rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsa-stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.dsa-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   10. GitHub Profile & Dynamic Repos Section
   ========================================================================== */
.github-banner {
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.gh-info h3 {
  font-family: var(--font-code);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gh-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.github-repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

/* Skeleton Loading State for GitHub Repos */
.repo-skeleton {
  padding: 24px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skeleton-bar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.repo-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.repo-icon {
  font-size: 1.2rem;
}

.repo-name a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.repo-name a:hover {
  color: var(--accent-purple);
}

.repo-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.repo-link {
  color: var(--accent-purple);
  font-weight: 600;
}

/* Fallback Card */
.github-fallback-card {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
}

.fallback-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.github-fallback-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.github-fallback-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ==========================================================================
   11. Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.contact-form {
  padding: 36px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.full-width {
  width: 100%;
}

.form-status-text {
  font-size: 0.85rem;
  margin-top: 12px;
  color: var(--accent-purple);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(4px);
}

.c-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-card strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

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

/* ==========================================================================
   12. Modals Overlay (Recruiter View & Case Study)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Recruiter View Drawer Styling */
.recruiter-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.recruiter-header {
  padding-right: 48px;
}

.recruiter-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  word-break: break-word;
}

.recruiter-headline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-top: 4px;
}

.recruiter-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.recruiter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.recruiter-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rec-pill {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.rec-live-box {
  background: var(--status-live-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.rec-live-box strong {
  display: block;
  color: var(--status-live);
  font-size: 0.92rem;
}

.rec-live-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 3px 0 6px;
}

.rec-live-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--status-live);
}

.rec-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recruiter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Case Study Content */
.cs-header {
  margin-bottom: 24px;
  padding-right: 48px;
}

.cs-cat {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-purple);
  font-weight: 600;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 4px 0 12px;
}

.cs-section {
  margin-bottom: 20px;
}

.cs-section h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cs-section p, .cs-section ul {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cs-section ul {
  list-style: disc;
  padding-left: 18px;
}

/* ==========================================================================
   13. 🤖 Ask Hariharan AI Assistant Floating Widget
   ========================================================================== */
.ai-widget-wrapper {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 8000;
}

.ai-floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
  transition: var(--transition);
}

.ai-floating-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.6);
}

.ai-chat-drawer {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: calc(100% - 32px);
  height: 480px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.ai-chat-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ai-bot-avatar {
  font-size: 1.5rem;
}

.ai-chat-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.ai-status {
  font-size: 0.7rem;
  color: var(--status-live);
  display: block;
}

.ai-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 88%;
}

.ai-message.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.ai-message.user {
  background: var(--accent-purple);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.ai-suggestions {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.ai-chip {
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.ai-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-purple);
}

.ai-chat-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.ai-chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.ai-send-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   14. Mobile-First Quality & Breakpoint Optimization
   ========================================================================== */

/* 1024px Laptop & Tablet Grid Adjustments */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: calc(var(--nav-height) + 30px);
  }
  .about-grid, .contact-grid, .dsa-grid {
    grid-template-columns: 1fr;
  }
  .project-card-featured {
    grid-template-columns: 1fr;
  }
  .recruiter-grid {
    grid-template-columns: 1fr;
  }
}

/* 768px Tablet & Mobile Navigation Overlay */
@media (max-width: 768px) {
  .brand-intro-overlay {
    display: none !important;
  }
  body.intro-active {
    overflow: auto !important;
  }
  .hero-name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  }
  .section {
    padding: 50px 0;
  }
  .mobile-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(12, 16, 25, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 1rem;
  }
  .nav-actions {
    width: 100%;
    justify-content: center;
    padding-top: 10px;
  }
  .hero-glass-card {
    padding: 24px 18px;
  }
  .project-visual {
    min-height: 180px;
    padding: 24px;
  }
  .project-body {
    padding: 24px 18px;
  }
  .modal-content {
    padding: 24px 18px;
  }
  .ai-widget-wrapper {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .ai-chat-drawer {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: min(440px, calc(100vh - 100px));
  }
}

/* 480px & 430px Mobile Optimizations */
@media (max-width: 480px) {
  .timeline-wrapper {
    padding-left: 12px;
  }
  .timeline-card {
    margin-left: 12px;
    padding: 18px 14px;
  }
  .timeline-card::before {
    left: -19px;
    top: 24px;
  }
  .about-text-panel, .about-highlights-panel, .dsa-box, .contact-form, .github-banner {
    padding: 20px 16px;
  }
  .form-group input, .form-group textarea, .ai-chat-input-area input {
    font-size: 16px; /* Prevents auto-zoom on iOS/Android WebKit */
  }
}

/* 430px & 390px Mobile Optimizations */
@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }
  .hero-name {
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  }
  .hero-title {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    min-height: 44px;
  }
  .btn {
    width: 100%;
    min-height: 44px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-socials {
    justify-content: center;
    width: 100%;
  }
  .social-chip {
    flex: 1 1 120px;
    justify-content: center;
    min-height: 42px;
  }
  .project-actions-row {
    flex-direction: column;
  }
  .project-actions-row .btn, .project-actions-row .btn-disabled {
    width: 100%;
    min-height: 44px;
  }
  .github-banner {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }
  .recruiter-actions {
    flex-direction: column;
  }
  .recruiter-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .ai-floating-btn .ai-label {
    display: none;
  }
  .ai-floating-btn {
    padding: 14px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
  .achievement-card {
    padding: 18px 14px;
    gap: 14px;
  }
}

/* 360px & 320px Ultra-Compact Mobile Devices */
@media (max-width: 360px) {
  .hero-name {
    font-size: 1.7rem;
  }
  .card-stats-grid {
    grid-template-columns: 1fr;
  }
  .skills-tab-bar {
    gap: 6px;
  }
  .skill-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }
  .contact-card {
    padding: 16px 14px;
    gap: 12px;
  }
}
