/* ----------------------------------------------------
   DESIGN SYSTEM & CUSTOM VARIABLES
---------------------------------------------------- */
:root {
  /* Colors */
  --bg-color: #080710;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  /* Theme Accents */
  --purple-glow: rgba(168, 85, 247, 0.5);
  --purple-solid: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.1);

  --pink-glow: rgba(236, 72, 153, 0.5);
  --pink-solid: #ec4899;
  --pink-bg: rgba(236, 72, 153, 0.1);

  --teal-glow: rgba(20, 184, 166, 0.5);
  --teal-solid: #14b8a6;
  --teal-bg: rgba(20, 184, 166, 0.1);

  /* Glassmorphism properties */
  --glass-bg: rgba(12, 10, 24, 0.55);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ----------------------------------------------------
   BASE STYLES & RESET
---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   BACKGROUND ELEMENTS (DYNAMIC GLOW & CANVAS)
---------------------------------------------------- */
#fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.15;
}

.orb-1 {
  top: 5%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--purple-solid) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float-orb-1 25s infinite alternate ease-in-out;
}

.orb-2 {
  bottom: 5%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal-solid) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float-orb-2 30s infinite alternate ease-in-out;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink-solid) 0%, rgba(0, 0, 0, 0) 70%);
  animation: float-orb-3 20s infinite alternate ease-in-out;
}

@keyframes float-orb-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(80px, 50px) scale(1.15);
  }
}

@keyframes float-orb-2 {
  0% {
    transform: translate(0, 0) scale(1.1);
  }

  100% {
    transform: translate(-100px, -60px) scale(0.9);
  }
}

@keyframes float-orb-3 {
  0% {
    transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
  }

  100% {
    transform: translate(-30%, -40%) scale(1.1) rotate(120deg);
  }
}

/* ----------------------------------------------------
   LAYOUT CONTAINER
---------------------------------------------------- */
.page-container {
  width: 100%;
  max-width: 480px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: card-appear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes card-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------
   BIO CARD (GLASSMORPHIC)
---------------------------------------------------- */
.bio-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 44px 32px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.bio-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(168, 85, 247, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Default Mobile Column display behaviors */
.profile-column,
.actions-column,
.profile-info-wrapper {
  display: contents;
}

/* Avatar Styling */
.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  transform: translateZ(30px);
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--teal-solid), var(--purple-solid), var(--pink-solid));
  z-index: -1;
  opacity: 0.65;
  filter: blur(8px);
  animation: profile-morph 8s ease-in-out infinite, profile-spin 15s linear infinite, glow-pulse-complex 4s infinite alternate ease-in-out;
}

@keyframes glow-pulse-complex {
  0% {
    opacity: 0.55;
    filter: blur(6px) brightness(0.9);
  }
  100% {
    opacity: 0.85;
    filter: blur(12px) brightness(1.2);
  }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3.5px solid transparent;
  background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
              linear-gradient(135deg, var(--teal-solid), var(--purple-solid), var(--pink-solid)) border-box;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 5px rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.55);
  animation: profile-morph 8s ease-in-out infinite, profile-spin 15s linear infinite;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease;
}

.avatar-container:hover .avatar-frame {
  box-shadow: 
    inset 0 2px 5px rgba(255, 255, 255, 0.25),
    0 15px 35px rgba(168, 85, 247, 0.25);
}

.avatar-img {
  width: 112%;
  height: 112%;
  position: absolute;
  top: -6%;
  left: -6%;
  object-fit: cover;
  animation: profile-morph 8s ease-in-out infinite, profile-spin-reverse 15s linear infinite;
  transform-origin: center;
}

.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #080710;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translateZ(45px);
  z-index: 10;
  animation: verified-bounce 1s ease-out 1.2s both, verified-wobble 4s ease-in-out infinite 2s;
}

@keyframes verified-bounce {
  0% {
    transform: translateZ(45px) scale(0);
  }
  60% {
    transform: translateZ(45px) scale(1.2);
  }
  100% {
    transform: translateZ(45px) scale(1);
  }
}

