/* ===================================================================
   MANISA MATHESWARAN - RECRUITER-READY PORTFOLIO DESIGN SYSTEM
   Modern Dark Cyber-Glassmorphism | High-DPI Responsive | Micro-Interactions
=================================================================== */

:root {
  /* Core Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(19, 27, 46, 0.65);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  /* Neon Accent Gradients */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
  --grad-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.35);
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.3);
  --glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Section Common Layout */
section {
  padding-block: 6rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-cyan);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Background Ambient Lights & Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.orb-1 {
  top: 5%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: var(--accent-indigo);
}

.orb-2 {
  top: 35%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
}

.orb-3 {
  bottom: 10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--glow-card);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark-card);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), var(--glow-indigo);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}

.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.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ===================================================================
   NAVIGATION BAR
=================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  color: #fff;
  box-shadow: var(--glow-cyan);
}

.brand-name {
  background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

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

.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;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

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

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.recruiter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
}

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

@keyframes pulseAnimation {
  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.25rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-role-wrapper {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-prefix {
  color: var(--text-muted);
}

.typewriter-text {
  color: var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  white-space: nowrap;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent-cyan); }
}

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

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual / 3D Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-card-container {
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.avatar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar-img-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-cyan);
  box-shadow: var(--glow-cyan);
}

.avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.avatar-info p {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-code);
}

.code-mockup {
  background: rgba(7, 9, 14, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  font-family: var(--font-code);
  font-size: 0.825rem;
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.code-kw { color: #f43f5e; }
.code-fn { color: #38bdf8; }
.code-str { color: #a3e635; }
.code-num { color: #f59e0b; }
.code-prop { color: #c084fc; }

/* Floating Tech Pills */
.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: floatAnim 4s ease-in-out infinite;
  z-index: 3;
}

.pill-1 { top: -15px; right: -10px; animation-delay: 0s; border-color: rgba(6, 182, 212, 0.4); color: var(--accent-cyan); }
.pill-2 { bottom: 15px; left: -20px; animation-delay: 1.5s; border-color: rgba(99, 102, 241, 0.4); color: var(--accent-indigo); }
.pill-3 { bottom: -15px; right: 20px; animation-delay: 2.5s; border-color: rgba(16, 185, 129, 0.4); color: var(--accent-emerald); }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===================================================================
   ABOUT & RECRUITER HIGHLIGHTS
=================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.about-summary-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-summary-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about-summary-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.recruiter-takeaway {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent-indigo);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
}

.recruiter-takeaway h5 {
  font-size: 0.95rem;
  color: var(--accent-indigo);
  margin-bottom: 0.35rem;
}

.recruiter-takeaway p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

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

.highlight-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.highlight-box:nth-child(2) .highlight-icon { color: var(--accent-indigo); }
.highlight-box:nth-child(3) .highlight-icon { color: var(--accent-emerald); }
.highlight-box:nth-child(4) .highlight-icon { color: var(--accent-amber); }

.highlight-box h4 {
  font-size: 1.1rem;
}

.highlight-box p {
  font-size: 0.875rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.775rem;
  font-family: var(--font-code);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ===================================================================
   SKILLS MATRIX SECTION
=================================================================== */
.skills-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.skill-card.hidden {
  display: none;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

.skill-level-badge {
  font-size: 0.725rem;
  font-family: var(--font-code);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
}

.skill-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.skill-info p {
  font-size: 0.85rem;
}

.skill-meter-wrap {
  margin-top: 0.25rem;
}

.skill-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   FEATURED PROJECTS SECTION
=================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-media-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.project-category-badge {
  font-family: var(--font-code);
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

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

.project-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.project-features-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-features-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

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

.tech-tag {
  font-size: 0.775rem;
  font-family: var(--font-code);
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-accent);
}

.project-actions {
  display: flex;
  gap: 0.75rem;
}

/* ===================================================================
   EDUCATION & TIMELINE SECTION
=================================================================== */
.timeline-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo), var(--accent-purple));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.5rem;
}

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

.timeline-node {
  position: absolute;
  left: 17px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-node {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px var(--accent-indigo);
}

.timeline-item:nth-child(3) .timeline-node {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
}

.timeline-card {
  padding: 2rem;
}

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

.timeline-degree {
  font-size: 1.35rem;
  color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-code);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-cyan);
}

.timeline-institution {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ===================================================================
   CERTIFICATIONS & ACHIEVEMENTS
=================================================================== */
.cert-achieve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.cert-column h3, .achieve-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cert-list, .achieve-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cert-card, .achieve-card {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.cert-icon-badge, .achieve-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-active);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-card:nth-child(2) .cert-icon-badge {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--border-cyan);
  color: var(--accent-cyan);
}

.achieve-icon-badge {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.cert-body h4, .achieve-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.elite-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-code);
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

/* ===================================================================
   RECRUITER CONNECT & CONTACT SECTION
=================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

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

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.copy-btn:hover {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Interactive Form */
.contact-form-card {
  padding: 2.5rem;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

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

.quick-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.template-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.template-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border-color: var(--border-active);
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.back-to-top:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-4px);
}

/* ===================================================================
   MODALS (PROJECT DEMOS & RESUME PREVIEW)
=================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-container {
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-indigo);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.35rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-body {
  padding: 2rem;
}

/* Chat Simulator UI Inside Modal */
.chat-sim-wrapper {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-sim-header {
  background: var(--bg-tertiary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-sim-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 80%;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeInMsg 0.3s ease;
}

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

.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.msg-user {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-sim-input-bar {
  padding: 0.85rem 1.25rem;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}

.chat-quick-prompts {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(7, 9, 14, 0.5);
  overflow-x: auto;
  white-space: nowrap;
}

.quick-prompt-chip {
  font-size: 0.775rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  cursor: pointer;
}

.quick-prompt-chip:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* Pest Sensor Simulator UI */
.sensor-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.sensor-gauge-card {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.sensor-gauge-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-emerald);
  margin: 0.5rem 0;
}

/* Printable Resume Styles in Modal */
.resume-paper {
  background: #ffffff;
  color: #0f172a;
  padding: 3rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.5;
}

.resume-paper h1, .resume-paper h2, .resume-paper h3, .resume-paper h4 {
  color: #0f172a;
}

.resume-paper p, .resume-paper li {
  color: #334155;
}

.resume-paper-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.resume-paper-header h1 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.resume-paper-header .resume-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.resume-sec {
  margin-bottom: 1.25rem;
}

.resume-sec-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.resume-paper ul {
  padding-left: 1.25rem;
}

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

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

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

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

/* ===================================================================
   RESPONSIVE MEDIA QUERIES
=================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-role-wrapper {
    justify-content: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats-grid {
    max-width: 500px;
    margin-inline: auto;
  }

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

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

  .cert-achieve-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  section {
    padding-block: 4.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

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

  .timeline-container::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-node {
    left: 7px;
  }

  .sensor-sim-grid {
    grid-template-columns: 1fr;
  }

  .resume-paper {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #resume-modal, #resume-modal * {
    visibility: visible;
  }
  #resume-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
  }
  .modal-header, .modal-close-btn, .btn {
    display: none !important;
  }
}
