/* ═══════════════════════════════════════════════════════════════════
   styles.css — George Raafat Portfolio
   UML / System Architecture Map Theme
   Dark Mode Default | Light Mode Blueprint
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. DESIGN TOKENS (CSS Variables)
   ───────────────────────────────────────── */

:root {
  /* === DARK MODE (Default) ===  */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #161616;
  --bg-card: #0f0f0f;
  --bg-hover: #1a1a1a;
  --badge-bg: rgba(15, 18, 25, 0.85);
  --badge-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);

  --border-color: #2a2a2a;
  --border-accent: #00ff94;
  --border-dim: #1e1e1e;

  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  /* Brighter */
  --text-muted: #7a7a7a;
  /* Brighter */
  --text-invert: #0a0a0a;

  --accent: #00ff94;
  /* Neon green */
  --accent-rgb: 0, 255, 148;
  --accent-dim: #00cc75;
  --accent-glow: 0 0 12px rgba(0, 255, 148, 0.35);
  --accent-glow-lg:
    0 0 30px rgba(0, 255, 148, 0.2), 0 0 60px rgba(0, 255, 148, 0.05);

  --accent-2: #00c8ff;
  /* Cyan secondary */
  --accent-2-rgb: 0, 200, 255;
  --accent-2-glow: 0 0 12px rgba(0, 200, 255, 0.3);

  --accent-warn: #ffb800;
  /* Amber for warnings/dates */
  --accent-error: #ff4d4d;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--accent);

  --grid-color: rgba(255, 255, 255, 0.07);
  --grid-size: 40px;

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 64px;
}

/* === LIGHT MODE (Blueprint) === */
[data-theme="light"] {
  --bg-primary: #f5f5f0;
  --bg-secondary: #ebebeb;
  --bg-tertiary: #e0e0da;
  --bg-card: #fafaf8;
  --bg-hover: #eeeeea;
  --badge-bg: rgba(250, 250, 248, 0.85);
  --badge-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);

  --border-color: #bbbbbb;
  --border-accent: #005f3c;
  --border-dim: #d5d5d0;

  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #555555;
  --text-invert: #fafaf8;

  --accent: #005f3c;
  --accent-rgb: 0, 95, 60;
  --accent-dim: #007a4d;
  --accent-glow: 0 0 8px rgba(0, 95, 60, 0.2);
  --accent-glow-lg: 0 0 20px rgba(0, 95, 60, 0.1);

  --accent-2: #00437a;
  --accent-2-rgb: 0, 67, 122;
  --accent-2-glow: 0 0 8px rgba(0, 67, 122, 0.2);

  --accent-warn: #8b6000;
  --accent-error: #cc0000;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--accent);

  --grid-color: rgba(0, 0, 0, 0.08);

  --theme-icon-show: "light";
}

/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  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.7;
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

input,
textarea {
  font-family: inherit;
}

/* ─────────────────────────────────────────
   3. TYPOGRAPHY UTILITIES
   ───────────────────────────────────────── */

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

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

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

.muted {
  color: var(--text-muted);
}

.secondary {
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────
   4. LAYOUT CONTAINERS
   ───────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ─────────────────────────────────────────
   5. HEADER & NAVIGATION
   ───────────────────────────────────────── */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition:
    background var(--transition-slow),
    border-color var(--transition-slow),
    backdrop-filter var(--transition-slow);
}

#site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

[data-theme="light"] #site-header.scrolled {
  background: rgba(245, 245, 240, 0.88);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--accent-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-link::before {
  content: "→";
  opacity: 0;
  margin-right: 0;
  width: 0;
  display: inline-block;
  transition:
    opacity var(--transition-fast),
    width var(--transition-fast),
    margin-right var(--transition-fast);
  font-family: var(--font-mono);
  color: var(--accent);
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-color: var(--border-color);
  background: var(--bg-hover);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
  width: 1em;
  margin-right: 5px;
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
  font-size: 1.1rem;
}

.btn-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: var(--accent-glow);
}

/* Theme icon visibility */
#theme-icon-dark {
  display: none;
}

[data-theme="dark"] #theme-icon-light {
  display: none;
}

[data-theme="dark"] #theme-icon-dark {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
}

.hamburger .ph-x {
  display: none;
}

.hamburger.open .ph-list {
  display: none;
}

.hamburger.open .ph-x {
  display: block;
}

/* ─────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 0.06;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-invert);
  border-color: var(--accent);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────
   7. SECTION CONNECTORS (Pipeline lines)
   ───────────────────────────────────────── */

.section-connector {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.connector-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0.4;
}

.connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  opacity: 0.8;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────
   8. SECTION HEADERS
   ───────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 64px;
  padding-top: 32px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-title-underline {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
  box-shadow: var(--accent-glow);
}

/* ─────────────────────────────────────────
   9. HERO SECTION
   ───────────────────────────────────────── */

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Blueprint grid background */
.site-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: -1;
  animation: pan-grid 10s linear infinite;
}

@keyframes pan-grid {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: var(--grid-size) var(--grid-size);
  }
}

.site-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(var(--accent-rgb), 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(var(--accent-2-rgb), 0.04) 0%,
      transparent 50%
    );
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.8;
  }

  100% {
    opacity: 1.2;
    transform: scale(1.05);
  }
}

.section--hero > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "content schema";
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.hero-schema {
  grid-area: schema;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.05em;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title-prefix {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--accent-2);
  font-weight: 400;
}

.hero-cursor {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

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

  50% {
    opacity: 0;
  }
}

.hero-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 500px;
}

.hero-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-links-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
}

.hero-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
}

.hero-link i {
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Hero UML Diagram ── */
#hero-uml-diagram {
  width: 100%;
  max-width: 420px;
  font-family: var(--font-mono);
}

.uml-node {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  margin-bottom: 12px;
}

.uml-node:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.uml-node-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.uml-node-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.uml-node-type {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.uml-node-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uml-attr {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.uml-attr-vis {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.uml-attr-name {
  color: var(--accent-2);
}

.uml-attr-type {
  color: var(--text-muted);
}

.uml-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.uml-connector-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
}

/* ─────────────────────────────────────────
   10. ABOUT SECTION
   ───────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.about-comment-block {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition-base);
}

.about-comment-block:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.comment-header {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.comment-dot:first-child {
  background: var(--accent-error);
}

.comment-dot:nth-child(2) {
  background: var(--accent-warn);
}

.comment-dot:nth-child(3) {
  background: var(--accent);
}

.comment-file-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.comment-body > div {
  display: flex;
  align-items: flex-start;
}

.comment-line-num {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  color: var(--text-muted);
  user-select: none;
  opacity: 0.5;
  margin-right: 16px;
}

.comment-text {
  color: var(--text-secondary);
}

.comment-keyword {
  color: var(--accent);
}

.comment-value {
  color: var(--accent-warn);
}

.comment-string {
  color: var(--accent-2);
}

/* Hero Sidebar & Profile Image */
.hero-profile {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 8px;
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-card);
}

.profile-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(12px);
  opacity: 0.3;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* Badges for Hero Profile */
.hero-badge {
  position: absolute;
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--badge-shadow);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  z-index: 10;
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.badge-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-content strong {
  font-size: 0.6rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

.badge-content span {
  font-size: 0.5rem;
  color: var(--accent-2);
  line-height: 1.2;
  margin-top: 2px;
}

.badge-work {
  top: 10px;
  right: -80px;
}

.badge-education {
  bottom: 10px;
  left: -60px;
}

.badge-coffee {
  bottom: -20px;
  right: 10px;
  padding: 10px;
  border-radius: 50%;
}

.badge-coffee .badge-icon {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  background: transparent;
}

/* About Meta Panel */
.about-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-card);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.meta-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--accent-glow);
}

.meta-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.meta-card-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.meta-card-value.accent {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

/* ─────────────────────────────────────────
   11. SKILLS SECTION
   ───────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-package {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

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

.skill-package-header {
  padding: 12px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-package-icon {
  font-size: 0.9rem;
  color: var(--accent);
}

.skill-package-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.skill-package-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
}

.skill-list {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-dim);
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item:hover {
  color: var(--text-primary);
}

.skill-item i {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.skill-item-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ─────────────────────────────────────────
   12. EXPERIENCE SECTION
   ───────────────────────────────────────── */

.experience-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent 90%);
  opacity: 0.4;
}

.timeline-item {
  padding: 0 0 40px 32px;
  position: relative;
}

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

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  box-shadow: var(--accent-glow);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: var(--accent-glow-lg);
}

.timeline-dot--present {
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transform: scale(1.1);
}

.timeline-item:hover .timeline-dot--present {
  transform: scale(1.4);
  box-shadow: var(--accent-glow-lg);
}

.timeline-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.timeline-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
}

.timeline-card-header {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.timeline-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-date,
.timeline-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
}

.timeline-date {
  color: var(--accent-warn);
  border-color: rgba(255, 184, 0, 0.2);
}

.timeline-card-body {
  padding: 16px 20px;
}

