@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

:root {
  --pink-color: #f2726a;
  --pink-hover: #ff8680;
  --dark-bg: rgba(36, 38, 40, 0.8);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-effect: 0 0 15px rgba(242, 114, 106, 0.6);
  --discord-bg: rgba(32, 34, 37, 0.9);
  --discord-border: rgba(79, 84, 92, 0.4);
  --discord-text: #b9bbbe;
  --discord-primary: #5865f2;
  --gradient-primary: linear-gradient(135deg, #f2726a, #ff8680);
  --gradient-dark: linear-gradient(135deg, rgba(36, 38, 40, 0.9), rgba(22, 24, 26, 0.95));
  --glass-card: rgba(36, 38, 40, 0.4);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.08);
}

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  position: relative;
  background-attachment: cover;
  background: none;
}

/* Video background settings */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: filter 1s ease;
}

/* Blur effect around content */
body:not(.unblurred) .video-background {
  filter: blur(8px);
}

body.unblurred .video-background,
body.unblurred .content-container {
  filter: none;
}

/* "Click to enter" text styling */
.click-to-enter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(2rem, 8vw, 4rem); /* Responsive font size */
  text-align: center;
  z-index: 20;
  user-select: none;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  background: linear-gradient(90deg, #fff, #f2726a, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 4s linear infinite, floating 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.click-to-enter.visible {
  opacity: 1;
}

@keyframes gradient-text {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes floating {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -54%); }
}

/* Content container styling */
.content-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 10;
  width: 100%;
  max-width: 500px;
  padding: 0 20px;
  will-change: opacity, transform;
}

.content-container.show {
  opacity: 1;
  pointer-events: auto;
  animation: fadeInScale 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInScale {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Card styling */
.card {
  width: 100%;
  height: auto;
  min-height: 520px;
  border-radius: 16px;
  text-align: center;
  background-color: var(--glass-card);
  overflow: visible;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Safari support */
  box-shadow: var(--card-shadow), 0 0 0 1px var(--glass-border);
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
  padding-bottom: 20px;
  position: relative;
  animation: card-fade-in 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, box-shadow;
}

@keyframes card-fade-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 1px var(--glass-border);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--card-shadow), 0 0 0 1px var(--glass-border);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url('../images/page.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.25;
  height: 100%;
  filter: blur(5px);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-highlight), transparent, var(--glass-highlight));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: border-shine 8s linear infinite;
}

@keyframes border-shine {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(242, 114, 106, 0.2);
  background-color: rgba(36, 38, 40, 0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover::after {
  opacity: 0.8;
  background: linear-gradient(135deg, 
    rgba(242, 114, 106, 0.5), 
    transparent 30%, 
    transparent 70%, 
    rgba(242, 114, 106, 0.5));
  animation: border-shine 4s linear infinite;
}

.card__img {
  width: 130px;
  height: 130px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 30px auto 20px;
  transform: translateY(0);
  border-radius: 50%;
  border: 4px solid var(--pink-color);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: profile-pop-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  animation-delay: 0.3s;
  will-change: transform, opacity;
}

.card__img::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.card__img:hover::before {
  opacity: 1;
  animation: pulseRing 2s infinite;
}

.card__img:hover img {
  transform: scale(1.1);
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

h2 {
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  animation: text-fade-in 0.9s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 80%;
}

/* Thêm hiệu ứng cuộn nội dung cho phần mô tả */
p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
  display: inline-block;
  padding: 0 15px;
  max-width: 80%;
  overflow: hidden;
  white-space: nowrap;
  animation: textScroll 12s linear infinite;
  animation-play-state: paused;
  animation: text-fade-in 0.9s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
}

p:hover {
  animation-play-state: running;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes textScroll {
  0%, 20% {
    transform: translateX(0);
  }
  80%, 100% {
    transform: translateX(-20%);
  }
}

p::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  transition: width 0.3s ease;
}

p:hover::after {
  width: 60px;
}

/* Social links */
.card__social {
  display: flex;
  justify-content: center;
  margin: 25px 0;
  gap: 20px;
}

.card__social a {
  text-decoration: none;
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  transition: var(--transition-smooth);
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: social-pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.5);
  will-change: transform, opacity;
}

.card__social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card__social a i {
  position: relative;
  z-index: 2;
}

.card__social a:hover {
  color: white;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--glow-effect);
}

.card__social a:hover::before {
  opacity: 1;
}