@keyframes verified-wobble {
  0%, 100% {
    transform: translateZ(45px) translateY(0);
  }
  50% {
    transform: translateZ(45px) translateY(-3px);
  }
}

@keyframes profile-morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 53% 47% 43% 57% / 51% 56% 44% 49%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    border-radius: 58% 42% 48% 52% / 45% 52% 48% 55%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes profile-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes profile-spin-reverse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}



/* Typography Details */
.card-header {
  text-align: center;
  transform: translateZ(20px);
}

.name {
  font-family: 'Oxanium', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(110deg, #38bdf8 25%, #a855f7 40%, #ffffff 50%, #38bdf8 60%, #a855f7 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
  animation: text-shine 6s linear infinite;
}

@keyframes text-shine {
  0% {
    background-position: 100% center;
  }
  100% {
    background-position: -100% center;
  }
}

.scramble-char {
  color: #38bdf8;
  -webkit-text-fill-color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink-solid);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.9;
}

.description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 92%;
  margin: 0 auto;
}

/* ----------------------------------------------------
   SOCIAL BUTTONS (GLASS BRAND-REVEAL TILES)
---------------------------------------------------- */
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px auto 28px auto;
  max-width: 244px;
  width: 100%;
  transform: translateZ(25px);
}

#social-gmail {
  order: 1;
}

#social-instagram {
  order: 2;
}

#social-facebook {
  order: 3;
}

#social-pinterest {
  order: 4;
}

#social-whatsapp {
  order: 5;
}

#social-linkedin {
  order: 6;
}

#social-x {
  order: 7;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Glass highlight / glare reflection */
.social-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: 3;
}

/* Brand Background Reveal (Sweeps from the bottom) */
.social-btn::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-color);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 4;
  /* Above the background reveal */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Hover Dynamics */
.social-btn:hover {
  color: #ffffff;
  border-color: var(--brand-glow-solid);
  transform: translateY(-5px) scale(1.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 10px 20px var(--brand-glow-shadow);
}

.social-btn:hover::before {
  transform: translateY(0);
}

.social-btn:hover svg {
  transform: scale(1.1) rotate(8deg);
  color: #ffffff;
}

/* Click Active State */
.social-btn:active {
  transform: translateY(-2px) scale(0.95);
  transition: all 0.1s ease;
}

/* Brand Definitions */
#social-gmail {
  --brand-color: linear-gradient(135deg, #ea4335, #c5221f);
  --brand-glow-solid: #ea4335;
  --brand-glow-shadow: rgba(234, 67, 53, 0.35);
}

#social-whatsapp {
  --brand-color: linear-gradient(135deg, #25D366, #128C7E);
  --brand-glow-solid: #25D366;
  --brand-glow-shadow: rgba(37, 211, 102, 0.35);
}

#social-instagram {
  --brand-color: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --brand-glow-solid: #e1306c;
  --brand-glow-shadow: rgba(225, 48, 108, 0.35);
}

#social-facebook {
  --brand-color: linear-gradient(135deg, #1877F2, #0e52b3);
  --brand-glow-solid: #1877F2;
  --brand-glow-shadow: rgba(24, 119, 242, 0.35);
}

#social-linkedin {
  --brand-color: linear-gradient(135deg, #0077b5, #005987);
  --brand-glow-solid: #0077b5;
  --brand-glow-shadow: rgba(0, 119, 181, 0.35);
}

#social-x {
  --brand-color: linear-gradient(135deg, #14171A, #000000);
  --brand-glow-solid: #ffffff;
  --brand-glow-shadow: rgba(255, 255, 255, 0.15);
}

#social-pinterest {
  --brand-color: linear-gradient(135deg, #BD081C, #8a0614);
  --brand-glow-solid: #BD081C;
  --brand-glow-shadow: rgba(189, 8, 28, 0.35);
}

