/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & TACTILE STYLES
   ========================================================================== */

:root {
  /* Light Theme (Default - matching screenshots) */
  --bg: #f8f8f6;
  --bg-pattern-dot: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --card-bg-subtle: #fafafa;
  --card-border: rgba(0, 0, 0, 0.07);
  --card-border-hover: rgba(0, 0, 0, 0.14);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 16px 36px -6px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);

  --text-primary: #121214;
  --text-secondary: #52525b;
  --text-muted: #8e8e93;

  --accent-blue: #0066ff;
  --accent-blue-subtle: rgba(0, 102, 255, 0.08);

  --button-bg: #ffffff;
  --button-border: rgba(0, 0, 0, 0.12);
  --button-text: #1a1a1a;
  --button-hover-bg: #f5f5f5;
  --button-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --dock-bg: rgba(255, 255, 255, 0.82);
  --dock-border: rgba(0, 0, 0, 0.08);
  --dock-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  --dock-active-border: rgba(0, 102, 255, 0.25);
  --dock-text: #64748b;
  --dock-active-text: #0066ff;

  --input-bg: #fcfcfc;
  --input-border: rgba(0, 0, 0, 0.1);

  --font-serif: 'Playfair Display', 'Instrument Serif', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', Roboto, Helvetica, Arial, sans-serif;

  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  --divider-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg: #0e0e11;
  --bg-pattern-dot: rgba(255, 255, 255, 0.09);
  --card-bg: #16161a;
  --card-bg-subtle: #1c1c21;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.45), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 48px -6px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.4);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-blue: #3b82f6;
  --accent-blue-subtle: rgba(59, 130, 246, 0.15);

  --button-bg: #1f1f24;
  --button-border: rgba(255, 255, 255, 0.12);
  --button-text: #f4f4f5;
  --button-hover-bg: #27272e;
  --button-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --dock-bg: rgba(16, 16, 20, 0.8);
  --dock-border: rgba(255, 255, 255, 0.12);
  --dock-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.7), 0 6px 18px -3px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  --dock-active-border: rgba(56, 189, 248, 0.42);
  --dock-text: #94a3b8;
  --dock-active-text: #38bdf8;

  --input-bg: #121215;
  --input-border: rgba(255, 255, 255, 0.1);

  --divider-color: rgba(255, 255, 255, 0.07);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Dot Grid Background with Subtle Paper Texture */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(var(--bg-pattern-dot) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 140px 20px;
}

/* Tab Views */
.tab-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PROFILE HERO SECTION — ADVANCED LUXURY ANIMATIONS
   ========================================================================== */
@property --avatar-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinAvatarBeam {
  0% {
    --avatar-beam-angle: 0deg;
  }
  100% {
    --avatar-beam-angle: 360deg;
  }
}

.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 24px;
  cursor: pointer;
  perspective: 700px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Floating micro-bobbing */
.avatar-float {
  animation: avatarGentleFloat 5s ease-in-out infinite;
}

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

/* Ambient Breathing Aura */
.avatar-glow-ambient {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(129, 140, 248, 0.28) 48%, transparent 72%);
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
  animation: avatarAuraPulse 4.2s ease-in-out infinite alternate;
  opacity: 0.75;
}

[data-theme="dark"] .avatar-glow-ambient {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.6) 0%, rgba(129, 140, 248, 0.4) 45%, transparent 72%);
  filter: blur(26px);
  opacity: 0.95;
}

@keyframes avatarAuraPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.14);
    opacity: 0.95;
    filter: blur(28px);
  }
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
}

/* 360° Luminescent Rotating Border Beam Ring */
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: 2;
  padding: 3px;
  background: conic-gradient(
    from var(--avatar-beam-angle, 0deg),
    transparent 0deg,
    transparent 200deg,
    rgba(56, 189, 248, 0.3) 260deg,
    rgba(56, 189, 248, 0.85) 310deg,
    #38bdf8 340deg,
    #ffffff 352deg,
    #818cf8 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinAvatarBeam 4s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.avatar-container:hover .avatar-ring {
  animation-duration: 2.2s;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95));
}

