/**
 * Ali Hafezi - Professional Data Scientist Portfolio
 * Modern Glassmorphism + Dark Corporate Design
 * Original work © Ali Hafezi, alihafezi.tech
 * Authorship fingerprint: AH-2026-07-PORTFOLIO-D4T4SC1 (do not remove)
 */

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Plus Jakarta Sans", sans-serif;
  --nav-font: "Inter", sans-serif;
  --mono-font: "JetBrains Mono", "Fira Code", monospace;
}

/* Global Colors - Dark Corporate with Electric Blue Accent */
:root {
  --background-color: #f8fafc;
  --default-color: #334155;
  --heading-color: #0f172a;
  --accent-color: #2563eb;
  --accent-color-dark: #1d4ed8;
  --accent-color-light: #dbeafe;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --muted-color: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #dc2626;
  --danger-color-dark: #b91c1c;
  --light-bg: #f1f5f9;
  --dark-bg: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--accent-color-dark);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
}

.light-background {
  --background-color: var(--light-bg);
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: var(--dark-bg);
  --default-color: #cbd5e1;
  --heading-color: #ffffff;
  --surface-color: #1e293b;
  --contrast-color: #ffffff;
}

/* Section padding */
section, .section {
  padding: 100px 0;
  overflow: clip;
}

/* Faint graph-paper texture ties light sections to the dashboard hero */
.section:not(.hero-section) {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Accessible, consistent keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section Titles — numbered mono kicker + solid heading */
.section-title {
  text-align: center;
  padding-bottom: 50px;
}

.section-title::before {
  display: block;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-color);
  margin-bottom: 12px;
}

#experience .section-title::before { content: '// 01 · CAREER'; }
#skills .section-title::before { content: '// 02 · STACK'; }
#projects .section-title::before { content: '// 03 · WORK'; }
#education .section-title::before { content: '// 04 · ACADEMIA'; }
#certifications .section-title::before { content: '// 05 · CREDENTIALS'; }
#contact .section-title::before { content: '// 06 · CONNECT'; }

.section-title h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  color: var(--heading-color);
}

