:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  min-height: 100%;
  position: relative;
  /* Tối ưu rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Loading Animation - Optimized */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
  will-change: transform;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 2;
  position: relative;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  will-change: opacity, transform;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  will-change: opacity, transform;
}

.typed-text {
  border-right: 2px solid white;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: white;
  }
  51%,
  100% {
    border-color: transparent;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
  will-change: opacity, transform;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
  cursor: pointer;
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  color: var(--primary-color);
  transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
  background: var(--bg-light);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.gallery-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: none;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.load-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
  padding: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.load-more-container .btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.load-more-container .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.load-more-container .btn:hover::before {
  left: 100%;
}

.load-more-container .btn:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(107, 70, 193, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skills Section */
.skills {
  background: white;
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skills-category h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateX(10px);
}

.skill-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  border-radius: 10px;
  font-size: 1.5rem;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.skill-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}

.hobby-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.hobby-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.hobby-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.hobby-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hobby-item h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hobby-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background: var(--gradient);
  color: white;
}

.contact .section-title,
.contact .section-subtitle {
  color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1.2rem;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.social-links h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.social-btn i {
  font-size: 1.14rem;
}

/* QR Payment Section */
.payment-qr {
  margin-top: 4rem;
  text-align: left;
  width: 100%;
}

.payment-qr h3 {
  margin-bottom: 2.5rem;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.qr-container {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-width: 450px;
  margin: 0;
  text-align: center;
  cursor: pointer;
}

.qr-container:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.qr-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 15px;
  background: white;
  padding: 15px;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: block;
}

.qr-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.qr-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  text-align: center;
}

.qr-note {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1.2rem;
}

.qr-container:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 6px;
}

.bank-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 26, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bank-modal.active {
  display: flex;
}

.bank-modal-content {
  position: relative;
  width: 520px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: 85vh;
  background: linear-gradient(
    160deg,
    rgba(100, 67, 255, 0.92),
    rgba(51, 16, 90, 0.95)
  );
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

@supports (height: 100dvh) {
  .bank-modal-content {
    max-height: 85dvh;
  }
}

.bank-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.bank-modal-close:hover,
.bank-modal-close:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.bank-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.bank-modal-subtitle,
.bank-modal-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.bank-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.bank-search i {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.bank-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.bank-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.bank-search input:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.22);
}

.bank-status {
  min-height: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.bank-list {
  overflow: visible;
  padding: 12px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.bank-item:hover,
.bank-item:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  filter: brightness(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.bank-item img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  flex-shrink: 0;
}

.bank-item .bank-logo-fallback {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08)
  );
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.bank-item .bank-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.bank-item .bank-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-item .bank-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bank-modal {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .bank-modal-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    margin: 0;
  }

  .bank-list {
    padding: 10px;
    gap: 8px;
  }

  .bank-item {
    width: 100%;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 12px;
  }

  @supports (height: 100dvh) {
    .bank-modal-content {
      max-height: calc(100dvh - 24px);
    }
  }
}

