.floating {
  animation: floatUpDown 3.5s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ========== Reset & Base ========== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #819FF7;
  color: #333;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
  font-size: 16px;
}
html {
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}


.navbar .nav-link {
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #0d6efd;
}
.navbar-brand img {
  border-radius: 5px;
  object-fit: contain;
}

/* ========== Hero Section ========== */
.hero-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  text-align: center;
  position: relative;
}
.hero-section h1 span#typed-text {
  border-right: 2px solid #ccc;
  padding-right: 4px;
}
.hero-section .btn:hover {
  transform: translateY(-5px);
  background-color: #0056b3;
  transition: all 1.5s ease-in-out;
}

.avatar-box {
  animation: fadeIn 1s ease-in-out;
  border-radius: 16px;
}

.inner-avatar {
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease-in-out;
}

.avatar-img-upgraded {
  transition: transform 0.4s ease;
}
.avatar-img-upgraded:hover {
  transform: scale(1.05);
}

/* Hiệu ứng khung glow (optional) */
.glow-circle {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite ease-in-out;
}

/* Animation thêm nếu cần */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .6;
  }
  50% {
    transform: scale(1.2);
    opacity: .3;
  }
  100% {
    transform: scale(1);
    opacity: .6;
  }
}


/* ========== Avatar ========== */
.avatar-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
  animation: floatAvatar 4s ease-in-out infinite;
}
.avatar-img:hover {
  transform: scale(1.05);
}
.avatar-border-gradient {
  background: linear-gradient(45deg, #cddffe, #cddffe, #6a11cb, #2575fc);
  background-size: 300% 300%;
  animation: gradientFlow 6s ease infinite;
  display: inline-block;
  border-radius: 50%;
}
@keyframes floatAvatar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== Swiper Slide ========== */
.mySwiper .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #e0e0e0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.mySwiper .swiper-slide img:hover {
  transform: scale(1.03);
  border-color: #007bff;
}

/* ========== Section Base ========== */
.landing-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f7f7f7;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Cards ========== */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}
.card-img-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: transform 0.4s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}

/* ========== Posts ========== */
.post-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 5px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}
.post-card {
  transition: transform 0.3s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ========== Contact Form ========== */
#contact .form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: none;
  transition: border-color 0.3s ease;
}
#contact .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}
#contact label {
  font-weight: 500;
  margin-bottom: 6px;
}




@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.avatar-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1/1;
}


@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .swiper-slide img {
    height: 180px;
  }
}
.mySwiper .swiper-slide img {
  transition: transform 0.4s ease, filter 0.3s;
  filter: brightness(0.95);
}

.mySwiper .swiper-slide img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}


.service-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  transform: scale(1);
}
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .icon-wrapper {
  background-color: rgba(0, 123, 255, 0.1);
  transform: scale(1.1) rotate(5deg);
}
.hero-section-xinso {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
}

.text-glow {
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}


input.form-control:focus,
textarea.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

input::placeholder,
textarea::placeholder {
  font-style: italic;
  color: #aaa;
}

.floating {
  animation: floatUpDown 3.5s ease-in-out infinite, glowAvatar 4s ease-in-out infinite;
}
@keyframes glowAvatar {
  0%, 100% { box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
  50% { box-shadow: 0 20px 40px rgba(255,255,255,0.25); }
}
.mySwiper .swiper-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.mySwiper .swiper-slide img:hover {
  transform: scale(1.03);
}

