/* ==========================================================================
   Andrés Felipe Rivas Bolívar — Personal Academic & Robotics Portfolio
   Theme: Modern Academic-Industry Hybrid (High Whitespace, Clean & Organized)
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-glass: rgba(10, 14, 23, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(249, 115, 22, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #38bdf8;

  /* Accent Colors */
  --accent-fire: #f97316;
  --accent-ember: #ef4444;
  --accent-aero: #0284c7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(249, 115, 22, 0.07) 0%, rgba(6, 182, 212, 0.04) 50%, rgba(10, 14, 23, 0) 100%);
  --grad-fire: linear-gradient(135deg, #f97316, #ef4444);
  --grad-aero: linear-gradient(135deg, #0284c7, #06b6d4);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, Menlo, monospace;
  --font-heading: 'Outfit', var(--font-sans);

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.45);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(249, 115, 22, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-code: #0369a1;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
  --grad-hero: linear-gradient(135deg, rgba(249, 115, 22, 0.04) 0%, rgba(6, 182, 212, 0.03) 50%, rgba(248, 250, 252, 0) 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a:hover {
  color: var(--accent-fire);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation Bar (Crisp & Highly Organized)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--grad-fire);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.action-btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.action-btn.icon-only:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background-color: var(--bg-tertiary);
}

.btn-primary {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.3rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  background-image: var(--grad-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-badge-wrap .badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-fire);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-affiliations {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.affiliation-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.affiliation-item i {
  color: var(--accent-cyan);
  width: 18px;
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-socials a:hover {
  color: var(--accent-cyan);
}

/* Hero Profile Card */
.hero-profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.profile-media-box {
  width: 100%;
  height: 380px;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.profile-info-box {
  padding: 1.35rem;
  border-top: 1px solid var(--border-color);
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.profile-tag-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================================
   Honors & Awards Banner
   ========================================================================== */
.award-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  margin: 1rem 0 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.award-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.award-content {
  flex-grow: 1;
}

.award-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.award-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3rem;
}

.section-header.left-aligned,
.about-section .section-header {
  text-align: left;
  max-width: 840px;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 2rem;
}

.section-header.left-aligned .section-desc,
.about-section .section-header .section-desc {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.section-header.left-aligned .section-tag,
.about-section .section-header .section-tag {
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Autonomy Architecture Pipeline (Clean)
   ========================================================================== */
.autonomy-stack-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pipeline-flow-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto;
}

.pipeline-node {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: 230px 1fr 140px;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.pipeline-node:hover, .pipeline-node.active {
  border-color: var(--accent-fire);
  box-shadow: 0 3px 14px rgba(249, 115, 22, 0.12);
  transform: translateX(3px);
}

.pipeline-node-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.node-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pipeline-node:hover .node-icon-box, .pipeline-node.active .node-icon-box {
  background: var(--grad-fire);
  color: #fff;
}

.node-layer-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.node-layer-role {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.pipeline-node-middle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pipeline-node-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.tech-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-code);
  border: 1px solid var(--border-color);
}

.node-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin: -0.4rem 0;
  opacity: 0.4;
}

/* ==========================================================================
   Featured Projects Section (Side-by-Side Media Cards)
   ========================================================================== */
.projects-section {
  padding: 4.5rem 0;
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

/* Side-by-Side Dual Media Container */
.side-by-side-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 240px;
  background-color: #080c14;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.side-by-side-pane {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-right: 1px solid var(--border-color);
}

.side-by-side-pane:last-child {
  border-right: none;
}

.side-by-side-pane img,
.side-by-side-pane video,
.project-media-wrap img,
.project-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.side-by-side-pane:hover img,
.side-by-side-pane:hover video,
.project-card:hover .project-img,
.project-card:hover .project-media-wrap video {
  transform: scale(1.04);
}

.media-live-tag {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.25rem;
}

.media-live-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.pane-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.project-media-wrap {
  position: relative;
  height: 240px;
  background-color: #080c14;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.media-tag {
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-fire);
  font-weight: 600;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

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

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-link-btn:hover {
  color: var(--accent-fire);
  transform: translateX(2px);
}

/* ==========================================================================
   Separated Experience & Education Sections
   ========================================================================== */
.experience-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
}

.education-section {
  padding: 4.5rem 0;
  background-color: var(--bg-primary);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-fire) 0%, var(--accent-cyan) 60%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-fire);
}

.timeline-item.edu .timeline-marker {
  border-color: var(--accent-cyan);
}

.timeline-content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  transition: var(--transition);
}

.timeline-content-card:hover {
  border-color: var(--border-highlight);
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.timeline-bullets {
  list-style: none;
  margin-top: 0.65rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-fire);
}

/* ==========================================================================
   Publications & Media Coverage
   ========================================================================== */
.publications-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
}

.publication-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.publication-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.pub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent-fire);
  border: 1px solid rgba(249, 115, 22, 0.25);
  margin-bottom: 0.65rem;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.pub-authors {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.pub-authors .highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.pub-venue {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.85rem;
}

.pub-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pub-btn {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.pub-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Skills Matrix (Clean & Organized)
   ========================================================================== */
.skills-section {
  padding: 4.5rem 0;
  background-color: var(--bg-primary);
}

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

.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--accent-fire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.category-title {
  font-size: 1rem;
  font-weight: 700;
}

.skill-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.skill-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

/* ==========================================================================
   Contact & Footer (Clean, No Personal Phone)
   ========================================================================== */
.contact-section {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-card, .contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.contact-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.method-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-fire);
  font-size: 1rem;
  flex-shrink: 0;
}

.method-details .label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.method-details .val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-badge-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.18rem 0.45rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-code);
  border-radius: var(--radius-sm);
  margin-left: 0.4rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  background-color: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Project Detail Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  z-index: 10;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-content-body {
  padding: 1.75rem;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* About Grid Layout & Field Card */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}

.about-field-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.about-field-card:hover {
  border-color: var(--accent-fire);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.about-field-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.about-field-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 320px;
  background-color: var(--bg-secondary);
}

.about-field-gallery .pane-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.about-field-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-field-gallery .pane-tag {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.about-field-caption {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.about-field-caption h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-field-caption p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-node {
    grid-template-columns: 190px 1fr;
    gap: 1rem;
  }
  .pipeline-node-right {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.6rem;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-actions .action-btn.hide-mobile {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .side-by-side-media {
    grid-template-columns: 1fr;
    height: 320px;
  }
  .skills-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-node {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
