/* ============================================================
   YORBUX — MAIN STYLESHEET
   Professional Networking Platform for the BFSI Sector

   Table of Contents:
   01. CSS Custom Properties  (Single :root — all tokens here)
   02. Reset & Base Styles
   03. Container / Layout Utility
   04. Header & Navigation
   05. Hero Section
   06. Features Section
   07. Who Can Join — Exclusive Community Section
   08. About Teaser Section  (index.html split-card)
   09. Testimonials Scroller
   10. Newsletter / Social CTA Section
   11. Footer
   12. Keyframe Animations
   13. Responsive Breakpoints
       ├─ Large Desktop  (≤ 1200px)
       ├─ Navigation collapse  (≤ 991px)
       ├─ Tablet landscape  (768px – 991px)
       ├─ Mobile  (≤ 768px)
       ├─ Small Mobile  (≤ 576px)
       ├─ Extra Small  (≤ 480px)
       ├─ Very Small  (≤ 380px)
       └─ Print
   ============================================================ */


/* ============================================================
   01. CSS CUSTOM PROPERTIES
   Central design tokens — change here to update the whole theme.
   Previously scattered across 5 separate :root blocks; unified here.
   ============================================================ */
:root {
  /* --- Primary Brand Colors --- */
  --p-navy:   #0e244f;   /* Deep navy   — headings, dark elements */
  --p-blue:   #5f87ff;   /* Accent blue — CTAs, highlights        */
  --p-orange: #f48020;   /* Orange      — header CTA button        */
  --p-purple: #7c5cdb;   /* Purple      — feature section accents  */

  /* --- Semantic color aliases kept for legacy class references --- */
  --brand-blue:     #5f87ff;
  --brand-dark:     #0e244f;
  --primary-blue:   #1E4FD7;
  --primary-purple: #6A4C93;
  --primary-teal:   #2EC4B6;
  --accent-golden:  #D4A574;
  --accent-orange:  #FF6B35;
  --text-gray:      #4b5563;

  /* --- Surface / Background Colors --- */
  --bg-light:    #F4F6FF;
  --bg-cream:    #FFF8F0;
  --light-bg:    #f0f4ff;
  --glass-white: rgba(255, 255, 255, 0.05);
  --white:       #FFFFFF;

  /* --- Text Colors --- */
  --text-dark: #0F172A;

  /* --- Hero Background Gradient --- */
  --bg-gradient: radial-gradient(circle at 50% 50%, #f0f4ff 0%, #ffffff 100%);

  /* --- Spacing Scale (8px base) --- */
  --spacing-xs:  8px;
  --spacing-sm:  16px;
  --spacing-md:  24px;
  --spacing-lg:  32px;
  --spacing-xl:  48px;
  --spacing-2xl: 64px;

  /* --- Typography --- */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Global Transition --- */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Elevation / Box Shadows --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* --- Border Radius --- */
  --border-radius: 16px;
}


/* ============================================================
   02. RESET & BASE STYLES
   Normalize cross-browser defaults; establish a clean slate.
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent any element from causing a horizontal scrollbar */
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  /* Belt-and-suspenders: also guard overflow on body */
  overflow-x: hidden;
}

/* Images never overflow their parent container */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}


/* ============================================================
   03. CONTAINER / LAYOUT UTILITY
   Centered content wrapper used in every section.
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  /* 24px horizontal padding keeps content away from screen edges */
  padding: 0 var(--spacing-md);
}


/* ============================================================
   04. HEADER & NAVIGATION
   Fixed top bar — logo | desktop links | action buttons | hamburger
   ============================================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Safari */
  border-bottom: 1px solid rgba(14, 36, 79, 0.05);
  z-index: 2000;
  height: 85px;
  display: flex;
  align-items: center;
}

/* Inner nav wrapper — handles the three columns */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Logo image */
.logo {
  height: 45px;
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

/* Text fallback rendered when logo image fails to load */
.logo-text {
  color: var(--p-navy);
  font-weight: 800;
  font-size: 1.5rem;
}

/* Desktop nav link list */
.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--p-navy);
  transition: 0.3s;
  position: relative;
}

/* Animated underline that grows from center on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--p-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover { color: var(--p-blue); }
.nav-links a:hover::after { width: 100%; }

/* Right-side action area: Login link + CTA button */
.action-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-login {
  text-decoration: none;
  color: var(--p-navy);
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
}
.link-login:hover { color: var(--p-blue); }

