/* ============================================================
   Baakhoff Portfolio — Custom Styles
   Design System: #0B0C0E / #1C1E22 / #007BFF / #F8F9FA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;600&display=swap');

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0B0C0E;
  color: #F8F9FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global smooth transitions (non-layout props only for perf) */
a, button, input, textarea, [class*="card"], [class*="btn"], .nav-link {
  transition: color 200ms ease, background-color 200ms ease,
              border-color 200ms ease, box-shadow 200ms ease,
              opacity 200ms ease, transform 200ms ease;
}

/* ── Custom Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0B0C0E; }
::-webkit-scrollbar-thumb { background: #1C1E34; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #007BFF; }

/* ── Background Patterns ────────────────────────────────────── */
.hero-glow {
  background: radial-gradient(ellipse 80% 60% at 50% -5%,
    rgba(0, 123, 255, 0.09) 0%, transparent 65%);
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(28, 30, 52, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 30, 52, 0.3) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ── Navigation ─────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid #1C1E34;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #F8F9FA;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-logo:hover { color: #F8F9FA; }
.nav-logo .dot { color: #007BFF; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.8125rem;
  color: #6B7280;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  letter-spacing: 0.01em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: #007BFF;
  transition: width 200ms ease;
}
.nav-link:hover { color: #F8F9FA; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #007BFF; }
.nav-link.active::after { width: 100%; }

.btn-hire {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #007BFF;
  border: 1px solid rgba(0, 123, 255, 0.5);
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  background: transparent;
}
.btn-hire:hover {
  background: rgba(0, 123, 255, 0.08);
  border-color: #007BFF;
  box-shadow: 0 0 16px rgba(0, 123, 255, 0.2);
  color: #007BFF;
}

/* Mobile menu toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #6B7280;
  padding: 0.5rem;        /* 44px+ touch target */
  margin-right: -0.5rem;  /* compensate visual offset */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-btn:hover { color: #F8F9FA; }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms ease, opacity 300ms ease;
  border-top: 1px solid transparent;
}
#mobile-menu.open {
  max-height: 360px;
  opacity: 1;
  border-top-color: #1C1E34;
}

.mobile-nav-links {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;  /* tighter gap — padding on each link creates touch area */
}

/* Ensure all mobile nav links have a solid 44px touch target */
.mobile-nav-links .nav-link,
.mobile-nav-links .btn-hire {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: block;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #007BFF;
  border: 1px solid #007BFF;
  padding: 0.8rem 2rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: transparent;
  color: #007BFF;
  box-shadow: 0 0 24px rgba(0, 123, 255, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #007BFF;
  background: transparent;
  border: 1px solid rgba(0, 123, 255, 0.5);
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: #007BFF;
  background: rgba(0, 123, 255, 0.07);
  box-shadow: 0 0 16px rgba(0, 123, 255, 0.15);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.btn-ghost:hover { color: #007BFF; }

/* ── Hub Cards (Home page) ──────────────────────────────────── */
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: #1C1E22;
  border: 1px solid #1C1E34;
  padding: 1.75rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}
.hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.hub-card:hover::before { opacity: 1; }
.hub-card:hover {
  border-color: #007BFF;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25),
              0 8px 40px rgba(0, 123, 255, 0.07);
}

.hub-card-icon {
  width: 38px; height: 38px;
  border: 1px solid #1C1E34;
  display: flex; align-items: center; justify-content: center;
  color: #007BFF;
  flex-shrink: 0;
  transition: border-color 200ms, background 200ms;
}
.hub-card:hover .hub-card-icon {
  border-color: rgba(0, 123, 255, 0.45);
  background: rgba(0, 123, 255, 0.07);
}

.hub-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #F8F9FA;
  letter-spacing: 0.025em;
}

.hub-card-desc {
  font-size: 0.8rem;
  color: #6B7280;
  line-height: 1.55;
}

.hub-card-arrow {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  color: #374151;
  transition: color 200ms, transform 200ms;
}
.hub-card:hover .hub-card-arrow {
  color: #007BFF;
  transform: translate(3px, -3px);
}

/* ── Project Cards ──────────────────────────────────────────── */
.project-card {
  background: #1C1E22;
  border: 1px solid #1C1E34;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: #007BFF;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2),
              0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-img {
  height: 156px;
  background: linear-gradient(145deg, #0D1117 0%, #131825 100%);
  border-bottom: 1px solid #1C1E34;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-card:hover .project-img {
  border-bottom-color: rgba(0, 123, 255, 0.25);
}

.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.project-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #F8F9FA;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.8rem;
  color: #6B7280;
  line-height: 1.55;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #1C1E34;
  margin-top: auto;
}
.project-card:hover .project-footer {
  border-top-color: rgba(0, 123, 255, 0.15);
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  text-decoration: none;
  border: 1px solid #1C1E34;
  padding: 0.4rem 0.875rem;
  white-space: nowrap;
}
.project-card:hover .view-btn {
  color: #007BFF;
  border-color: rgba(0, 123, 255, 0.4);
}

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
  background: #1C1E22;
  border: 1px solid #1C1E34;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: #007BFF;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 250ms ease;
}
.service-card:hover::after { transform: scaleY(1); }
.service-card:hover {
  border-color: rgba(0, 123, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.12),
              0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 44px; height: 44px;
  background: rgba(0, 123, 255, 0.08);
  border: 1px solid rgba(0, 123, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #007BFF;
  flex-shrink: 0;
}
.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: #F8F9FA;
}
.service-desc {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.6;
  flex: 1;
}

/* ── Tag Badges ─────────────────────────────────────────────── */
.tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 123, 255, 0.08);
  color: #007BFF;
  border: 1px solid rgba(0, 123, 255, 0.2);
  white-space: nowrap;
}

