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

/* --- DESIGN TOKENS --- */
:root {
  --font-display: 'Jersey 15', cursive, serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors inspired by diogocorreia.com & modern creative palettes */
  --hero-bg: #FFE15D;
  --hero-bg-gradient: linear-gradient(180deg, #FFE873 0%, #FFE15D 100%);
  --hero-cloud: rgba(255, 255, 255, 0.88);

  --body-bg: #FFFFFF;
  --section-alt-bg: #F8FBFB;
  --card-bg: #FFFFFF;

  --primary-teal: #11999E;
  --accent-teal: #66BFBF;
  --light-teal: #EAF6F6;
  --soft-teal: #d5f2f2;

  --color-bidgely: #10B981;
  --color-plivo: #3B82F6;
  --color-optum: #F59E0B;
  --color-purple: #8B5CF6;
  --color-pink: #EC4899;

  --text-dark: #2B3A42;
  --text-main: #40514E;
  --text-muted: #6B7C85;
  --text-light: #8E9A9E;

  --border-color: #E2EAE9;
  --border-color-hover: #11999E;

  --footer-bg: #66BFBF;
  --footer-link: #115E59;
  --footer-link-hover: #FFFFFF;

  --shadow-sm: 0 4px 12px rgba(17, 153, 158, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 153, 158, 0.12);
  --shadow-lg: 0 16px 36px rgba(17, 153, 158, 0.18);
  --shadow-float: 0 14px 28px rgba(0, 0, 0, 0.12);
  --shadow-dock: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(17, 153, 158, 0.06);
  --shadow-dock-scrolled: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(17, 153, 158, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  /* scroll-behavior handled via JS scrollIntoView to prevent iOS snap-back */
  background-color: var(--body-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.8;
  text-align: center;
  background-color: var(--body-bg);
  position: relative;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

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

/* --- CREATIVE FLOATING ISLAND CAPSULE NAVBAR --- */
.navbar-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.35s ease;
}

.floating-dock {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(17, 153, 158, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.floating-dock.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 153, 158, 0.35);
  box-shadow: var(--shadow-dock-scrolled);
  transform: translateY(-2px);
}

/* --- SEGMENTED MODE SWITCHER (Blog <> Portfolio) with Dynamic Circle / Icon Morph --- */
.dock-mode-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color: rgba(234, 246, 246, 0.95);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(17, 153, 158, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  isolation: isolate;
}

/* Sliding active focus glider (morphs between circle and pill) */
.mode-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  background: var(--primary-teal);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(17, 153, 158, 0.4);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

/* Active sliding transition only enabled once JS calibrates initial placement */
.dock-mode-switcher.glider-ready .mode-glider {
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1),
    width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

.mode-pill {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease, transform 0.15s ease, padding 0.26s cubic-bezier(0.16, 1, 0.3, 1), width 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.mode-icon {
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-text {
  display: inline-block;
  max-width: 80px;
  opacity: 1;
  margin-left: 5px;
  overflow: hidden;
  transition: max-width 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin 0.2s ease;
}

/* When a pill is ACTIVE: hide label text and morph pill into a compact circle */
.mode-pill.active {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  color: #FFFFFF !important;
}

.mode-pill.active .mode-text {
  max-width: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

.mode-pill:active {
  transform: scale(0.94);
}

.mode-pill:not(.active):hover {
  color: var(--primary-teal);
}

/* Static fallback before glider is ready to prevent frame 0 flicker */
.dock-mode-switcher:not(.glider-ready) .mode-pill.active {
  background-color: var(--primary-teal);
  color: #FFFFFF !important;
}

.dock-mode-switcher.glider-ready .mode-pill {
  background: transparent !important;
}

.mode-pill.active .mode-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* --- ZERO-JERK INITIAL BLOG STATE (Prevents flash/morph on page load) --- */
html.initial-blog-mode #portfolio-view {
  display: none !important;
}

html.initial-blog-mode #blog-view {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

html.initial-blog-mode .floating-dock .dock-menu {
  max-width: 0px !important;
  opacity: 0 !important;
  transform: scale(0.85) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-color: transparent !important;
  pointer-events: none !important;
  transition: none !important;
}

html.initial-blog-mode .floating-dock .nav-toggle {
  display: none !important;
}

/* Hide Say Hi on all Blog pages & in Blog Mode */
.floating-dock.blog-mode .dock-cta-btn,
html.initial-blog-mode .floating-dock .dock-cta-btn,
.blog-archive-page .dock-cta-btn,
.blog-article-page .dock-cta-btn {
  display: none !important;
}

html.initial-blog-mode #mode-btn-portfolio {
  background: transparent !important;
  color: var(--text-muted) !important;
  width: auto !important;
  padding: 0 12px !important;
  border-radius: var(--radius-pill) !important;
}

html.initial-blog-mode #mode-btn-portfolio .mode-text {
  max-width: 80px !important;
  opacity: 1 !important;
  margin-left: 5px !important;
}

html.initial-blog-mode #mode-btn-blog {
  background-color: var(--primary-teal) !important;
  color: #FFFFFF !important;
  width: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

html.initial-blog-mode #mode-btn-blog .mode-text {
  max-width: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
}

/* --- VIEW PANELS & SEAMLESS TRANSITIONS --- */
.view-panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.view-panel.view-fade-out {
  opacity: 0 !important;
  transform: translateY(-12px) scale(0.99) !important;
  pointer-events: none !important;
}

.view-panel.view-fade-in {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* --- DOCK NAVIGATION MENU & MORPHING --- */
.floating-dock {
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.dock-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  background-color: rgba(234, 246, 246, 0.6);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 153, 158, 0.1);
  max-width: 550px;
  height: 40px;
  opacity: 1;
  transform: scale(1);
  transform-origin: left center;
  overflow: hidden;
  transition: max-width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.32s ease,
    margin 0.32s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}

/* Fluid shrink when switching to Blog Mode */
.floating-dock.blog-mode .dock-menu {
  max-width: 0px !important;
  opacity: 0 !important;
  transform: scale(0.85) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-color: transparent !important;
  pointer-events: none !important;
}

.floating-dock.blog-mode .nav-toggle {
  display: none !important;
}

.dock-item {
  position: relative;
}

.dock-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.dock-icon {
  font-size: 0.95rem;
  transition: var(--transition-bounce);
}

.dock-link:hover {
  color: var(--primary-teal);
  background-color: rgba(255, 255, 255, 0.8);
}

.dock-link:hover .dock-icon {
  transform: scale(1.25) translateY(-2px);
}

.dock-link.active {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(17, 153, 158, 0.35);
}

.dock-link.active .dock-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Dock Action (Resume & Say Hi CTAs) */
.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-resume-btn {
  background-color: var(--light-teal);
  color: var(--primary-teal) !important;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--soft-teal);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.dock-resume-btn:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF !important;
  border-color: var(--primary-teal);
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 153, 158, 0.3);
}