/* Primary header CTA — orange button */
.btn-try-free {
  background: var(--p-orange);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(244, 128, 32, 0.2);
  white-space: nowrap; /* Prevent button label from wrapping to two lines */
}
.btn-try-free:hover {
  background: var(--p-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 36, 79, 0.2);
}

/* Hamburger toggle button — hidden on desktop, shown on mobile */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 2001;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--p-navy);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Hamburger → X morph when menu is open */
.mobile-toggle.active .bar-1 { transform: rotate(45deg) translate(5px, 6px); }
.mobile-toggle.active .bar-2 { opacity: 0; }
.mobile-toggle.active .bar-3 { transform: rotate(-45deg) translate(6px, -7px); }


/* ============================================================
   05. HERO SECTION
   Full-viewport landing — headline, subtitle, referral input box
   ============================================================ */
.hero-premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

/* Subtle two-tone radial mesh over the hero background */
.bg-soft-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 10% 10%, rgba(95, 135, 255, 0.05) 0px, transparent 40%),
    radial-gradient(at 90% 90%, rgba(14, 36, 79, 0.04) 0px, transparent 40%);
  z-index: 1;
}

/* Decorative SVG vectors floating in background */
.svg-vector { position: absolute; z-index: 2; pointer-events: none; }
.v-left  { top: 20%; left: 2%; }
.v-right { bottom: 10%; right: 2%; }

/* Center content block — max-width constrains line length */
.hero-center-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%; /* Respect container padding on narrow screens */
}

/* Small pill badge above the headline */
.elite-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(14, 36, 79, 0.05);
  border: 1px solid rgba(95, 135, 255, 0.1);
  margin-bottom: 30px;
}
.elite-badge-mini img { height: 18px; width: auto; }
.elite-badge-mini span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.3px;
}

/* Main headline — large bold display type */
.main-title-premium {
  font-size: 4.8rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

/* Gradient clip on "Networking" span */
.text-accent-blue {
  background: linear-gradient(135deg, var(--brand-dark) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle / descriptor below headline */
.hero-subtext {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Pill-shaped referral code input container */
.referral-box-container {
  background: #ffffff;
  padding: 6px 6px 6px 25px;
  border-radius: 100px;
  /* flex (not inline-flex) so width:100% behaves predictably in all contexts */
  display: flex;
  width: 100%;
  max-width: 550px;
  margin: 0 auto; /* Center when parent uses text-align:center */
  box-shadow: 0 20px 40px rgba(14, 36, 79, 0.12);
  border: 1px solid rgba(95, 135, 255, 0.2);
}

.referral-form { display: flex; width: 100%; align-items: center; }

.input-group { display: flex; align-items: center; flex-grow: 1; }
.icon-key { color: var(--brand-blue); font-size: 1.1rem; margin-right: 15px; }

.input-group input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1.1rem;
  outline: none;
  font-weight: 500;
  color: var(--brand-dark);
}

/* "Join Now" submit button inside referral box */
.btn-join {
  background: var(--brand-dark);
  color: white;
  border: none;
  padding: 16px 35px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s all;
  white-space: nowrap; /* Keep "Join Now →" on a single line */
}
.btn-join:hover {
  background: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(95, 135, 255, 0.4);
}

/* Trust line below referral box */
.verification-text {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}
.verification-text i { color: #22c55e; margin-right: 5px; }


/* ============================================================
   06. FEATURES SECTION
   6-card responsive grid — platform capabilities overview
   ============================================================ */
.features-premium {
  padding: 100px 0;
  position: relative;
  background-color: #fbfaff;
  overflow: hidden;
}

/* Large blurred color orbs in the section background */
.features-bg-elements .f-vector {
  position: absolute;
  filter: blur(80px);
  z-index: 1;
  border-radius: 50%;
}
.f-v-1 {
  width: 400px; height: 400px;
  background: rgba(124, 92, 219, 0.05);
  top: -100px; left: -100px;
}
.f-v-2 {
  width: 300px; height: 300px;
  background: rgba(95, 135, 255, 0.05);
  bottom: -50px; right: -50px;
}

/* Section title + subtitle block (reused in multiple sections) */
.header-group {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* Italic styled accent word in heading */
.me-text {
  color: var(--p-purple);
  font-style: italic;
  position: relative;
}
.me-text::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 2px;
  background: var(--p-purple);
  opacity: 0.3;
}

/* Auto-fitting grid — 320px min per card, fills row automatically */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

/* Individual feature card */
.feature-card-premium {
  position: relative;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(124, 92, 219, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.feature-card-premium:hover {
  transform: translateY(-12px);
  border-color: var(--p-purple);
  box-shadow: 0 20px 40px rgba(124, 92, 219, 0.1);
}

/* Gradient icon container */
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--p-navy), var(--p-purple));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 25px;
  transition: 0.3s;
}
.feature-card-premium:hover .feature-icon-wrapper {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(124, 92, 219, 0.3);
}

.feature-card-premium h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--p-navy);
  margin-bottom: 15px;
}
.feature-card-premium p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* Ghost step-number in card top-right corner */
.card-step-indicator {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(124, 92, 219, 0.03);
  transition: 0.3s;
}
.feature-card-premium:hover .card-step-indicator {
  color: rgba(124, 92, 219, 0.08);
  transform: scale(1.2);
}


/* ============================================================
   07. WHO CAN JOIN — EXCLUSIVE COMMUNITY SECTION
   Role cards (DSA / Insurance / Bankers) + referral CTA bar
   ============================================================ */
.yorbux-exclusive-section {
  padding: 100px 0;
  background: radial-gradient(circle at center, #ffffff 0%, #e1e9ff 100%);
  position: relative;
  overflow: hidden;
  color: var(--p-navy);
  font-family: 'Inter', sans-serif;
}

/* Atmospheric blurred glow blobs */
.light-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
}
.glow-1 { top: -10%;  left: -10%;  background: rgba(95, 135, 255, 0.2); }
.glow-2 { bottom: -10%; right: -10%; background: rgba(124, 92, 219, 0.15); }

/* Decorative geometric SVG shape */
.geo-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}
.triangle { left: 5%; bottom: 15%; }

