/* Custom Tactical Cyberpunk & High-Tech CSS Design System for Amin Lajnef Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Sleek Tactical High-Tech Theme Palette (Electric Indigo & Cyber Cyan) */
  --bg-color: #070a12;
  --bg-grid: rgba(99, 102, 241, 0.04);
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary-color: #6366f1;       /* Electric Indigo */
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-hover: #4f46e5;
  
  --accent-color: #06b6d4;        /* Cyber Cyan */
  --accent-glow: rgba(6, 182, 212, 0.3);
  
  --success-color: #10b981;       /* Terminal Emerald */
  --success-glow: rgba(16, 185, 129, 0.25);
  
  --card-bg: rgba(11, 15, 26, 0.7);
  --card-border: rgba(99, 102, 241, 0.2);
  --card-hover-border: rgba(6, 182, 212, 0.5);
  
  --header-bg: rgba(7, 10, 18, 0.85);
  --pill-bg: rgba(99, 102, 241, 0.12);
  --pill-text: #c7d2fe;
  
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --glow: 0 0 35px rgba(99, 102, 241, 0.25);
  --scrollbar-thumb: #3730a3;
  --scrollbar-track: #070a12;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  color-scheme: dark;
}

/* Light Theme Override */
html[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-grid: rgba(99, 102, 241, 0.03);
  --text-color: #0f172a;
  --text-muted: #64748b;
  --primary-color: #4338ca;
  --primary-glow: rgba(67, 56, 202, 0.15);
  --accent-color: #0891b2;
  --accent-glow: rgba(8, 145, 178, 0.15);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(226, 232, 240, 0.8);
  --header-bg: rgba(248, 250, 252, 0.85);
  --pill-bg: rgba(67, 56, 202, 0.08);
  --pill-text: #4338ca;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --glow: 0 0 20px rgba(67, 56, 202, 0.1);
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  
  color-scheme: light;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Spotify-Style GPU-Accelerated Dark Ambient Backdrop */
.ambient-backdrop-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-color);
}

.ambient-blurred-layer {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  filter: blur(60px) brightness(0.65) saturate(1.7);
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.ambient-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(99, 102, 241, 0.18) 0%,   /* Deep Electric Indigo */
    rgba(6, 182, 212, 0.08) 35%,    /* Cyber Cyan Glow */
    rgba(7, 10, 18, 0.82) 65%,     /* Deep Obsidian Veil */
    var(--bg-color) 100%
  );
}

/* Slow-Drifting Floating Background Light Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
  opacity: 0.5;
}

.ambient-orb.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 70%);
  top: 5%;
  left: 10%;
  animation: floatOrb1 28s infinite alternate ease-in-out;
}

.ambient-orb.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24) 0%, rgba(6, 182, 212, 0) 70%);
  top: 40%;
  right: 5%;
  animation: floatOrb2 34s infinite alternate ease-in-out;
}

.ambient-orb.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
  bottom: 10%;
  left: 20%;
  animation: floatOrb3 30s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, 130px, 0) scale(1.15); }
  100% { transform: translate3d(-70px, 70px, 0) scale(0.9); }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-110px, -90px, 0) scale(1.2); }
  100% { transform: translate3d(80px, 100px, 0) scale(0.95); }
}

@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(100px, -120px, 0) scale(1.1); }
  100% { transform: translate3d(-90px, 80px, 0) scale(0.85); }
}

/* Top Reading Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color));
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent-color);
  transition: width 0.1s ease-out;
}

/* Live Green Pulsing Dot Indicator */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  position: relative;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid #10b981;
  border-radius: 50%;
  animation: livePulse 1.8s infinite ease-out;
}

@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* PFE Unix Terminal Box */
.pfe-terminal-content {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  background: #04060a;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-top: 0.5rem;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-line .t-prompt {
  color: var(--accent-color);
  font-weight: 700;
}

.terminal-line.t-info {
  color: #94a3b8;
}

.terminal-line.t-ai {
  color: #c7d2fe;
}

.terminal-line.t-success {
  color: #10b981;
}

/* Light mode adaptation */
html[data-theme="light"] .ambient-blurred-layer {
  filter: blur(65px) brightness(1.1) saturate(1.2);
  opacity: 0.18;
}

html[data-theme="light"] .ambient-gradient-overlay {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(248, 250, 252, 0.85) 60%,
    var(--bg-color) 100%
  );
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: #fff;
}

/* Typography styling helper */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Clever Brand Typography Highlight */
.clever-brand {
  font-family: 'JetBrains Mono', var(--font-mono);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  padding-right: 0.05em;
}

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

section {
  padding: 6.5rem 0;
  position: relative;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0;
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo span {
  color: var(--accent-color);
  text-shadow: 0 0 12px var(--accent-glow);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--pill-bg);
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.theme-toggle .sun-icon {
  display: none;
}

html[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}
html[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Hero Section */
.hero {
  padding-top: 10.5rem;
  padding-bottom: 5.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scholarship-badge {
  align-self: flex-start;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.scholarship-badge i {
  color: var(--accent-color);
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-headline {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 0 12px var(--accent-glow);
}

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

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-color);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background-color: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 290px;
  height: 290px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 30px rgba(99, 102, 241, 0.3);
  border: 2px solid rgba(6, 182, 212, 0.35);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 50%, var(--bg-color) 115%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.06);
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, var(--accent-glow) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(30px);
}

/* Section Header Typography */
.section-title {
  font-size: 2.35rem;
  margin-bottom: 0.85rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.25rem auto;
  font-size: 1.05rem;
}

/* Statement of Purpose Quote Box */
.quote-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 2.75rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow), var(--glow);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.quote-text {
  font-size: 1.18rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 600;
  text-align: right;
}

/* Motivation Section Grid */
.motivation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.motivation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.motivation-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow), 0 0 25px var(--accent-glow);
}