.avatar-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 3;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16), 0 0 0 1.5px rgba(255, 255, 255, 0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  background-color: var(--card-bg);
}

[data-theme="dark"] .avatar-wrapper {
  box-shadow: 0 14px 35px -4px rgba(0, 0, 0, 0.5), 0 0 0 1.5px rgba(255, 255, 255, 0.15);
}

.avatar-container:hover .avatar-wrapper {
  transform: scale(1.05);
  box-shadow: 0 22px 44px -4px rgba(0, 0, 0, 0.28), 0 0 0 2.5px var(--accent-blue);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.avatar-container:hover .avatar-img {
  transform: scale(1.06);
}

/* Multi-Wave High-Tech Radar Pulse Badge */
.status-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 35% 35%, #34d399, #059669);
  border: 3.5px solid var(--card-bg);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .status-badge {
  border-color: #18181b;
}

.status-badge:hover {
  transform: scale(1.3);
}

.status-badge::before,
.status-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  pointer-events: none;
  animation: radarWave 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.status-badge::after {
  animation-delay: 1.4s;
}

@keyframes radarWave {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }
  60% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Holographic Shimmer Profile Name */
.profile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.3s ease;
}

.profile-name:hover {
  transform: translateY(-2px) scale(1.02);
}

.profile-name-shimmer {
  background: linear-gradient(
    115deg,
    var(--text-primary) 0%,
    var(--text-primary) 36%,
    #38bdf8 46%,
    #ffffff 50%,
    #818cf8 54%,
    var(--text-primary) 65%,
    var(--text-primary) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nameShimmerSweep 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes nameShimmerSweep {
  0%, 65% {
    background-position: 100% 0;
  }
  85%, 100% {
    background-position: 0% 0;
  }
}

.profile-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.55;
  transition: color 0.3s ease, transform 0.3s ease;
}

.profile-bio:hover {
  color: var(--text-primary);
}

.profile-bio .highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

/* ==========================================================================
   BUTTONS (Tactile 3D Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: var(--button-shadow);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: scale(1.1);
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* Hero Action Buttons — Tactile Sheen & Micro-Bounce */
.hero-actions .btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .hero-actions .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Diagonal Sheen Beam Reflection Sweep */
.hero-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

[data-theme="dark"] .hero-actions .btn::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
}

.hero-actions .btn:hover::before {
  left: 170%;
  transition: left 0.75s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px -4px rgba(56, 189, 248, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--text-primary);
}

.hero-actions .btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.25s ease;
}

.hero-actions .btn:hover svg {
  transform: translateY(-1.5px) rotate(-8deg) scale(1.2);
  stroke: var(--accent-blue);
}

/* ==========================================================================
   CARDS & TACTILE CONTAINERS (Screenshots 1, 2, 3)
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 36px;
}

.section-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.section-link:hover {
  color: var(--text-primary);
}

/* 3D Tilt Card Base */
.tactile-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.tactile-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* Card Glare effect layer */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 70%);
  z-index: 2;
}

[data-theme="dark"] .card-glare {
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 70%);
}

.tactile-card:hover .card-glare {
  opacity: 1;
}

/* Featured Project Card (Screenshot 1) */
.project-card-featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
}

