/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fafaf9;
  color: #1c1917;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* TYPOGRAPHY HELPERS */
.section-tag {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.highlight-purple { color: #a855f7; }
.highlight-green { color: #3b82f6; }
.highlight-green-italic { color: #15803d; font-style: italic; }
.highlight-blue { color: #3b82f6; }
.highlight-dark { color: #1c1917; }

/* SCROLL PROGRESS BAR */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: #15803d;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================
   OPTION 1: FROSTED GLASS (GLASSMORPHISM) PILLS
   ========================================== */
.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  
  /* Light Context Frosted Glass Core */
  background: rgba(28, 25, 23, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);

  /* Typography */
  color: #1c1917;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  
  /* Transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-pill:hover {
  background: rgba(28, 25, 23, 0.12);
  border-color: rgba(28, 25, 23, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: #15803d;
}

.glass-pill:active {
  transform: translateY(0);
}

/* Arrow Micro-Interaction */
.glass-pill .arrow {
  transition: transform 0.25s ease;
}

.glass-pill:hover .arrow {
  transform: translate(2px, -2px);
}

/* Primary Dark Glass Variant */
.glass-primary {
  background: rgba(28, 25, 23, 0.92);
  color: #ffffff;
  border-color: rgba(28, 25, 23, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.glass-primary:hover {
  background: rgba(37, 99, 235, 0.95);
  border-color: rgba(37, 99, 235, 0.95);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

/* Dark Glass Outline Variant for White/Grey Backgrounds */
.glass-dark {
  background: rgba(28, 25, 23, 0.04);
  border-color: rgba(28, 25, 23, 0.12);
  color: #1c1917;
}

.glass-dark:hover {
  background: rgba(28, 25, 23, 0.95);
  border-color: rgba(28, 25, 23, 0.95);
  color: #ffffff;
}

/* Dark Footer Glass Variant */
.glass-footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.glass-footer:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Size Modifications */
.glass-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

.glass-btn-full {
  width: 100%;
  margin-bottom: 10px;
}

.glass-disabled {
  background: rgba(231, 229, 228, 0.5);
  border-color: rgba(214, 211, 209, 0.5);
  color: #a8a29e;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* NAVIGATION BAR */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

/* BRAND LOGO STYLES */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.brand-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #1c1917;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.brand:hover .brand-name {
  color: #15803d;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  margin: 0;
  text-decoration: none;
  color: #57534e;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

nav a:hover { color: #15803d; }

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #15803d;
  transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* HERO SECTION */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 80px 5%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 60px;
}

.hero-left { 
  flex: 1.2; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78716c;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -1px;
}

.hero-bio { 
  font-size: 1.35rem;
  line-height: 1.55;
  color: #44403c; 
  max-width: 680px; 
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-right { 
  flex: 0.95; 
  display: flex; 
  justify-content: flex-end; 
}

.profile-photo {
  height: 0;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* 01 / PROFILE & BACKGROUND SECTION */
.profile-section { 
  padding: 100px 5%; 
  background-color: #f5f5f4; 
  transition: background-color 0.3s ease; 
}

.profile-container {
  max-width: 1280px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.profile-headline {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #1c1917;
  font-weight: 400;
  letter-spacing: -1px;
}

.profile-bio p {
  font-size: 1.0rem;
  color: #44403c;
  line-height: 1.8;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.profile-edu-card,
.profile-skills-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-edu-card:hover,
.profile-skills-card:hover {
  border-color: #15803d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.profile-subheading {
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-bottom: 2px solid #f5f5f4;
  padding-bottom: 10px;
}

.edu-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.edu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.edu-school {
  font-size: 0.8rem;
  font-weight: 700;
  color: #78716c;
  letter-spacing: 1px;
}

.edu-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
}

.edu-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.3;
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 0.9rem;
  color: #78716c;
  font-weight: 500;
}

.edu-divider-line {
  height: 1px;
  background-color: #e7e5e4;
  margin: 16px 0;
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.category-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #78716c;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 6px 14px;
  border: 1px solid #d6d3d1;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #292524;
  background: #fafaf9;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
}

.skill-tags span:hover {
  border-color: #15803d;
  color: #ffffff;
  background-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* 02 / PROJECTS SECTION */
.projects-section { padding: 80px 5%; background-color: #fafaf9; transition: background-color 0.3s ease; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card {
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #15803d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.card-num { font-size: 0.85rem; font-weight: 700; color: #15803d; margin-bottom: 8px; }

.project-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #1c1917; transition: color 0.3s ease; line-height: 1.3; }
.project-card:hover h3 { color: #15803d; }
.project-card p { color: #57534e; font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags span {
  background: #f5f5f4;
  color: #15803d;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.project-card:hover .tech-tags span { background: #eff6ff; }

/* 03 / WRN ASSIGNMENTS SECTION */
.wrn-section { padding: 100px 5%; background-color: #f5f5f4; transition: background-color 0.3s ease; }

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.assignment-card {
  background: #ffffff;
  padding: 20px 18px;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.assignment-card:hover {
  transform: translateY(-8px);
  border-color: #15803d;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.assign-no {
  font-size: 0.75rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.assignment-card h4 { font-size: 1.05rem; color: #1c1917; margin-bottom: 12px; line-height: 1.3; }
.assignment-card p { color: #57534e; font-size: 0.85rem; line-height: 1.4; margin-bottom: 20px; }

/* 04 / WRN COURSE REFLECTION SECTION */
.reflection-section { padding: 100px 5%; background-color: #fafaf9; transition: background-color 0.3s ease; }

.reflection-content {
  max-width: 1280px;
  margin: 0 auto;
  background: #ffffff;
  padding: 36px 40px;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reflection-content:hover { border-color: #15803d; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); }

.reflection-content p { 
  font-size: 0.92rem; 
  color: #44403c; 
  line-height: 1.7; 
  margin-bottom: 16px; 
}

.reflection-content p:last-child { margin-bottom: 0; }
.reflection-content strong { color: #15803d; }

/* 05 / TRAINING + LEADERSHIP SECTION */
.training-section { background-color: #f5f5f4; color: #1c1917; padding: 100px 5%; transition: background-color 0.3s ease; }
.training-headline { font-size: 3rem; font-weight: 700; line-height: 1.1; margin-bottom: 50px; max-width: 900px; color: #1c1917; }
.training-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; max-width: 1280px; margin: 0 auto; }
.column-title { font-size: 0.85rem; letter-spacing: 2px; color: #78716c; text-transform: uppercase; margin-bottom: 30px; font-weight: 700; }

.training-list { display: flex; flex-direction: column; }
.training-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px 12px;
  border-bottom: 1px solid #e7e5e4;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.training-item:first-child { border-top: 1px solid #e7e5e4; }
.training-item:hover { background-color: rgba(37, 99, 235, 0.06); transform: translateX(6px); }

.item-date { color: #15803d; font-size: 0.85rem; font-weight: 700; padding-top: 3px; }
.item-details h4 { font-size: 1.05rem; color: #1c1917; font-weight: 600; margin-bottom: 4px; }
.item-details p { color: #57534e; font-size: 0.9rem; line-height: 1.5; }

.leadership-cards { display: flex; flex-direction: column; gap: 20px; }
.leadership-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
}

.leadership-card:hover {
  border-color: #15803d;
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.card-badge { display: inline-block; color: #15803d; font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 12px; }
.leadership-card h4 { font-size: 1.15rem; color: #1c1917; margin-bottom: 10px; font-weight: 700; }
.leadership-card p { color: #57534e; font-size: 0.9rem; line-height: 1.6; }

/* 06 / COVER LETTER SECTION */
.letter-section { padding: 80px 5%; background-color: #fafaf9; transition: background-color 0.3s ease; }
.cover-letter-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.cover-letter-header-left { max-width: 500px; }
.cover-letter-title { font-size: 2.4rem; line-height: 1.1; margin-top: 15px; }
.cover-letter-desc { color: #78716c; max-width: 400px; font-size: 1rem; }

.letter-container { display: flex; gap: 40px; max-width: 1280px; margin: 0 auto; }

.letter-sidebar {
  width: 280px;
  background: #ffffff;
  padding: 24px;
  border-radius: 10px;
  height: fit-content;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: #57534e; margin-bottom: 6px; letter-spacing: 1px; }
.input-group input, .input-group select { width: 100%; padding: 10px 12px; border: 1px solid #d6d3d1; border-radius: 4px; font-size: 0.95rem; background-color: #fafaf9; transition: all 0.25s ease; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); background-color: #ffffff; }

.letter-document {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-radius: 8px;
  transition: all 0.35s ease;
}

.doc-header { display: flex; justify-content: space-between; margin-bottom: 30px; }
.doc-author h3 { font-size: 1.4rem; letter-spacing: 2px; }
.doc-author p { color: #78716c; font-size: 0.85rem; margin-top: 5px; }
.doc-contact { text-align: right; color: #57534e; font-size: 0.85rem; line-height: 1.6; }
.doc-divider { border: none; border-top: 2px solid #1c1917; margin-bottom: 30px; }
.doc-body p { font-size: 1rem; line-height: 1.7; color: #292524; margin-bottom: 20px; }

.dynamic-text { font-weight: 700; color: #15803d; background: #f0fdf4; padding: 2px 6px; border-radius: 4px; }
.doc-closing { margin-top: 30px; }

/* FOOTER */
.custom-footer { 
  background: #1c1917; 
  color: #fff; 
  padding: 100px 5% 40px; 
}

.footer-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto 80px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-hero-title {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

/* NETWORK MAP GRAPHIC CARD */
/* CONTINUOUS DATA-FLOW ARCHITECTURE */
.network-map-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 22px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.network-map-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.16);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.map-title {
  display: block;
  color: #172554;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.map-subtitle {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 100px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.13);
  animation: blue-pulse 2s infinite;
}

@keyframes blue-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.dataflow-diagram {
  position: relative;
  height: 290px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    #f8fbff;
  background-size: 24px 24px;
}

.dataflow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke: url(#flowGradient);
  stroke-width: 2.4;
  stroke-dasharray: 7 7;
  animation: moving-dashes 1.2s linear infinite;
}

.flow-path-light {
  stroke: #93c5fd;
  opacity: 0.72;
}

@keyframes moving-dashes {
  to { stroke-dashoffset: -28; }
}

.flow-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 88px;
  padding: 11px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 15px rgba(37, 99, 235, 0.1);
  text-align: center;
}

.flow-node strong {
  color: #172554;
  font-size: 0.8rem;
  margin: 2px 0;
}

.flow-node small,
.node-label {
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.flow-core {
  top: 50%;
  left: 50%;
  min-width: 134px;
  transform: translate(-50%, -50%);
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.flow-core strong,
.flow-core small,
.flow-core .node-label {
  color: #ffffff;
}

.top-source { top: 12%; left: 5%; }
.bottom-source { bottom: 12%; left: 5%; }
.top-output { top: 12%; right: 5%; }
.bottom-output { bottom: 12%; right: 5%; }

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 17px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-text {
  color: #2563eb;
}

@media (max-width: 500px) {
  .dataflow-diagram {
    height: 330px;
  }

  .flow-node {
    min-width: 72px;
    padding: 9px 6px;
  }

  .flow-core {
    min-width: 110px;
  }

  .top-source,
  .bottom-source {
    left: 2%;
  }

  .top-output,
  .bottom-output {
    right: 2%;
  }

  .map-footer {
    flex-direction: column;
    text-align: center;
  }
}

.status-text { color: #15803d; }

.footer-right {
  flex: 1.2;
  text-align: left;
}

.footer-preheader { 
  color: #a8a29e; 
  font-size: 0.9rem; 
  letter-spacing: 2px; 
  margin-bottom: 20px; 
  text-transform: uppercase;
}

.footer-headline { 
  font-size: 3.2rem; 
  line-height: 1.15; 
  margin-bottom: 40px; 
  color: #fff;
}

.footer-contact { 
  display: flex; 
  justify-content: flex-start; 
  align-items: center; 
  gap: 16px; 
  flex-wrap: wrap;
}

.footer-bottom-bar { 
  display: flex; 
  justify-content: space-between; 
  border-top: 1px solid #292524; 
  padding-top: 20px; 
  color: #78716c; 
  font-size: 0.85rem; 
  max-width: 1280px; 
  margin: 0 auto; 
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
  .hero-section { flex-direction: column; text-align: center; }
  .hero-right { justify-content: center; margin-top: 30px; }
  .hero-bio { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .profile-photo { height: 350px; min-height: auto; width: 350px; }
  
  .profile-header-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-details-grid { grid-template-columns: 1fr; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .cover-letter-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .letter-container { flex-direction: column; }
  .letter-sidebar { width: 100%; }
  .training-grid { grid-template-columns: 1fr; gap: 50px; }
  .assignment-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-content-wrapper { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
  .footer-contact { justify-content: center; }
  .footer-hero-title { text-align: center; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .hero-bio { font-size: 1.15rem; }
  .profile-headline { font-size: 2.2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .training-headline { font-size: 2.2rem; }
  .training-item { grid-template-columns: 1fr; gap: 6px; }
  .assignment-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  
  .footer-headline { font-size: 2.5rem; }
  .footer-bottom-bar { flex-direction: column; gap: 10px; align-items: center; }
  .footer-contact { flex-direction: column; gap: 12px; }
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #27d3e8;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* === SOFT BLUE ENGINEERING LAB === */
:root {
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-soft: #dbeafe;
  --page: #f5f9ff;
  --section: #eaf3ff;
  --card: #ffffff;
  --text: #172554;
  --muted: #64748b;
  --border: #cbdcf6;
}

body {
  background:
    radial-gradient(circle at 10% 5%, #dbeafe 0, transparent 25%),
    radial-gradient(circle at 90% 20%, #e0f2fe 0, transparent 22%),
    var(--page);
  color: var(--text);
}

header {
  background: rgba(245, 249, 255, 0.88);
  border-bottom-color: var(--border);
}

.profile-section, .training-section { background: var(--section); }
.projects-section, .reflection-section, .letter-section { background: var(--page); }
.wrn-section { background: #eef6ff; }

.hero-title, .profile-headline, .training-headline,
.project-card h3, .assignment-card h4, .leadership-card h4,
.cover-letter-title, .brand-name { color: var(--text); }

.hero-bio, .profile-bio p, .project-card p, .assignment-card p,
.item-details p, .leadership-card p, .cover-letter-desc,
.edu-meta, .edu-school, .category-label, nav a { color: var(--muted); }

.profile-edu-card, .profile-skills-card, .project-card,
.assignment-card, .reflection-content, .leadership-card,
.letter-sidebar, .letter-document {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.06);
}

.profile-edu-card:hover, .profile-skills-card:hover, .project-card:hover,
.assignment-card:hover, .leadership-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.16);
}

.section-tag, .card-num, .assign-no, .brand-subtitle,
.item-date, .card-badge { color: var(--accent); }

.scroll-progress-bar, nav a::after { background: var(--accent); }

.skill-tags span, .tech-tags span {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent-dark);
}

.skill-tags span:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.glass-pill {
  background: #fff;
  color: var(--accent-dark);
  border-color: #bcd2fa;
  box-shadow: none;
}

.glass-pill:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.glass-primary, .brand-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.glass-primary:hover, .brand:hover .brand-badge {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.custom-footer {
  background: #dbeafe;
  color: var(--text);
}

.footer-headline, .footer-hero-title { color: var(--text); }
.footer-preheader, .footer-bottom-bar { color: var(--muted); }
.footer-bottom-bar { border-top-color: #bcd2fa; }
/* =====================================================
   FIXED LIGHT-BLUE FOOTER + CONTINUOUS DATA FLOW
===================================================== */

.custom-footer {
  padding: 88px 5% 28px;
  background:
    radial-gradient(circle at 8% 15%, rgba(37, 99, 235, 0.12), transparent 26%),
    radial-gradient(circle at 92% 86%, rgba(96, 165, 250, 0.16), transparent 24%),
    #eff6ff;
  color: #172554;
  border-top: 1px solid #bfdbfe;
}

.footer-content-wrapper {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
  max-width: 1280px;
  margin: 0 auto 70px;
}

.footer-architecture,
.footer-contact-area {
  min-width: 0;
}

.footer-kicker {
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-hero-title {
  max-width: 500px;
  margin: 0 0 26px;
  color: #172554;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.footer-blue {
  color: #2563eb;
}

.footer-blue-light {
  color: #60a5fa;
}

.network-map-card {
  width: 100%;
  max-width: 590px;
  padding: 20px;
  margin: 0;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.12);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.map-title {
  display: block;
  color: #172554;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.map-subtitle {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 99px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  animation: blue-pulse 2s infinite;
}

@keyframes blue-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.dataflow-diagram {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    #f8fbff;
  background-size: 22px 22px;
}

.dataflow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-route {
  fill: none;
  stroke: #424e68;
  stroke-width: 2.2;
  stroke-dasharray: 7 7;
  opacity: 0.8;
  animation: moving-dashes 1.25s linear infinite;
}

.flow-route-light {
  stroke: #93c5fd;
  opacity: 0.9;
}

@keyframes moving-dashes {
  to {
    stroke-dashoffset: -28;
  }
}

.data-packet {
  fill: #2563eb;
}

.packet-two {
  fill: #60a5fa;
}

.packet-three {
  fill: #93c5fd;
}

.flow-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 82px;
  padding: 10px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 15px rgba(37, 99, 235, 0.1);
  text-align: center;
}

.flow-node span,
.flow-node small {
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.flow-node strong {
  margin: 3px 0;
  color: #172554;
  font-size: 0.77rem;
}

.core-node {
  top: 50%;
  left: 50%;
  min-width: 142px;
  transform: translate(-50%, -50%);
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.core-node span,
.core-node small,
.core-node strong {
  color: #ffffff;
}

.source-top { top: 11%; left: 5%; }
.source-bottom { bottom: 11%; left: 5%; }
.output-top { top: 11%; right: 5%; }
.output-bottom { bottom: 11%; right: 5%; }

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.status-text {
  color: #2563eb;
}

.footer-contact-area {
  text-align: left;
}

.footer-preheader {
  margin-bottom: 18px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.footer-headline {
  max-width: 590px;
  margin-bottom: 32px;
  color: #172554;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 750;
  line-height: 1.12;
}

.footer-contact {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.glass-footer {
  background: #ffffff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.08);
}

.glass-footer:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1280px;
  padding-top: 20px;
  margin: 0 auto;
  border-top: 1px solid #bfdbfe;
  color: #64748b;
  font-size: 0.8rem;
}

/* Keep two columns at normal laptop widths. */
@media (max-width: 900px) {
  .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .footer-architecture,
  .footer-contact-area {
    text-align: center;
  }

  .footer-hero-title,
  .network-map-card {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-contact {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .custom-footer {
    padding-top: 62px;
  }

  .network-map-card {
    padding: 14px;
  }

  .dataflow-diagram {
    height: 330px;
  }

  .flow-node {
    min-width: 67px;
    padding: 9px 4px;
  }

  .core-node {
    min-width: 110px;
  }

  .source-top,
  .source-bottom {
    left: 2%;
  }

  .output-top,
  .output-bottom {
    right: 2%;
  }

  .map-footer,
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* FINAL BLUE ACCENT OVERRIDES */

:root {
  --portfolio-blue: #2563eb;
  --portfolio-blue-dark: #1e40af;
  --portfolio-blue-light: #dbeafe;
}

/* Cover-letter highlighted company and role */
.dynamic-text {
  color: var(--portfolio-blue-dark);
  background: var(--portfolio-blue-light);
}

/* WRN course reflection: the five bold phrases */
.reflection-content strong {
  color: var(--portfolio-blue);
}

/* Education + Technical & Core Skills headings */
.profile-subheading {
  color: var(--portfolio-blue);
}

/* Education and Skills card hover */
.profile-edu-card:hover,
.profile-skills-card:hover {
  border-color: var(--portfolio-blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.14);
}

.profile-edu-card:hover .profile-subheading,
.profile-skills-card:hover .profile-subheading {
  color: var(--portfolio-blue-dark);
}

/* Project-card hover */
.project-card:hover {
  border-color: var(--portfolio-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.project-card:hover h3 {
  color: var(--portfolio-blue);
}

.project-card:hover .tech-tags span {
  background: var(--portfolio-blue-light);
  color: var(--portfolio-blue-dark);
}

/* Top navigation: Profile, Projects, WRN, Training, Cover Letter */
nav a:hover {
  color: var(--portfolio-blue);
}

nav a::after {
  background-color: var(--portfolio-blue);
}

/* Top-left name/logo hover */
.brand:hover .brand-name {
  color: var(--portfolio-blue);
}

.brand:hover .brand-badge {
  background-color: var(--portfolio-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* CV button and all outlined button hover states */
.glass-pill:hover {
  color: var(--portfolio-blue);
  border-color: rgba(37, 99, 235, 0.45);
  background: var(--portfolio-blue-light);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

/* Main blue buttons, including Download CV and Copy Letter */
.glass-primary:hover {
  background: var(--portfolio-blue-dark);
  border-color: var(--portfolio-blue-dark);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

/* Skill-tag hover */
.skill-tags span:hover {
  background-color: var(--portfolio-blue);
  border-color: var(--portfolio-blue);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
/* Education Dates Accent Color */
.edu-date {
  color: var(--portfolio-blue, #2563eb);
}
/* Option 3: Modern Cyber Accent */
.footer-hero-title span:nth-of-type(1) { color: #7c3aed; } /* route - Violet */
.footer-hero-title span:nth-of-type(2) { color: #0284c7; } /* connect - Electric Cyan */
.footer-hero-title span:nth-of-type(3) { color: #16a34a; } /* secure - Vibrant Green */