:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.4);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: rgba(255, 255, 255, 0.3);
  --tabs-bg: rgba(255, 255, 255, 0.4);
  --badge-bg: rgba(255, 255, 255, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(https://4kwallpapers.com/images/walls/thumbs_3t/25118.jpg)
    no-repeat center center fixed;
  background-size: cover;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Left Section */
.profile-left {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border-color);
}

.avatar-wrapper {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.name {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 5px;
  text-align: center;
}
/* typing effect */
.title {
  background: linear-gradient(
    to right,
    #ef4444,
    #f59e0b,
    #eeee22,
    #10b981,
    #3b82f6,
    #6366f1,
    #8b5cf6
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  height: 1.4rem;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
  to {
    background-position: 200% center;
  }
}

.cursor {
  animation: blink 1s infinite;
  font-weight: 300;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  /* text-shadow: 0 0 2px var(--primary); */
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* end typing effect */

.side-info {
  width: 100%;
  margin-bottom: 30px;
}

.side-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.side-info-item i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.side-info-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.side-info-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
}

/* Right Section */
.profile-right {
  flex: 1.8;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.tabs-container {
  background: var(--tabs-bg);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro Tab Styles */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.intro-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  color: var(--text-main);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.badge i {
  font-size: 1.1rem;
}

/* Technology Specific Colors */
.badge.html i {
  color: #e34f26;
}
.badge.css i {
  color: #1572b6;
}
.badge.bootstrap i {
  color: #7952b3;
}
.badge.js i {
  color: #f7df1e;
}
.badge.react i {
  color: #61dafb;
}
.badge.vue i {
  color: #42b883;
}
.badge.node i {
  color: #339933;
}
.badge.figma i {
  color: #f24e1e;
}
.badge.git i {
  color: #f05032;
}
.badge.docker i {
  color: #2496ed;
}
.badge.laravel i {
  color: #ff2d20;
}
.badge.php i {
  color: #777bb4;
}
.badge.mysql i {
  color: #00758f;
}
.badge.sql-server i {
  color: #cc2927;
}
.badge.nextjs i {
  color: #000000;
}
.badge.python i {
  color: #3776ab;
}

.badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.badge.html:hover {
  border-color: #e34f26;
}
.badge.css:hover {
  border-color: #1572b6;
}
.badge.tailwind:hover {
  border-color: #38bdf8;
}
.badge.bootstrap:hover {
  border-color: #7952b3;
}
.badge.js:hover {
  border-color: #f7df1e;
}
.badge.react:hover {
  border-color: #61dafb;
}
.badge.vue:hover {
  border-color: #42b883;
}
.badge.node:hover {
  border-color: #339933;
}
.badge.figma:hover {
  border-color: #f24e1e;
}
.badge.git:hover {
  border-color: #f05032;
}
.badge.docker:hover {
  border-color: #2496ed;
}
.badge.laravel:hover {
  border-color: #ff2d20;
}
.badge.php:hover {
  border-color: #777bb4;
}
.badge.mysql:hover {
  border-color: #00758f;
}
.badge.sql-server:hover {
  border-color: #cc2927;
}
.badge.nextjs:hover {
  border-color: #000000;
}
.badge.cloudflare:hover {
  border-color: #f6821f;
}

/* Hobbies Tab Styles */
.hobbies-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(auto-fill, minmax(120px, auto));
  gap: 12px;
}

.bento-item {
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item.large {
  grid-column: span 2;
}
.bento-item.tall {
  grid-row: span 2;
}

.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item i {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.bento-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.bento-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.bento-bg-icon {
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 5rem;
  opacity: 0.1;
  transform: rotate(-15deg);
  transition: all 0.5s ease;
  z-index: 1;
}

/* Colors & Hover */
.bento-item.code {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}
.bento-item.game {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}
.bento-item.music {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}
.bento-item.sleep {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}
.bento-item.movie {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}
.bento-item.eat {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(255, 255, 255, 0.2)
  );
}

.bento-item:hover {
  transform: scale(0.98);
  border-color: var(--primary);
}

.bento-item.code:hover {
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.4);
}
.bento-item.game:hover {
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.4);
}
.bento-item.music:hover {
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.4);
}
.bento-item.sleep:hover {
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.4);
}
.bento-item.movie:hover {
  box-shadow: 0 10px 30px -10px rgba(167, 139, 250, 0.4);
}
.bento-item.eat:hover {
  box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.4);
}