.project-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.project-thumb {
  width: 140px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

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

.tactile-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   EXPERIENCE & AWARDS LIST (Screenshot 2)
   ========================================================================== */
.card-inner-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--divider-color);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.timeline-role {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.external-icon {
  width: 13px;
  height: 13px;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.timeline-item:hover .external-icon {
  transform: translate(2px, -2px);
  stroke: var(--text-primary);
}

.timeline-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   ANIMATED BORDER BEAM (360-DEGREE FULL PERIMETER GLOWING LINE)
   ========================================================================== */
.border-beam-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 1.5px;
  /* Thickness of glowing perimeter line */
  background: var(--card-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

/* Continuous 360-degree rotating laser beam around entire card */
.border-beam-card::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(transparent 0deg,
      transparent 280deg,
      rgba(56, 189, 248, 0.2) 305deg,
      rgba(56, 189, 248, 0.7) 330deg,
      #38bdf8 348deg,
      #ffffff 355deg,
      #818cf8 358deg,
      transparent 360deg);
  animation: spinBorderBeam 5.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Inner card covering the interior */
.border-beam-inner {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border-radius: calc(var(--radius-card) - 1.5px);
  padding: 24px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

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

/* Ambient glow around card */
.border-beam-card:hover {
  box-shadow:
    var(--card-shadow-hover),
    0 0 32px -4px rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .border-beam-card {
  box-shadow:
    var(--card-shadow),
    0 0 22px -4px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .border-beam-card:hover {
  box-shadow:
    var(--card-shadow-hover),
    0 0 40px -2px rgba(56, 189, 248, 0.45);
}

/* ==========================================================================
   ROTATING BORDER BEAM ANIMATION FOR OTHER SECTIONS (LIKE STACK)
   ========================================================================== */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBeamAngle {
  0% {
    --beam-angle: 0deg;
  }
  100% {
    --beam-angle: 360deg;
  }
}

.experience-card,
.newsletter-box,
.about-grand-photo-card,
.about-card,
.project-card,
.blog-item {
  position: relative;
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    conic-gradient(
      from var(--beam-angle, 0deg),
      transparent 0deg,
      transparent 270deg,
      rgba(56, 189, 248, 0.25) 300deg,
      rgba(56, 189, 248, 0.8) 330deg,
      #38bdf8 348deg,
      #ffffff 355deg,
      #818cf8 358deg,
      transparent 360deg
    ) border-box !important;
  border: 1.5px solid transparent !important;
  animation: spinBeamAngle 6s linear infinite;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
}

.experience-card:hover,
.newsletter-box:hover,
.about-grand-photo-card:hover,
.about-card:hover,
.project-card:hover,
.blog-item:hover {
  box-shadow:
    var(--card-shadow-hover),
    0 0 28px -4px rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .experience-card,
[data-theme="dark"] .newsletter-box,
[data-theme="dark"] .about-grand-photo-card,
[data-theme="dark"] .about-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .blog-item {
  box-shadow:
    var(--card-shadow),
    0 0 18px -4px rgba(56, 189, 248, 0.18);
}

[data-theme="dark"] .experience-card:hover,
[data-theme="dark"] .newsletter-box:hover,
[data-theme="dark"] .about-grand-photo-card:hover,
[data-theme="dark"] .about-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .blog-item:hover {
  box-shadow:
    var(--card-shadow-hover),
    0 0 36px -2px rgba(56, 189, 248, 0.42);
}

/* Stagger beam animation timings across different cards */
.experience-card:nth-of-type(1) { animation-delay: -1.2s; }
.experience-card:nth-of-type(2) { animation-delay: -3.5s; }
.newsletter-box { animation-delay: -2.1s; }
.about-grand-photo-card { animation-delay: 0s; }
.about-story-card { animation-delay: -2.7s; }
.about-card:nth-of-type(2) { animation-delay: -4.2s; }
.about-connect-card { animation-delay: -1.5s; }

/* Infinite Marquee Carousel Container */
.stack-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 16px 0;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.stack-carousel-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 26s linear infinite;
  will-change: transform;
}

.stack-carousel-track:hover {
  animation-play-state: paused;
}

.stack-carousel-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* Unique Tactile 3D Stack Tile */
.stack-tile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 82px;
  min-width: 78px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.03);
  user-select: none;
}

[data-theme="dark"] .stack-tile-card {
  background: #19191e;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.stack-tile-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}

.stack-tile-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stack-tile-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

/* Hover & 3D Lift with dynamic brand underglow */
.stack-tile-card:hover {
  transform: translateY(-8px) scale(1.08);
  border-color: var(--tile-color, var(--accent-blue));
  box-shadow:
    0 12px 24px -4px rgba(0, 0, 0, 0.12),
    0 0 18px var(--tile-glow, rgba(56, 189, 248, 0.35)),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stack-tile-card:hover {
  box-shadow:
    0 14px 28px -4px rgba(0, 0, 0, 0.6),
    0 0 22px var(--tile-glow, rgba(56, 189, 248, 0.45)),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stack-tile-card:hover .stack-tile-icon {
  transform: scale(1.14);
}

.stack-tile-card:hover .stack-tile-name {
  color: var(--text-primary);
}

.stack-tile-card:active {
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   NEWSLETTER / TECH BLOG (Screenshot 3)
   ========================================================================== */
.newsletter-card {
  padding: 24px;
}

.newsletter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.newsletter-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.newsletter-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-subtle);
}

.newsletter-btn {
  height: 44px;
  padding: 0 20px;
  background: #52525b;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background: #3f3f46;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .newsletter-btn {
  background: #3f3f46;
}

[data-theme="dark"] .newsletter-btn:hover {
  background: #52525b;
}

/* ==========================================================================
   SOCIAL LINKS ROW (Screenshot 3)
   ========================================================================== */
.social-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.social-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.social-tile:hover {
  color: var(--text-primary);
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.social-tile svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ==========================================================================
   PROJECTS PAGE VIEW (Screenshot 4)
   ========================================================================== */
.page-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-grid-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  cursor: pointer;
}

.project-grid-card.full-width {
  grid-column: 1 / -1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-meta-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-grid-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.project-grid-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: gap 0.2s ease;
}

.project-grid-card:hover .project-read-more {
  gap: 10px;
  color: var(--accent-blue);
}

/* ==========================================================================
   BLOG PAGE VIEW (Screenshot 5)
   ========================================================================== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  padding: 24px;
  cursor: pointer;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT PAGE VIEW (GRAND SPOTLIGHT PHOTO ONLY)
   ========================================================================== */
.about-grand-photo-card {
  padding: 12px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-grand-photo-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.about-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo-wrapper.grand-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg-subtle);
  cursor: pointer;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.16);
  user-select: none;
}

.about-big-photo.grand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.about-photo-wrapper.grand-wrapper:hover .about-big-photo.grand-photo {
  transform: scale(1.035);
}

/* Floating Glass Badges on Grand Photo */
.about-photo-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
  pointer-events: none;
}

.about-status-badge {
  top: 14px;
  left: 14px;
  background: rgba(18, 18, 22, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.about-location-badge {
  bottom: 14px;
  left: 14px;
  background: rgba(18, 18, 22, 0.82);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Animated Emerald Pulse Dot */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  animation: pulseEmerald 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseEmerald {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Hover Zoom Hint */
.about-photo-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.about-photo-wrapper.grand-wrapper:hover .about-photo-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Identity & Intro Card */
.about-intro-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-card);
}

.about-eyebrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.about-tag-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--card-bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  text-transform: uppercase;
}

.about-tag-pill.accent {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border-color: rgba(0, 102, 255, 0.2);
}

.about-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.about-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Metrics Strip */
.about-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-item {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 4px;
  font-weight: 600;
}

.about-lead-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Language Badges Strip */
.about-lang-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.lang-badge small {
  color: var(--text-muted);
  font-weight: 400;
}

/* General About Card Styles */
.about-card {
  padding: 28px;
  border-radius: var(--radius-card);
}

.card-inner-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.about-p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-p:last-child {
  margin-bottom: 0;
}

/* Engineering Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}

.principle-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.principle-box:hover {
  border-color: var(--card-border-hover);
  transform: translateX(3px);
  background: var(--card-bg);
}

.principle-icon {
  font-size: 1.35rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .principle-icon {
  background: #1c1c22;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.principle-content h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.principle-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Skills Tags */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skill-tag {
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -2px rgba(0, 102, 255, 0.15);
}

/* Connect Action Hub */
.about-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.connect-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

/* Responsive Breakpoints for Grand Photo & About Page */
@media (max-width: 640px) {
  .about-photo-wrapper.grand-wrapper {
    height: 380px;
  }

  .about-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-connect-actions {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .about-photo-wrapper.grand-wrapper {
    height: 320px;
  }
}

/* ==========================================================================
   FLOATING DOCK (Screenshots 1, 2, 3, 4, 5)
   ========================================================================== */
.dock-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--dock-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--dock-border);
  border-radius: 34px;
  padding: 5px 8px;
  box-shadow: var(--dock-shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

/* Ambient glow around dock in dark mode */
[data-theme="dark"] .dock-container {
  box-shadow: 
    0 24px 55px -10px rgba(0, 0, 0, 0.75),
    0 4px 20px -2px rgba(56, 189, 248, 0.12),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 52px;
  padding: 5px 12px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--dock-text);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
  outline: none;
  overflow: visible;
}

.dock-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  margin-bottom: 2px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease, filter 0.2s ease;
}

.dock-item span {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover state */
.dock-item:hover {
  transform: translateY(-3px) scale(1.08);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .dock-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dock-item:hover svg {
  transform: translateY(-1.5px) scale(1.12);
  stroke: var(--text-primary);
}

/* Active state — Soft Glowing Glass Capsule (No boxy harsh border) */
.dock-item.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid var(--dock-active-border);
  color: var(--dock-active-text);
  box-shadow: 0 4px 14px -2px rgba(0, 102, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .dock-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(99, 102, 241, 0.16) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 4px 18px -2px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.dock-item.active svg {
  stroke: var(--dock-active-text);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

[data-theme="light"] .dock-item.active svg {
  filter: drop-shadow(0 0 4px rgba(0, 102, 255, 0.3));
}

/* Glowing active micro-dot underneath */
.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dock-active-text);
  box-shadow: 0 0 6px var(--dock-active-text);
  animation: activeDotGlow 2.5s ease-in-out infinite alternate;
}

@keyframes activeDotGlow {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px var(--dock-active-text);
  }
}

/* Divider with top & bottom fade */
.dock-divider {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent 0%, var(--divider-color) 25%, var(--divider-color) 75%, transparent 100%);
  margin: 0 3px;
}

/* Theme toggle button specific styling */
#theme-toggle-btn {
  border-radius: 22px;
}

#theme-toggle-btn:hover #theme-icon {
  transform: rotate(45deg) scale(1.15);
  stroke: #f59e0b;
}

[data-theme="dark"] #theme-toggle-btn:hover #theme-icon {
  transform: rotate(-30deg) scale(1.15);
  stroke: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

#theme-toggle-btn:active #theme-icon {
  transform: rotate(180deg) scale(0.9);
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 28px;
  position: relative;
}

.modal-overlay.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--button-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.08);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: var(--text-primary);
  color: var(--card-bg);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS FOR MOBILE
   ========================================================================== */
@media (max-width: 520px) {
  .page-wrapper {
    padding: 32px 16px 120px 16px;
  }

  .project-card-featured {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .project-card-left {
    width: 100%;
    align-items: center;
  }

  .project-thumb {
    width: 90px;
    height: 64px;
  }

  .dock-container {
    bottom: 14px;
    padding: 4px 6px;
    border-radius: 28px;
  }

  .dock-item {
    min-width: 48px;
    height: 46px;
    padding: 2px 4px;
  }

  .dock-item span {
    font-size: 0.65rem;
  }

  .profile-name {
    font-size: 2.4rem;
  }
}