/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & STYLESHEET: ANUSUYA S
   Aesthetics: Modern Cyber-Glassmorphic Dark & Light Design System
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  /* 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-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Color Palette - Dark Theme (Default) */
  --bg-main: #0a0d14;
  --bg-surface-1: #101624;
  --bg-surface-2: #162033;
  --bg-card: rgba(18, 25, 41, 0.72);
  --bg-card-hover: rgba(25, 36, 58, 0.88);
  --bg-card-glass: rgba(15, 23, 42, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.4);
  --border-card: rgba(148, 163, 184, 0.12);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0d14;

  /* Vibrant Accents */
  --color-cyan: #00f0ff;
  --color-teal: #00d2b4;
  --color-purple: #8b5cf6;
  --color-indigo: #6366f1;
  --color-blue: #38bdf8;
  --color-orange: #f59e0b;
  --color-green: #10b981;
  --color-pink: #ec4899;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 100%);
  --grad-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow-1: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  --grad-glow-2: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  --grad-glow-3: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 0, 0, 0) 70%);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-purple: 0 0 25px rgba(139, 92, 246, 0.25);

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 76px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-glass: rgba(255, 255, 255, 0.8);

  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-focus: rgba(2, 132, 199, 0.4);
  --border-card: rgba(203, 213, 225, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --color-cyan: #0284c7;
  --color-teal: #0d9488;
  --color-purple: #7c3aed;
  --color-indigo: #4f46e5;
  --color-blue: #2563eb;
  --color-orange: #d97706;
  --color-green: #059669;

  --grad-primary: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  --grad-accent: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  --grad-glow-1: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  --grad-glow-2: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  --grad-glow-3: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, rgba(0, 0, 0, 0) 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
  --shadow-cyan: 0 0 20px rgba(2, 132, 199, 0.15);
  --shadow-purple: 0 0 20px rgba(124, 58, 237, 0.15);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-2);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: opacity var(--transition-slow);
}
.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: var(--grad-glow-1);
}
.glow-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  left: -200px;
  background: var(--grad-glow-2);
}
.glow-3 {
  width: 450px;
  height: 450px;
  bottom: 0;
  right: 10%;
  background: var(--grad-glow-3);
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* --- Reusable Components & Utilities --- */
.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  margin-bottom: 56px;
}
.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-cyan);
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-cyan);
  background: var(--bg-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-full {
  width: 100%;
}
.btn-primary {
  background: var(--grad-primary);
  color: #0a0d14;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
  color: #000;
}
.btn-outline {
  border: 1px solid var(--border-focus);
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.05);
}
.btn-outline:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* --- NAVIGATION BAR --- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}
.navbar-wrapper.scrolled {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.logo-bracket {
  color: var(--color-cyan);
  margin: 0 2px;
}
.logo-text {
  color: var(--text-primary);
}
.logo-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 24px;
  border-radius: var(--radius-full);
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--color-cyan);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
  color: var(--color-cyan);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}
.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-surface-1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-close-btn {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.mobile-link:hover {
  color: var(--color-cyan);
}
.mobile-drawer-footer {
  margin-top: auto;
}
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 20px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-greeting {
  font-size: 1.25rem;
  color: var(--color-cyan);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.typing-container {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}
.typing-prefix {
  color: var(--text-secondary);
  margin-right: 6px;
}
.typed-text {
  color: var(--color-cyan);
}
.cursor-blink {
  color: var(--color-cyan);
  animation: blink 0.9s infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-description strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.email-copy-wrap {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-subtle);
  transition: all var(--transition-fast);
}
.email-copy-wrap:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}
.copy-hint {
  font-size: 0.75rem;
  color: var(--color-cyan);
  opacity: 0.9;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
}
.stat-card:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: var(--border-focus);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Visual / Avatar Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-card-wrapper {
  position: relative;
  width: 380px;
  max-width: 100%;
}

.avatar-glow-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: var(--grad-accent);
  border-radius: 32px;
  filter: blur(25px);
  opacity: 0.45;
  z-index: 1;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0% { opacity: 0.35; transform: scale(0.98); }
  100% { opacity: 0.6; transform: scale(1.02); }
}

.avatar-card {
  position: relative;
  z-index: 2;
  background: var(--bg-surface-1);
  border: 2px solid var(--border-subtle);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}
.avatar-card:hover {
  transform: translateY(-6px);
}
.avatar-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111827;
}
.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.avatar-card:hover .hero-avatar-img {
  transform: scale(1.04);
}
.avatar-info-bar {
  padding: 16px 20px;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.avatar-name {
  font-weight: 700;
  font-size: 1.15rem;
}
.avatar-role {
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-weight: 500;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: float-anim 4s ease-in-out infinite;
}
.badge-top-left {
  top: 20px;
  left: -35px;
  animation-delay: 0s;
}
.badge-top-right {
  top: 40px;
  right: -30px;
  animation-delay: 1s;
}
.badge-bottom-left {
  bottom: 80px;
  left: -30px;
  animation-delay: 2s;
}
.badge-bottom-right {
  bottom: 30px;
  right: -25px;
  animation-delay: 3s;
}

@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- ABOUT & EDUCATION SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.card-heading {
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cyan);
}
.story-paragraph {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
.sub-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 24px 0 12px 0;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.lang-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.lang-level {
  font-size: 0.78rem;
  color: var(--color-teal);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.strength-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.strength-check {
  color: var(--color-cyan);
  font-weight: 800;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-purple) 60%, transparent 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}
.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-institution {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.highlight-grade {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--color-cyan);
}
.grade-star {
  font-size: 0.78rem;
  color: var(--color-orange);
  margin-left: 4px;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- SKILLS MATRIX SECTION --- */
.skills-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--grad-primary);
  color: #0a0d14;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.skill-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.skill-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.skill-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skill-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.skill-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
}

