/* ============================================
   Bio Link — White & Green | Hero Photo Layout
   Rizki Aditama | Traders & Entrepreneur
   ============================================ */

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

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 4px 20px rgba(16, 185, 129, 0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a2e1f;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  color: var(--gray-800);
}

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Phone Frame ---- */
.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--gray-50);
}

@media (min-width: 431px) {
  .phone-frame {
    border-radius: 36px;
    min-height: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    margin: 24px auto;
    border: 2px solid rgba(255,255,255,0.1);
  }
}

/* ===== HERO SECTION (photo only) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.1s ease-out;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 46, 22, 0.1) 0%,
    rgba(5, 46, 22, 0.05) 40%,
    rgba(5, 46, 22, 0.3) 70%,
    rgba(5, 46, 22, 0.85) 90%,
    rgba(5, 46, 22, 1) 100%
  );
  z-index: 1;
}

/* ===== PROFILE INFO (below photo) ===== */
.profile-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 20px;
  margin-top: -80px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gray-50) 60px
  );
}

/* Name */
.hero-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  animation: fadeSlideUp 0.7s ease forwards;
}

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

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.hero-tagline {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  animation: fadeSlideUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.cursor {
  display: inline-block;
  color: var(--green-400);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

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

/* Stats Badge */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 50px;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

.stats-badge svg {
  color: #ff0000;
}

.stats-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: 0.3px;
}

/* Social Row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  animation: fadeSlideUp 0.7s ease 0.4s forwards;
  opacity: 0;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===== CARDS SECTION ===== */
.cards-section {
  position: relative;
  z-index: 3;
  padding: 0 18px 24px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Base Card */
.card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--gray-100);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Featured Card */
.card.featured {
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-50) 100%);
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.card.featured::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: var(--green-100);
  border-radius: 50%;
  opacity: 0.5;
}

/* Shine sweep */
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shine 3.5s ease-in-out infinite 1.5s;
  z-index: 2;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.card-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-600);
  transition: transform 0.25s ease;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-text h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.card-text p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-green);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Link Cards */
.card.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--gray-800);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.card.link:hover {
  border-color: #6ee7b7;
  box-shadow: var(--shadow-md);
}

.card.link:hover .card-icon {
  transform: scale(1.08);
}

.card.link:hover .arrow {
  transform: translateX(4px);
  color: var(--green-500);
}

.card.link .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.card-icon.blue {
  background: #eff6ff;
  color: #3b82f6;
}

.card-icon.orange {
  background: #fff7ed;
  color: #f97316;
}

.card-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.card-icon.red-yt {
  background: #fee2e2;
  color: #ef4444;
}

.card-icon.green-wa {
  background: #ecfdf5;
  color: #25d366;
}

.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
}

.link-sublabel {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 1px;
}

.arrow {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 20px 0 24px;
  background: var(--gray-50);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.25s ease;
}

.footer-link:hover {
  color: var(--green-600);
  border-color: var(--green-400);
  box-shadow: var(--shadow-sm);
}

/* ---- Scroll Reveal Animation ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.cards-section .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.cards-section .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.cards-section .animate-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.cards-section .animate-on-scroll:nth-child(4) { transition-delay: 0.35s; }
.cards-section .animate-on-scroll:nth-child(5) { transition-delay: 0.45s; }

/* ---- Responsive ---- */
@media (max-width: 430px) {
  .hero {
    height: 420px;
  }

  .hero-name {
    font-size: 1.9rem;
  }

  .profile-info {
    padding: 0 20px 16px;
  }

  .cards-section {
    padding: 0 16px 20px;
  }
}