/* Button container */
.button-container {
  position: relative;
  z-index: 500;
  width: 100%;
  max-width: 200px;
  margin: 15px auto 0;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.button-link {
  display: inline-block;
  text-decoration: none;
  position: relative;
  z-index: 500;
  pointer-events: auto;
}

/* Contact Me button styling with border */
button {
  position: relative;
  z-index: 500;
  outline: none;
  border: none;
  color: white;
  background-color: transparent;
  border: 2px solid var(--pink-color);
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 500;
  letter-spacing: 0.5px;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(242, 114, 106, 0.3);
  animation: button-slide-up 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation-delay: 1.2s;
  background: linear-gradient(135deg, rgba(242, 114, 106, 0.3), rgba(255, 134, 128, 0.2));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity, box-shadow;
  pointer-events: auto;
}

.button-link:hover button,
button:hover {
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(242, 114, 106, 0.5);
  transform: scale(1.05);
  background: transparent;
}

button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  z-index: -2;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button-link:hover button:after,
button:hover:after {
  opacity: 1;
}

/* Discord Presence Section - Cải tiến */
.discord-presence {
  width: 90%;
  margin: 0 auto 15px;
  padding: 0;
  background-color: rgba(32, 34, 37, 0.55);
  background-image: linear-gradient(to bottom, rgba(40, 43, 48, 0.6), rgba(24, 26, 27, 0.6));
  border-radius: 12px;
  border: 1px solid rgba(79, 84, 92, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: discord-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation-delay: 1.3s;
  will-change: transform, opacity;
}

@keyframes discord-appear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discord-presence::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5865f2, #7289da, #5865f2);
  background-size: 200% auto;
  animation: gradient-shift 3s linear infinite;
  z-index: 1;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.discord-presence::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(88,101,242,0.3), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.discord-presence:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 101, 242, 0.4);
}

.discord-presence:hover::after {
  opacity: 0.8;
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* Discord Card Style - Nitro Layout */
.discord-card {
  width: 100%;
  padding: 12px;
  color: #fff;
  position: relative;
  transition: transform 0.3s ease;
}

/* Discord Nitro Layout Style */
.discord-nitro-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

/* Avatar container để định vị status badge */
.avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Side Avatars */
.discord-side-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.discord-side-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(114, 137, 218, 0.7);
}

/* Rich Presence activity icon */
.discord-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.discord-activity-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px rgba(114, 137, 218, 0.7);
}

/* Placeholder cho trường hợp không có icon */
.discord-placeholder-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(79, 84, 92, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Central Info Container */
.discord-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* Username and badges container */
.discord-user-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 4px;
}

/* Username styling */
.discord-username {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Activity line */
.discord-activity-line {
  color: #dcddde;
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Details line */
.discord-details-line {
  color: #b9bbbe;
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Time line - hiển thị thời gian bằng tiếng Việt */
.discord-time-line {
  color: #72767d;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.2;
  margin-top: 2px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.discord-time-line:hover {
  opacity: 1;
  color: #b9bbbe;
}

/* Badge styling */
.badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  margin: 0 2px;
  position: relative;
  z-index: 1;
}

.badge-icon:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 1px 5px rgba(88, 101, 242, 0.7));
  z-index: 5;
}

/* Special badge effects */
.badge-icon[src*="2ba85e8026a8614b640c2837bcdfe21b"] {
  /* Nitro badge */
  filter: drop-shadow(0 0 3px rgba(80, 160, 250, 0.7));
}

.badge-icon[src*="2ba85e8026a8614b640c2837bcdfe21b"]:hover {
  filter: drop-shadow(0 0 6px rgba(80, 160, 250, 0.9));
  animation: nitro-pulse 2s infinite;
}

.badge-icon[src*="72bed924410c304dbe3d00a6e593ff59"] {
  /* Server Boost badge */
  filter: drop-shadow(0 0 3px rgba(255, 115, 250, 0.7));
}

.badge-icon[src*="72bed924410c304dbe3d00a6e593ff59"]:hover {
  filter: drop-shadow(0 0 6px rgba(255, 115, 250, 0.9));
  animation: boost-pulse 2s infinite;
}

/* Bug Hunter badge */
.badge-icon[src*="2717692c7dca7289b35297368a940dd0"] {
  filter: drop-shadow(0 0 3px rgba(67, 181, 129, 0.7));
}

.badge-icon[src*="2717692c7dca7289b35297368a940dd0"]:hover {
  filter: drop-shadow(0 0 6px rgba(67, 181, 129, 0.9));
  animation: bug-pulse 2s infinite;
}

/* Early Supporter */
.badge-icon[src*="7060786766c9c840eb3019e725d2b358"] {
  filter: drop-shadow(0 0 3px rgba(233, 30, 99, 0.7));
}

.badge-icon[src*="7060786766c9c840eb3019e725d2b358"]:hover {
  filter: drop-shadow(0 0 6px rgba(233, 30, 99, 0.9));
  animation: early-pulse 2s infinite;
}

@keyframes nitro-pulse {
  0% { transform: scale(1.3); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1.3); }
}