.dock-cta-btn {
  background: linear-gradient(135deg, #FFE15D 0%, #FFD43B 100%);
  color: var(--text-dark) !important;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(214, 158, 46, 0.3);
  box-shadow: 0 4px 12px rgba(255, 225, 93, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.dock-cta-btn:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 225, 93, 0.6);
  background: #FFE15D;
}

.wave-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveHand 2.2s infinite ease-in-out;
}

@keyframes waveHand {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20%,
  60% {
    transform: rotate(14deg);
  }

  40%,
  80% {
    transform: rotate(-10deg);
  }
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  background: var(--light-teal);
  border: 1.5px solid var(--soft-teal);
  border-radius: 50%;
  cursor: pointer;
  padding: 9px 8px;
  z-index: 1002;
  transition: var(--transition-smooth);
}

.nav-toggle:hover {
  background-color: #DEF4F4;
}

.nav-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- TOP CONTAINER (HERO BANNER) --- */
.top-container {
  background-color: var(--hero-bg);
  background-image: var(--hero-bg-gradient);
  position: relative;
  padding: 110px 20px 90px 20px;
  /* Extra top padding to accommodate floating dock */
  overflow: hidden;
  text-align: center;
}

/* Floating Ambient Clouds (Full view, no clipping) */
.cloud {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.05));
}

.top-cloud {
  right: 6%;
  top: 95px;
  width: 175px;
  animation: floatCloudTop 20s infinite alternate ease-in-out;
}

.bottom-cloud {
  left: 5%;
  bottom: 60px;
  width: 195px;
  animation: floatCloudBottom 26s infinite alternate-reverse ease-in-out;
}

.small-cloud {
  left: 14%;
  top: 130px;
  width: 110px;
  animation: floatCloudSmall 16s infinite alternate ease-in-out;
}