.motivation-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.motivation-card h3 i {
  color: var(--accent-color);
}

.motivation-card p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.motivation-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.motivation-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-color);
}

.motivation-card li i {
  color: var(--accent-color);
  margin-top: 0.25rem;
}

/* AHK AS4G Talent Program Showcase */
.as4g-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 2.75rem;
  box-shadow: var(--shadow);
  margin-top: 3.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.as4g-photo-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(6, 182, 212, 0.3);
  margin-top: 1.75rem;
  box-shadow: var(--shadow), 0 0 30px rgba(0,0,0,0.5);
}

.as4g-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Clean Location Pin Pointer over Amin in AS4G Photo */
.as4g-pin-overlay {
  position: absolute;
  left: 66%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
}

.as4g-pin-overlay:hover .pin-tooltip {
  border-color: #ffffff;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.5);
  background: rgba(15, 23, 42, 0.98);
}

.pointer-pin {
  color: var(--accent-color);
  font-size: 2.2rem;
  filter: drop-shadow(0 0 14px rgba(6, 182, 212, 0.95));
  animation: pointerBounce 1.4s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 26, 0.95);
  border: 1px solid var(--accent-color);
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 12;
}

.pin-tooltip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  object-fit: cover;
}

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

/* PFE Feature Showcase Redesign */
.pfe-container {
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.95), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow), 0 0 35px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.pfe-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #6366f1, #10b981);
}

.pfe-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.pfe-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem 0;
}

.pfe-keyword-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.pfe-summary-box {
  background: rgba(7, 10, 18, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.pfe-summary-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pfe-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1rem;
}

.pfe-stage-card {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pfe-stage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pfe-stage-card.stage-1:hover { border-color: #06b6d4; box-shadow: 0 0 20px rgba(6, 182, 212, 0.25); }
.pfe-stage-card.stage-2:hover { border-color: #6366f1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); }
.pfe-stage-card.stage-3:hover { border-color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.25); }

.pfe-stage-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 1rem;
}

.stage-1 .pfe-stage-num { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.stage-2 .pfe-stage-num { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.stage-3 .pfe-stage-num { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.pfe-stage-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stage-1 .pfe-stage-title i { color: #06b6d4; }
.stage-2 .pfe-stage-title i { color: #818cf8; }
.stage-3 .pfe-stage-title i { color: #10b981; }

.pfe-stage-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pfe-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pfe-tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

/* Projects Section Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2.2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow), var(--glow);
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.3rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
}

.project-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-color);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--pill-bg);
  color: var(--accent-color);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
  line-height: 1.65;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Methodology Section */
.methodology {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
}

.methodology-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 3rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.methodology-header h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.methodology-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.methodology-item:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
}

.methodology-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.methodology-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.methodology-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Credentials Section (Academics, Certs, Languages) */
.credentials-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.academic-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--card-border);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid var(--bg-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.certs-langs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.certs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.82rem;
  transition: all 0.25s ease;
}

/* Microsoft Credentials Theme */
.cert-card.microsoft {
  border-color: rgba(0, 164, 239, 0.2);
}
.cert-card.microsoft .cert-icon {
  color: #00a4ef;
}
.cert-card.microsoft:hover {
  border-color: #00a4ef;
  box-shadow: 0 0 15px rgba(0, 164, 239, 0.35);
  transform: scale(1.02);
}

/* Cisco Credentials Theme */
.cert-card.cisco {
  border-color: rgba(6, 182, 212, 0.2);
}
.cert-card.cisco:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.02);
}

/* Flagship Project Card Style */
.project-card.featured {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.12));
  box-shadow: var(--shadow), 0 0 25px rgba(6, 182, 212, 0.2);
}

.project-card.featured::after {
  content: 'FLAGSHIP';
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--accent-color);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cert-icon {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.cert-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.cert-info p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lang-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.lang-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 700;
}

/* Contact / Footer Section */
footer {
  background-color: var(--header-bg);
  border-top: 1px solid var(--card-border);
  padding: 4.5rem 0 2.5rem 0;
  text-align: center;
}

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

.contact-pill-container {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-pill {
  background: var(--pill-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-pill:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.social-links {
  display: flex;
  gap: 1.6rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.55rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.copy-note {
  font-size: 0.75rem;
  color: var(--accent-color);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: var(--font-mono);
}

.copy-note.show {
  opacity: 1;
}

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

/* Scroll Animation classes (with fail-safe fallback) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 99;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 8px 25px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-image-container {
    order: -1;
  }
  
  .scholarship-badge {
    align-self: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .motivation-grid {
    grid-template-columns: 1fr;
  }
  
  .methodology-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .pfe-header-grid,
  .pfe-pipeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  
  .certs-list {
    grid-template-columns: 1fr;
  }
  
  .languages-grid {
    grid-template-columns: 1fr 1fr;
  }
}