/* "Join Our Exclusive Community" pill label */
.exclusive-badge {
  background: var(--white);
  color: var(--p-navy);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(14, 36, 79, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

/* Shared section title used across multiple sections */
.section-title {
  font-size: 3rem;
  margin: 25px 0;
  font-weight: 800;
  color: var(--p-navy);
}
.text-accent-p { color: var(--p-blue); }
.section-subtitle {
  color: #556080;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* 3-column auto-fit role card grid */
.roles-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

/* Role card — glassmorphism style */
.role-card-v4 {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  padding: 40px 30px;
  border-radius: 30px;
  transition: all 0.4s ease;
  text-align: center;
  box-shadow: 0 10px 30px rgba(14, 36, 79, 0.05);
}
.role-card-v4:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 20px 40px rgba(95, 135, 255, 0.15);
  border-color: var(--p-blue);
}

/* Featured card — solid white with blue border */
.role-card-v4.featured {
  background: var(--white);
  border: 2px solid var(--p-blue);
  position: relative;
  overflow: hidden;
}

.role-icon-wrapper {
  font-size: 3rem;
  color: var(--p-navy);
  margin-bottom: 25px;
}
.role-card-v4 h3 { font-size: 1.5rem; font-weight: 700; color: var(--p-navy); }

/* Checklist inside role card */
.role-features-list { list-style: none; padding: 0; margin-top: 25px; text-align: left; }
.role-features-list li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: #4a5568;
}
.role-features-list i { color: var(--p-blue); margin-right: 12px; }

/* "How to Join?" CTA bar below role cards */
.referral-cta-box {
  margin-top: 70px;
  background: var(--p-navy);
  color: white;
  border-radius: 25px;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(14, 36, 79, 0.2);
}
.cta-content h4 { font-size: 1.8rem; margin-bottom: 10px; color: #fff; }
.cta-content p { opacity: 0.8; margin: 0; }

/* Gradient "Request Referral" button */
.btn-request-referral {
  background: linear-gradient(45deg, var(--p-blue), var(--p-purple));
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  border: none;
  white-space: nowrap; /* Keep button text on one line */
  display: inline-block;
}
.btn-request-referral:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(95, 135, 255, 0.4);
}


/* ============================================================
   08. ABOUT TEASER SECTION  (index.html only)
   Two-column split: text (wider) | image (narrower)
   ============================================================ */
.about-premium-modern {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Giant ghost "YorBux" text behind section content */
.bg-vector-text {
  position: absolute;
  font-size: 20rem;
  font-weight: 900;
  color: rgba(95, 135, 255, 0.03);
  right: -50px;
  bottom: -50px;
  user-select: none;
  z-index: 0;
  pointer-events: none;
  /* Prevent this oversized text from extending the page width */
  white-space: nowrap;
  overflow: hidden;
}

/* Two-column grid: 1.2 : 1 ratio */
.about-split-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Large display heading in about section */
.section-heading {
  font-size: 3.5rem;
  color: var(--brand-dark);
  line-height: 1.1;
  margin: 15px 0;
  font-weight: 800;
}
.section-heading .highlight { color: var(--brand-blue); }

/* Label row above heading — uppercase tag + pill */
.meta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* Wrap gracefully on narrow screens */
}

.tag-line {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.bfsi-pill-new {
  background: var(--brand-dark);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Gradient underline bar below heading */
.brand-divider {
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-dark));
  margin-bottom: 30px;
  border-radius: 10px;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Feature pills row — flex with wrap so they don't overflow on mobile */
.about-features {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Wrap onto next line if screen is too narrow */
}

.f-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand-dark);
}
.f-item i {
  color: var(--brand-blue);
  font-size: 1.2rem;
}