.section-title h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--muted-color);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Top Navigation Bar
--------------------------------------------------------------*/
.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.navbar-top.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-logo-text {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

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

.nav-resume-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-resume-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-resume-btn span {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hero Section — Data Science Dashboard Aesthetic
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #090d16; /* Flat dark navy */
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Graph-paper / axis-grid texture */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-gradient-bg {
  display: none; /* Remove old gradient orbs */
}

.hero-container {
  position: relative;
  z-index: 2;
}

/* Profile Image */
.hero-image-col {
  position: relative;
}

.hero-profile-wrap {
  position: relative;
  width: 280px;
  height: 336px;
  margin: 0 auto;
  background: #111622;
  border: 1px solid #1e293b;
  border-radius: 8px; /* Sharp / slightly-rounded corners */
  padding: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.hero-profile-wrap:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.15);
}

.hero-profile-glow {
  display: none; /* No glow */
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px; /* Sharp inside edges */
  border: 1px solid #1e293b;
  position: relative;
  z-index: 1;
  filter: grayscale(10%);
  transition: all 0.3s ease;
}

.hero-profile-wrap:hover .hero-profile-img {
  border-color: var(--accent-color);
}

.terminal-status {
  font-family: var(--mono-font);
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
}

/* Hero Content */
.hero-content-col {
  padding-left: 20px;
}

.terminal-comment {
  font-family: var(--mono-font);
  color: #475569;
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.terminal-prompt {
  font-family: var(--mono-font);
  font-size: 16px;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.terminal-dir {
  color: var(--accent-color);
  font-weight: 600;
}

.terminal-char {
  color: #10b981;
}

.hero-name {
  font-family: var(--mono-font);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-typed-wrap {
  font-family: var(--mono-font);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: #64748b;
  margin-bottom: 24px;
  min-height: 40px;
}

.typed {
  color: var(--accent-color);
}

.typed-cursor {
  color: var(--accent-color);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 600;
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-btn {
  font-family: var(--mono-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px; /* Sharp corners */
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
}

.hero-btn-primary {
  background: var(--accent-color);
  color: #ffffff;
  border: 1.5px solid var(--accent-color);
}

.hero-btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.btn-glow {
  display: none; /* No glow */
}

.hero-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.hero-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.hero-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 18px;
}

.hero-btn-icon:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dashboard-label {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Dashboard Main */
.dashboard-main {
  margin-bottom: 32px;
}

.hero-name {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-typed-wrap {
  font-family: var(--mono-font);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  min-height: 36px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Terminal prompt marker before the typed role */
.hero-typed-wrap::before {
  content: '❯';
  color: var(--success-color);
  font-weight: 700;
  font-size: 0.9em;
}

.typed {
  color: var(--accent-color);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.typed-cursor {
  color: var(--accent-color);
  animation: blink 1.1s steps(2, start) infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
  max-width: 100%;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 600;
}

/* KPI Metrics Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.kpi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Thin accent baseline that reveals on hover — dashboard style */
.kpi-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-2px);
}

.kpi-card:hover::after {
  transform: scaleX(1);
}

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

.kpi-label {
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
}

.kpi-trend {
  font-family: var(--mono-font);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.trend-up {
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.12);
}

.kpi-value {
  font-family: var(--mono-font);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.kpi-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 2px;
}

.kpi-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-sparkline {
  width: 100%;
  height: 20px;
  color: var(--accent-color);
  opacity: 0.6;
}

.kpi-card:hover .kpi-sparkline {
  opacity: 1;
}

/* Terminal Code Block — JSON stats */
.terminal-code-block {
  font-family: var(--mono-font);
  font-size: 14px;
  line-height: 1.8;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 18px 22px;
  max-width: 420px;
  margin-top: 8px;
}

.code-bracket {
  color: #64748b;
  font-weight: 600;
}

.code-line {
  white-space: pre;
}

.code-key {
  color: var(--accent-color);
}

.code-val {
  color: #10b981;
}

/* Hero Stats — Sleek Startup Style */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 650px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item {
  text-align: left;
  flex: 1 1 120px;
  min-width: 100px;
  transition: all 0.3s ease;
}

.hero-stat-item:hover {
  transform: translateY(-2px);
}

.hero-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--heading-font);
  line-height: 1.1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeInUp 1s ease 1s both;
}

.hero-scroll-indicator span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Hero Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-image-col {
    margin-bottom: 40px;
    order: -1; /* Place image on top for tablets/mobiles */
  }

  .hero-profile-wrap {
    width: 240px;
    height: 288px;
  }

  .hero-content-col {
    text-align: center;
    padding-left: 0;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    max-width: 100%;
    margin: 40px auto 0;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    gap: 20px;
    justify-content: center;
  }

  .hero-stat-item {
    text-align: center;
    flex: 1 1 110px;
  }

  .hero-stat-number {
    font-size: 22px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-scroll-indicator {
    display: none;
  }

  .hero-profile-wrap {
    width: 200px;
    height: 240px;
  }
}

/*--------------------------------------------------------------
# Experience — Left-Rail Timeline
--------------------------------------------------------------*/

/* ---- Timeline Wrapper ---- */
.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}

.experience .container {
  max-width: 95%;
  width: 1400px;
}

/* Single vertical line on the left */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 40px;
  left: 40px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(37, 99, 235, 0.15) 0%,
    var(--accent-color) 15%,
    #7c3aed 50%,
    var(--accent-color) 85%,
    rgba(37, 99, 235, 0.15) 100%
  );
  z-index: 0;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}

/* ---- Timeline Item ---- */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 50px;
  z-index: 2;
  padding-left: 0;
}

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

/* ---- Marker Column (fixed width left column) ---- */
.timeline-marker {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
  flex: 0 0 80px;
  padding-top: 14px;
}

.timeline-marker-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-marker-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.timeline-marker-icon i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-marker-icon {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.timeline-item:hover .timeline-marker-icon::before {
  border-color: rgba(37, 99, 235, 0.3);
  inset: -6px;
}

.timeline-item:hover .timeline-marker-icon i {
  transform: scale(1.05);
}

.timeline-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-color);
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.timeline-item:hover .timeline-year {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(37, 99, 235, 0.06);
}

/* ---- Card fills remaining space ---- */
.timeline-item .timeline-card {
  width: calc(100% - 100px);
  flex: 1 1 auto;
}

/* ---- Timeline Card (Glassmorphism) ---- */
.timeline-card {
  position: relative;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.timeline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.15), 
    rgba(124, 58, 237, 0.08), 
    rgba(6, 182, 212, 0.15)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 48px rgba(37, 99, 235, 0.10),
    0 4px 12px rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

/* Glowing accent on hover */
.timeline-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(37, 99, 235, 0.04) 0%, 
    transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-lg);
}

