/*
 * Cyber-Cosmic Gradient Portfolio CSS
 * Floating Capsule Pill Dock (Image 1 & 2), Dual-Card Mechanics & Rich Animations
 */

:root {
  --primary: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --primary-light: #a855f7;
  --primary-dark: #7c3aed;
  --secondary: #06b6d4;
  --accent-pink: #ec4899;
  --dark: #ffffff;
  --text-muted: #cbd5e1;
  --text-body: #e2e8f0;
  --card-bg: rgba(18, 22, 38, 0.94);
  --dock-bg: rgba(13, 16, 26, 0.92);
}

/* ==========================================================================
   1. Dynamic Cyber-Cosmic Gradient Background & Floating Orbs
   ========================================================================== */

.background.gradient {
  background: 
    radial-gradient(ellipse 90% 90% at 15% 15%, rgba(99, 102, 241, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 85% 85%, rgba(168, 85, 247, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 65% 65% at 50% 45%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
    linear-gradient(140deg, #060812 0%, #0c1024 35%, #15112e 70%, #05060e 100%);
  position: fixed;
  overflow: hidden;
  max-width: 100vw;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  bottom: -320px;
  animation: squareFloat 45s infinite linear;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
}

.bg-bubbles li:nth-child(1) { left: 10%; width: 70px; height: 70px; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 140px; height: 140px; animation-delay: 2s; animation-duration: 32s; }
.bg-bubbles li:nth-child(3) { left: 25%; width: 60px; height: 60px; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 110px; height: 110px; animation-duration: 38s; }
.bg-bubbles li:nth-child(5) { left: 70%; width: 85px; height: 85px; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 220px; height: 220px; animation-delay: 3s; }
.bg-bubbles li:nth-child(7) { left: 32%; width: 280px; height: 280px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 45px; height: 45px; animation-delay: 15s; animation-duration: 65s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 25px; height: 25px; animation-delay: 2s; animation-duration: 75s; }
.bg-bubbles li:nth-child(10) { left: 90%; width: 260px; height: 260px; animation-delay: 18s; }

@keyframes squareFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(-1600px) rotate(600deg); opacity: 0; }
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #070913;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader .spinner {
  width: 50px;
  height: 50px;
  position: relative;
}

.preloader .double-bounce1,
.preloader .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.7;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounceSpinner 2.0s infinite ease-in-out;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
}

.preloader .double-bounce2 {
  animation-delay: -1.0s;
  background-color: var(--secondary);
}

@keyframes bounceSpinner {
  0%, 100% { transform: scale(0.0); }
  50% { transform: scale(1.0); }
}

/* ==========================================================================
   2. Base Page Structure
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  background: #070913;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   3. Navigation Dock (Pill Capsule - Image 1 & 2 Inspired)
   ========================================================================== */

.nav-dock {
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-container {
  display: flex;
  align-items: center;
  background: var(--dock-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(139, 92, 246, 0.25);
  border-radius: 9999px;
  position: relative;
}

.dock-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 16px;
}

.dock-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Active State: Glowing Violet/Purple Circular Pill (Like Image 1) */
.dock-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.85), 0 0 35px rgba(99, 102, 241, 0.45);
  transform: scale(1.1);
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.dock-btn.active .dock-icon {
  transform: scale(1.05);
}

/* Tooltips */
.dock-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  background: #0d101d;
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  z-index: 1002;
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   4. DESKTOP LAYOUT (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  .portfolio-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: min(600px, calc(100vh - 60px));
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
  }

  /* When opened, shift container so [Dock + Profile Card + Gap + Content Card] are symmetrically centered */
  .portfolio-container.opened {
    transform: translate(-448px, -50%);
  }

  /* Desktop Vertical Navigation Dock */
  .nav-dock {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
  }

  .dock-container {
    flex-direction: column;
    padding: 12px 8px;
    gap: 10px;
  }

  .dock-tooltip {
    left: 56px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
  }

  .dock-btn:hover .dock-tooltip {
    transform: translateY(-50%) translateX(0);
  }

  /* Desktop Profile Card */
  .card-started {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 11;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(124, 58, 237, 0.18);
  }

  .card-started .profile {
    padding: 175px 26px 26px 26px;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    background: transparent;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center; /* Perfectly centers profile photo and details */
  }

  .card-started .profile .slide {
    position: absolute;
    overflow: hidden;
    left: 0;
    top: 0;
    width: 100%;
    height: 260px;
    background-color: #151928;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 16px 16px 0 0;
  }

  .card-started .profile .slide:before,
  .card-started .profile .slide:after {
    content: '';
    position: absolute;
    left: -25%;
    bottom: -198px;
    width: 700px;
    height: 200px;
    background: #121626;
    transform: rotate(12deg);
  }

  .card-started .profile .slide:after {
    left: auto;
    right: -25%;
    transform: rotate(-6deg);
  }

  .card-started .profile .image {
    margin: 0 auto 8px auto; /* Strictly centered horizontally */
    position: relative;
    display: inline-block;
    width: 126px;
    height: 126px;
  }

  .card-started .profile .image:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
    border-radius: 100%;
    z-index: 1;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
  }

  .card-started .profile .image img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #141829;
    border-radius: 100%;
    z-index: 2;
  }

  .card-started .profile .title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
  }

  .card-started .profile .subtitle {
    text-align: center;
    width: 100%;
  }

  .card-started .profile .social {
    margin-top: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .card-started .profile .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 15px;
    transition: all 0.3s ease;
  }

  .card-started .profile .social a:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.5);
    border-color: transparent;
  }

  .card-started .profile .lnks {
    position: relative;
    width: calc(100% + 52px);
    margin-left: -26px;
    margin-bottom: -26px;
    display: flex;
    height: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  .card-started .profile .lnks .lnk {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
  }

  .card-started .profile .lnks .lnk:first-child {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card-started .profile .lnks .lnk:first-child:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45) 0%, rgba(139, 92, 246, 0.55) 100%);
  }

  .card-started .profile .lnks .lnk:last-child {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
  }

  .card-started .profile .lnks .lnk:last-child:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
  }

  /* Desktop Content Cards (.card-inner) with 24px Clean Margin Gap */
  .card-inner {
    padding: 0;
    position: absolute;
    overflow: hidden;
    left: calc(100% + 24px); /* Clean 24px visible margin gap between cards */
    top: 0;
    width: 520px;
    height: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(124, 58, 237, 0.15);
    transform-origin: center left;
    opacity: 0;
    visibility: hidden;
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .card-inner.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    pointer-events: auto;
  }

  .card-inner.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: 7;
    pointer-events: none;
  }

  @keyframes cardFadeInUp {
    0% {
      opacity: 0;
      transform: translateY(22px) scale(0.985);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes cardFadeOutUp {
    0% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(-18px) scale(0.985);
    }
  }

  .card-inner.animated.fadeInUp {
    animation: cardFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .card-inner.animated.fadeOutUp {
    animation: cardFadeOutUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .card-inner .card-wrap {
    padding: 30px 30px 60px 30px;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
  }

  .card-inner .card-wrap > .content {
    padding-bottom: 30px;
  }
}

/* Medium Desktop (1024px to 1199px) - Precision Proportional Sizing with 18px Gap */
@media (min-width: 1024px) and (max-width: 1199px) {
  .portfolio-container {
    width: 370px;
    height: min(580px, calc(100vh - 50px));
  }
  .portfolio-container.opened {
    transform: translate(-386px, -50%);
  }
  .nav-dock {
    left: -64px;
  }
  .card-inner {
    left: calc(100% + 18px); /* Clean 18px gap */
    width: 450px;
  }
  .card-inner .card-wrap {
    padding: 24px 24px 55px 24px;
  }
  .card-inner .card-wrap > .content {
    padding-bottom: 25px;
  }
}

/* ==========================================================================
   5. MOBILE & TABLET LAYOUT (max-width: 1023px)
   ========================================================================== */

@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .page {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .portfolio-container {
    margin: 0 auto !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 540px !important;
    height: auto !important;
    transform: none !important;
    padding: 24px 12px 110px 12px !important;
    box-sizing: border-box !important;
  }

  .portfolio-container.opened {
    transform: none !important;
    margin: 0 auto !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Fixed Bottom Navigation Dock on Mobile (User Request) */
  .nav-dock {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 24px);
    z-index: 1000;
  }

  .dock-container {
    flex-direction: row;
    padding: 6px 10px;
    gap: 6px;
    background: rgba(13, 16, 26, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(139, 92, 246, 0.3);
  }

  .dock-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .dock-tooltip {
    bottom: 54px;
    transform: translateY(4px);
  }

  .dock-btn:hover .dock-tooltip {
    transform: translateY(0);
  }

  /* Profile Card on Mobile */
  .card-started {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
  }

  .card-started:before,
  .card-started:after {
    display: none !important;
  }

  .card-started .profile {
    padding: 170px 18px 0 18px;
    height: auto;
    background: transparent;
    border-radius: 16px;
    text-align: center;
    position: relative;
  }

  .card-started .profile .slide {
    position: absolute;
    overflow: hidden;
    left: 0;
    top: 0;
    width: 100%;
    height: 220px;
    background-color: #151928;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 16px 16px 0 0;
  }

  .card-started .profile .slide:before,
  .card-started .profile .slide:after {
    content: '';
    position: absolute;
    left: -25%;
    bottom: -198px;
    width: 700px;
    height: 200px;
    background: #121626;
    transform: rotate(12deg);
  }

  .card-started .profile .slide:after {
    left: auto;
    right: -25%;
    transform: rotate(-6deg);
  }

  .card-started .profile .image {
    margin: 0 0 12px 0;
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
  }

  .card-started .profile .image:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
    border-radius: 100%;
    z-index: 1;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
  }

  .card-started .profile .image img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #141829;
    border-radius: 100%;
    z-index: 2;
  }

  .card-started .profile .title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
  }

  .card-started .profile .title span {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  .card-started .profile .subtitle {
    color: #e2e8f0 !important;
    font-size: 12px;
  }

  .card-started .profile .social {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .card-started .profile .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 14px;
  }

  .card-started .profile .lnks {
    position: relative;
    width: calc(100% + 36px);
    margin-left: -18px;
    margin-top: 24px;
    display: flex;
    height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  .card-started .profile .lnks .lnk {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .card-started .profile .lnks .lnk:first-child {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card-started .profile .lnks .lnk:last-child {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
  }

  /* Content Cards on Mobile (Stacked) */
  .card-inner {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    margin-bottom: 24px !important;
    transform: none !important;
    pointer-events: auto !important;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15) !important;
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .card-inner:before,
  .card-inner:after {
    display: none !important;
  }

  .card-inner .card-wrap {
    height: auto !important;
    overflow: visible !important;
    padding: 24px 18px !important;
  }
}

/* Extra small mobile screens (<= 380px) */
@media (max-width: 380px) {
  .dock-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .dock-container {
    gap: 4px;
    padding: 4px 8px;
  }
  .card-started .profile .lnks .lnk {
    font-size: 10px;
    gap: 4px;
  }
}

/* ==========================================================================
   6. Keyframe Animations & Components
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
}

.animated {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeOutUp {
  animation-name: fadeOutUp;
}

/* Card Wrap Scrollbar */
.card-inner .card-wrap::-webkit-scrollbar {
  width: 5px;
}
.card-inner .card-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.card-inner .card-wrap::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}
.card-inner .card-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* Section Title with glowing bubble badge */
.content .title {
  margin: 0 0 25px 0;
  padding: 0 0 10px 0;
  font-size: 19px;
  color: #ffffff;
  line-height: 19px;
  font-weight: 700;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content .title:before {
  content: '';
  position: absolute;
  left: -8px;
  top: -6px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45) 0%, rgba(6, 182, 212, 0.15) 100%);
  border-radius: 100%;
  z-index: 0;
}

/* ==========================================================================
   Typography & High-Contrast Readability
   ========================================================================== */

/* Profile Header Typography */
.profile-name {
  background: linear-gradient(135deg, #93c5fd 0%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.profile-role {
  color: #f1f5f9 !important;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 3px;
  letter-spacing: 0.1px;
}

.profile-company {
  color: #fb7185 !important; /* Vibrant high-contrast coral/rose that pops on dark theme */
  font-size: 13.5px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(251, 113, 133, 0.4);
  margin-bottom: 4px;
}

.profile-skills {
  color: #cbd5e1 !important; /* Crisp light silver with excellent legibility */
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Company, Experience & Status Badges */
.text-company {
  color: #fb7185 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(251, 113, 133, 0.3);
}

.status-available {
  color: #4ade80 !important;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
}

.exp-years {
  color: #fb7185 !important;
  font-weight: 700;
}

/* Content Cards Typography & Elements */
.card-inner p,
.card-inner .text-neutral-600,
.card-inner .text-neutral-500,
.card-inner .text-neutral-400 {
  color: #cbd5e1 !important;
  line-height: 1.65;
}

.card-inner .text-dark,
.card-inner strong {
  color: #ffffff !important;
  font-weight: 600;
}

.card-inner .bg-neutral-50 {
  background: rgba(26, 32, 54, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
}

.card-inner .border-neutral-100,
.card-inner .border-neutral-200 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Achievement Boxes */
.achievement-box {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 32, 54, 0.65);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.achievement-box:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(124, 58, 237, 0.25);
}

.achievement-box .achievement-icon {
  font-size: 24px;
  color: #c084fc;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-box .achievement-text {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
}

/* Service Item with soft icon glow */
.service-item-box {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 32, 54, 0.6);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item-box:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.25);
}

.service-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

/* Progress Bars */
.bg-neutral-200 {
  background: rgba(255, 255, 255, 0.08) !important;
}

.bg-primary {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* Timeline */
.border-l-2.border-primary\/25 {
  border-color: rgba(139, 92, 246, 0.35) !important;
}

.rounded-full.bg-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8) !important;
}

.ring-white {
  --tw-ring-color: #121626 !important;
}

/* Works Grid Box & Zoom Overlay */
.work-box-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 32, 54, 0.6);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.work-box-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
}