/* Dark "Learn More" CTA button */
.btn-brand-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-dark);
  color: white;
  padding: 18px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s all ease;
  border-bottom: 4px solid #00000033;
}
.btn-brand-main:hover {
  background: var(--brand-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(95, 135, 255, 0.3);
}

/* About image side */
.about-image-area { position: relative; }

.about-image-area img {
  width: 100%;
  height: auto; /* Maintain aspect ratio — never stretch */
  border-radius: 20px;
  box-shadow: 20px 20px 0px var(--brand-blue); /* Offset shadow creates depth */
}

/* Animated floating icon badge on top of the image */
.floating-icon-box {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: var(--brand-blue);
  font-size: 2rem;
  animation: bounce 3s infinite;
}


/* ============================================================
   09. TESTIMONIALS SCROLLER
   Horizontal auto-scrolling marquee; pauses on hover
   ============================================================ */
.testimonial-premium-redesign {
  padding: 80px 0;
  background: #f8faff;
  overflow: hidden;
}

/* Outer wrapper: edge-fade mask hides cards at both ends */
.testimonial-scroller-wrapper {
  margin-top: 50px;
  display: flex;
  overflow: hidden;
  user-select: none;
  /* Fade out cards at left and right edges for a smooth loop feel */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Scrolling track — width:max-content lets it be as wide as needed */
.scroller-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollInfinite 30s linear infinite;
}

/* Pause animation while user hovers — allows reading without rushing */
.testimonial-scroller-wrapper:hover .scroller-track {
  animation-play-state: paused;
}

/* Individual testimonial card — fixed width keeps scroller predictable */
.testi-card {
  width: 350px;
  background: white;
  padding: 40px;
  border-radius: 30px;
  border: 1px solid #edf2f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0; /* Never shrink in flex; keep exact width */
}

.testi-quote {
  font-size: 2rem;
  color: var(--p-blue);
  margin-bottom: 20px;
  opacity: 0.3;
}
.testi-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 30px;
  font-style: italic;
}

