/* ============================================================
   MATHAUS HUBER PORTFOLIO — Global Stylesheet
   ============================================================ */

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

/* ============================================================
   CSS CUSTOM PROPERTIES — Light Mode (default)
   ============================================================ */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f6f6fa;
  --card:          #f2f2f7;
  --card-hover:    #e9e9f4;
  --border:        #e2e2ec;
  --border-lit:    #d0d0e0;

  --accent:        #07a0f6;
  --accent-light:  #38b4f8;
  --accent-dim:    rgba(7, 160, 246, 0.09);
  --accent-glow:   rgba(7, 160, 246, 0.22);

  --secondary:     #512DA8;
  --secondary-dim: rgba(81, 45, 168, 0.07);

  --text:          #111118;
  --text-muted:    #55556a;
  --text-dim:      #9898b0;
  --white:         #ffffff;

  --nav-bg:        rgba(255, 255, 255, 0.92);
  --nav-bg-solid:  rgba(255, 255, 255, 0.98);

  --nav-height:    68px;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --shadow:        0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 4px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.13);

  /* Animation system */
  --ease:          0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:      150ms;
  --dur-base:      250ms;
  --dur-slow:      400ms;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --bg:            #0a0a10;
  --bg-alt:        #0f0f18;
  --card:          #141420;
  --card-hover:    #1a1a28;
  --border:        #1e1e2e;
  --border-lit:    #262638;

  --text:          #dde1ec;
  --text-muted:    #7b7b99;
  --text-dim:      #4b4b65;
  --white:         #ffffff;

  --nav-bg:        rgba(10, 10, 16, 0.90);
  --nav-bg-solid:  rgba(10, 10, 16, 0.98);

  --shadow:        0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-md:     0 6px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg:     0 12px 48px rgba(0, 0, 0, 0.65);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--ease); }
ul { list-style: none; padding: 0; margin: 0; }

a,
a:hover,
a:focus,
a:active {
  text-decoration: none !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem);     font-weight: 800; }
h2 { font-size: clamp(2rem,   4vw, 2.8rem);   font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

h5 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.97rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-solid);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.045em;
  transition: color var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-avatar:hover {
  transform: scale(1.12);
}

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

.navbar-collapse { justify-content: flex-end; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--radius-xs);
  transition: color var(--ease), background var(--ease);
}

.navbar-nav .nav-link:hover {
  color: var(--text) !important;
  background: var(--card);
}

.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  background: var(--accent-dim);
  font-weight: 600;
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--ease);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.navbar-toggler {
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.6rem;
  background: transparent;
  transition: border-color var(--ease);
  line-height: 1;
}

.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler:hover { border-color: var(--accent); }
.navbar-toggler .fas { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   MOBILE SIDE DRAWER
   ============================================================ */

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.32s,
              backdrop-filter 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s,
              backdrop-filter 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Drawer panel */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 288px;
  max-width: 84vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  box-shadow: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-drawer.is-open {
  transform: translateX(0);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
}

/* Hide drawer on desktop */
@media (min-width: 768px) {
  .nav-drawer,
  .nav-overlay { display: none !important; }
}

/* Drawer header */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-drawer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-lit);
}

.nav-drawer-brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.045em;
}

.nav-drawer-dot { color: var(--accent); }

.nav-drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              background-color var(--dur-fast) ease;
  flex-shrink: 0;
}

.nav-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-drawer-close:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-glow); }

/* Drawer nav links */
.nav-drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  /* stagger-in state */
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.24s ease,
              transform 0.24s ease,
              color var(--dur-fast) ease,
              background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}