.timeline-card:hover .timeline-card-glow {
  opacity: 1;
}

/* ---- Card Header ---- */
.timeline-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.timeline-card-company {
  font-size: 13px;
  color: var(--muted-color);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---- Card Title ---- */
.timeline-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--heading-color);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

/* ---- Impact Badge ---- */
.timeline-card-impact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.06), 
    rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--default-color);
}

.timeline-card-impact i {
  color: var(--accent-color);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-card-impact strong {
  color: var(--heading-color);
}

/* ---- Card Description ---- */
.timeline-card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
}

.timeline-card-desc p {
  margin-bottom: 8px;
}

.timeline-card-desc p:last-child {
  margin-bottom: 0;
}

/* ---- Tags ---- */
.timeline-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-tag:hover {
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.timeline-tag i {
  font-size: 13px;
}

/* ---- Scroll Animation ---- */
.timeline-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-item.timeline-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.timeline-visible .timeline-card {
  animation: cardFloatIn 0.7s ease forwards;
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 991px) {
  .timeline-wrapper::before {
    left: 50px;
  }

  .timeline-marker {
    flex: 0 0 80px;
    padding-top: 8px;
  }

  .timeline-marker-icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .timeline-item .timeline-card {
    width: calc(100% - 100px);
  }

  .timeline-card {
    padding: 22px;
  }
}

@media (max-width: 575px) {
  .timeline-wrapper::before {
    left: 32px;
    width: 2px;
  }

  .timeline-marker {
    flex: 0 0 60px;
    padding-top: 6px;
  }

  .timeline-marker-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-width: 2px;
  }

  .timeline-year {
    font-size: 10px;
    padding: 1px 6px;
  }

  .timeline-item .timeline-card {
    width: calc(100% - 75px);
  }

  .timeline-card {
    padding: 18px;
  }

  .timeline-card-title {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .skill-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  min-height: 260px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.skills .skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-gradient);
  transition: height 0.4s ease;
  border-radius: 0 0 2px 2px;
}

.skills .skill-card:hover::before {
  height: 100%;
}

.skills .skill-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

.skills .skill-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-color-light);
  color: var(--accent-color);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.skills .skill-card:hover .skill-card-icon {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.skills .skill-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--heading-color);
  position: relative;
}

.skills .skill-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin-top: 8px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s ease;
}

.skills .skill-card:hover .skill-title::after {
  opacity: 1;
  transform: scaleX(1);
}

.skills .skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills .skill-list li {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--default-color);
  padding-left: 24px;
  position: relative;
}

