/* ============================================
   MuslimSolo.id — Link-in-Bio Landing Page
   Light Mode · Sakinah Green · Islamic Minimalist · Mobile-First
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Light Sakinah Theme */
  --clr-bg:          #f5f9f5;
  --clr-bg-card:     #ffffff;
  --clr-surface:     #f0f5f0;
  --clr-surface-alt: #e6efe6;
  --clr-primary:     #2e7d52;
  --clr-primary-lt:  #43a06e;
  --clr-primary-dk:  #1b5e3a;
  --clr-accent:      #3cb07a;
  --clr-accent-lt:   #7cd4a8;
  --clr-text:        #1e3a2e;
  --clr-text-muted:  #5d8a72;
  --clr-border:      rgba(46, 125, 82, 0.12);
  --clr-glow:        rgba(60, 176, 122, 0.10);

  /* Brand Colors */
  --clr-youtube:     #FF0000;
  --clr-instagram:   linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --clr-facebook:    #1877F2;
  --clr-threads:     #000000;
  --clr-whatsapp:    #25D366;
  --clr-kajian:      var(--clr-primary);
  --clr-jadwal:      var(--clr-accent);

  /* Typography */
  --ff-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-serif: 'Amiri', 'Georgia', serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows — soft & airy for light theme */
  --shadow-btn:   0 2px 8px rgba(46, 125, 82, 0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(46, 125, 82, 0.12), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-card:  0 4px 24px rgba(46, 125, 82, 0.06), 0 1px 4px rgba(0,0,0,0.03);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--ff-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle gradient background */
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(60, 176, 122, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(46, 125, 82, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Background Pattern — Islamic Geometric ---------- */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232e7d52' stroke-width='0.6'%3E%3C!-- 8-point star center --%3E%3Cpolygon points='40,10 45,20 55,15 50,25 60,30 50,35 55,45 45,40 40,50 35,40 25,45 30,35 20,30 30,25 25,15 35,20'/%3E%3C!-- diamond lattice --%3E%3Cline x1='40' y1='0' x2='80' y2='40'/%3E%3Cline x1='80' y1='40' x2='40' y2='80'/%3E%3Cline x1='40' y1='80' x2='0' y2='40'/%3E%3Cline x1='0' y1='40' x2='40' y2='0'/%3E%3C!-- inner cross --%3E%3Cline x1='40' y1='0' x2='40' y2='80'/%3E%3Cline x1='0' y1='40' x2='80' y2='40'/%3E%3C!-- corner arcs --%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='80' cy='0' r='16'/%3E%3Ccircle cx='0' cy='80' r='16'/%3E%3Ccircle cx='80' cy='80' r='16'/%3E%3C!-- center circle --%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
}

/* Ambient glow orbs — soft & light */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(60, 176, 122, 0.12), transparent 70%);
}

.bg-glow--bottom {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(46, 125, 82, 0.08), transparent 70%);
}

/* ---------- Main Container ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Card Wrapper ---------- */
.card {
  width: 100%;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

/* ---------- Header / Profile ---------- */
.profile {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.profile__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--clr-accent);
  box-shadow: 0 0 16px rgba(60, 176, 122, 0.15), 0 0 32px rgba(60, 176, 122, 0.06);
  overflow: hidden;
  animation: fadeInDown 0.6s var(--ease-out) 0.2s both;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.profile__avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(60, 176, 122, 0.25), 0 0 48px rgba(60, 176, 122, 0.10);
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--clr-text) 0%, var(--clr-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.6s var(--ease-out) 0.35s both;
}

.profile__tagline {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  color: var(--clr-primary);
  letter-spacing: 0.03em;
  animation: fadeInDown 0.6s var(--ease-out) 0.5s both;
}

/* ---------- Bismillah Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  animation: fadeIn 0.6s var(--ease-out) 0.6s both;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.35;
}

.divider__icon {
  color: var(--clr-accent);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ---------- Description ---------- */
.description {
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-sm);
  animation: fadeIn 0.6s var(--ease-out) 0.65s both;
}

/* ---------- Section Labels ---------- */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-primary);
  opacity: 0.6;
  text-align: center;
  margin-bottom: var(--space-md);
  animation: fadeIn 0.6s var(--ease-out) 0.7s both;
}

/* ---------- Link Buttons ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: var(--space-xl);
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-card);
  border: 2.5px solid rgba(46, 125, 82, 0.25);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-btn);
  overflow: hidden;
  text-decoration: none;
}

/* Staggered entrance animation */
.link-btn:nth-child(1) { animation: fadeInUp 0.5s var(--ease-out) 0.8s both; }
.link-btn:nth-child(2) { animation: fadeInUp 0.5s var(--ease-out) 0.9s both; }
.link-btn:nth-child(3) { animation: fadeInUp 0.5s var(--ease-out) 1.0s both; }
.link-btn:nth-child(4) { animation: fadeInUp 0.5s var(--ease-out) 1.1s both; }
.link-btn:nth-child(5) { animation: fadeInUp 0.5s var(--ease-out) 1.2s both; }