@keyframes floatCloudTop {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-20px) translateY(12px);
  }

  100% {
    transform: translateX(16px) translateY(-6px);
  }
}

@keyframes floatCloudBottom {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(24px) translateY(-14px);
  }

  100% {
    transform: translateX(-16px) translateY(8px);
  }
}

@keyframes floatCloudSmall {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(16px) translateY(10px);
  }

  100% {
    transform: translateX(-14px) translateY(-8px);
  }
}

/* Floating Tech Badges (Cursor default, no pointer) */
.floating-sticker {
  position: absolute;
  z-index: 3;
  padding: 8px 16px;
  background-color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-float);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  animation: floatSticker 6s infinite ease-in-out alternate;
}

.floating-sticker:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  border-color: var(--primary-teal);
}

.sticker-1 {
  top: 120px;
  left: 10%;
  border: 2px solid var(--color-bidgely);
  color: var(--color-bidgely);
  animation-delay: 0s;
  animation-duration: 7s;
}

.sticker-2 {
  top: 160px;
  right: 10%;
  border: 2px solid var(--color-plivo);
  color: var(--color-plivo);
  animation-delay: -2s;
  animation-duration: 6.5s;
}

.sticker-3 {
  bottom: 120px;
  left: 10%;
  border: 2px solid var(--color-purple);
  color: var(--color-purple);
  animation-delay: -3.5s;
  animation-duration: 8s;
}

.sticker-4 {
  bottom: 110px;
  right: 10%;
  border: 2px solid var(--color-pink);
  color: var(--color-pink);
  animation-delay: -1s;
  animation-duration: 7.5s;
}

@keyframes floatSticker {
  0% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-16px) rotate(3deg);
  }

  100% {
    transform: translateY(8px) rotate(-1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-teal);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 2px solid rgba(17, 153, 158, 0.25);
  animation: pulseBadge 3s infinite ease-in-out;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.hero-badge .pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

h1.hero-title {
  margin: 10px auto 5px auto;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7rem);
  color: var(--accent-teal);
  line-height: 1.15;
  letter-spacing: 1.5px;
  text-shadow: 3px 3px 0px rgba(17, 153, 158, 0.2);
  animation: floatTitle 4s infinite ease-in-out alternate;
}

@keyframes floatTitle {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

h2.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--primary-teal);
  font-weight: 500;
  margin-bottom: 25px;
  min-height: 1.4em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stable Underline with zero vertical shift */
.typewriter-container {
  display: inline-block;
  border-bottom: 4px solid var(--accent-teal);
  padding-bottom: 2px;
  min-width: 250px;
  text-align: left;
  line-height: 1.2;
}

.typewriter-word {
  font-weight: 800;
  color: var(--text-dark);
  display: inline;
}

/* Hero Animated Workstation Art */
.hero-illustration {
  margin: 30px auto 10px auto;
  max-width: 500px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  max-height: 300px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.1));
  transition: var(--transition-bounce);
}

.hero-illustration:hover svg {
  transform: translateY(-8px) scale(1.02);
}

/* Steam Rise Animation */
@keyframes steamRise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-8px) scaleX(1.3);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-16px) scaleX(0.8);
    opacity: 0;
  }
}

.steam-1 {
  animation: steamRise 2.5s infinite ease-out;
}

.steam-2 {
  animation: steamRise 2.5s infinite 1.25s ease-out;
}

/* Blinking Terminal Cursor */
@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.term-cursor {
  animation: blinkCursor 1s infinite;
}

/* Pulsing AI Neural Graph Nodes */
@keyframes pulseNode {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(17, 153, 158, 0.6));
  }

  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
  }
}

.ai-pulse-node {
  transform-origin: center;
  animation: pulseNode 3s infinite ease-in-out alternate;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  background: #11cdd4;
  background-image: linear-gradient(to bottom, #11cdd4, #11999e);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 18px rgba(17, 205, 212, 0.4);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn:hover {
  background: #3cb0fd;
  background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.5);
  transform: translateY(-3px) scale(1.02);
  color: #FFFFFF;
}

.btn-secondary {
  background: #FFFFFF;
  background-image: none;
  color: var(--primary-teal) !important;
  border: 2.5px solid var(--primary-teal);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--light-teal);
  background-image: none;
  color: var(--primary-teal) !important;
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
}

