* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  height: 100%;
  position: relative;
}

/* ----- Enhanced Video Background System ----- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(135deg, #000428 0%, #004e92 50%, #000428 100%);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.video-background.loaded {
  opacity: 1;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.6) contrast(1.15) saturate(1.3);
  will-change: transform;
  z-index: -1;
}

/* Enhanced Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(ellipse at top left, rgba(120, 119, 198, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(255, 119, 198, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(100, 200, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 4, 40, 0.5) 0%, rgba(0, 78, 146, 0.3) 50%, rgba(0, 4, 40, 0.5) 100%);
  z-index: -2;
  pointer-events: none;
}
/* back button css */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-6px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
/* ----- Footer ----- */
.bot-footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
}

.back-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.back-button:hover .back-icon {
    transform: translateX(-4px);
}

/* Fallback gradient for when video fails */
.video-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(100, 200, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #000428 0%, #004e92 25%, #000c40 50%, #004e92 75%, #000428 100%);
  z-index: -1;
}

/* ----- Enhanced Animated Particles ----- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 
    0 0 6px rgba(255, 255, 255, 0.4),
    0 0 12px rgba(255, 255, 255, 0.2);
}

.particle:nth-child(1) { 
  top: 15%; left: 10%; 
  animation-delay: 0s; 
  animation-duration: 8s;
  background: rgba(100, 200, 255, 0.6);
}
.particle:nth-child(2) { 
  top: 25%; left: 85%; 
  animation-delay: 1s; 
  animation-duration: 10s;
  background: rgba(255, 215, 0, 0.6);
}
.particle:nth-child(3) { 
  top: 75%; left: 15%; 
  animation-delay: 2s; 
  animation-duration: 7s;
  background: rgba(138, 43, 226, 0.6);
}
.particle:nth-child(4) { 
  top: 45%; left: 75%; 
  animation-delay: 3s; 
  animation-duration: 9s;
  background: rgba(255, 255, 255, 0.7);
}
.particle:nth-child(5) { 
  top: 5%; left: 50%; 
  animation-delay: 4s; 
  animation-duration: 6s;
  background: rgba(100, 200, 255, 0.5);
}
.particle:nth-child(6) { 
  top: 85%; left: 60%; 
  animation-delay: 5s; 
  animation-duration: 8s;
  background: rgba(255, 215, 0, 0.5);
}
.particle:nth-child(7) { 
  top: 35%; left: 25%; 
  animation-delay: 1.5s; 
  animation-duration: 7s;
  background: rgba(138, 43, 226, 0.5);
}
.particle:nth-child(8) { 
  top: 65%; left: 90%; 
  animation-delay: 2.5s; 
  animation-duration: 9s;
  background: rgba(255, 255, 255, 0.6);
}
.particle:nth-child(9) { 
  top: 55%; left: 5%; 
  animation-delay: 3.5s; 
  animation-duration: 8s;
  background: rgba(100, 200, 255, 0.4);
}
.particle:nth-child(10) { 
  top: 95%; left: 40%; 
  animation-delay: 4.5s; 
  animation-duration: 7s;
  background: rgba(255, 215, 0, 0.4);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); 
    opacity: 0.4; 
  }
  25% {
    transform: translateY(-15px) translateX(10px) rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-25px) translateX(-5px) rotate(180deg) scale(0.9); 
    opacity: 1; 
  }
  75% {
    transform: translateY(-10px) translateX(-15px) rotate(270deg) scale(1.1);
    opacity: 0.6;
  }
}

/* ----- Main Layout ----- */
.main-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

.profiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
  position: relative;
  z-index: 2;
}

/* ----- Enhanced Profile Cards ----- */
.profile-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 420px;
  width: 100%;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 15px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  will-change: transform;
}

/* Dev Card Accent */
.dev-card {
  border-color: rgba(100, 200, 255, 0.25);
  background: rgba(100, 200, 255, 0.02);
}

.dev-card:hover {
  border-color: rgba(100, 200, 255, 0.5);
  background: rgba(100, 200, 255, 0.04);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(100, 200, 255, 0.1),
    inset 0 1px 0 rgba(100, 200, 255, 0.2),
    0 0 0 1px rgba(100, 200, 255, 0.15),
    0 0 50px rgba(100, 200, 255, 0.15);
}

