/* ========================================
   Fanbase – Custom Styles
   Companion to Tailwind v3 CDN utilities
   ======================================== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  --pink: #FF00D6;
  --orange: #FF8A00;
  --red: #FF453A;
  --purple: #7F1AC8;
  --deep-purple: #2B0458;
  --blue: #00A3FF;
  --cyan: #00D4FF;
  --dark-bg: #0a0a0f;
  --light-bg: #F0F0F5;
  --body-bg: #EEEEF3;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --gradient-pink-orange: linear-gradient(to right, #FF00D6, #FF453A, #FFA624);
  --gradient-purple: linear-gradient(172deg, #2B0458, #7F1AC8, #871951);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-pink-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #FF00D6, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Gradient Button ---------- */
.btn-gradient {
  background: linear-gradient(to right, #FF00D6, #FF453A, #FFA624);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 16px 48px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 214, 0.35);
}

.btn-pink {
  background: #E040A0;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 64, 160, 0.35);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.navbar a {
  text-decoration: none;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--pink);
}

.nav-signup {
  color: var(--pink);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.nav-signup:hover { opacity: 0.8; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 400;
  transition: background 0.2s;
}

.nav-dropdown-content a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--pink);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  padding: 24px;
  z-index: 99;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

.mobile-menu a:hover { color: var(--pink); }

@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex; }
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--dark-bg);
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-phones {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-phone {
  position: absolute;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-phone-center {
  position: relative;
  z-index: 2;
  width: 55%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-phone-left {
  z-index: 1;
  width: 45%;
  left: 2%;
  top: 5%;
}

.hero-phone-right {
  z-index: 1;
  width: 45%;
  right: 2%;
  top: 5%;
  left: auto;
}

.app-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-badges img {
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Feature Carousel ---------- */
.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  gap: 24px;
  padding: 0 24px 24px;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 auto;
  width: 480px;
  height: 480px;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.carousel-card-blue {
  background: linear-gradient(180deg, #0066FF 0%, #00B4FF 100%);
}

.carousel-card-purple {
  background: linear-gradient(180deg, #8B00FF 0%, #FF00D6 100%);
}

.carousel-card-pink {
  background: linear-gradient(180deg, #FF00D6 0%, #FF6B9D 100%);
}

.carousel-card h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-top: auto;
  margin-bottom: 0;
  order: 2;
}

.carousel-card-phone {
  width: 90%;
  max-width: 320px;
  border-radius: 24px;
  margin-top: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  order: 1;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-arrow:hover { background: #d400b0; }
.carousel-arrow-left { left: 8px; }
.carousel-arrow-right { right: 8px; }

/* ---------- Content Sections ---------- */
.section-light {
  background: var(--body-bg);
  padding: 48px 0;
}

.section-white {
  background: #fff;
  padding: 80px 0;
}

/* ---------- Gradient Bordered Images ---------- */
.gradient-border-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gradient-border-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(135deg, #FF00D6, #FF8A00, #00A3FF);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.creator-img-1 {
  transform: rotate(-3deg);
  z-index: 2;
}

.creator-img-2 {
  transform: rotate(3deg);
  z-index: 1;
}

/* ---------- Floating Icons ---------- */
.floating-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: float 3s ease-in-out infinite;
}

.floating-icon-heart {
  background: linear-gradient(135deg, #FF00D6, #FF6B00);
}

.floating-icon-star {
  background: linear-gradient(135deg, #FF6B00, #FF00D6);
}

.floating-icon-music {
  background: linear-gradient(135deg, #FF6B00, #FF0066);
}

.floating-icon svg,
.floating-icon span {
  color: #fff;
  font-size: 1.5rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Video/Image Banner ---------- */
.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-section img,
.banner-section video {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.banner-overlay h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: #000;
  color: #fff;
  padding: 64px 0 32px;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover { color: #fff; }

.footer-heading {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  margin-bottom: 12px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 32px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--pink); }

.footer-badge {
  height: 48px;
  border-radius: 10px;
}

/* ---------- Section Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Love Badges ---------- */
.love-badges {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.love-badge {
  background: linear-gradient(135deg, #FF006E, #FF4D8D);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ---------- Social action icons row ---------- */
.social-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  color: #888;
  font-size: 1.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .carousel-card {
    width: 300px;
    height: 380px;
  }

  .banner-section img,
  .banner-section video {
    height: 360px;
  }

  .banner-overlay h2 {
    font-size: 2rem;
  }
}
