/* ==========================================================================
   MANIKANDAN A - MODERN DEVELOPER PORTFOLIO STYLESHEET
   Aesthetics: Cosmic Dark Glassmorphism, Neon Accents, Modern Typography
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  --bg-dark: #070913;
  --bg-dark-alt: #0d1124;
  --bg-surface: #11162d;
  --bg-surface-trans: rgba(17, 22, 45, 0.65);
  
  --glass-bg: rgba(20, 26, 54, 0.6);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(139, 92, 246, 0.4);
  --glass-hover: rgba(28, 36, 74, 0.75);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --emerald: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
  
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

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

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-purple { color: var(--primary-light) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-emerald { color: var(--emerald) !important; }
.text-warning { color: var(--amber) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: #38bdf8 !important; }
.text-success { color: #34d399 !important; }
.text-primary { color: var(--primary-light) !important; }
.text-light { color: #f8fafc !important; }

/* --- Background Particle Canvas & Glowing Blobs --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.blob-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  animation: blobFloat 14s ease-in-out infinite alternate;
}

.blob-primary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(139, 92, 246, 0) 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -5s;
}

.blob-accent {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  top: 45%;
  left: 35%;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* --- Glassmorphism Card Style --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 40px -10px var(--primary-glow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d74ff 0%, #7073ff 100%);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: #c4b5fd;
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.section-description {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* --- Header & Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(7, 9, 19, 0.92);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-code {
  color: var(--primary-light);
}
.brand-dot {
  color: var(--cyan);
}
.brand-suffix {
  color: var(--text-muted);
  font-size: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link i {
  font-size: 0.85rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  background: transparent;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.25rem;
}

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

@keyframes pulseLive {
  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-greeting {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.typewriter-container {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.typewriter-static {
  color: var(--text-muted);
  margin-right: 0.4rem;
}

.typewriter-cursor {
  color: var(--primary-light);
  animation: blinkCursor 0.8s infinite;
  font-weight: 300;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Hero Avatar Presentation --- */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.avatar-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.avatar-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--cyan), #ec4899);
  opacity: 0.35;
  filter: blur(16px);
  z-index: 0;
  animation: glowRotate 8s linear infinite;
}

@keyframes glowRotate {
  0% { filter: blur(16px) hue-rotate(0deg); }
  100% { filter: blur(16px) hue-rotate(360deg); }
}

.avatar-card {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
}

.avatar-img-frame {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  background: #1e2444;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.avatar-card:hover .avatar-img {
  transform: scale(1.04);
}

