/* ==========================================================================
   MARCEL KALINOWSKI — PROFESSIONAL PORTFOLIO & CV
   Theme: Modern Dark & Clean Editorial Design
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-dark: #090c15;
  --bg-surface: #0f1422;
  --bg-card: rgba(16, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 30, 50, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(56, 189, 248, 0.35);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #090c15;

  /* Accent Colors (Clean, professional, not flashy) */
  --accent-it: #38bdf8;          /* Sky Blue / IT & Systems */
  --accent-it-subtle: rgba(56, 189, 248, 0.12);
  --accent-ai: #a855f7;          /* Violet / Scripting & Automation */
  --accent-ai-subtle: rgba(168, 85, 247, 0.12);
  --accent-photo: #f59e0b;       /* Amber / Media & AV */
  --accent-photo-subtle: rgba(245, 158, 11, 0.12);

  --accent-primary: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);

  /* UI Feedback */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 36px -12px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sizing */
  --max-width: 1140px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light (Subtle & clean) */
.ambient-glow-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  filter: blur(140px);
  border-radius: 50%;
  opacity: 0.12;
}

.ambient-blob-1 {
  top: -10%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-it) 0%, transparent 70%);
}

.ambient-blob-2 {
  top: 50%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Reusable Glass Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(9, 12, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(9, 12, 21, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-title {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background-color: var(--success);
  opacity: 0.6;
  animation: pulseDot 2s infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-it);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-it);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 0.96rem;
  border-radius: var(--radius-md);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (Clean, Honest, Single-Column Center/Left Layout)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 4.5rem;
}

.hero-layout {
  max-width: 880px;
  margin-inline: auto;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.hero-badge-tag span.highlight {
  color: var(--accent-it);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}

.hero-subtitle-line {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Clean Horizontal Meta Strip */
.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-meta-item svg {
  color: var(--accent-it);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

/* Hero 3 Fact Highlight Cards */
.hero-fact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.fact-card {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(16, 22, 36, 0.5);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fact-headline {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.fact-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.fact-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

/* ==========================================================================
   SECTIONS & TITLES
   ========================================================================== */
.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

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

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   THE ADVANTAGE (WHY WORK WITH MARCEL)
   ========================================================================== */
.view-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.toggle-switch-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.3rem;
  display: inline-flex;
  gap: 0.3rem;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.view-mode-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

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

.advantage-card {
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.advantage-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.icon-box-it {
  background: var(--accent-it-subtle);
  color: var(--accent-it);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.icon-box-ai {
  background: var(--accent-ai-subtle);
  color: var(--accent-ai);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.icon-box-photo {
  background: var(--accent-photo-subtle);
  color: var(--accent-photo);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.advantage-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

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

.advantage-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.advantage-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-main);
}

.advantage-highlights svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #38bdf8;
}

/* ==========================================================================
   SKILLS MATRIX (Clean, Honest, No Arbitrary Percentages)
   ========================================================================== */
.skills-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border-color: var(--accent-primary);
}

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

.skill-domain-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.domain-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.domain-title-group h3 {
  font-size: 1.15rem;
}

.domain-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 600;
}

.domain-badge.badge-it {
  background: var(--accent-it-subtle);
  color: var(--accent-it);
}

.domain-badge.badge-ai {
  background: var(--accent-ai-subtle);
  color: var(--accent-ai);
}

.domain-badge.badge-photo {
  background: var(--accent-photo-subtle);
  color: var(--accent-photo);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-name {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
}

.skill-context-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.skill-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   PORTFOLIO & WORK HIGHLIGHTS (Based on Real Environments)
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--text-main);
  color: var(--text-inverse);
  border-color: var(--text-main);
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

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

.project-badge-overlay {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.badge-pill-it {
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
}

.badge-pill-ai {
  background: rgba(147, 51, 234, 0.9);
  color: #ffffff;
}

.badge-pill-photo {
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
}

.photo-expand-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  border: none;
}

.project-card:hover .photo-expand-btn {
  opacity: 1;
}

.expand-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.project-title {
  font-size: 1.12rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

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

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

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.view-details-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   RESUME & CAREER TIMELINE SECTION
   ========================================================================== */
.resume-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 1.25rem 1.8rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.resume-summary-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.resume-summary-text p {
  font-size: 0.86rem;
}

.resume-cta-buttons {
  display: flex;
  gap: 0.75rem;
}

.timeline-two-column {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
}

.timeline-column-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-glass);
}

.timeline-wrapper {
  position: relative;
  padding-left: 1.8rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 5px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-it), rgba(56, 189, 248, 0.2));
}

.timeline-card {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -1.8rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-primary);
}

.timeline-inner-card {
  padding: 1.5rem;
}

.timeline-period {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.timeline-job-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.timeline-responsibilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-responsibilities li {
  position: relative;
  padding-left: 1.1rem;
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-direct-box {
  padding: 1.8rem;
}

.contact-direct-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.contact-direct-box p {
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.method-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.method-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.method-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.copy-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form-panel {
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-primary);
  background: rgba(15, 23, 42, 0.95);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.service-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.service-radio-option {
  position: relative;
}

.service-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-radio-box {
  display: block;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
}

.service-radio-option input[type="radio"]:checked + .service-radio-box {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid var(--success);
  color: #ffffff;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-medium);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ==========================================================================
   RESUME PRINT / CLEAN VIEW MODAL
   ========================================================================== */
.resume-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.resume-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.resume-modal-body {
  background: #ffffff;
  color: #0f172a;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.resume-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #475569;
}

.resume-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.resume-doc-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.8rem;
}

.resume-doc-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.resume-doc-role {
  font-size: 1.05rem;
  color: #0284c7;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resume-doc-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.84rem;
  color: #64748b;
}

.resume-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
  margin-block: 1.6rem 0.85rem;
}

.resume-entry {
  margin-bottom: 1.25rem;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.resume-entry-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.resume-entry-date {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.resume-entry-sub {
  font-size: 0.85rem;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.resume-entry-list {
  padding-left: 1.2rem;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: #060810;
  padding-block: 3.5rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.6;
}

.footer-nav-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
}

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

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   PRINT STYLES FOR CV
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header,
  .ambient-glow-mesh,
  .hero-section,
  .advantage-section,
  .skills-section,
  .portfolio-section,
  .testimonials-section,
  .contact-section,
  .site-footer,
  .resume-action-bar,
  .toast-msg,
  .lightbox-modal {
    display: none !important;
  }

  .resume-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .resume-modal-body {
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .resume-close-btn {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .advantage-grid,
  .skills-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-two-column {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  .nav-links, .availability-pill {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(9, 12, 21, 0.98);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .advantage-grid,
  .skills-grid,
  .portfolio-grid,
  .footer-top,
  .hero-fact-cards {
    grid-template-columns: 1fr;
  }

  .service-select-grid {
    grid-template-columns: 1fr;
  }

  .resume-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