/* King Card Accent */
.king-card {
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.02);
}

.king-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.04);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 215, 0, 0.2),
    0 0 0 1px rgba(255, 215, 0, 0.15),
    0 0 50px rgba(255, 215, 0, 0.15);
}

/* Co-Dev Card Accent */
.codev-card {
  border-color: rgba(138, 43, 226, 0.25);
  background: rgba(138, 43, 226, 0.02);
}

.codev-card:hover {
  border-color: rgba(138, 43, 226, 0.5);
  background: rgba(138, 43, 226, 0.04);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(138, 43, 226, 0.1),
    inset 0 1px 0 rgba(138, 43, 226, 0.2),
    0 0 0 1px rgba(138, 43, 226, 0.15),
    0 0 50px rgba(138, 43, 226, 0.15);
}

/* Enhanced Shimmer Effect */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
}

.profile-card:hover::before {
  left: 100%;
}

/* Enhanced Glow Effect */
.profile-card::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 35px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(1px);
}

.profile-card:hover {
  transform: translateY(-12px) scale(1.02);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.profile-card:hover::after {
  opacity: 1;
}

/* ----- Enhanced Profile Image ----- */
.profile-image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.profile-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 3;
  filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

/* Enhanced Profile Image Glows */
.dev-card .profile-image-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(100, 200, 255, 0.2),
    rgba(100, 200, 255, 0.8),
    rgba(100, 200, 255, 0.2),
    rgba(100, 200, 255, 0.8),
    rgba(100, 200, 255, 0.2)
  );
  z-index: 2;
  animation: rotateGlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(2px);
}

.king-card .profile-image-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.2),
    rgba(255, 215, 0, 0.8),
    rgba(255, 215, 0, 0.2),
    rgba(255, 215, 0, 0.8),
    rgba(255, 215, 0, 0.2)
  );
  z-index: 2;
  animation: rotateGlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(2px);
}

.codev-card .profile-image-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(138, 43, 226, 0.2),
    rgba(138, 43, 226, 0.8),
    rgba(138, 43, 226, 0.2),
    rgba(138, 43, 226, 0.8),
    rgba(138, 43, 226, 0.2)
  );
  z-index: 2;
  animation: rotateGlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(2px);
}

/* Enhanced Inner Glow */
.profile-image-container::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 70%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.profile-card:hover .profile-image-container::before,
.profile-card:hover .profile-image-container::after {
  opacity: 1;
}