.skills .skill-list li::before {
  content: "\f26a";
  font-family: 'bootstrap-icons';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 16px;
  font-weight: 400;
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects .project-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.projects .project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.projects .project-card:hover::before {
  transform: scaleX(1);
}

.projects .project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.projects .project-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-color-light);
  color: var(--accent-color);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.projects .project-card:hover .project-icon {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.projects .project-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.projects .project-company {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Scroll progress indicator under the navbar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-gradient);
  z-index: 1001;
  transition: width 0.1s linear;
}

.projects .project-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 16px;
}

.projects .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.projects .tech-tag {
  font-family: var(--mono-font);
  background: var(--light-bg);
  color: var(--muted-color);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.projects .tech-tag:hover {
  background: var(--accent-color-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.projects .project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

.projects .project-link:hover {
  gap: 10px;
}

/*--------------------------------------------------------------
# Education Section
--------------------------------------------------------------*/
.education .edu-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.education .edu-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education .edu-card:hover::after {
  transform: scaleX(1);
}

.education .edu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.education .edu-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-color-light);
  color: var(--accent-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.education .edu-degree {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.education .edu-school {
  font-size: 15px;
  color: var(--muted-color);
  margin-bottom: 4px;
}

.education .edu-year {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
}

.education .edu-honor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Certifications Section — Card with Image + Body
--------------------------------------------------------------*/
.certifications .cert-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

.certifications .cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.certifications .cert-card:hover::before {
  transform: scaleX(1);
}

.certifications .cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

.certifications .cert-card-link {
  display: block;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

.certifications .cert-card-link:hover {
  text-decoration: none;
}

.certifications .cert-card-img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.certifications .cert-card:hover .cert-card-img {
  transform: scale(1.03);
}

.certifications .cert-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #cbd5e1;
}

.certifications .cert-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.certifications .cert-date::before {
  content: '\F1F3';
  font-family: 'bootstrap-icons';
  font-size: 11px;
}

.certifications .cert-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.certifications .cert-name a {
  color: #ffffff;
  transition: color 0.3s ease;
  text-decoration: none;
}

.certifications .cert-name a:hover {
  color: var(--accent-color-light);
}

.certifications .cert-issuer {
  font-size: 13px;
  color: var(--accent-color-light);
  font-weight: 600;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.certifications .cert-issuer::before {
  content: '\F4F5';
  font-family: 'bootstrap-icons';
  font-size: 12px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.contact .info-wrap {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  height: 100%;
}

.contact .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: var(--accent-color-light);
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  margin-right: 16px;
  flex-shrink: 0;
}

.contact .info-item:hover i {
  background: var(--accent-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.contact .info-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--heading-color);
}

.contact .info-item p,
.contact .info-item a {
  font-size: 15px;
  color: var(--default-color);
  margin-bottom: 0;
}

.contact .info-item a:hover {
  color: var(--accent-color);
}

.contact .contact-form input[type=text],
.contact .contact-form input[type=email],
.contact .contact-form textarea {
  font-size: 15px;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: var(--radius-sm);
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  transition: 0.3s;
}

.contact .contact-form input[type=text]:focus,
.contact .contact-form input[type=email]:focus,
.contact .contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact .contact-form button[type=submit] {
  color: white;
  background: var(--accent-gradient);
  border: 0;
  padding: 12px 32px;
  transition: 0.3s;
  border-radius: var(--radius-sm);
  width: 100%;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact .contact-form button[type=submit]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.contact .contact-form button[type=submit]:hover::after {
  transform: translateX(100%);
}

.contact .contact-form button[type=submit]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.req_message {
  font-family: var(--default-font);
  font-weight: 500;
  font-size: 14px;
  color: #dc2626;
}

.send-message {
  text-align: center;
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 20px;
}

.field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 12px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--muted-color);
  background-color: var(--dark-bg);
  font-size: 14px;
  padding: 32px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .copyright p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer .copyright strong {
  color: rgba(255, 255, 255, 0.8);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--dark-bg);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 0.8s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  background: var(--accent-gradient);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------
# Academic Search Tool — Shared Styles (dark-background pages)
--------------------------------------------------------------*/
.academic-section {
  padding: 120px 0 60px;
  min-height: 100vh;
}

/* Status badges — unified across history, results, search pages */
.status-badge {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-block;
}
.status-completed {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-failed {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger-color);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Academic link style */
.academic-link {
  color: var(--accent-color);
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.academic-link:hover {
  color: var(--accent-color-dark);
  text-decoration: underline;
}

/* Academic delete button — matches hero-btn-secondary pattern */
.btn-academic-delete {
  background: transparent;
  border: 1.5px solid rgba(220, 38, 38, 0.25);
  color: var(--danger-color);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--mono-font);
  font-weight: 500;
}
.btn-academic-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--danger-color);
  transform: translateY(-1px);
}

/* Academic outline button — matches hero-btn-secondary */
.btn-academic-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono-font);
}
.btn-academic-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Empty state for academic pages */
.academic-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.5);
}
.academic-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.12);
}
.academic-empty h3 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.academic-empty p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Interest tag — matches .timeline-tag chip styling */
.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: rgba(255, 255, 255, 0.85);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}
.interest-tag:hover {
  background: linear-gradient(135deg, var(--accent-color), #7c3aed);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark-bg);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono-font);
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination for academic pages */
.academic-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.academic-pagination a,
.academic-pagination span {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--mono-font);
}
.academic-pagination a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.academic-pagination .active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/*--------------------------------------------------------------
# HAR Analysis Report Page Styles
--------------------------------------------------------------*/
.har-report-page {
  padding-top: 110px;
  padding-bottom: 60px;
  background: var(--background-color);
  min-height: 100vh;
}

.har-report-page .container {
  max-width: 900px;
}

.report-header {
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 40px;
  position: relative;
}

.report-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.report-back-link:hover {
  gap: 10px;
  color: var(--accent-color-dark);
}

.report-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1.2;
}

