/* ===== ANIMATION BACKGROUND ===== */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== RESET & CHUNG ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
  padding-bottom: 50px;
  background: linear-gradient(-45deg, #00c6ff, #0072ff, #ff66cc, #ff9966);
  background-size: 400% 400%;
  animation: gradient-flow 10s ease infinite;
  position: relative;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 1;
}

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: #64b5f6;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.navbar a:hover {
  text-decoration: underline;
  color: #ffeb3b;
}

/* ===== PROFILE CARD ===== */
.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  animation: fadeInUp 0.8s ease;
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(249, 3, 232, 0.3);
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #64b5f6;
}

h2 {
  font-size: 28px;
  color: #ad3636;
}

p {
  margin: 10px 0;
  color: #3d2424;
}

.buttons {
  margin-top: 15px;
}

button {
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s;
}

button:hover {
  background-color: #a556f4;
  color: #eff396;
  transform: scale(1.05);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble-light {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: bubble-float 0.8s ease-out forwards;
  box-shadow: 0 0 10px rgba(239, 112, 220, 0.7);
}

@keyframes bubble-float {
  to {
    transform: translateY(-30px) scale(0.5);
    opacity: 0;
  }
}

.auto-bubble {
  position: fixed;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: float-up 4s ease-in infinite;
  z-index: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

.click-ripple {
  position: fixed;
  width: 50px;
  height: 50px;
  background: rgba(220, 244, 111, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple-anim 0.6s ease-out forwards;
}

@keyframes ripple-anim {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.content img,
.content video {
  margin: 10px 10px 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

@keyframes caption-gradient {
  0% {
    background-color: #70e8ea;
  }
  50% {
    background-color: #fcb045;
  }
  100% {
    background-color: #70e8ea;
  }
}

caption {
  font-weight: bold;
  font-size: 18px;
  padding: 10px;
  color: #333;
  animation: caption-gradient 5s ease-in-out infinite;
  transition: background-color 0.3s ease;
}

th,
td {
  padding: 12px;
  border: 1px solid #c5e1a5;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.scroll-down-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #fff;
  opacity: 0.8;
  animation: fade-blink 2s ease-in-out infinite;
}

@keyframes fade-blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.content img {
  transition: all 0.4s ease-in-out;
}

.content img:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.avatar:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

h1 {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(45deg, #391c26, #2d1f53, #18ffff);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: rainbowText 5s linear infinite;
}

@keyframes rainbowText {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