/* --- MIDDLE CONTAINER --- */
.middle-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 80px 24px;
  text-align: center;
}

/* Section Titles */
h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 2.75rem);
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h3 {
  font-family: var(--font-heading);
  color: var(--primary-teal);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  color: var(--text-main);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Signature Dotted Divider */
hr.dotted-divider {
  border-style: dotted none none none;
  border-top-width: 14px;
  width: 100px;
  border-color: var(--accent-teal);
  margin: 75px auto;
  opacity: 0.55;
}

/* --- PROFILE & HELLO SECTION --- */
.profile {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.profile-pic-container {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  cursor: pointer;
}

.profile-pic-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #FFE15D 0%, #11999E 50%, #66BFBF 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateRing 12s linear infinite;
  transition: var(--transition-bounce);
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.profile-pic {
  height: 204px;
  width: 204px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid #FFFFFF;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition-bounce);
  animation: counterRotate 12s linear infinite;
}

@keyframes counterRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.profile-pic-container:hover .profile-pic-ring {
  transform: scale(1.06);
  box-shadow: 0 20px 40px rgba(17, 153, 158, 0.25);
}

.profile-pic-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, #11999E, #0d7a7e);
  color: #FFFFFF;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  border: 3.5px solid #FFFFFF;
  animation: pulseBadge 2.5s infinite;
  user-select: none;
}

.profile h2 {
  color: var(--primary-teal);
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.profile p {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.profile-highlight {
  font-weight: 700;
  color: var(--primary-teal);
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px auto 10px auto;
  max-width: 780px;
}

.metric-box {
  background-color: var(--light-teal);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  border: 2px solid var(--soft-teal);
  transition: var(--transition-smooth);
}

.metric-box:hover {
  transform: translateY(-6px);
  background-color: #DEF4F4;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* --- SKILLS SECTION (ALTERNATING STORYTELLING ROWS) --- */
.skills {
  margin: 0 auto;
}

.skill-row {
  width: 92%;
  max-width: 860px;
  margin: 50px auto;
  text-align: left;
  line-height: 1.9;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.skill-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: var(--primary-teal);
  transition: width 0.3s ease;
}

.skill-row:hover::after {
  width: 10px;
}

.skill-row:nth-child(2)::after {
  background-color: var(--color-plivo);
}

.skill-row:nth-child(3)::after {
  background-color: var(--color-bidgely);
}

.skill-row:nth-child(4)::after {
  background-color: var(--color-purple);
}

.skill-row:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-teal);
  transform: translateY(-5px);
}

.skill-row-left {
  flex-direction: row;
}

.skill-row-right {
  flex-direction: row-reverse;
}

.skill-icon-wrapper {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  background-color: var(--light-teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px dashed var(--accent-teal);
  transition: var(--transition-bounce);
}

.skill-row:hover .skill-icon-wrapper {
  transform: scale(1.12) rotate(6deg);
  background-color: #DEF4F4;
}

.skill-icon-wrapper .icon-emoji {
  font-size: 3.2rem;
  user-select: none;
}

.skill-content {
  flex: 1;
}

.skill-content h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-content p {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 14px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--light-teal);
  color: var(--primary-teal);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--soft-teal);
  transition: var(--transition-smooth);
}

.tech-pill:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- CREATIVE VERTICAL TIMELINE EXPERIENCE VIEW (NO JERK) --- */
.experience-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.experience-section h2 {
  text-align: center;
}

.timeline-container {
  position: relative;
  margin: 50px auto 20px auto;
  padding: 20px 0;
}

/* Connected Vertical Spine Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 32px;
  width: 4px;
  background: linear-gradient(180deg, var(--color-bidgely) 0%, var(--color-plivo) 45%, var(--color-optum) 90%);
  border-radius: 4px;
}

.timeline-milestone {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

/* Milestone Node Circle / Logo Marker */
.milestone-node {
  position: absolute;
  left: 12px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 4px solid var(--color-bidgely);
  box-shadow: 0 0 0 4px var(--light-teal), var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
  transition: var(--transition-bounce);
}

.timeline-milestone:hover .milestone-node {
  transform: scale(1.2) rotate(8deg);
  box-shadow: 0 0 0 6px var(--soft-teal), var(--shadow-lg);
}

.node-bidgely {
  border-color: var(--color-bidgely);
  color: var(--color-bidgely);
}

.node-plivo {
  border-color: var(--color-plivo);
  color: var(--color-plivo);
}

.node-optum {
  border-color: var(--color-optum);
  color: var(--color-optum);
}

/* Timeline Card (Steady in place with zero sideways jerk) */
.timeline-card {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-milestone:hover .timeline-card {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-company-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.timeline-company-title a {
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px dashed var(--primary-teal);
}

.timeline-company-title a:hover {
  color: var(--accent-teal);
  border-bottom-style: solid;
}

.timeline-badge-date {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  background-color: var(--light-teal);
  color: var(--primary-teal);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--soft-teal);
}

.timeline-location {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-accordion {
  margin-top: 14px;
}

.timeline-accordion summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-teal);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light-teal);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: var(--transition-smooth);
}