@media (max-width: 380px) {
  .bank-modal-content {
    padding: 20px 14px;
  }

  .bank-item {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 8px 12px;
    gap: 8px;
  }

  .bank-item img,
  .bank-item .bank-logo-fallback {
    width: 36px !important;
    height: 36px !important;
  }

  .bank-item .bank-name {
    font-size: 14px;
    line-height: 1.2;
  }

  .bank-item .bank-desc {
    font-size: 11px;
    line-height: 1.2;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #2c3e50;
  padding: 1.5rem 0;
  border-top: 2px solid rgba(114, 137, 218, 0.15);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text p {
  color: #5d6d7e;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

.scroll-top {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #7289da 0%, #8c52ff 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(114, 137, 218, 0.25);
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5b6eae 0%, #7041d4 100%);
  box-shadow: 0 5px 18px rgba(114, 137, 218, 0.4);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-navigation {
  position: fixed;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10002;
}

.lightbox-nav {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 80%;
  z-index: 10001;
}

.lightbox-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  z-index: 10001;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    padding: 0.5rem 2rem;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 0.5rem 0;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .gallery-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .skills-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-container {
    max-width: 300px !important;
    padding: 1.5rem !important;
  }

  .qr-image {
    width: 180px !important;
    height: 180px !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hobby-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hobby-items {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }

  .qr-container {
    max-width: 280px !important;
    padding: 1rem !important;
  }

  .qr-image {
    width: 150px !important;
    height: 150px !important;
  }

  .payment-qr h3 {
    font-size: 1.3rem !important;
  }
}

/* Animations - Optimized for performance */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hidden class for gallery filtering */
.gallery-item.hidden {
  display: none;
}

/* ================================================================
   CUSTOM NOTIFICATION MODAL (Thay thế alert/confirm)
   ================================================================ */
.custom-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999; /* Tăng z-index để luôn hiển thị trên cùng */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.custom-notification.active {
  opacity: 1;
  visibility: visible;
}

.notification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.notification-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 90%;
  width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.custom-notification.active .notification-content {
  transform: scale(1) translateY(0);
}

.notification-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.notification-icon.info {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.notification-icon.warning {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.notification-icon.error {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: white;
}

.notification-icon.success {
  background: linear-gradient(135deg, #30cfd0, #330867);
  color: white;
}

.notification-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.notification-message {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.notification-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.notification-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.notification-btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.notification-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.notification-btn-secondary {
  background: #f1f5f9;
  color: var(--text-dark);
}

.notification-btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.notification-btn:active {
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-content {
    max-width: 85%;
    padding: 1.5rem;
  }

  .notification-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .notification-title {
    font-size: 1.3rem;
  }

  .notification-message {
    font-size: 0.95rem;
  }

  .notification-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    min-width: 100px;
  }
}

/* ============================================
   GALLERY MODAL (Full View)
   ============================================ */
/* Gallery Modal Styles - Premium Clean Design */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafafa;
  z-index: 10000;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: #ffffff;
  border-bottom: 1px solid #efefef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gallery-modal-header h3 {
  color: #2c2c2c;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gallery-modal-close {
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  color: #757575;
  font-size: 1.4rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.gallery-modal-close:hover {
  background: #f5f5f5;
  color: #424242;
  border-color: #bdbdbd;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-modal-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 3rem 2.5rem;
  overflow: hidden;
  position: relative;
  background: #fafafa;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  scroll-behavior: smooth;
}

.gallery-modal-grid .gallery-item {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  background: #ffffff;
  border: 1px solid #f0f0f0;
}

.gallery-modal-grid .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.gallery-modal-grid .gallery-item img,
.gallery-modal-grid .gallery-item video {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal-grid .gallery-item:hover img,
.gallery-modal-grid .gallery-item:hover video {
  transform: scale(1.05);
}

/* Custom Scrollbar - Premium Design */
.gallery-modal-grid::-webkit-scrollbar {
  width: 12px;
}

.gallery-modal-grid::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
  margin: 8px 0;
}

.gallery-modal-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b0b0b0, #d0d0d0);
  border-radius: 10px;
  border: 3px solid #fafafa;
  transition: background 0.3s ease;
}

.gallery-modal-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #909090, #b0b0b0);
}

.gallery-modal-grid::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #707070, #909090);
}

/* Firefox scrollbar */
.gallery-modal-grid {
  scrollbar-width: thin;
  scrollbar-color: #b0b0b0 #f0f0f0;
}

/* Tablet & Mobile responsive */
@media (max-width: 1024px) {
  .gallery-modal-content {
    padding: 2.5rem 2rem;
  }

  .gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-modal-header {
    padding: 1.5rem 1.5rem;
  }

  .gallery-modal-header h3 {
    font-size: 1.25rem;
  }

  .gallery-modal-close {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .gallery-modal-content {
    padding: 2rem 1.5rem;
  }

  .gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    padding: 0.75rem;
  }

  .gallery-modal-grid .gallery-item {
    border-radius: 10px;
  }

  /* Thinner scrollbar on tablet */
  .gallery-modal-grid::-webkit-scrollbar {
    width: 8px;
  }

  .gallery-modal-grid::-webkit-scrollbar-thumb {
    border: 2px solid #fafafa;
  }
}

@media (max-width: 480px) {
  .gallery-modal-header {
    padding: 1.25rem 1.25rem;
  }

  .gallery-modal-header h3 {
    font-size: 1.1rem;
  }

  .gallery-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .gallery-modal-content {
    padding: 1.5rem 1rem;
  }

  .gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }

  .gallery-modal-grid .gallery-item {
    border-radius: 8px;
  }

  /* Even thinner scrollbar on mobile */
  .gallery-modal-grid::-webkit-scrollbar {
    width: 6px;
  }

  .gallery-modal-grid::-webkit-scrollbar-track {
    margin: 4px 0;
  }

  .gallery-modal-grid::-webkit-scrollbar-thumb {
    border: 2px solid #fafafa;
  }
}