/* Shimmer effect on hover */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(60, 176, 122, 0.06), transparent);
  transition: left 0.5s var(--ease-out);
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 125, 82, 0.4);
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-btn);
  transition-duration: 0.1s;
}

/* Icon container */
.link-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}

.link-btn:hover .link-btn__icon {
  transform: scale(1.1);
}

.link-btn__icon svg {
  width: 22px;
  height: 22px;
}

/* Label */
.link-btn__label {
  flex: 1;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-right: 38px; /* Offset for visual centering */
  color: var(--clr-text);
}

/* Brand-specific icon backgrounds */
.link-btn--youtube .link-btn__icon {
  background: rgba(255, 0, 0, 0.08);
  color: var(--clr-youtube);
}
.link-btn--youtube:hover {
  background: linear-gradient(135deg, #fff, rgba(255, 0, 0, 0.04));
}

.link-btn--instagram .link-btn__icon {
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.12), rgba(220, 39, 67, 0.12), rgba(188, 24, 136, 0.12));
  color: #e1306c;
}
.link-btn--instagram:hover {
  background: linear-gradient(135deg, #fff, rgba(225, 48, 108, 0.04));
}

.link-btn--facebook .link-btn__icon {
  background: rgba(24, 119, 242, 0.08);
  color: var(--clr-facebook);
}
.link-btn--facebook:hover {
  background: linear-gradient(135deg, #fff, rgba(24, 119, 242, 0.04));
}

.link-btn--threads .link-btn__icon {
  background: rgba(0, 0, 0, 0.06);
  color: var(--clr-threads);
}
.link-btn--threads:hover {
  background: linear-gradient(135deg, #fff, rgba(0, 0, 0, 0.03));
}

.link-btn--whatsapp .link-btn__icon {
  background: rgba(37, 211, 102, 0.10);
  color: var(--clr-whatsapp);
}
.link-btn--whatsapp:hover {
  background: linear-gradient(135deg, #fff, rgba(37, 211, 102, 0.05));
}

/* ---------- Optional / Secondary Buttons ---------- */
.links--secondary {
  gap: 10px;
  margin-bottom: var(--space-xl);
}

.links--secondary .link-btn {
  background: transparent;
  border: 2.5px solid rgba(46, 125, 82, 0.25);
  box-shadow: none;
  padding: 13px 20px;
}

.link-btn--kajian .link-btn__icon {
  background: rgba(46, 125, 82, 0.10);
  color: var(--clr-primary);
}
.link-btn--kajian:hover {
  background: rgba(46, 125, 82, 0.04);
  border-color: var(--clr-primary);
}

.link-btn--jadwal .link-btn__icon {
  background: rgba(60, 176, 122, 0.10);
  color: var(--clr-accent);
}
.link-btn--jadwal:hover {
  background: rgba(60, 176, 122, 0.04);
  border-color: var(--clr-accent);
}

.links--secondary .link-btn:nth-child(1) { animation: fadeInUp 0.5s var(--ease-out) 1.35s both; }
.links--secondary .link-btn:nth-child(2) { animation: fadeInUp 0.5s var(--ease-out) 1.45s both; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  margin-top: auto;
  padding-top: var(--space-lg);
  animation: fadeIn 0.6s var(--ease-out) 1.6s both;
}

.footer__dua {
  font-family: var(--ff-serif);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.footer__copy span {
  color: var(--clr-primary);
  opacity: 0.8;
}

/* ---------- Ripple Effect ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(60, 176, 122, 0.15);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(60, 176, 122, 0.15), 0 0 32px rgba(60, 176, 122, 0.06);
  }
  50% {
    box-shadow: 0 0 24px rgba(60, 176, 122, 0.25), 0 0 48px rgba(60, 176, 122, 0.10);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .container {
    padding: var(--space-2xl) var(--space-lg);
  }

  .card {
    padding: var(--space-2xl) var(--space-xl);
  }

  .profile__name {
    font-size: 2rem;
  }

  .profile__avatar {
    width: 110px;
    height: 110px;
  }

  .link-btn {
    padding: 16px 22px;
  }

  .link-btn__label {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 4rem var(--space-lg);
  }

  .profile__avatar {
    width: 120px;
    height: 120px;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
.link-btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-accent-lt);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}

/* Selection color */
::selection {
  background: rgba(60, 176, 122, 0.2);
  color: var(--clr-text);
}