.nav-drawer.is-open .nav-drawer-link {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.nav-drawer.is-open .nav-drawer-link:nth-child(1) { transition-delay: 0.10s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(2) { transition-delay: 0.15s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(3) { transition-delay: 0.20s; }
.nav-drawer.is-open .nav-drawer-link:nth-child(4) { transition-delay: 0.25s; }

.nav-drawer-link-arrow {
  font-size: 0.65rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  color: var(--accent);
}

.nav-drawer-link:hover {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}

.nav-drawer-link:hover .nav-drawer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-drawer-link.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(7, 160, 246, 0.2);
  font-weight: 600;
}

.nav-drawer-link.active .nav-drawer-link-arrow {
  opacity: 0.7;
  transform: translateX(0);
}

/* Drawer footer */
.nav-drawer-footer {
  flex-shrink: 0;
  padding: 0 1rem 1.25rem;
}

.nav-drawer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}

.nav-drawer-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.nav-drawer-footer-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.nav-drawer-theme-btn {
  margin-left: 0;
}

/* Toggler icon morphs to X when drawer open */
.navbar-toggler.is-active .nav-toggler-icon::before {
  content: '\f00d'; /* fa-times unicode via CSS won't work for FA, handled in JS */
}

/* Body scroll lock (applied via JS) */
body.drawer-open { overflow: hidden; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title-lg {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-description {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  will-change: transform;
}

.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-accent:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-lit);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  will-change: transform;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 14px rgba(7, 160, 246, 0.1);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  transition: color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover { color: var(--accent-light); background: var(--accent-dim); }
.btn-ghost:hover i { transform: translateX(2px); }
.btn-ghost i { transition: transform 0.2s var(--ease-spring); }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.72rem;
  border-radius: var(--radius-xs);
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: default;
}

.tag i {
  font-size: 0.63rem;
  opacity: 0.75;
}

.tag:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(7, 160, 246, 0.3);
}

[data-theme="dark"] .tag {
  background: var(--card);
  border-color: var(--border-lit);
  color: var(--text-muted);
}

[data-theme="dark"] .tag:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
  border-color: rgba(7, 160, 246, 0.3);
}

/* ============================================================
   SOCIAL ICON BUTTONS
   ============================================================ */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  will-change: transform;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(7, 160, 246, 0.12);
}

.social-btn:active {
  transform: translateY(0) scale(0.95);
  transition-duration: 80ms;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
  border: none;
  margin: 0;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { 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; }
.reveal.delay-5 { transition-delay: 0.40s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%  { top: 4px;  opacity: 1; }
  80% { top: 16px; opacity: 0; }
  100%{ top: 4px;  opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-main {
  padding: 72px 0 56px;
}

.footer-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.055em;
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand .dot { color: var(--accent); }
.footer-brand:hover { color: var(--accent); }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 1.35rem;
}

.footer-nav-list li + li { margin-top: 0.65rem; }

.footer-nav-list a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer-nav-list a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-list a:hover { color: var(--accent); }
.footer-nav-list a:hover::after { width: 100%; }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-contact-item i {
  color: var(--accent);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-xs);
  padding: 0.48rem 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-base) var(--ease-spring);
}