@keyframes boost-pulse {
  0% { transform: scale(1.3) rotate(0deg); }
  50% { transform: scale(1.4) rotate(5deg); }
  100% { transform: scale(1.3) rotate(0deg); }
}

@keyframes bug-pulse {
  0% { transform: scale(1.3); }
  50% { transform: scale(1.4) rotate(10deg); }
  100% { transform: scale(1.3); }
}

@keyframes early-pulse {
  0% { transform: scale(1.3); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1.3); }
}

/* Status indicator */
.status-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  bottom: -2px;
  right: -2px;
}

.status-badge::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(32, 34, 37, 0.95);
  top: -4px;
  left: -4px;
  animation: pulse-status 2s infinite;
}

.status-online {
  background-color: #3ba55c;
  box-shadow: 0 0 5px rgba(59, 165, 92, 0.5);
}

.status-idle {
  background-color: #faa61a;
  box-shadow: 0 0 5px rgba(250, 166, 26, 0.5);
}

.status-dnd {
  background-color: #ed4245;
  box-shadow: 0 0 5px rgba(237, 66, 69, 0.5);
}

.status-offline {
  background-color: #747f8d;
  box-shadow: 0 0 5px rgba(116, 127, 141, 0.5);
}

/* Offline message */
.discord-offline-message {
  color: #dcddde;
  font-size: 0.9rem;
  text-align: center;
  padding: 15px 0;
}

/* Discord Roles */
.discord-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.role-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.4);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.role-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0));
  transition: all 0.5s ease;
}

.role-tag:hover::before {
  left: 100%;
}

.role-tag:hover {
  filter: brightness(1.2);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 0 8px rgba(88, 101, 242, 0.4);
  background-color: rgba(88, 101, 242, 0.25);
}