.report-header h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--muted-color);
  margin-bottom: 20px;
}

.author-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.author-section .author {
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.author-section .email {
  font-family: var(--mono-font);
  font-size: 14px;
  color: var(--muted-color);
  margin: 0;
}

.author-section .github-repo {
  margin-top: 12px;
}

/* Content sections */
.har .content-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.har .content-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.har .content-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
}

.har .content-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 24px 0 12px;
}

.har .content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
  margin-bottom: 14px;
}

.har .content-section ul,
.har .content-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.har .content-section li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--default-color);
  margin-bottom: 8px;
}

.har .content-section a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.har .content-section a:hover {
  border-bottom-color: var(--accent-color);
}

/* Table of contents */
.toc-section {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
}

.toc-section ol {
  columns: 2;
  column-gap: 40px;
}

.toc-section li {
  break-inside: avoid;
  margin-bottom: 8px;
}

/* Image containers */
.image-container {
  margin: 24px 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

.image-caption.har {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-color);
  margin-top: 10px;
}

.image-caption.har a {
  color: var(--accent-color);
}

@media (max-width: 600px) {
  .image-caption.har {
    font-size: 0.7rem;
  }

  .toc-section ol {
    columns: 1;
  }

  .har-report-page {
    padding-top: 90px;
  }
}

.ocr-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  padding: 10px 20px;
  background: var(--accent-color-light);
  color: var(--accent-color);
  font-size: 14px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 600;
  gap: 8px;
}

.ocr-link-btn:hover,
.ocr-link-btn:focus {
  background: var(--accent-gradient);
  color: var(--contrast-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.portfolio-links {
  text-align: center;
  padding: 8px 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  section, .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .education .edu-card {
    padding: 20px;
  }

  .certifications .cert-card {
    padding: 0;
  }
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }

  .contact .info-item {
    flex-direction: column;
    text-align: center;
  }

  .contact .info-item i {
    margin-right: 0;
    margin-bottom: 8px;
  }
}