.tag-neutral {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #9CA3AF;
  border: 1px solid #1C1E34;
  white-space: nowrap;
}

/* ── Divider line ───────────────────────────────────────────── */
.accent-line {
  width: 2.5rem; height: 2px;
  background: #007BFF;
  margin-bottom: 1.25rem;
}

/* ── Section layout helpers ─────────────────────────────────── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #007BFF;
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #F8F9FA;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.9375rem;
  color: #6B7280;
  max-width: 560px;
  margin-top: 0.75rem;
  line-height: 1.65;
}

/* ── Stat items ─────────────────────────────────────────────── */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #F8F9FA;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-value span { color: #007BFF; }
.stat-label {
  font-size: 0.75rem;
  color: #6B7280;
  letter-spacing: 0.04em;
}

/* ── Form Inputs ────────────────────────────────────────────── */
.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
  font-family: 'Roboto Mono', monospace;
}

.form-input {
  width: 100%;
  background: #1C1E22;
  border: 1px solid #1C1E34;
  color: #F8F9FA;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}
.form-input::placeholder { color: #374151; }

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ── Social link icons ──────────────────────────────────────── */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: #1C1E22;
  border: 1px solid #1C1E34;
  text-decoration: none;
  color: #9CA3AF;
}
.social-link:hover {
  border-color: rgba(0, 123, 255, 0.4);
  color: #F8F9FA;
  background: rgba(0, 123, 255, 0.04);
}
.social-link-icon {
  width: 36px; height: 36px;
  background: rgba(0, 123, 255, 0.08);
  border: 1px solid rgba(0, 123, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #007BFF;
  flex-shrink: 0;
}
.social-link-text { font-size: 0.875rem; font-weight: 500; }
.social-link-handle { font-size: 0.75rem; color: #4B5563; font-family: 'Roboto Mono', monospace; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  background: #007BFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 18px;
  width: 1px;
  bottom: 0;
  background: linear-gradient(to bottom, #1C1E34, transparent);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::after { display: none; }

/* ── CV / PDF placeholder ───────────────────────────────────── */
.pdf-viewer {
  background: #1C1E22;
  border: 1px solid #1C1E34;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 640px;
  position: relative;
  overflow: hidden;
}
.pdf-viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent 27px,
      rgba(28, 30, 52, 0.4) 27px, rgba(28, 30, 52, 0.4) 28px);
  pointer-events: none;
}

/* ── Skill bar ──────────────────────────────────────────────── */
.skill-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #9CA3AF;
}
.skill-bar-track {
  height: 3px;
  background: #1C1E34;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #007BFF, #0063CC);
  border-radius: 0;
  transition: width 1s ease;
}

/* ── Info panel (contact page) ──────────────────────────────── */
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-icon {
  width: 36px; height: 36px;
  border: 1px solid #1C1E34;
  display: flex; align-items: center; justify-content: center;
  color: #007BFF;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-label { font-size: 0.7rem; color: #4B5563; text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Roboto Mono', monospace; }
.info-value { font-size: 0.9rem; color: #D1D5DB; margin-top: 0.15rem; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid #1C1E34;
  background: #0B0C0E;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: #374151;
  letter-spacing: 0.1em;
}
.footer-copy .dot { color: #007BFF; }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: 0.75rem;
  color: #374151;
  text-decoration: none;
}
.footer-link:hover { color: #9CA3AF; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.anim-fade-up  { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.08s; opacity: 0; }
.delay-2 { animation-delay: 0.16s; opacity: 0; }
.delay-3 { animation-delay: 0.24s; opacity: 0; }
.delay-4 { animation-delay: 0.32s; opacity: 0; }
.delay-5 { animation-delay: 0.40s; opacity: 0; }
.delay-6 { animation-delay: 0.48s; opacity: 0; }
.delay-7 { animation-delay: 0.56s; opacity: 0; }

/* ── Hub grid layout (index.html) ───────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1C1E34;
}

/* Nav hub: 5 cards that fully fill the box — no empty corners.
   6-column base: cards 1-3 each span 2 cols, cards 4-5 each span 3 cols. */
.hub-grid-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #1C1E34;
}
.hub-grid-nav > *:nth-child(-n+3) { grid-column: span 2; }
.hub-grid-nav > *:nth-child(n+4)  { grid-column: span 3; }

/* ── Stats strip (index.html) ───────────────────────────────── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #1C1E34;
}

/* ══════════════════════════════ RESPONSIVE ══════════════════ */

/* ── Responsive video embed (16:9) ─────────────────────────── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #0D1117;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── ≤ 900px: tablet ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 5th card (Contact) spans full width so bottom row isn't half-empty */
  .hub-grid > a:last-child {
    grid-column: span 2;
  }
  /* Nav hub: 2-col → cards 1-4 span 2, last card spans 4 (full width) */
  .hub-grid-nav {
    grid-template-columns: repeat(4, 1fr);
  }
  .hub-grid-nav > *:nth-child(-n+3) { grid-column: span 2; }
  .hub-grid-nav > *:nth-child(n+4)  { grid-column: span 2; }
  .hub-grid-nav > *:last-child      { grid-column: span 4; }
}

/* ── ≤ 768px: mobile nav + general spacing ───────────────────── */
@media (max-width: 768px) {
  /* prevent any accidental horizontal scroll */
  body { overflow-x: hidden; }

  /* nav */
  .nav-links { display: none; }
  .menu-btn  { display: flex; }
  .nav-inner { padding: 0 1rem; }

  /* full-width "Hire Me" in mobile drawer */
  .mobile-nav-links .btn-hire {
    display: block;
    text-align: center;
  }

  /* section spacing */
  .section-wrap { padding: 3rem 1.25rem; }

  /* hub cards */
  .hub-card { padding: 1.35rem; min-height: 130px; }

  /* stats strip: tighter gap, let items wrap to 2×2 */
  .stats-strip { gap: 2rem; }
  .stat-value  { font-size: 1.75rem; }

  /* footer: stack copyright above links */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  /* service cards: less padding */
  .service-card { padding: 1.5rem; }

  /* timeline dot: slightly tighter indent */
  .timeline-item { padding-left: 1.75rem; }

  /* social links: let handle text truncate gracefully */
  .social-link-handle { font-size: 0.7rem; }
}

/* ── ≤ 560px: single-column layouts ─────────────────────────── */
@media (max-width: 560px) {
  /* hub grid: single column — also reset the span-2 from tablet */
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid > a:last-child { grid-column: auto; }
  /* nav hub: single column */
  .hub-grid-nav { grid-template-columns: 1fr; }
  .hub-grid-nav > *:nth-child(-n+3),
  .hub-grid-nav > *:nth-child(n+4),
  .hub-grid-nav > *:last-child { grid-column: auto; }

  /* stats: 2×2 grid instead of a wide flex row */
  .stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
    justify-items: center;
  }

  /* section title floor */
  .section-title { font-size: 1.5rem; }

  /* hub card: even more compact on phones */
  .hub-card { padding: 1.1rem; min-height: 110px; }

  /* buttons: minimum width so they don't shrink too far */
  .btn-primary { padding: 0.75rem 1.5rem; }
  .btn-outline  { padding: 0.6rem 1.25rem; }

  /* project grid: force single column on small phones */
  #all-projects {
    grid-template-columns: 1fr !important;
  }
}