.footer-resume-btn:hover {
  color: var(--accent);
  border-color: rgba(7, 160, 246, 0.45);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.footer-resume-btn i {
  font-size: 0.68rem;
  transition: transform var(--dur-base) var(--ease-spring);
}

.footer-resume-btn:hover i { transform: translateY(2px); }

.footer-social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

.footer-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {

  .footer-main .col-6,
  .footer-main [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact-list {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social-row {
    justify-content: center;
  }

}

@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  55%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--dur-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-cta-link i {
  font-size: 0.68rem;
  transition: transform var(--dur-base) var(--ease-spring);
}

.footer-cta-link:hover { color: var(--accent); }
.footer-cta-link:hover i { transform: translateX(3px); }

@media (max-width: 575.98px) {
  .footer-main { padding: 52px 0 44px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-availability { justify-content: center; }
}

/* ============================================================
   DEVELOPER TERMINAL SECTION
   ============================================================ */
#dev-terminal {
  padding: 96px 0 100px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.term-intro {
  text-align: center;
  margin-bottom: 2.75rem;
}

.term-intro-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.2;
}

.term-intro-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

/* Terminal chrome */
.term-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  transition: box-shadow var(--dur-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.term-wrap:focus-within {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(7, 160, 246, 0.18);
}

/* Header bar */
.term-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.term-dots { display: flex; gap: 6px; flex-shrink: 0; }

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.85;
}

.term-dot--r { background: #ff5f57; }
.term-dot--y { background: #ffbd2e; }
.term-dot--g { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #484f58;
  letter-spacing: 0.04em;
}

.term-hint {
  font-size: 0.68rem;
  color: #30363d;
  flex-shrink: 0;
}

.term-hint kbd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  padding: 0.08em 0.4em;
  font-family: inherit;
  font-size: 0.66rem;
  color: #6e7681;
}

/* Terminal body */
.term-body {
  padding: 1.1rem 1.4rem 1rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  cursor: text;
  scroll-behavior: smooth;
}

.term-body::-webkit-scrollbar { width: 3px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }

/* Welcome line */
.term-welcome {
  color: #6e7681;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

/* Color helpers */
.t-accent { color: #07a0f6; }
.t-green  { color: #3fb950; }
.t-dim    { color: #6e7681; }
.t-bold   { color: #e6edf3; font-weight: 600; }
.t-num    { color: #79c0ff; }
.t-error  { color: #f85149; }
.t-label  { color: #6e7681; display: inline-block; min-width: 9ch; }

/* Output area */
#termOutput { margin-bottom: 0.25rem; }

.term-entry { margin-bottom: 1rem; }

.term-cmd-echo {
  color: #6e7681;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-cmd-echo .t-echo-prompt { color: #07a0f6; user-select: none; }

.term-result { color: #c9d1d9; }

.term-result p {
  margin: 0 0 0.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-result a { color: #07a0f6; text-decoration: none; }
.term-result a:hover { text-decoration: underline; }

/* Input row */
.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.term-prompt {
  color: #6e7681;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.75;
  caret-color: #07a0f6;
  padding: 0;
  min-width: 0;
}

.term-input::selection { background: rgba(7, 160, 246, 0.25); }

/* Mobile */
@media (max-width: 575.98px) {
  #dev-terminal { padding: 64px 0 72px; }
  .term-body { padding: 0.9rem 1rem 0.85rem; font-size: 0.82rem; }
  .term-input { font-size: 0.82rem; }
  .term-prompt { font-size: 0.78rem; }
  .term-wrap { font-size: 0.82rem; }
}

/* ============================================================
   HOW I THINK SECTION
   ============================================================ */
#how-i-think {
  padding: 96px 0 104px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mindset-header {
  margin-bottom: 3.5rem;
}

.mindset-desc {
  padding-top: 0.25rem;
  margin-bottom: 0;
}

/* Grid */
.mindset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Card */
.mindset-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Sliding top accent bar */
.mindset-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mindset-card:hover {
  border-color: rgba(7, 160, 246, 0.28);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

/* Icon */
.mindset-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  border: 1px solid rgba(7, 160, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring);
}

.mindset-card-icon i {
  font-size: 0.95rem;
  color: var(--accent);
  transition: transform var(--dur-slow) var(--ease-spring);
}

.mindset-card:hover .mindset-card-icon {
  background: rgba(7, 160, 246, 0.14);
  border-color: rgba(7, 160, 246, 0.3);
  transform: scale(1.08);
}

.mindset-card:hover .mindset-card-icon i {
  transform: scale(1.12);
}

/* Card number */
.mindset-card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: opacity var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.mindset-card:hover .mindset-card-num {
  opacity: 0.85;
  color: var(--accent);
}

/* Card text */
.mindset-card-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.mindset-card-desc {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  .mindset-grid { grid-template-columns: repeat(2, 1fr); }
  #how-i-think { padding: 72px 0 80px; }
  .mindset-header { margin-bottom: 2.75rem; }
}

@media (max-width: 575.98px) {
  .mindset-grid { grid-template-columns: 1fr; gap: 1rem; }
  #how-i-think { padding: 60px 0 68px; }
  .mindset-card { padding: 1.5rem 1.35rem 1.4rem; }
  .mindset-desc { padding-top: 0; margin-top: 0.75rem; }
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot grid texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="dark"] .hero-bg::before {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
}

/* Color wash */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(7,160,246,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 10% 65%, rgba(81,45,168,0.04) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0 96px;
}

/* Location / context eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow-sep {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--border-lit);
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.65s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-role .typed-text {
  color: var(--text);
  font-weight: 600;
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.6s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.30s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Photo column */
.hero-photo-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2rem;
}

.hero-photo-frame {
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.7s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Decorative background block — unique, editorial */
.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7,160,246,0.12) 0%, rgba(81,45,168,0.10) 100%);
  z-index: 0;
}

.hero-photo-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-lit);
  box-shadow: var(--shadow-lg);
  display: block;
  position: relative;
  z-index: 1;
}

/* Floating ring — single, subtle */
.hero-photo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(7,160,246,0.14);
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--border-lit);
  border-radius: 9px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

/* ============================================================
   HOME PAGE — STATS
   ============================================================ */
#stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 0.5rem 2rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

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

.stat-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   HOME PAGE — SKILLS PREVIEW
   ============================================================ */
#skills-preview { padding: 96px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.skill-card:hover {
  border-color: rgba(7,160,246,0.35);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card i {
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease-spring);
}

.skill-card:hover i {
  transform: scale(1.18);
}

.skill-card-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   HOME PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-inner { padding: 3rem 0 4rem; }
  .hero-photo-img { width: 240px; height: 240px; }
  .hero-description { max-width: 100%; }
  .hero-photo-col { margin-top: 3rem; justify-content: center; padding-right: 0; }
}

@media (max-width: 575px) {
  #hero { min-height: auto; padding-bottom: 3rem; }
  .hero-photo-img { width: 190px; height: 190px; }
  .stat-item { padding: 0.5rem 1rem; }
  .stat-number { font-size: 1.8rem; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .scroll-cue { display: none; }
  .navbar .container, .hero-description, .hero-cta {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-name, .footer-tagline{
    text-align: center;
  }
  .footer-tagline{
    max-width: 100%;
  }
  .hero-role, .hero-socials {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
  }
  .hide-mobile-sm {
    display: none;
  }
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.inner-hero {
  padding: calc(var(--nav-height) + 68px) 0 68px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 50%, rgba(7,160,246,0.05) 0%, transparent 65%);
  pointer-events: none;
}

[data-theme="dark"] .inner-hero::before {
  background: radial-gradient(ellipse 55% 70% at 85% 50%, rgba(7,160,246,0.07) 0%, transparent 65%);
}

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

.inner-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(7,160,246,0.18);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inner-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inner-hero-desc {
  font-size: 1.025rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.8;
  animation: fadeInUp 0.6s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-lit);
  margin: 0 auto 1.25rem;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.profile-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(7,160,246,0.18);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.6rem;
}

.profile-location {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.profile-actions .btn-accent,
.profile-actions .btn-outline {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

.profile-tags-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: left;
}

.profile-tags-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

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

/* About content */
.about-section { padding: 96px 0; }

.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.about-text { font-size: 0.97rem; margin-bottom: 1rem; color: var(--text-muted); }

/* Skill area cards */
.skill-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.skill-area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.skill-area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-area-card:hover::before {
  transform: scaleX(1);
}

.skill-area-card:hover {
  border-color: rgba(7,160,246,0.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-area-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.skill-area-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.skill-area-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.skill-area-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin: 0;
}

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

/* ============================================================
   ABOUT PAGE — EXPERIENCE / TIMELINE
   ============================================================ */
.experience-section {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.timeline {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.25rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar { display: none; }

.timeline-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
  min-width: 175px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--ease);
}

.timeline-item:hover {
  border-color: rgba(7,160,246,0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.timeline-item.selected {
  border-color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(7, 160, 246, 0.13);
}

.timeline-item .title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.timeline-item.selected .title {
  color: var(--accent);
}

.timeline-item img {
  width: 100px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
  opacity: 0.65;
  transition: opacity var(--ease);
}

.timeline-item:hover img,
.timeline-item.selected img {
  opacity: 0.9;
}

[data-theme="dark"] .timeline-item img {
  filter: brightness(0.85) saturate(0.8);
  opacity: 1;
}

/* Maker Market uses a black SVG logo — invert it in dark mode */
[data-theme="dark"] .timeline-item img.mm-logo {
  filter: invert(1) brightness(0.88);
  opacity: 1;
}

.timeline-item .date { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }

.timeline-nav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  flex-shrink: 0;
}

.timeline-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.description-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem 2rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Structured HTML inside description-box */
.description-box .desc-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.description-box .desc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.description-box .desc-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}

.description-box .desc-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.description-box .desc-stack {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* About page responsive */
@media (max-width: 991px) {
  .profile-card { position: relative; top: 0; margin-bottom: 3rem; }
  .skill-areas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .skill-areas-grid { grid-template-columns: 1fr; }
  .timeline-nav-btn { display: none; }
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-list { margin-top: 3rem; }

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow var(--dur-slow) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring);
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(7,160,246,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-carousel-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.project-carousel-wrap .carousel-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
}

.project-carousel-wrap .carousel-control-prev,
.project-carousel-wrap .carousel-control-next { width: 8%; }

.project-content { padding: 2rem 2.5rem; }

.project-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
}

.project-number {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.project-tagline {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.project-tags-row  { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.project-links-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Expandable */
.project-expand-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--ease);
}

.project-expand-btn:hover { color: var(--accent); }
.project-expand-btn i { transition: transform var(--ease); font-size: 0.8rem; }
.project-expand-btn.open i { transform: rotate(180deg); }

.project-details {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.project-details.open { display: block; }
.project-details p { font-size: 0.9rem; margin-bottom: 0.85rem; }
.project-details h4 { color: var(--text); font-size: 0.95rem; margin: 1rem 0 0.5rem; }

/* Project sidebar */
.project-sidebar-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.project-meta-list { display: flex; flex-direction: column; gap: 0; }

.project-meta-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.project-meta-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.project-meta-value { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

@media (max-width: 767px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-content { padding: 1.5rem; }
  .project-carousel-wrap .carousel-inner img { height: 240px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-dim);
  border: 1px solid rgba(7,160,246,0.18);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.contact-detail-value { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.contact-detail-value a { color: var(--text-muted); transition: color var(--ease); }
.contact-detail-value a:hover { color: var(--accent); }

/* Contact form */
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.form-control-custom,
.form-textarea-custom {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

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

.form-control-custom:focus,
.form-textarea-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7,160,246,0.1);
}

.form-textarea-custom { min-height: 130px; resize: vertical; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.85rem 1.6rem;
}

@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE — EDUCATION & LANGUAGES
   ============================================================ */
.edu-lang-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Education list */
.edu-list {
  display: flex;
  flex-direction: column;
}

.edu-item {
  position: relative;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.edu-item:first-child { padding-top: 0; }
.edu-item:last-child  { border-bottom: none; padding-bottom: 0; }

/* Vertical timeline line */
.edu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-lit);
  border-radius: 2px;
}

/* Current item (first) gets accent color on the line */
.edu-item:first-child::before {
  background: var(--accent);
}

.edu-period {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.edu-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0;
}

/* Language cards */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.lang-item:hover {
  border-color: rgba(7, 160, 246, 0.25);
  box-shadow: var(--shadow);
}

.lang-flag {
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-info { flex: 1; min-width: 0; }

.lang-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

.lang-level {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.lang-cert {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

.lang-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  background: var(--card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-badge-c1 {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(7, 160, 246, 0.2);
}

[data-theme="dark"] .lang-badge-c1 {
  color: var(--accent-light);
}

/* ============================================================
   ABOUT PAGE — CODE CARD
   ============================================================ */
.code-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--card);
}

.code-card-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-dot-red    { background: #ff5f57; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green  { background: #28c940; }

.code-card-filename {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

.code-card-body {
  padding: 1.5rem 1.75rem;
}

.code-block {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

/* Syntax colours */
.c-cmt  { color: var(--text-dim); }
.c-kw   { color: var(--secondary); font-style: italic; }
.c-var  { color: var(--text); }
.c-key  { color: var(--text-muted); }
.c-str  { color: var(--accent); }

[data-theme="dark"] .c-kw { color: #a78bfa; }

/* ============================================================
   GLOBAL RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

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

/* ============================================================
   MICROINTERACTION — NAVBAR LINKS (sliding underline)
   ============================================================ */
.navbar-nav .nav-link {
  position: relative;
}

.navbar-nav .nav-link:not(.active)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0.9rem;
  right: 0.9rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.navbar-nav .nav-link:hover:not(.active)::after {
  transform: scaleX(1);
}

/* ============================================================
   MICROINTERACTION — SKILL AREA CARDS (will-change)
   ============================================================ */
.skill-area-card {
  will-change: transform;
}

/* ============================================================
   MICROINTERACTION — TIMELINE ITEMS (will-change)
   ============================================================ */
.timeline-item {
  will-change: transform;
}

/* ============================================================
   DESCRIPTION BOX — smooth transition support
   Actual fade animation is driven by JS via inline styles
   ============================================================ */
.description-box {
  transform-origin: top left;
}

/* ============================================================
   ACCESSIBILITY — Respect reduced motion preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow,
  .hero-name,
  .hero-role,
  .hero-description,
  .hero-cta,
  .hero-socials,
  .hero-photo-frame,
  .inner-hero-eyebrow,
  .inner-hero-title,
  .inner-hero-desc {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