.profile-card:hover .profile-image {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 15px 30px rgba(0, 0, 0, 0.3);
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ----- Enhanced Typography ----- */
.profile-name {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(
    135deg, 
    #ffffff 0%, 
    #f8f9fa 30%,
    #ffffff 60%,
    #f1f3f4 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  letter-spacing: -0.02em;
}

/* Enhanced Name Accents */
.dev-card .profile-name {
  background: linear-gradient(
    135deg, 
    #64c8ff 0%, 
    #ffffff 30%,
    #64c8ff 60%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.king-card .profile-name {
  background: linear-gradient(
    135deg, 
    #ffd700 0%, 
    #ffffff 30%,
    #ffd700 60%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.codev-card .profile-name {
  background: linear-gradient(
    135deg, 
    #8a2be2 0%, 
    #ffffff 30%,
    #8a2be2 60%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.dev-card:hover .profile-name {
  text-shadow: 0 0 40px rgba(100, 200, 255, 0.8);
}

.king-card:hover .profile-name {
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.codev-card:hover .profile-name {
  text-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
}

.profile-bio {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.profile-card:hover .profile-bio {
  color: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

/* ----- Enhanced Social Links ----- */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-bottom: 2.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.3rem 2.2rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  letter-spacing: 0.02em;
}

/* Enhanced Button Effects */
.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 20px;
}

.social-link::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient);
  opacity: 0;
  filter: blur(8px);
  transition: all 0.4s ease;
  z-index: -2;
  border-radius: 23px;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover::after {
  opacity: 0.6;
}

.social-link:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.social-link:active {
  transform: translateY(-3px) scale(0.98);
  transition: all 0.15s ease;
}

/* Enhanced Social Link Colors */
.social-link.discord {
  --gradient: linear-gradient(135deg, #5865f2 0%, #4752c4 50%, #3c45a5 100%);
}

.social-link.github {
  --gradient: linear-gradient(135deg, #333 0%, #24292e 50%, #1a1e22 100%);
}

.social-link.linkedin {
  --gradient: linear-gradient(135deg, #0077b5 0%, #005885 50%, #004466 100%);
}

.social-link.twitter {
  --gradient: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 50%, #0a7bc4 100%);
}

.social-link.youtube {
  --gradient: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
}

.social-link.twitch {
  --gradient: linear-gradient(135deg, #9146ff 0%, #6441a4 50%, #4a2c7a 100%);
}

.social-link.instagram {
  --gradient: linear-gradient(135deg, #e4405f 0%, #833ab4 50%, #fcb045 100%);
}

.social-link.website {
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3d8a 100%);
}

.social-link.dribbble {
  --gradient: linear-gradient(135deg, #ea4c89 0%, #d63384 50%, #c42d78 100%);
}

.social-link.behance {
  --gradient: linear-gradient(135deg, #1769ff 0%, #0052cc 50%, #003d99 100%);
}

/* ----- Enhanced Icons ----- */
.social-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.social-link:hover .social-icon {
  transform: scale(1.1) rotate(12deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ----- Enhanced Footer ----- */
.footer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  letter-spacing: 0.02em;
}

.profile-card:hover .footer {
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
/* ----- Discord Badges ----- */
.discord-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
  padding: 0.75rem;
  background: rgba(88, 101, 242, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(88, 101, 242, 0.15);
}

.discord-badge {
  position: relative;
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.discord-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discord-badge:hover {
  transform: translateY(-2px) scale(1.2);
}

/* Tooltip */
.discord-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.discord-badge:hover::after {
  opacity: 1;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .discord-badges {
    gap: 0.3rem;
    padding: 0.5rem;
  }
  
  .discord-badge {
    width: 20px;
    height: 20px;
  }
}

/* ----- Responsive Design Improvements ----- */
@media (max-width: 768px) {

  .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

  .profiles-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .profile-card {
    margin: 0;
    padding: 2.5rem 2rem;
    border-radius: 28px;
    max-width: 100%;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .social-links {
    gap: 1.1rem;
  }
  
  .social-link {
    padding: 1.1rem 1.8rem;
    font-size: 0.95rem;
  }
  
  .social-icon {
    width: 26px;
    height: 26px;
  }
  
  .social-link:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .profile-card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  /* Optimize particles for mobile */
  .particle:nth-child(n+6) {
    display: none;
  }
  
  /* Reduce video quality on mobile for better performance */
  .video-background video {
    filter: brightness(0.5) contrast(1.1) saturate(1.1);
  }
}

@media (max-width: 480px) {

  .back-button span {
        display: none;
    }
  .back-button {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
  .main-wrapper {
    padding: 1.5rem 0.75rem;
  }
  
  .profile-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
  }
  
  .social-link {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .profile-name {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  
  .profile-bio {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.6;
  }
}

/* ----- Desktop Enhancements ----- */
@media (min-width: 1024px) {
  .profiles-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    max-width: 1400px;
  }
  
  .profile-card {
    max-width: 400px;
    padding: 3.5rem 3rem;
  }
  
  .profile-image {
    width: 170px;
    height: 170px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .social-link:hover {
    transform: translateY(-6px) scale(1.02);
  }
    .profile-card:hover {
    transform: translateY(-12px) scale(1.02);
  }
}
/* Base: allow sliding when needed */
/* Base glass bottom bar */
.glass-bottombar {
  width: fit-content;
  max-width: 90vw;          /* IMPORTANT: prevents going out of screen */
  margin: 40px auto 20px;

  display: flex;
  gap: 20px;

  padding: 10px 25px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  overflow-x: auto;         /* 🔥 SLIDING ENABLED */
  white-space: nowrap;      /* prevents wrapping */
  scrollbar-width: none;    /* hides scrollbar (Firefox) */
}

.glass-bottombar::-webkit-scrollbar {
  display: none;            /* hides scrollbar (Chrome) */
}

/* Links */
.glass-bottombar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
  white-space: nowrap;      /* do NOT break text */
}

.glass-bottombar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}