.avatar-details .avatar-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.avatar-details .avatar-role {
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.avatar-details .avatar-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(15, 20, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-right {
  top: -15px;
  right: -25px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 75px;
  left: -35px;
  animation-delay: -2s;
}

.badge-bottom-right {
  bottom: -15px;
  right: -15px;
  animation-delay: -1s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.scroll-down-btn {
  margin: 3rem auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.scroll-down-btn i {
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.scroll-down-btn:hover {
  color: var(--primary-light);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about-narrative {
  padding: 2.25rem;
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.about-narrative p {
  color: var(--text-body);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-info-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.info-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chip-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.highlight-card {
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.icon-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.highlight-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.highlight-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.highlight-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
}

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

.skill-category-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.category-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.skill-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* --- Work Experience Timeline --- */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--cyan), rgba(6, 182, 212, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 2;
}

.timeline-card {
  padding: 2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.role-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
}

.period-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.25);
  white-space: nowrap;
}

.project-tag-pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--cyan);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.timeline-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-body);
}

.timeline-bullets li i {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.timeline-impact {
  font-size: 0.92rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #d1fae5;
  margin-bottom: 1.25rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* --- Projects Showcase --- */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card-banner {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--glass-border);
}

.banner-gradient-1 { background: linear-gradient(135deg, #4c1d95, #1e1b4b); }
.banner-gradient-2 { background: linear-gradient(135deg, #0e7490, #164e63); }
.banner-gradient-3 { background: linear-gradient(135deg, #701a75, #3b0764); }
.banner-gradient-4 { background: linear-gradient(135deg, #065f46, #064e3b); }

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-icon-large {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform var(--transition-normal);
}

.project-card:hover .project-icon-large {
  transform: scale(1.15) rotate(-5deg);
}

.project-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.project-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-highlights-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.p-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* --- Education Section --- */
.education-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.edu-badge-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.edu-content {
  flex-grow: 1;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.edu-college {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.edu-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-meta {
  text-align: right;
}

.edu-duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.cgpa-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.cgpa-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
}

.cgpa-max {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-coursework-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.course-tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  padding: 2.25rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.contact-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-hover);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-primary { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }
.icon-success { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.icon-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.contact-item-details {
  flex-grow: 1;
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.15);
}

.contact-socials-card {
  margin-top: 0.5rem;
}

.contact-social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-2px);
}

.linkedin-btn:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.github-btn:hover { background: #24292e; border-color: #404448; color: #fff; }
.instagram-btn:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; }
.whatsapp-btn:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-input {
  background: rgba(10, 14, 30, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* --- Footer --- */
.footer {
  padding: 3.5rem 0 2rem;
  background: #04060d;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
}

.footer-brand .brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  width: 100%;
}

/* --- Back to Top Floating Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s forwards 2.7s;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* --- Modals (Project Detail & Resume CV) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  background: #0f1428;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--danger);
  color: #fff;
}

/* Resume CV Modal Sheet */
.resume-modal-card {
  max-width: 850px;
}

.resume-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.resume-header-title h2 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.resume-header-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resume-sheet {
  background: #ffffff;
  color: #1e293b;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
  font-family: var(--font-main);
  line-height: 1.5;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
}

.cv-location {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.cv-contacts p {
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 0.2rem;
}

.cv-divider {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 1.25rem 0;
}

.cv-section {
  margin-bottom: 1.25rem;
}

.cv-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 0.25rem;
  margin-bottom: 0.65rem;
}

.cv-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.cv-skills-grid p {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.cv-item {
  margin-bottom: 0.9rem;
}

.cv-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #0f172a;
}

.cv-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6366f1;
}

.cv-sub {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.3rem;
}

.cv-list {
  padding-left: 1.25rem;
  font-size: 0.84rem;
  color: #334155;
}

.cv-list li {
  margin-bottom: 0.25rem;
}

/* Modal Content Injected Styles */
.modal-project-header {
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.modal-project-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.modal-project-category {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

.modal-project-desc {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-section-h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-features-list li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.modal-features-list li i {
  color: var(--emerald);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .avatar-card-wrapper {
    max-width: 320px;
  }
  
  .floating-badge {
    display: none; /* Avoid overflowing mobile cards */
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-menu.open {
    max-height: 400px;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .d-none-mobile {
    display: none !important;
  }
  
  .about-info-chips {
    grid-template-columns: 1fr;
  }
  
  .contact-social-links {
    grid-template-columns: 1fr;
  }
  
  .education-card {
    flex-direction: column;
    padding: 1.75rem;
  }
  
  .edu-meta {
    text-align: left;
  }
  
  .timeline-wrapper {
    padding-left: 1.5rem;
  }
  
  .timeline-dot {
    left: -1.5rem;
  }
  
  .resume-sheet {
    padding: 1.25rem;
  }
}

/* --- Print Styles for Resume Sheet --- */
@media print {
  body * {
    visibility: hidden;
  }
  #resume-modal, #resume-modal * {
    visibility: visible;
  }
  #resume-modal {
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    padding: 0;
    width: 100%;
  }
  .modal-close-btn, .resume-preview-header {
    display: none !important;
  }
  .resume-modal-card {
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    background: transparent;
  }
  .resume-sheet {
    box-shadow: none;
    padding: 0;
  }
}