.timeline-accordion summary:hover {
  background-color: #DEF4F4;
}

.timeline-accordion summary::-webkit-details-marker {
  display: none;
}

.timeline-accordion summary::after {
  content: '▾';
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.timeline-accordion[open] summary::after {
  transform: rotate(180deg);
}

.timeline-bullets {
  list-style: none;
  margin-top: 16px;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-main);
}

.timeline-bullets li::before {
  content: '⚡';
  position: absolute;
  left: 2px;
  top: 1px;
  font-size: 0.9rem;
}

/* --- TECHNICAL HIGHLIGHTS / PROJECTS SECTION --- */
.projects-section {
  max-width: 880px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
  text-align: left;
}

.project-card {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--primary-teal);
}

.project-card:nth-child(2)::before {
  background-color: var(--color-purple);
}

.project-card:nth-child(3)::before {
  background-color: var(--color-optum);
}

.project-card:nth-child(4)::before {
  background-color: var(--color-bidgely);
}

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

.project-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: var(--transition-bounce);
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(8deg);
}

.project-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 800;
}

.project-card p {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tag {
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background-color: var(--light-teal);
  color: var(--primary-teal);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.project-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--accent-teal);
  transform: translateX(4px);
}

/* --- CONTACT SECTION ("GET IN TOUCH") --- */
.contact-me {
  max-width: 720px;
  margin: 60px auto 20px auto;
  text-align: center;
}

.contact-me h2 {
  color: var(--accent-teal);
}

.contact-me h3 {
  color: var(--primary-teal);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-card {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
  margin-top: 30px;
  text-align: left;
}

.contact-methods-tray {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: var(--light-teal);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-teal);
  border: 1.5px solid var(--soft-teal);
  transition: var(--transition-smooth);
}

.contact-method-pill:hover {
  background-color: #DEF4F4;
  transform: translateY(-3px);
  color: var(--primary-teal);
  box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FAFCFC;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-teal);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(17, 153, 158, 0.18);
}

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

/* --- WAVE HORIZON TRANSITION --- */
.footer-wave-container {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background-color: var(--body-bg);
  margin-top: 40px;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 55px;
}

/* --- BOTTOM CONTAINER (FOOTER) --- */
.bottom-container {
  background-color: var(--footer-bg);
  padding: 10px 20px 48px 20px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Live Status & Local Time Pill */
.footer-status-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.footer-status-card:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

.status-divider {
  opacity: 0.6;
}

.status-time {
  letter-spacing: 0.5px;
  color: #FFE15D;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 105px;
}

/* Tactile Footer Social Pills Dock */
.footer-links-dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-pill {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-teal) !important;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer-pill:hover {
  background-color: #FFFFFF;
  color: var(--accent-teal) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.back-to-top-pill {
  background: linear-gradient(135deg, #FFE15D 0%, #FFD43B 100%);
  color: var(--text-dark) !important;
  border-color: rgba(214, 158, 46, 0.3);
}

.back-to-top-pill:hover {
  color: var(--text-dark) !important;
  background: #FFE15D;
}

.back-to-top-pill:hover .rocket-icon {
  display: inline-block;
  animation: rocketLaunch 0.5s ease infinite alternate;
}

@keyframes rocketLaunch {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-4px) rotate(-18deg);
  }
}

/* Footer Tagline & Note */
.footer-tagline {
  color: #EAF6F6;
  font-size: 0.92rem;
  margin-top: 6px;
  font-weight: 500;
}

.footer-tagline .tagline-coffee,
.footer-tagline .tagline-ai {
  font-weight: 700;
  color: #FFFFFF;
}

/* --- BLOG & ARTICLE PAGES --- */
.blog-section {
  padding: 40px 0;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 36px;
}

.blog-card {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-lg);
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-pill {
  background-color: var(--light-teal);
  color: var(--primary-teal);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.blog-read-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-card-title {
  font-size: 1.22rem;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.blog-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.blog-card-title a:hover {
  color: var(--primary-teal);
}

.blog-card-excerpt {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(17, 153, 158, 0.2);
}

.blog-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.read-more-btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.read-more-btn span {
  transition: transform 0.2s ease;
}

.read-more-btn:hover span {
  transform: translateX(4px);
}

/* Blog Archive Controls */
.blog-hero-header {
  padding: 120px 20px 50px 20px;
}

.blog-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
  background: var(--light-teal);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--soft-teal);
}

.blog-tag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-filter-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--soft-teal);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tag-filter-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.tag-filter-btn.active {
  background: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
}