.bento-item:hover .bento-bg-icon {
  transform: rotate(0deg) scale(1.2);
  opacity: 0.2;
}

.bento-item.music .bento-content,
.bento-item.sleep .bento-content {
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bento-item {
  cursor: pointer;
}

/* Hobby Interactive Elements Styles */
#hobby-dynamic-content {
  width: 100%;
}

.hobby-element {
  position: relative;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 15px;
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.hobby-element.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Music Player specific */
.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.music-bars span {
  width: 3px;
  background: var(--primary);
  animation: musicWave 1s ease-in-out infinite;
}

.music-bars span:nth-child(2) {
  height: 60%;
  animation-delay: 0.2s;
}
.music-bars span:nth-child(3) {
  height: 100%;
  animation-delay: 0.4s;
}
.music-bars span:nth-child(4) {
  height: 40%;
  animation-delay: 0.6s;
}

@keyframes musicWave {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}

.track-details {
  display: flex;
  flex-direction: column;
}

.track-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}
.track-status {
  font-size: 0.75rem;
  color: var(--primary);
}

/* Music Player Controls */
.music-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 15px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 5px;
}

.control-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.control-btn.play-pause {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.player-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

/* Terminal specific */
.hobby-element.terminal {
  flex-direction: column;
  background: #1e1e1e;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  padding: 0;
  overflow: hidden;
  border: 1px solid #333;
}

.terminal-header {
  background: #333;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.terminal-title {
  color: #ccc;
  font-size: 0.7rem;
  margin-left: 10px;
  font-family: sans-serif;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.terminal-body {
  padding: 15px;
  font-size: 0.8rem;
  width: 100%;
}

.prompt {
  color: var(--primary);
  font-weight: bold;
}

/* Video Overlay Styles */
.hobby-element.video-overlay {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
  border: 2px solid var(--primary);
}

.hobby-element.video-overlay video {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}

.hobby-element.video-overlay .player-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Sleep Mode */
body.sleep-mode::after {
  content: "Zzz...";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 20, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  animation: fadeInOut 4s forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Contact Tab Styles (Upgraded) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.824);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
  background: var(--badge-bg);
}

.contact-info {
  flex: 1;
}

.platform {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.username {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
}

.contact-card:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Quiz Tab Styles */
.quiz-container {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--card-border);
}

.quiz-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), #8b5cf6);
  width: 0%;
  transition: width 0.4s ease;
}

.q-index {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz-question-box h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.quiz-opt {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.quiz-opt:hover {
  background: white;
  transform: translateX(5px);
  border-color: var(--primary);
}

.quiz-opt.correct {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.quiz-opt.wrong {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Result Screen */
.result-box {
  text-align: center;
  padding: 20px 0;
}

.result-image {
  width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.score-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 15px 0;
}

.retry-btn {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.retry-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Specific Platform Colors */
.contact-card.facebook .contact-icon {
  color: #1877f2;
}
.contact-card.instagram .contact-icon {
  color: #e4405f;
}
.contact-card.github .contact-icon {
  color: #24292e;
}

.contact-card.email .contact-icon {
  color: #ea4335;
}
.contact-card.zalo .contact-icon {
  color: #0068ff;
}

.contact-card.facebook:hover {
  border-color: #1877f2;
}
.contact-card.instagram:hover {
  border-color: #e4405f;
}
.contact-card.github:hover {
  border-color: #24292e;
}

.contact-card.email:hover {
  border-color: #ea4335;
}
.contact-card.zalo:hover {
  border-color: #0068ff;
}
.contact-card.telegram .contact-icon {
  color: #0088cc;
}
.contact-card.telegram:hover {
  border-color: #0088cc;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    max-width: 450px;
  }
  .profile-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}


