* { 
  box-sizing: border-box; 
  font-family: system-ui, -apple-system, sans-serif; 
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
}

body { 
  margin: 0; 
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ULTRA SMOOTH BACKGROUND ===== */
.bg-wrapper { 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10; 
  overflow: hidden; 
}

.bg-slide { 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0; 
  transform: scale(1.05);
  filter: brightness(0.95);
  transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.bg-slide.active { 
  opacity: 1; 
  transform: scale(1);
  transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 12s ease-in-out;
}

.bg-overlay { 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5; 
  background: linear-gradient(
    135deg, 
    rgba(253, 231, 243, 0.88) 0%,
    rgba(245, 247, 255, 0.82) 50%,
    rgba(255, 240, 245, 0.92) 100%
  );
  pointer-events: none;
}

/* ===== HEADER & SIDEBAR ===== */
.header { 
  position: fixed; 
  top: 16px; 
  left: 16px; 
  z-index: 100; 
}

.menu { 
  font-size: 26px; 
  cursor: pointer; 
  background: #fff; 
  padding: 8px 14px; 
  border-radius: 12px; 
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); 
  user-select: none; 
  transition: all 0.3s ease;
}

.menu:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.sidebar { 
  position: fixed; 
  top: 0; 
  left: -280px; 
  width: 280px; 
  height: 100%; 
  background: rgba(255, 255, 255, 0.98); 
  padding: 30px 25px; 
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  z-index: 200; 
  box-shadow: 8px 0 40px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

.sidebar.show { 
  left: 0; 
}

.sidebar a { 
  display: block; 
  margin: 18px 0; 
  text-decoration: none; 
  color: #444; 
  font-weight: 600;
  font-size: 17px;
  padding: 12px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background: rgba(255, 61, 124, 0.1);
  color: #ff3d7c;
  transform: translateX(5px);
}

/* ===== MAIN CONTENT ===== */
.container { 
  max-width: 440px; 
  margin: 100px auto 50px; 
  padding: 0 20px; 
  position: relative; 
  z-index: 10; 
}

.card { 
  background: rgba(255, 255, 255, 0.95); 
  border-radius: 22px; 
  padding: 28px; 
  margin-bottom: 28px; 
  text-align: center; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.pill { 
  background: linear-gradient(135deg, #f8f9fa, #e9ecef); 
  padding: 10px 20px; 
  border-radius: 25px; 
  font-size: 14px; 
  margin-bottom: 22px; 
  display: inline-block;
  font-weight: 600;
  color: #555;
  border: 1px solid rgba(0,0,0,0.05);
}

/* ===== HERO SECTION ===== */
.avatar { 
  width: 130px; 
  height: 130px; 
  margin: 0 auto 20px; 
  position: relative; 
}

.avatar img { 
  width: 100%; 
  height: 100%; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.online { 
  width: 18px; 
  height: 18px; 
  background: #2ecc71; 
  border-radius: 50%; 
  position: absolute; 
  bottom: 10px; 
  right: 10px; 
  border: 4px solid #fff; 
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

h1 {
  font-size: 32px;
  margin: 10px 0;
  color: #222;
  font-weight: 700;
}

.meta { 
  font-size: 16px; 
  color: #666;
  margin: 15px 0 25px;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn { 
  display: inline-block; 
  background: linear-gradient(135deg, #ff3d7c, #ff6b9d); 
  color: #fff; 
  padding: 16px 32px; 
  border-radius: 30px; 
  text-decoration: none; 
  margin-top: 20px; 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  font-size: 17px;
  border: none;
  box-shadow: 0 8px 25px rgba(255, 61, 124, 0.3);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn.small { 
  padding: 14px 28px; 
  font-size: 16px;
}

.btn:hover { 
  transform: translateY(-5px) scale(1.05); 
  box-shadow: 0 15px 35px rgba(255, 61, 124, 0.4); 
}

.cta { 
  cursor: pointer; 
}

/* ===== QUIZ SECTION ===== */
.quiz { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
  margin-top: 20px;
}

.quiz select { 
  padding: 15px 20px; 
  border-radius: 15px; 
  border: 2px solid #e1e5e9; 
  font-size: 16px;
  background: white;
  color: #333;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ff3d7c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

.quiz select:focus {
  outline: none;
  border-color: #ff3d7c;
  box-shadow: 0 0 0 3px rgba(255, 61, 124, 0.1);
}

/* ===== GALLERY SECTION ===== */
.gallery { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; 
  margin-top: 20px;
}

.gallery-item { 
  display: block;
  position: relative; 
  overflow: hidden; 
  border-radius: 18px; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1/1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover { 
  transform: scale(1.08) rotate(2deg); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.25); 
  z-index: 2;
}

.gallery-item img { 
  width: 100%; 
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay { 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7)); 
  color: #fff; 
  display: flex; 
  align-items: flex-end;
  justify-content: center; 
  font-weight: 700; 
  font-size: 16px;
  opacity: 0; 
  transition: all 0.4s ease;
  padding-bottom: 20px;
  transform: translateY(20px);
}

.gallery-item:hover .overlay { 
  opacity: 1; 
  transform: translateY(0); 
}

/* ===== CONTACT SECTION ===== */
.contact-info p { 
  font-size: 16px; 
  line-height: 1.7; 
  margin: 12px 0; 
  color: #444;
}

.contact-info a { 
  color: #ff3d7c; 
  text-decoration: none; 
  font-weight: 600; 
  transition: all 0.3s ease;
  position: relative;
}

.contact-info a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff3d7c;
  transition: width 0.3s ease;
}

.contact-info a:hover::after {
  width: 100%;
}

.contact-info a:hover { 
  text-decoration: none; 
  color: #ff1f6d;
}

.contact-note { 
  margin-top: 25px; 
  font-size: 15px; 
  line-height: 1.8; 
  color: #555; 
  text-align: justify;
  background: rgba(248, 249, 250, 0.6);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #ff3d7c;
}

/* ===== FOOTER ===== */
footer { 
  text-align: center; 
  font-size: 14px; 
  color: #888;
  padding: 25px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
    margin: 80px auto 30px;
    padding: 0 15px;
  }
  
  .card {
    padding: 22px;
    margin-bottom: 22px;
  }
  
  .avatar {
    width: 110px;
    height: 110px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .gallery {
    gap: 10px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .bg-slide {
    background-attachment: scroll;
  }
}