.blog-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--soft-teal);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  flex: 1;
  max-width: 380px;
}

.blog-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: transparent;
}

/* Article Reader Page */
.article-container {
  max-width: 820px;
  margin: 110px auto 60px auto;
  padding: 0 20px;
}

.article-breadcrumb {
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.back-link:hover {
  transform: translateX(-3px);
}

.article-header {
  margin-bottom: 40px;
  text-align: left;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-tag {
  background-color: var(--light-teal);
  color: var(--primary-teal);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.article-read-time {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 6px;
}

.article-title {
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-teal);
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.author-role {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text-main);
  text-align: left;
}

.article-body h2 {
  font-size: 1.65rem;
  margin: 40px 0 16px 0;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.callout-card {
  background: var(--light-teal);
  border-left: 4px solid var(--primary-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.code-block {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 880px) {
  .navbar-wrapper {
    top: 12px;
    padding: 0 12px;
  }

  .floating-dock {
    width: 100%;
    justify-content: space-between;
    padding: 6px 10px;
  }

  .dock-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
  }

  .dock-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .dock-menu .dock-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .floating-sticker {
    display: none;
    /* Hide floating stickers on small screens to prevent overlap */
  }

  .top-container {
    padding: 95px 16px 60px 16px;
  }

  .skill-row {
    width: 100%;
    padding: 30px 24px;
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

  .skill-content h3 {
    justify-content: center;
  }

  .tech-pills {
    justify-content: center;
  }

  /* Mobile Timeline Adaptation */
  .timeline-container::before {
    left: 20px;
  }

  .timeline-milestone {
    padding-left: 55px;
  }

  .milestone-node {
    left: 2px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

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

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-cloud,
  .bottom-cloud,
  .small-cloud {
    opacity: 0.35;
    width: 110px;
  }
}

@media (max-width: 500px) {
  .top-container {
    padding: 85px 16px 50px 16px;
  }

  .middle-container {
    padding: 40px 16px 60px 16px;
  }

  .dock-resume-btn,
  .dock-cta-btn {
    padding: 6px 11px;
    font-size: 0.8rem;
  }

  .profile-pic-ring {
    width: 180px;
    height: 180px;
  }

  .profile-pic {
    height: 166px;
    width: 166px;
  }

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

  .contact-card {
    padding: 24px 18px;
  }

  .footer-links-dock {
    gap: 8px;
  }

  .footer-pill {
    padding: 7px 13px;
    font-size: 0.82rem;
  }
}

/* --- NARROW PHONE BREAKPOINT (≤ 393px: SE, 12 Pro, S8+) ---
   At these widths the full text labels overflow the navbar.
   Collapse Resume / Say Hi to icon-only pills and shrink the
   inactive mode pill to icon-only to save space.                */
@media (max-width: 393px) {

  /* Hide text labels from Resume + Say Hi — icon only */
  .btn-label {
    display: none;
  }

  /* Shrink Resume into a compact icon pill */
  .dock-resume-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 50%;
  }

  /* Shrink Say Hi into a compact icon pill */
  .dock-cta-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
    border-radius: 50%;
  }

  /* Also collapse the INACTIVE mode pill text to icon-only */
  .mode-pill:not(.active) .mode-text {
    display: none;
  }

  .mode-pill:not(.active) {
    width: 32px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  /* Tighten dock-actions gap */
  .dock-actions {
    gap: 5px;
  }
}