/* ==========================================================================
   Rathan R Prabhu — Portfolio Design System
   Theme: Sleek Dark Glassmorphism with Cyan & Violet Neon Accents
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-main: #060911;
  --bg-surface: #0b111e;
  --bg-surface-elevated: #111a2e;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 33, 62, 0.85);

  /* Glassmorphism Tokens */
  --glass-bg: rgba(13, 21, 38, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 242, 254, 0.35);
  --glass-blur: blur(18px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-glow: 0 0 25px rgba(0, 242, 254, 0.15);

  /* Neon Accents & Gradients */
  --cyan-primary: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.4);
  --violet-primary: #8a2be2;
  --violet-glow: rgba(138, 43, 226, 0.35);
  --blue-accent: #4facfe;
  --green-status: #10b981;
  --red-accent: #ef4444;
  --amber-accent: #f59e0b;

  --gradient-neon: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8a2be2 100%);
  --gradient-text: linear-gradient(135deg, #00f2fe 0%, #38bdf8 40%, #c084fc 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Text Colors */
  --text-white: #f8fafc;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Transitions */
  --nav-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

/* Ambient Canvas & Cursor Glow */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(138, 43, 226, 0.04) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--cyan-primary); }
.text-green { color: var(--green-status); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-white); }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

/* Layout Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow), var(--glass-glow);
}

.glass-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--gradient-neon);
  border-radius: 2px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.glass-nav {
  background: rgba(6, 9, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.site-header.scrolled {
  background: rgba(6, 9, 17, 0.92);
  border-bottom-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1220px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-symbol {
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  font-size: 1.15rem;
  padding: 2px 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-sm);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-neon);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(6, 9, 17, 0.98);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  z-index: 99;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: 20px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--gradient-neon);
  color: #060911;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.btn-outline-cyan {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--cyan-primary);
}

.btn-outline-cyan:hover {
  background: var(--cyan-primary);
  color: #060911;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

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

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--cyan-primary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--cyan-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-dot 1.8s infinite;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.hero-role-typing {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  border-right: 3px solid var(--cyan-primary);
  white-space: nowrap;
  animation: blink-caret 0.8s infinite;
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.hero-description strong {
  color: var(--text-white);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Hero Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.glass-card-mini {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: all var(--transition-fast);
}

.glass-card-mini:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--cyan-primary);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.card-3d-wrapper {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.card-3d {
  padding: 24px;
  width: 100%;
  max-width: 390px;
  text-align: center;
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
}

.card-avatar-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 310px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(0, 242, 254, 0.35);
}

.card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-3d:hover .card-avatar-img {
  transform: scale(1.05);
}

.avatar-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.35);
  pointer-events: none;
}

.card-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--cyan-primary);
  border-radius: var(--radius-full);
}

.chip-accent {
  background: rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.3);
  color: #c084fc;
}

.card-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}

.card-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  border-radius: var(--radius-sm);
}

.card-live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-green {
  width: 7px;
  height: 7px;
  background: var(--green-status);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-status);
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.about-bio {
  padding: 36px;
}

.about-bio p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.highlight-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* About Snapshot / Dossier */
.about-snapshot {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.dossier-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dossier-value {
  font-size: 0.95rem;
  color: var(--text-white);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-white);
  border-color: rgba(0, 242, 254, 0.3);
}

.filter-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

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

.skill-card {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition-smooth);
}

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

.skill-icon-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-logo {
  font-size: 1.6rem;
}

.skill-info {
  flex-grow: 1;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.skill-percentage {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-primary);
  font-weight: 600;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

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

.project-image-container {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.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.06);
}

.project-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.project-category-badge {
  padding: 6px 12px;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-primary);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  text-align: center;
}

.metric-pill {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
}

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

/* ==========================================================================
   Terminal Section
   ========================================================================== */
.terminal-window {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: rgba(6, 9, 17, 0.85);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-action-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mono-code {
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.terminal-body {
  padding: 24px;
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 6px;
}

.terminal-spacer {
  height: 12px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.terminal-prompt {
  color: var(--cyan-primary);
  font-weight: 700;
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-grow: 1;
}

.terminal-command-echo {
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 4px;
}

.terminal-response {
  color: var(--text-light);
  margin-bottom: 14px;
  white-space: pre-wrap;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 32px;
  position: relative;
  margin-bottom: 36px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-primary);
  z-index: 2;
  margin-top: 6px;
}

.marker-line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(to bottom, var(--cyan-primary), rgba(255, 255, 255, 0.08));
  margin-top: 6px;
}

.timeline-card {
  flex-grow: 1;
  padding: 28px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.timeline-badge.highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
}

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

.info-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.info-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-val {
  font-size: 0.95rem;
  color: var(--text-white);
}

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

.btn-copy:hover {
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.1);
}

.info-link {
  color: var(--cyan-primary);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.info-link:hover {
  text-decoration: underline;
  color: #38bdf8;
}

/* Contact Form */
.contact-form-container {
  padding: 36px;
}

.mb-6 { margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.form-select option {
  background: #0b111e;
  color: var(--text-white);
}

.form-textarea {
  resize: vertical;
}

.contact-alert {
  margin-top: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.contact-alert.hidden {
  display: none;
}

.alert-icon {
  font-size: 1.8rem;
}

.alert-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}

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

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 36px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

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

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: rgba(11, 17, 30, 0.95);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-md);
  color: var(--cyan-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 300;
  pointer-events: none;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 36px;
  background: rgba(4, 7, 13, 0.9);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Certifications Section & Interactive Controls
   ========================================================================== */
.cert-controls-wrapper {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.cert-search-input {
  width: 100%;
  padding: 14px 145px 14px 22px;
  background: rgba(11, 17, 30, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
}

.cert-search-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.25);
  background: rgba(11, 17, 30, 0.95);
}

.cert-count-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  pointer-events: none;
  white-space: nowrap;
}

.cert-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.cert-tab:hover {
  color: var(--text-white);
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.cert-tab.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

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

.cert-card {
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.18);
}

.cert-card.hidden {
  display: none !important;
}

.cert-badge-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.cert-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.cert-issuer-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
}

.cert-issuer-badge.text-cyan {
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.09);
  border-color: rgba(0, 242, 254, 0.3);
}

.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 6px;
}

.cert-meta-info {
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.cert-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.cert-footer-action {
  margin-top: auto;
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-outline-cyan:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

/* View More Button Wrapper */
.cert-view-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(11, 17, 30, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--cyan-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 242, 254, 0.12);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-view-more:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--cyan-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 242, 254, 0.28);
}

.btn-view-more svg {
  transition: transform 0.3s ease;
}

.btn-view-more.expanded svg {
  transform: rotate(180deg);
}

.cert-view-more-wrap.hidden {
  display: none !important;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-role-typing {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}