/* ── ≤ 480px: extra-small phones ────────────────────────────── */
@media (max-width: 480px) {
  .section-wrap { padding: 2.5rem 1rem; }

  /* nav logo: slightly smaller */
  .nav-logo { font-size: 0.75rem; letter-spacing: 0.12em; }

  /* section label */
  .section-label { font-size: 0.6rem; }

  /* reduce timeline padding further */
  .timeline-item { padding-left: 1.5rem; }
  .timeline-item::before { width: 7px; height: 7px; }

  /* tags: allow wrapping on very narrow screens */
  .tag, .tag-neutral { white-space: normal; }

  /* info panel values */
  .info-value { font-size: 0.825rem; }

  /* skill bar label: smaller */
  .skill-bar-header { font-size: 0.75rem; }

  /* form submit row: stack privacy note above button */
  .contact-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Cookie consent banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #1C1E22;
  border: 1px solid #1C1E34;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: cookieBannerIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-text {
  flex: 1 1 280px;
  font-size: 0.8125rem;
  color: #9CA3AF;
  line-height: 1.55;
}

.cookie-banner-title {
  color: #F8F9FA;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid;
}

.cookie-btn-accept {
  background: #007BFF;
  color: #FFFFFF;
  border-color: #007BFF;
}

.cookie-btn-accept:hover {
  background: #0066D9;
  border-color: #0066D9;
}

.cookie-btn-decline {
  background: transparent;
  color: #9CA3AF;
  border-color: #1C1E34;
}

.cookie-btn-decline:hover {
  border-color: #4B5563;
  color: #D1D5DB;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1rem 1.25rem;
  }
  .cookie-banner-buttons {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── Inline-styled text links: fade to accent on hover ──────── */
a.link-hover-blue {
  transition: color 0.15s ease;
}
a.link-hover-blue:hover {
  color: #007BFF !important;
}