/* Activity */
.discord-user-activity {
  background-color: rgba(49, 51, 56, 0.7);
  background-image: linear-gradient(to bottom, rgba(59, 61, 66, 0.7), rgba(39, 41, 46, 0.7));
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.discord-user-activity::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.discord-user-activity:hover {
  background-color: rgba(49, 51, 56, 0.9);
  transform: translateY(-2px) scale(1.01);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.discord-user-activity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #5865f2, #7289da);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

.activity-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.activity-text {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, color 0.3s ease;
}

.discord-user-activity:hover .activity-text {
  color: #fff;
  transform: translateX(2px);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.activity-type {
  font-size: 0.8rem;
  color: #b9bbbe;
  font-weight: normal;
  margin-right: 4px;
  opacity: 0.9;
}

.activity-details, 
.activity-state,
.activity-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  padding-left: 10px;
  letter-spacing: 0.2px;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.activity-details::before,
.activity-state::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: rgba(88, 101, 242, 0.7);
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.discord-user-activity:hover .activity-details,
.discord-user-activity:hover .activity-state {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(2px);
}

.discord-user-activity:hover .activity-details::before,
.discord-user-activity:hover .activity-state::before {
  opacity: 1;
  background-color: #5865f2;
  box-shadow: 0 0 5px rgba(88, 101, 242, 0.7);
}

.activity-time {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.discord-user-activity:hover .activity-time {
  opacity: 1;
}

/* Icon */
.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-icon {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000;
  font-weight: bold;
  font-size: 0.8rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.lang-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.lang-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.lang-icon:hover::before {
  transform: translateY(0);
}

.lang-icon:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(241, 196, 15, 0.6);
}

.lang-icon-image {
  color: #000;
  font-weight: bold;
  font-size: 0.8rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.lang-icon-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.lang-icon-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.lang-icon-image:hover::before {
  transform: translateY(0);
}

.lang-icon-image:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(241, 196, 15, 0.6);
}

/* Thêm hiệu ứng pulse cho activity mới */
@keyframes pulse-activity {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.discord-user-activity.new-activity {
  animation: pulse-activity 2s infinite;
}

/* Tối ưu hóa cho các thiết bị di động */
@media (max-width: 480px) {
  .discord-presence {
    width: 95%;
  }
  
  .discord-card {
    padding: 12px;
  }
  
  .discord-user-avatar {
    width: 36px;
    height: 36px;
  }
  
  .activity-details, 
  .activity-state {
    font-size: 0.75rem;
  }
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .card {
    width: 100%;
    min-height: 450px;
  }

  .click-to-enter {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 15px 30px;
  }
  
  .card__img {
    width: 110px;
    height: 110px;
    margin: 25px auto 15px;
  }
  
  .card__social {
    gap: 15px;
  }
  
  .card__social a {
    font-size: 18px;
    width: 36px;
    height: 36px;
  }
  
  button {
    padding: 10px 24px;
  }
  
  .discord-presence {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .card {
    min-height: 420px;
  }
  
  .card__img {
    width: 100px;
    height: 100px;
    margin: 20px auto 15px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 0.85rem;
  }
  
  .card__social {
    gap: 12px;
    margin: 20px 0;
  }
  
  .card__social a {
    font-size: 16px;
    width: 32px;
    height: 32px;
  }
  
  button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .discord-presence {
    width: 95%;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .card {
    background-color: rgba(22, 23, 24, 0.85);
  }
  
  .discord-presence {
    background-color: rgba(22, 24, 27, 0.95);
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }
  
  .video-background, 
  .click-to-enter {
    display: none;
  }
  
  .content-container {
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    color: black;
    background: white;
  }
  
  h2, p {
    color: black;
  }
}

/* YouTube Widget Container */
.youtube-widget-container {
  width: 90%;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(32, 34, 37, 0.55);
  background-image: linear-gradient(to bottom, rgba(40, 43, 48, 0.6), rgba(24, 26, 27, 0.6));
  animation: discord-appear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 450px;
  padding: 0;
  height: 105px;
  border: 1px solid rgba(79, 84, 92, 0.4);
}

.youtube-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0000, #ff5e5e, #ff0000);
  background-size: 200% auto;
  animation: gradient-shift 3s linear infinite;
  z-index: 10;
}

.youtube-widget-container:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 0, 0.3);
}

.youtube-widget {
  width: 100%; 
  height: 105px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1);
  transform-origin: top center;
}

/* Media queries for widget on smaller screens */
@media (max-width: 768px) {
  .youtube-widget-container {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .youtube-widget-container {
    width: 95%;
  }
  
  .youtube-widget {
    height: 90px;
  }
}

/* Particles effect */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: particle-animation 8s ease-in-out infinite;
}

@keyframes particle-animation {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* Custom hover effects for buttons and links */
@keyframes btn-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(242, 114, 106, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(242, 114, 106, 0.8), 0 0 20px rgba(242, 114, 106, 0.4);
  }
}

button:active {
  transform: scale(0.95);
}

/* Additional animation for Discord presence */
.discord-presence::after {
  animation: border-glow 3s infinite alternate;
}

@keyframes border-glow {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.8;
  }
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
  will-change: opacity;
  backdrop-filter: blur(5px);
}

.loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pink-color);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader div:nth-child(1) {
  left: 8px;
  animation: loader1 0.6s infinite;
}

.loader div:nth-child(2) {
  left: 8px;
  animation: loader2 0.6s infinite;
}

.loader div:nth-child(3) {
  left: 32px;
  animation: loader2 0.6s infinite;
}

.loader div:nth-child(4) {
  left: 56px;
  animation: loader3 0.6s infinite;
}

@keyframes loader1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loader3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes loader2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.loading-text {
  position: absolute;
  bottom: 20px;
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 20px;
  animation: pulse 1.5s infinite;
}

/* Animation cho social icon */
.card__social a {
  animation: social-pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.5);
  will-change: transform, opacity;
}

.card__social a:nth-child(1) { animation-delay: 0.7s; }
.card__social a:nth-child(2) { animation-delay: 0.8s; }
.card__social a:nth-child(3) { animation-delay: 0.9s; }
.card__social a:nth-child(4) { animation-delay: 1.0s; }
.card__social a:nth-child(5) { animation-delay: 1.1s; }

@keyframes social-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation cho profile image */
.card__img {
  animation: profile-pop-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  animation-delay: 0.3s;
  will-change: transform, opacity;
}

@keyframes profile-pop-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animation cho thông tin cá nhân */
h2, p {
  animation: text-fade-in 0.9s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
}

h2 {
  animation-delay: 0.5s;
}

p {
  animation-delay: 0.6s;
}

@keyframes text-fade-in {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation cho button */
button {
  animation: button-slide-up 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation-delay: 1.2s;
  will-change: transform, opacity;
}

@keyframes button-slide-up {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hiệu ứng khi hover button */
@keyframes button-hover-glow {
  0% {
    box-shadow: 0 4px 15px rgba(242, 114, 106, 0.3);
  }
  50% {
    box-shadow: 0 6px 22px rgba(242, 114, 106, 0.6), 0 0 15px rgba(242, 114, 106, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(242, 114, 106, 0.3);
  }
}

button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(242, 114, 106, 0.3);
}