.work-box-item .image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.work-box-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-box-item:hover .image img {
  transform: scale(1.08);
}

.work-box-item .image .info {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(168, 85, 247, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-box-item:hover .image .info {
  opacity: 1;
}

.work-box-item .image .info .ion {
  font-size: 26px;
  color: #ffffff;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-box-item:hover .image .info .ion {
  transform: scale(1);
}

.work-box-item .text-dark {
  color: #f1f5f9 !important;
}

/* Contact Form */
#contact-form input,
#contact-form textarea {
  background: rgba(15, 20, 34, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #64748b !important;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.35) !important;
}

#contact-submit-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

#contact-submit-btn:hover {
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.7);
  transform: translateY(-2px);
}

/* Shooting star in Blog */
.star {
  position: fixed;
  width: 2px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 14, 0.94);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.3);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

/* ==========================================================================
   Project Details Popup Modal & Trigger Styles
   ========================================================================== */

.work-details-trigger {
  cursor: pointer;
  border-radius: 0 0 12px 12px;
  background: rgba(18, 23, 40, 0.65);
  transition: all 0.25s ease;
  user-select: none;
}

.work-details-trigger:hover {
  background: rgba(139, 92, 246, 0.14);
}

.work-details-trigger .font-semibold {
  color: #f1f5f9;
  transition: color 0.2s ease;
}