#social-github {
  --brand-color: linear-gradient(135deg, #24292e, #111316);
  --brand-glow-solid: #ffffff;
  --brand-glow-shadow: rgba(255, 255, 255, 0.15);
}

#social-vercel {
  --brand-color: linear-gradient(135deg, #000000, #111111);
  --brand-glow-solid: #00dfd8;
  --brand-glow-shadow: rgba(0, 223, 216, 0.35);
}

/* ----------------------------------------------------
   ACTION ITEMS (THEMED BUTTONS)
---------------------------------------------------- */
.action-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateZ(20px);
}

.action-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Glass shine reflection sweep */
.action-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.action-item:hover::before {
  left: 150%;
  transition: all 0.75s ease-in-out;
}

/* Card inner layout */
.action-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: var(--transition-bounce);
  position: relative;
}

.action-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.action-icon-wrapper svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-bounce);
}

.action-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.action-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.action-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: var(--transition-smooth);
}

.action-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.8;
  transition: var(--transition-bounce);
  margin-left: 8px;
}

.action-arrow svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-bounce);
}

/* ----------------------------------------------------
   THEME SPECIFIC BEHAVIORS with Interactive Glow
   ---------------------------------------------------- */

/* Purple Theme (Portfolio Project) */
.purple-theme .action-icon-wrapper {
  background: var(--purple-bg);
  color: var(--purple-solid);
}

.purple-theme:hover {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.01) 70%);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 28px rgba(168, 85, 247, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.purple-theme:hover .action-icon-wrapper {
  background: var(--purple-solid);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--purple-glow);
}

.purple-theme:hover .action-icon-wrapper::after {
  border-color: rgba(168, 85, 247, 0.5);
}

/* Pink Theme (To-Do List) */
.pink-theme .action-icon-wrapper {
  background: var(--pink-bg);
  color: var(--pink-solid);
}

.pink-theme:hover {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.01) 70%);
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 28px rgba(236, 72, 153, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pink-theme:hover .action-icon-wrapper {
  background: var(--pink-solid);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--pink-glow);
}

.pink-theme:hover .action-icon-wrapper::after {
  border-color: rgba(236, 72, 153, 0.5);
}

/* Teal Theme (Glass Digital Clock) */
.teal-theme .action-icon-wrapper {
  background: var(--teal-bg);
  color: var(--teal-solid);
}