/* Reviewer info row at card bottom */
.testi-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testi-user img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--p-blue);
  object-fit: cover;
}
.user-meta strong { display: block; font-size: 1rem; color: var(--p-navy); }
.user-meta span   { font-size: 0.8rem; color: #718096; }

/* Hover: invert card to dark — text flips to white */
.testi-card:hover {
  background: var(--p-navy);
  transform: translateY(-15px) scale(1.03);
  border-color: var(--p-purple);
  box-shadow: 0 25px 50px rgba(14, 36, 79, 0.3);
}
.testi-card:hover p,
.testi-card:hover .user-meta strong { color: white; }
.testi-card:hover .user-meta span   { color: rgba(255, 255, 255, 0.6); }
.testi-card:hover .testi-quote      { color: var(--p-purple); opacity: 1; }


/* ============================================================
   10. NEWSLETTER / SOCIAL CTA SECTION
   Dark pill capsule — "Stay Updated" + social icons / email form
   ============================================================ */
.cta-ultra-premium {
  padding: 80px 0 100px;
}

/* Dark gradient pill container */
.cta-glass-capsule {
  background: linear-gradient(135deg, var(--p-navy) 0%, #1a3a7a 100%);
  border-radius: 50px;
  padding: 70px 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 20px 50px rgba(14, 36, 79, 0.2);
}

/* Subtle carbon-fibre texture overlay */
.cta-glass-capsule::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  opacity: 0.1;
  pointer-events: none;
}

.cta-mini-label {
  color: var(--p-blue);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: block;
}

/* Left side: heading + subtext */
.cta-content { flex: 1.2; position: relative; z-index: 2; }
.cta-content h2 { font-size: 3rem; margin-bottom: 15px; line-height: 1.2; }
.text-highlight { color: var(--p-blue); }
.cta-content p  { font-size: 1.1rem; opacity: 0.8; margin-bottom: 35px; max-width: 500px; }

/* Email subscription form inside CTA capsule */
.newsletter-form-modern {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 60px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 550px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 20px;
}
.input-wrapper i { color: var(--p-blue); margin-right: 12px; }

.newsletter-form-modern input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  font-size: 1rem;
  outline: none;
}
.newsletter-form-modern input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Subscribe / action button */
.btn-subscribe-premium {
  background: var(--p-blue);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
  box-shadow: 0 10px 20px rgba(95, 135, 255, 0.3);
}
.btn-subscribe-premium:hover {
  background: white;
  color: var(--p-navy);
  transform: translateY(-2px);
}

/* Right side: decorative rocket icon */
.cta-vector-art    { flex: 0.5; display: flex; justify-content: center; position: relative; z-index: 2; }
.floating-rocket   { font-size: 110px; color: rgba(255, 255, 255, 0.1); animation: floatAnim 4s infinite ease-in-out; }


/* ============================================================
   11. FOOTER
   Dark footer — brand description | link columns | copyright bar
   ============================================================ */
.footer-modern-premium {
  background: #050d1a;
  color: #a0aec0;
  padding: 100px 0 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-logo { height: 45px; margin-bottom: 25px; filter: brightness(1.1); }

/* Brand side — logo + tagline + social icons */
.footer-brand-side p {
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 320px;
  font-size: 0.95rem;
}

/* Social icon buttons row */
.social-links-footer { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links-footer a {
  width: 45px; height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-links-footer a:hover {
  background: var(--p-blue);
  transform: translateY(-5px) rotate(8deg);
  border-color: var(--p-blue);
}

/* Main footer row: brand column | links columns */
.footer-grid-main { display: flex; justify-content: space-between; margin-bottom: 80px; }

/* Link columns group — wraps on tablet */
.footer-links-group { display: flex; gap: 60px; }
.footer-col h3 { color: white; margin-bottom: 25px; font-size: 1.1rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { transition: 0.3s; font-size: 0.95rem; text-decoration: none; color: inherit; }
.footer-col a:hover { color: var(--p-blue); padding-left: 8px; }

/* Bottom copyright bar */
.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}
.copyright-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom-dots { font-size: 0.85rem; opacity: 0.6; font-weight: 500; }
.footer-bottom-dots span { color: var(--p-blue); }


/* ============================================================
   12. KEYFRAME ANIMATIONS
   All @keyframes definitions in one place for easy maintenance.
   ============================================================ */

/* Gentle up-down float — decorative SVG vectors, hero icons */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%       { transform: translateY(-25px) rotate(5deg); }
}
.floating-slow    { animation: float 8s  infinite ease-in-out; }
.floating-reverse { animation: float 10s infinite reverse ease-in-out; }

/* Longer, slower float variant used in about section vectors */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-30px) rotate(5deg); }
}

/* Pulsing SVG circle node in hero graphic */
@keyframes pulse-dot {
  0%   { r: 4; opacity: 1; }
  50%  { r: 8; opacity: 0.4; }
  100% { r: 4; opacity: 1; }
}
.pulse-node { animation: pulse-dot 2s infinite; }

/* Bounce — floating icon badge on about section image */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

/* Testimonial infinite scroll — desktop (350px cards, 30px gap) */
@keyframes scrollInfinite {
  0%   { transform: translateX(0); }
  /* Scroll 4 card-widths + 4 gaps then reset (creates looping feel) */
  100% { transform: translateX(calc(-350px * 4 - 120px)); }
}