.work-details-trigger:hover .font-semibold {
  color: #a78bfa;
}

/* Project Details Popup Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.project-modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: min(88vh, 640px);
  background: linear-gradient(145deg, #131728 0%, #0a0d18 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(139, 92, 246, 0.3);
  padding: 20px 24px;
  color: #ffffff;
  z-index: 2;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.6) transparent;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .project-modal-card {
  transform: scale(1) translateY(0);
}

.project-modal-card::-webkit-scrollbar {
  width: 6px;
}

.project-modal-card::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.6);
  border-radius: 6px;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
}

.project-modal-close svg {
  display: block;
  stroke: #ffffff;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.project-modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.7);
}

.project-modal-close:hover svg {
  stroke: #fca5a5;
  transform: scale(1.15);
}

.project-modal-header {
  margin-bottom: 12px;
  padding-right: 42px;
}

.project-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
  margin-bottom: 6px;
}

.project-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.project-modal-preview {
  width: 100%;
  height: 185px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090c17;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-modal-body {
  margin-bottom: 16px;
}

.project-modal-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
}

.project-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.project-modal-btn.open-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.project-modal-btn.open-btn:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.7);
  transform: translateY(-2px);
}

.project-modal-btn.close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-modal-btn.close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@media (max-width: 640px) {
  .project-modal-card {
    padding: 18px;
    max-height: 88vh;
  }
  .project-modal-preview {
    height: 160px;
  }
  .project-modal-title {
    font-size: 16px;
  }
  .project-modal-desc {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .project-modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .project-modal-btn {
    width: 100%;
  }
}