.timeline-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-highlight {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.timeline-highlight::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 2px;
}

/* Education Panel */
.education-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  align-self: start;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.education-panel:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--accent-glow);
}

.education-panel-header {
  padding: 12px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.education-panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.education-body {
  padding: 20px;
}

.education-institution {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.education-faculty {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.education-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.8rem;
}

.education-field:last-child {
  border-bottom: none;
}

.education-field-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.education-field-value {
  color: var(--text-primary);
  font-weight: 500;
}

.education-field-value.gpa {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

/* ─────────────────────────────────────────
   13. PROJECTS SECTION (UML Class Diagrams)
   ───────────────────────────────────────── */

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

.project-class {
  perspective: 1000px;
  background: transparent;
  position: relative;
}

.project-class-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
}

.project-class:hover .project-class-inner {
  transform: rotateY(180deg);
}

.project-class-front,
.project-class-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.project-class-front {
  position: relative;
  /* Let the front side determine height */
}

.project-class-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 10;
}

.project-class-back {
  transform: rotateY(180deg);
  padding: 24px;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.project-summary-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-class:hover .project-class-front,
.project-class:hover .project-class-back {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-card-hover);
}

.project-class:hover .project-class-front::before {
  opacity: 1;
}

/* Class Header (stereotypes + name) */
.project-class-header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.project-stereotype {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.project-class-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-class-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 2px;
}

/* Compartment 1 — Attributes */
.project-attributes {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.compartment-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}

.project-attr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.attr-vis {
  color: var(--accent);
  flex-shrink: 0;
}

.attr-name {
  color: var(--accent-2);
}

.attr-sep {
  color: var(--text-muted);
  flex-shrink: 0;
}

.attr-val {
  color: var(--accent-warn);
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 7px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent-2);
  background: var(--bg-tertiary);
  white-space: nowrap;
}

/* Compartment 2 — Methods */
.project-methods {
  padding: 14px 20px;
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.project-method {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
  line-height: 1.5;
  padding-left: 10px;
  position: relative;
}

.project-method::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.method-name {
  color: var(--text-secondary);
}

.method-params {
  color: var(--text-muted);
}

.method-return {
  color: var(--accent-2);
}

/* Footer — Repository Link */
.project-footer {
  padding: 12px 20px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-repo-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-repo-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.04);
  transition: all var(--transition-fast);
}

.project-repo-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.project-repo-link i {
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────
   14. CONTACT SECTION
   ───────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

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

.contact-info-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-info-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: translateX(4px);
  box-shadow: var(--accent-glow);
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.contact-item-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contact Form */
.contact-form {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.form-header {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.method-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
}

.method-post {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.contact-form > * {
  padding-left: 20px;
  padding-right: 20px;
}

.contact-form > .form-field {
  padding-top: 16px;
}

.contact-form > .btn {
  margin: 16px 20px 20px;
  width: calc(100% - 40px);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

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

.form-type {
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 14px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
  resize: vertical;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-error);
  min-height: 18px;
  display: block;
}

.form-response {
  padding: 0 20px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 28px;
}

.form-response.success {
  color: var(--accent);
}

.form-response.error {
  color: var(--accent-error);
}

/* ─────────────────────────────────────────
   15. FOOTER
   ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  background: var(--bg-secondary);
}

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

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

.footer-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block;
}

/* ─────────────────────────────────────────
   16. SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* ─────────────────────────────────────────
   17. MOBILE MENU
   ───────────────────────────────────────── */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 16px;
    border-color: var(--border-dim);
  }
}

/* ─────────────────────────────────────────
   18. RESPONSIVE LAYOUT
   ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .section--hero {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 80px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "schema";
    gap: 48px;
  }

  .hero-schema {
    justify-content: flex-start;
  }

  #hero-uml-diagram {
    max-width: 100%;
  }

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

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .education-panel {
    margin-top: 24px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero-name {
    font-size: 2.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─────────────────────────────────────────
   19. SCROLLBAR
   ───────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ─────────────────────────────────────────
   20. SELECTION
   ───────────────────────────────────────── */

::selection {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────
   21. FOCUS VISIBLE (Accessibility)
   ───────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .badge-work {
    right: -20px;
    top: -10px;
    transform: scale(0.85);
    transform-origin: top right;
  }

  .badge-education {
    left: -20px;
    bottom: 0;
    transform: scale(0.85);
    transform-origin: bottom left;
  }

  .badge-coffee {
    right: 20px;
    bottom: -10px;
  }

  .hero-badge:hover {
    transform: scale(0.85) translateY(-2px);
  }
}