/* Rocket float in CTA section */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50%       { transform: translateY(-25px) rotate(-5deg); }
}

/* Decorative glow pulse (used on blobs / orbs) */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.1); }
}

/* Gradient shift — available for future animated backgrounds */
@keyframes rotate-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   13. RESPONSIVE BREAKPOINTS
   Written mobile-first style; largest breakpoint first.
   Grouped by breakpoint width so every screen size is easy to find.
   ============================================================ */

/* --- Large Desktop  (≤ 1200px) ---
   Slight type scale reduction on smaller desktop monitors */
@media (max-width: 1200px) {
  .section-heading { font-size: 3rem; }
}

/* --- Navigation Collapse  (≤ 991px) ---
   Hamburger menu replaces desktop nav; sections stack vertically */
@media (max-width: 991px) {

  /* Shorter header on tablet */
  .main-header { height: 70px; }

  /* Slightly more breathing room in nav bar */
  .nav-container { width: 95%; }

  /* Smaller logo proportional to header */
  .logo { height: 38px; }

  /* Reveal hamburger toggle */
  .mobile-toggle { display: flex; }

  /* Mobile menu panel — slides down from below header.
     JS adds/removes .active class; transition handles the animation. */
  .menu-side {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(14, 36, 79, 0.08);
    z-index: 1999;
    /* Constrain height so menu never overflows the screen */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  /* Active state — menu visible */
  .menu-side.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Vertical stacked links */
  .nav-links {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  .nav-links li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(14, 36, 79, 0.05);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 17px; }

  /* Slightly smaller CTA button to fit action-side on tablet */
  .btn-try-free { padding: 10px 20px; font-size: 13px; }

  /* Hero title size reduction */
  .main-title-premium { font-size: 3.8rem; }

  /* Section titles */
  .section-title   { font-size: 2.5rem; }
  .section-heading { font-size: 2.8rem; }

  /* Features grid — 2 columns on tablet */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Roles grid — 2 columns on tablet */
  .roles-grid-modern { grid-template-columns: repeat(2, 1fr); }

  /* About split card — single column stack */
  .about-split-card   { grid-template-columns: 1fr; text-align: center; }
  .brand-divider      { margin: 0 auto 30px; }
  .about-features     { justify-content: center; }
  /* Smaller box shadow on stacked image */
  .about-image-area img { box-shadow: 10px 10px 0px var(--brand-blue); }

  /* Referral CTA bar — stack content vertically */
  .referral-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .cta-action { margin-top: 30px; }

  /* Newsletter CTA capsule — stack columns vertically */
  .cta-glass-capsule {
    padding: 50px 30px;
    flex-direction: column;
    text-align: center;
    border-radius: 30px;
  }
  .cta-content p { margin-left: auto; margin-right: auto; }

  /* Newsletter form — vertical layout on tablet */
  .newsletter-form-modern {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  .input-wrapper {
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 50px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .btn-subscribe-premium { width: 100%; justify-content: center; padding: 18px; }

  /* Footer — single column */
  .footer-grid-main    { flex-direction: column; gap: 50px; text-align: center; }
  .footer-brand-side p { margin-left: auto; margin-right: auto; }
  .social-links-footer { justify-content: center; }
  .footer-links-group  { gap: 30px; flex-wrap: wrap; justify-content: center; }
  .copyright-flex      { justify-content: center; }
}

/* --- Tablet Landscape  (768px – 991px only) ---
   Specific container padding for mid-range tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .container { padding: 0 30px; }
}

/* --- Mobile  (≤ 768px) ---
   Single-column layouts; larger tap targets; reduced font sizes */
@media (max-width: 768px) {

  /* Tighter container padding */
  .container { padding: 0 20px; }

  /* Hero — shorter min-height with explicit vertical padding */
  .hero-premium { min-height: auto; padding: 120px 0 80px; }
  .main-title-premium { font-size: 2.6rem; }
  .hero-subtext { font-size: 1rem; }

  /* Referral box becomes a vertical card */
  .referral-box-container {
    padding: 12px;
    border-radius: 20px;
    max-width: 100%;
  }
  .referral-form  { flex-direction: column; gap: 12px; }
  .input-group    { width: 100%; }
  .input-group input { text-align: center; padding: 14px; }
  .btn-join { width: 100%; justify-content: center; padding: 16px 30px; margin-top: 5px; }

  /* Features section */
  .features-premium { padding: 70px 0; }
  .section-title    { font-size: 2rem; }
  .section-subtitle { font-size: 0.95rem; padding: 0 10px; }
  .features-grid    { grid-template-columns: 1fr; gap: 25px; }
  .feature-card-premium { padding: 35px 25px; }

  /* Community section */
  .yorbux-exclusive-section { padding: 70px 0; }
  .roles-grid-modern { grid-template-columns: 1fr; gap: 25px; }
  .role-card-v4      { padding: 35px 25px; }
  .referral-cta-box  { padding: 35px 25px; border-radius: 20px; }
  .cta-content h4    { font-size: 1.4rem; }
  /* Full-width referral button on mobile */
  .btn-request-referral {
    padding: 15px 30px;
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Testimonials */
  .testimonial-premium-redesign { padding: 60px 0; }
  /* Narrower card on mobile for better scroller feel */
  .testi-card { width: 300px; padding: 30px; }

  /* Newsletter CTA */
  .cta-ultra-premium { padding: 60px 0 80px; }
  .cta-glass-capsule { border-radius: 25px; padding: 40px 25px; }
  .cta-content h2    { font-size: 2rem; }

  /* Footer */
  .footer-modern-premium { padding: 70px 0 30px; }
  .footer-logo           { height: 40px; }

  /* About section heading */
  .section-heading { font-size: 2.2rem; }

  /* Hide ghost "YorBux" text — too large on mobile, can cause layout shift */
  .bg-vector-text { display: none; }
}

/* --- Small Mobile  (≤ 576px) ---
   Reduce opacity of purely decorative background elements for clarity */
@media (max-width: 576px) {

  /* Dim decorative blobs/vectors — less visual noise on small screens */
  .svg-vector,
  .f-vector,
  .geo-shape,
  .light-glow { opacity: 0.3; }

  /* Remove complex mesh overlay — not visible on small screens anyway */
  .bg-soft-mesh { display: none; }

  /* Slightly narrower testimonial card on small phones */
  .testi-card { width: 270px; padding: 25px; }

  /* Override testimonial scroll animation for 270px cards on small phones */
  @keyframes scrollInfinite {
    0%   { transform: translateX(0); }
    /* 270px card × 4 + 30px gap × 4 = 1080 + 120 = 1200px */
    100% { transform: translateX(calc(-270px * 4 - 120px)); }
  }
}

/* --- Extra Small  (≤ 480px) ---
   Further font size reductions for small phones */
@media (max-width: 480px) {

  /* Hero */
  .main-title-premium { font-size: 2.2rem; }
  .hero-subtext        { font-size: 0.9rem; }
  .elite-badge-mini    { padding: 6px 16px; }
  .elite-badge-mini span { font-size: 0.75rem; }
  .verification-text   { font-size: 0.85rem; }

  /* Features */
  .section-title          { font-size: 1.75rem; }
  .feature-card-premium h3 { font-size: 1.2rem; }
  .feature-card-premium p  { font-size: 0.9rem; }

  /* CTA */
  .cta-content h2 { font-size: 1.7rem; }
  .cta-content p  { font-size: 0.95rem; }

  /* Footer */
  .footer-col h3  { font-size: 1rem; }
  .copyright-flex { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- Very Small  (≤ 380px) ---
   Handles very narrow older devices (320px – 380px wide) */
@media (max-width: 380px) {

  /* Minimal container padding on very narrow screens */
  .container { padding: 0 14px; }

  /* Headline adjustments */
  .main-title-premium { font-size: 1.9rem; letter-spacing: -0.5px; }
  .hero-subtext        { font-size: 0.82rem; }

  /* Compact header button */
  .btn-try-free { padding: 9px 14px; font-size: 12px; }

  /* Section headings */
  .section-title   { font-size: 1.6rem; }
  .section-heading { font-size: 1.9rem; }

  /* Compact testimonial card */
  .testi-card { width: 250px; padding: 22px; }
}

/* --- Print ---
   Remove decorative and interactive elements; clean up for printing */
@media print {
  .main-header,
  .footer-modern-premium,
  .cta-ultra-premium,
  .svg-vector,
  .light-glow,
  .f-vector { display: none; }

  .hero-premium { min-height: auto; padding: 40px 0; }
}