/* --- PROJECTS SHOWCASE SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.featured-project-card {
  grid-column: span 2;
  border-color: rgba(0, 240, 255, 0.3);
}

.project-banner {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-cyan);
}
.badge-dot.blue-dot { background: var(--color-blue); box-shadow: 0 0 8px var(--color-blue); }
.badge-dot.green-dot { background: var(--color-green); box-shadow: 0 0 8px var(--color-green); }
.badge-dot.orange-dot { background: var(--color-orange); box-shadow: 0 0 8px var(--color-orange); }

.project-icon-badge {
  font-size: 1.5rem;
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.project-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.feat-item strong {
  color: var(--text-primary);
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--color-cyan);
  border-radius: var(--radius-sm);
}

.project-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

/* --- CERTIFICATIONS & ACHIEVEMENTS SECTION --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  display: flex;
  flex-direction: column;
}
.cert-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cert-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.leetcode-icon { color: #f89f1b; background: rgba(248, 159, 27, 0.1); border-color: rgba(248, 159, 27, 0.3); }
.nptel-icon { color: #38bdf8; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); }
.infosys-icon { color: #007cc3; background: rgba(0, 124, 195, 0.1); border-color: rgba(0, 124, 195, 0.3); }
.academic-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }

.cert-issuer {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.cert-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cert-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.cert-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* LeetCode Special Card */
.leetcode-stats-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.leetcode-meter {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#f89f1b 0% 75%, rgba(255, 255, 255, 0.1) 75% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(248, 159, 27, 0.25);
}
.meter-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.meter-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f89f1b;
  line-height: 1;
}
.meter-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.leetcode-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.diff-tag {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}
.diff-tag.easy { color: #00b8a3; background: rgba(0, 184, 163, 0.1); }
.diff-tag.medium { color: #ffc01e; background: rgba(255, 192, 30, 0.1); }
.diff-tag.core { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.diff-count {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* --- WHY HIRE ME SECTION --- */
.why-hire-card {
  padding: 48px;
}
.why-hire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.why-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.why-box:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: var(--border-focus);
  transform: translateY(-3px);
}
.why-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.why-box h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.why-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.recruiter-action-strip {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.strip-left h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.strip-left p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.strip-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-body {
  flex: 1;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.contact-value:hover {
  color: var(--color-cyan);
}

.copy-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.copy-action-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

.social-profiles-box {
  padding: 24px;
}
.profiles-heading {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.profiles-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.profile-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.profile-link-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  padding: 36px;
}
.form-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #ffffff;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
}

/* --- FOOTER --- */
.footer-wrapper {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: var(--bg-surface-1);
  position: relative;
  z-index: 2;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.copyright-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.back-to-top-btn:hover {
  background: var(--color-cyan);
  color: #0a0d14;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35);
}

/* --- MODALS (Resume & Project Detail) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2);
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title-wrap h3 {
  font-size: 1.25rem;
}
.modal-actions-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-close-btn {
  font-size: 1.8rem;
  color: var(--text-secondary);
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--color-cyan);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

/* ATS Resume Sheet styling inside Modal */
.resume-sheet {
  background: #ffffff;
  color: #1a1a1a;
  padding: 36px 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: 'Times New Roman', Times, serif;
}
.resume-sheet-header {
  text-align: center;
  margin-bottom: 20px;
}
.r-name {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #000;
  font-family: 'Times New Roman', Times, serif;
}
.r-contact-line {
  font-size: 0.95rem;
  color: #333;
}
.r-section {
  margin-bottom: 18px;
}
.r-heading {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #000;
  font-family: 'Times New Roman', Times, serif;
}
.r-divider {
  height: 1.5px;
  background: #000;
  margin: 3px 0 8px 0;
}
.r-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #222;
  margin-bottom: 6px;
}
.r-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.r-right {
  text-align: right;
}
.r-highlight {
  color: #0d9488;
}
.r-sub-line {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
}
.r-skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.r-skills-table td {
  padding: 4px 6px;
  vertical-align: top;
}
.r-skills-table td:first-child {
  width: 28%;
  white-space: nowrap;
}
.r-list {
  padding-left: 20px;
  font-size: 0.95rem;
  color: #222;
}
.r-list li {
  margin-bottom: 4px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-surface-1);
  border: 1px solid var(--color-cyan);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: toast-in 0.3s ease-out forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-greeting, .typing-container, .hero-meta, .hero-actions {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .featured-project-card {
    grid-column: span 1;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .why-hire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .why-hire-grid {
    grid-template-columns: 1fr;
  }
  .why-hire-card {
    padding: 24px;
  }
  .recruiter-action-strip {
    flex-direction: column;
    text-align: center;
  }
  .strip-right {
    justify-content: center;
  }
  .floating-badge {
    display: none;
  }
  .profiles-links-grid {
    grid-template-columns: 1fr;
  }
  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}