.teal-theme:hover {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.01) 70%);
  border-color: rgba(20, 184, 166, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 28px rgba(20, 184, 166, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.teal-theme:hover .action-icon-wrapper {
  background: var(--teal-solid);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--teal-glow);
}

.teal-theme:hover .action-icon-wrapper::after {
  border-color: rgba(20, 184, 166, 0.5);
}

/* Shared hover states for arrows & text in action-items */
.action-item:hover .action-title {
  color: var(--text-primary);
}

.action-item:hover .action-desc {
  color: rgba(255, 255, 255, 0.65);
}

.action-item:hover .action-arrow {
  color: var(--text-primary);
  transform: translateX(4px);
  opacity: 1;
}

/* Active pressed state for card click responsiveness */
.action-item:active {
  transform: translateY(-1px) scale(1.005);
  transition: all 0.1s ease;
}

/* SVG Micro-animations */
.action-item:hover .todo-check {
  animation: todo-check-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes todo-check-bounce {
  0% {
    transform: scale(0.8) translate(1px, 1px);
  }

  50% {
    transform: scale(1.2) translate(-1px, -1px);
  }

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

.action-item:hover .clock-hand {
  transform-origin: 12px 12px;
  animation: clock-spin 3s linear infinite;
}

@keyframes clock-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.action-item:hover .briefcase-handle {
  animation: briefcase-handle-lift 0.6s ease-in-out infinite alternate;
}

@keyframes briefcase-handle-lift {
  0% {
    transform: translateY(0);
  }

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

/* ----------------------------------------------------
   FOOTER AREA
---------------------------------------------------- */
.footer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-container.mobile-only {
  display: flex;
}

.footer-container.desktop-only {
  display: none;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink-solid);
  opacity: 0.8;
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------
   SCROLL REVEAL ANIMATIONS
---------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.35, 1),
              transform 0.85s cubic-bezier(0.25, 1, 0.35, 1),
              filter 0.85s cubic-bezier(0.25, 1, 0.35, 1);
}

.scroll-reveal.reveal-up {
  transform: translateY(40px);
}

.scroll-reveal.reveal-scale {
  transform: scale(0.92) translateY(20px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* ----------------------------------------------------
   RESPONSIVENESS & ACCESSIBILITY
---------------------------------------------------- */
@media (max-width: 480px) {
  .page-container {
    padding: 24px 14px;
    gap: 24px;
  }

  .bio-card {
    padding: 36px 20px 28px 20px;
    border-radius: 24px;
  }

  .name {
    font-size: 1.85rem;
  }

  .description {
    font-size: 0.84rem;
    max-width: 100%;
  }

  .action-item {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .action-icon-wrapper {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  /* 4-up 3-down Social links split is now default for all single-column viewports */
}

/* Disable parallax tilt for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bio-card {
    transition: none !important;
    transform: none !important;
  }

  .glow-orb {
    animation: none !important;
  }

  .avatar-glow {
    animation: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ----------------------------------------------------
   DESKTOP SPLIT-SCREEN LAYOUT
---------------------------------------------------- */
@media (min-width: 1024px) {
  .page-container {
    max-width: none;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Make card fill screen and split columns */
  .bio-card {
    flex-direction: row;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none !important;
    /* Disable tilt transform on desktop */
  }

  .bio-card:hover {
    border-color: transparent;
    box-shadow: none;
  }

  /* Override display: contents for columns on desktop */
  .profile-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 40%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid var(--glass-border);
    padding: 60px 40px 30px 40px;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .profile-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    width: 100%;
  }

  .actions-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 60%;
    height: 100vh;
    padding: 60px 40px;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .action-list {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .footer-container.mobile-only {
    display: none !important;
  }

  .footer-container.desktop-only {
    display: flex !important;
    margin-top: 40px;
  }

  .social-links {
    max-width: none;
    gap: 12px;
  }

  .social-links .social-btn {
    order: 0 !important;
  }

  /* Scrollbars styling for overflow content in columns */
  .profile-column::-webkit-scrollbar,
  .actions-column::-webkit-scrollbar {
    width: 6px;
  }

  .profile-column::-webkit-scrollbar-thumb,
  .actions-column::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .profile-column::-webkit-scrollbar-thumb:hover,
  .actions-column::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* ----------------------------------------------------
   FLUID PROTOCOLS PREMIUM MODAL & CARD STYLES
---------------------------------------------------- */


/* Premium Card container */
.premium-card {
  width: 100%;
  background: linear-gradient(135deg, #131124 0%, #09080f 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 18px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
}

/* Hover style in blue */
.premium-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 45px 90px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-border-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  border-radius: 32px;
}

/* Video Header styling */
.card-video-header {
  width: 100%;
  height: 200px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
}

.header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.header-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-header-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 8, 15, 0.45);
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(9, 8, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
}

.info-btn svg {
  width: 14px;
  height: 14px;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Citations counter style */
.card-balance-display {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 100%;
}

.balance-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.balance-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.balance-value.status-text {
  font-size: 1.4rem;
}

/* Overlapping Collaborators section */
.card-collaborators {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.avatar-group {
  display: flex;
  align-items: center;
  height: 38px;
}

.collab-avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  z-index: calc(10 - var(--index));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.collab-avatar-wrapper:first-child {
  margin-left: 0;
}

.collab-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #09080e;
  background: #19162c;
  object-fit: cover;
}

.collab-avatar-wrapper:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 50;
}

/* Card Body (Transaction Grid) */
.card-body {
  padding-top: 24px;
  padding-bottom: 8px;
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-all-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.view-all-link:hover {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Glassmorphic Transaction Item */
.transaction-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.2);
}

.item-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.git-icon {
  width: 18px;
  height: 18px;
}

.item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.item-amount {
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

.text-blue {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Card Action Button Row */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Skeuomorphic/Bulbous Button styles */
.action-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
}

.action-circle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.action-circle-btn:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(56, 189, 248, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.action-circle-btn:hover svg {
  transform: scale(1.08);
}

.action-circle-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Pill Button styles */
.action-pill-btn {
  flex-grow: 1;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.action-pill-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

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

/* Dark Pill style (Pull) */
.dark-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dark-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(56, 189, 248, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.dark-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Blue gradient Pill style (Push) */
.blue-btn {
  background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

.blue-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 20px rgba(29, 78, 216, 0.45),
    0 0 18px rgba(56, 189, 248, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.blue-btn:hover svg {
  transform: translateY(-2px);
}

.blue-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive modal scaling */
@media (max-width: 480px) {

  .premium-card {
    padding: 14px;
    border-radius: 28px;
  }

  .card-video-header {
    height: 170px;
    border-radius: 20px;
  }

  .balance-value {
    font-size: 1.85rem;
  }

  .transaction-item {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 6px;
  }

  .action-circle-btn {
    width: 40px;
    height: 40px;
  }

  .action-pill-btn {
    height: 40px;
    font-size: 0.8rem;
  }

  #github-view-btn {
    grid-column: 1 / span 3;
    grid-row: 2;
    width: 100%;
  }

  #github-push-btn {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
  }
}

@keyframes item-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------
   PORTFOLIO PREVIEW MODAL & RIPPLE
---------------------------------------------------- */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Modal theme variables default (Purple) */
  --modal-theme-color: var(--purple-solid);
  --modal-glow-color: var(--purple-glow);
}

.portfolio-modal.theme-pink {
  --modal-theme-color: var(--pink-solid);
  --modal-glow-color: var(--pink-glow);
}

.portfolio-modal.theme-teal {
  --modal-theme-color: var(--teal-solid);
  --modal-glow-color: var(--teal-glow);
}

.portfolio-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 7, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.5s ease;
}

.modal-window {
  position: relative;
  width: 92%;
  max-width: 1200px;
  height: 85%;
  background: rgba(12, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.85),
    0 0 50px var(--modal-glow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.portfolio-modal.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--modal-theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-device-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-right: 8px;
}

.modal-btn-device {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.modal-btn-device svg {
  width: 15px;
  height: 15px;
}

.modal-btn-device:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-btn-device.active {
  color: var(--modal-theme-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--modal-glow-color);
}

.modal-btn-action,
.modal-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.modal-btn-action svg {
  width: 14px;
  height: 14px;
}

.modal-btn-close svg {
  width: 16px;
  height: 16px;
}

.modal-btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

.modal-btn-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.05) rotate(90deg);
}

.modal-body {
  flex-grow: 1;
  position: relative;
  background: #06050b;
}

.modal-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #06050b;
  z-index: 5;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: opacity 0.4s ease;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--modal-theme-color);
  border-radius: 50%;
  animation: modal-spin 1s linear infinite;
  box-shadow: 0 0 15px var(--modal-glow-color);
}

@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.iframe-container {
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

#portfolio-iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#portfolio-iframe.loaded {
  opacity: 1;
}

/* Mobile Simulation mode inside modal */
.modal-window.view-mobile .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: #06050b;
}

.modal-window.view-mobile .iframe-container {
  width: 375px;
  height: 667px;
  max-width: 100%;
  max-height: 100%;
  border: 12px solid #1c1a2e; /* Sleek bezel */
  border-radius: 40px;
  background: #000;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 35px var(--modal-glow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

/* Phone Bezel Notch */
.modal-window.view-mobile .iframe-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #1c1a2e;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
  pointer-events: none;
}

/* Phone Home Indicator Bar */
.modal-window.view-mobile .iframe-container::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
}

/* Hide toggle switcher on mobile viewports (< 768px) where viewport is already mobile size */
@media (max-width: 768px) {
  .modal-device-toggle {
    display: none !important;
  }
}

/* Click Ripple effect */
.action-item {
  position: relative;
  overflow: hidden;
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple-animation 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
  z-index: 0;
}

@keyframes ripple-animation {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Modal responsive sizes */
@media (max-width: 768px) {
  .modal-window {
    width: 95%;
    height: 90%;
    border-radius: 20px;
  }

  .modal-header {
    padding: 12px 16px;
  }
}

/* ----------------------------------------------------
   DESIGNER TICKET CARD (CREATIVE PORTFOLIO TICKET)
---------------------------------------------------- */
.designer-card-container {
  width: 100%;
  max-width: 480px;
  margin: 24px auto 0 auto;
  transform: translateZ(20px);
}

.designer-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  background: 
    radial-gradient(circle 180px at var(--spotlight-x) var(--spotlight-y), rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    linear-gradient(135deg, #eae9e4 0%, #d8d7d0 100%);
  color: #0b0a16;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 28px 24px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.designer-card:hover {
  border-color: rgba(11, 10, 22, 0.4);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(230, 229, 224, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Card Header Layout */
.designer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  transform: translateZ(25px);
}

.designer-card-title {
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.2rem, 6.5vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0b0a16;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-card-ornament {
  width: 90px;
  height: 45px;
  color: #0b0a16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.designer-card-ornament svg {
  width: 100%;
  height: 100%;
}

/* Card Middle / Warning section */
.designer-card-warning {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-align: center;
  color: #0b0a16;
  margin-bottom: 12px;
  transform: translateZ(15px);
}

.designer-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: justify;
  text-transform: uppercase;
  color: rgba(11, 10, 22, 0.85);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  transform: translateZ(15px);
}

/* Card Button */
.designer-card-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b0a16;
  color: #ffffff;
  border-radius: 9999px;
  height: 52px;
  padding: 0 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 6px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform: translateZ(20px);
}

.designer-btn-price {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.designer-btn-price:empty {
  display: none;
}

.designer-btn-price:empty + .designer-btn-action {
  margin: 0 auto;
}

.designer-btn-action {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  stroke: currentColor;
}

/* Button Hover State */
.designer-card-btn:hover {
  background: #201f2e;
  transform: translateY(-2px) translateZ(25px);
  box-shadow: 
    0 10px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.designer-card-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.designer-card-btn:active {
  transform: translateY(1px) translateZ(15px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Responsive Scaling */
@media (max-width: 480px) {
  .designer-card-container {
    margin-top: 16px;
    padding: 0;
  }
  
  .designer-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
  
  .designer-card-title {
    font-size: clamp(1.1rem, 6.5vw, 1.8rem);
  }
  
  .designer-card-ornament {
    width: clamp(55px, 18vw, 75px);
    height: auto;
    aspect-ratio: 2 / 1;
  }
  
  .designer-card-desc {
    font-size: 0.58rem;
    line-height: 1.4;
    text-align: center;
  }
  
  .designer-card-btn {
    height: 46px;
    padding: 0 18px;
  }
  
  .designer-btn-price,
  .designer-btn-action {
    font-size: 0.82rem;
  }
}

/* ----------------------------------------------------
   CUSTOM SHAPED BANNER WITH CORNER GLOW
---------------------------------------------------- */
.custom-banner-container {
  position: relative;
  width: 100%;
  height: 90px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  overflow: visible;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.1s ease-out;
}

.custom-banner-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.banner-bg-path {
  transition: fill 0.3s ease;
}

.banner-border-path {
  transition: stroke 0.3s ease;
}

.banner-glow-path {
  stroke: url(#neon-grad);
  stroke-width: 2px;
  stroke-linecap: round;
  filter: url(#neon-glow);
  stroke-dasharray: 120 450;
  animation: banner-border-trace 8s linear infinite;
  opacity: 0.7;
  transition: stroke-width 0.3s ease, opacity 0.3s ease, stroke-dasharray 0.3s ease;
}

@keyframes banner-border-trace {
  0% {
    stroke-dashoffset: 570;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Hover dynamics */
.custom-banner-container:hover .banner-glow-path {
  stroke-width: 2.5px;
  opacity: 1.0;
  animation-duration: 4s;
  stroke-dasharray: 160 410;
}

.custom-banner-container:hover .banner-border-path {
  stroke: rgba(255, 255, 255, 0.28);
}

/* Text Overlays */
.banner-left-text {
  position: absolute;
  left: 0;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transform: translateZ(15px);
  pointer-events: none;
  text-align: center;
}

.banner-right-text {
  position: absolute;
  right: 0;
  top: 10px;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transform: translateZ(15px);
  pointer-events: none;
  text-align: center;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.custom-banner-container:hover .brand-subtitle {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Responsive Scaling for mobile layout */
@media (max-width: 480px) {
  .custom-banner-container {
    margin-top: 18px;
  }
}

/* ----------------------------------------------------
   MOBILE MODE ONLY COLOR-SHIFTING AURORA BACKGROUND
---------------------------------------------------- */
@media (max-width: 1023px) {
  /* Position the single footer at the very bottom of the page on mobile */
  .footer-container {
    order: 10;
    margin-top: 32px;
  }

  /* Dynamic Background Glow Orbs for Mobile */
  .glow-orb {
    opacity: 0.38; /* make background glow very rich and premium on mobile */
    pointer-events: none;
    z-index: -2;
  }

  .orb-1 {
    width: 320px;
    height: 320px;
    top: -5%;
    left: -5%;
    background: radial-gradient(circle, var(--purple-solid) 0%, rgba(0, 0, 0, 0) 70%);
    animation: mobile-aurora-1 16s infinite alternate ease-in-out;
  }

  .orb-2 {
    width: 360px;
    height: 360px;
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, var(--teal-solid) 0%, rgba(0, 0, 0, 0) 70%);
    animation: mobile-aurora-2 20s infinite alternate ease-in-out;
  }

  .orb-3 {
    width: 290px;
    height: 290px;
    top: 45%;
    left: 45%;
    background: radial-gradient(circle, var(--pink-solid) 0%, rgba(0, 0, 0, 0) 70%);
    animation: mobile-aurora-3 14s infinite alternate ease-in-out;
  }
}

@keyframes mobile-aurora-1 {
  0% {
    transform: translate(0, 0) scale(1);
    filter: hue-rotate(0deg) blur(110px);
  }
  50% {
    transform: translate(80px, 60px) scale(1.2);
    filter: hue-rotate(180deg) blur(120px);
  }
  100% {
    transform: translate(-30px, 120px) scale(0.9);
    filter: hue-rotate(360deg) blur(100px);
  }
}

@keyframes mobile-aurora-2 {
  0% {
    transform: translate(0, 0) scale(1);
    filter: hue-rotate(0deg) blur(110px);
  }
  50% {
    transform: translate(-60px, -100px) scale(0.85);
    filter: hue-rotate(-120deg) blur(100px);
  }
  100% {
    transform: translate(40px, -60px) scale(1.15);
    filter: hue-rotate(-360deg) blur(120px);
  }
}

@keyframes mobile-aurora-3 {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: hue-rotate(0deg) blur(110px);
  }
  50% {
    transform: translate(-30%, -20%) scale(1.3) rotate(180deg);
    filter: hue-rotate(120deg) blur(120px);
  }
  100% {
    transform: translate(-60%, -70%) scale(0.95) rotate(360deg);
    filter: hue-rotate(360deg) blur(100px);
  }
}

/* ----------------------------------------------------
   MULTIMEDIA DESIGNER PROFILE FLIP CARD
---------------------------------------------------- */

.designer-profile-card-container {
  width: 100%;
  max-width: 480px;
  margin: 24px auto 0 auto;
  perspective: 1500px;
  z-index: 15;
}

.designer-profile-card {
  width: 100%;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

/* Hover effects for tilt on desktop - 3D depth pop out */
.designer-profile-card:hover {
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 255, 255, 0.08);
}

/* Handle flip state classes toggled via JavaScript */
.designer-profile-card.flipped {
  transform: rotateY(180deg);
}

/* Common face behaviors */
.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

/* FRONT FACE (Matching Light Pastel Visual Layout) */
.card-front {
  background: linear-gradient(135deg, 
    rgba(253, 242, 248, 0.95) 0%, 
    rgba(255, 255, 255, 0.98) 45%, 
    rgba(224, 242, 254, 0.95) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #0b0a16;
}

/* Share Button (Front Page) */
.card-share-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 10, 22, 0.08);
  background: rgba(255, 255, 255, 0.3);
  color: #0b0a16;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
}

.card-share-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.card-share-btn:hover {
  background: rgba(11, 10, 22, 0.05);
  transform: scale(1.08);
}

.card-share-btn:active {
  transform: scale(0.95);
}

/* Avatar Layout & Glow */
.card-avatar-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 20px;
  border-radius: 50%;
}

.card-avatar-halo {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  opacity: 0.65;
  filter: blur(4px);
  z-index: -1;
  animation: designer-glow-spin 6s linear infinite;
}

@keyframes designer-glow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Name & Title styling */
.card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.62rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* Badges / Tags list */
.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.card-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Stats Row styling */
.card-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 18px;
  margin-bottom: 24px;
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-star {
  color: #f59e0b; /* bright amber gold */
}

.flag-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Email Pill and Bookmark Action Row */
.card-action-row {
  display: flex;
  gap: 12px;
  margin-top: auto;
  align-items: center;
}

.card-email-pill {
  flex-grow: 1;
  height: 48px;
  border-radius: 24px;
  background: rgba(224, 242, 254, 0.85); /* cyan theme matching image */
  border: 1px solid rgba(186, 230, 253, 0.5);
  color: #0369a1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.05);
}

.card-email-pill:hover {
  background: #bae6fd;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 165, 233, 0.15);
}

.card-email-pill:active {
  transform: translateY(1px);
}

.card-bookmark-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  padding: 0;
}

.card-bookmark-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.card-bookmark-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.card-bookmark-btn:active {
  transform: translateY(1px) scale(0.96);
}

/* Bookmarked Click State styling */
.card-bookmark-btn.bookmarked {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  animation: bookmark-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-bookmark-btn.bookmarked svg {
  fill: #ffffff;
  transform: scale(1.08);
}

@keyframes bookmark-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.08); }
}


/* BACK FACE (Matching Dark/Neon Bio Site Theme) */
.card-back {
  background: linear-gradient(135deg, 
    rgba(19, 17, 36, 0.95) 0%, 
    rgba(12, 10, 24, 0.98) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: rotateY(180deg);
}

.card-back-header {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.card-back-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-solid);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.card-back-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Service Item Lists */
.card-back-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-details h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.service-details p {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.card-back-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 10px;
}

.click-to-flip-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink-solid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: pulse-hint-opacity 2s infinite alternate ease-in-out;
}

@keyframes pulse-hint-opacity {
  from { opacity: 0.45; }
  to { opacity: 1.0; }
}

/* Media Queries for responsive card height/width */
@media (max-width: 480px) {
  .designer-profile-card-container {
    margin-top: 16px;
    padding: 0;
  }
  
  .designer-profile-card {
    height: 450px;
  }
  
  .card-face {
    padding: 24px;
    border-radius: 24px;
  }
  
  .card-name {
    font-size: 1.4rem;
  }
  
  .card-role {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  
  .card-tags {
    margin-bottom: 20px;
  }
  
  .card-tag {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
  
  .card-stats-row {
    padding-top: 14px;
    margin-bottom: 18px;
  }
  
  .stat-value {
    font-size: 0.95rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .card-email-pill {
    height: 42px;
    font-size: 0.8rem;
  }
  
  .card-bookmark-btn {
    width: 42px;
    height: 42px;
  }
  
  .card-back-title {
    font-size: 1.15rem;
  }
}