/* ============================================
   MockBee - Main Stylesheet
   Theme: Vintage Parchment / Warm Cream
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* 60% - Primary White Foundation */
  --cream-bg: #FFFFFF;
  --cream-light: #FFFFFF;
  --white: #ffffff;
  --parchment: #FFFFFF;

  /* 30% - Secondary Warm Gray Backdrop */
  --cream-dark: #E9E4E2;
  --parchment-dark: #E9E4E2;
  --shadow-warm: rgba(180, 160, 150, 0.15);
  --shadow-deep: rgba(0, 0, 0, 0.1);

  /* 10% - Warm Taupe Accent */
  --gold: #D8C4B6;
  --gold-light: #E2D1C8;
  --gold-dark: #B09E93;

  /* Contrast Accents (Slate/Black) */
  --navy: #1A1A1A;
  --navy-dark: #000000;
  --navy-light: #333333;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #7D7D7D;

  --font-heading: 'Satoshi', sans-serif;
  --font-body: 'Satoshi', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background-color: #E9E4E2;
  backdrop-filter: blur(12px);
  padding: 0 48px;
  height: 72px;
  /* Starts larger */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  /* Changed to fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none;
  /* No shadow initially */

  /* Entrance Animation */
  opacity: 0;
  transform: translateY(-20px);
  animation: navbarFadeSlide 0.8s ease-out 0.2s forwards;

  /* Smooth transition for scroll effect */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes navbarFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact Scrolled State */
.navbar.navbar--scrolled {
  height: 56px;
  background-color: #E9E4E2;
  padding: 0 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
  transition: height 0.3s ease;
}

.navbar__brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.5px;
}


.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar__nav a {
  text-decoration: none;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
  position: relative;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar__nav a:hover {
  color: #000000;
}

.navbar__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__actions {
  display: flex;
  align-items: center;
}

.navbar__hamburger {
  display: none;
  font-size: 1.5rem;
  color: #000000;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.navbar__hamburger:hover {
  transform: scale(1.1);
}


.btn-login,
.btn-signup {
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
}

.btn-login {
  background: transparent;
  border: 2px solid #000000;
  color: #000000;
  margin-right: 15px;
}

.btn-signup {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: #000000;
}

.btn-login:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-signup:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(180, 160, 150, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 132px 72px 70px;
  /* Increased top padding from 60px to 132px (60 + 72 header) */
}

/* Exact Vintage #E9E4E2 SVG Vector Wave Background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='p1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23e9e4e2' stop-opacity='0.8'/><stop offset='100%25' stop-color='%23d8c4b6' stop-opacity='0.2'/></linearGradient><linearGradient id='p2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'><stop offset='0%25' stop-color='%23d8c4b6' stop-opacity='0.6'/><stop offset='100%25' stop-color='%23e9e4e2' stop-opacity='0.3'/></linearGradient><linearGradient id='p3' x1='50%25' y1='100%25' x2='50%25' y2='0%25'><stop offset='0%25' stop-color='%23e9e4e2' stop-opacity='0.9'/><stop offset='100%25' stop-color='%23ffffff' stop-opacity='0.0'/></linearGradient></defs><g><path fill='url(%23p1)' d='M-100,500 C200,600 400,100 800,300 C1100,450 1300,150 1600,200 L1600,1000 L-100,1000 Z'/><path fill='url(%23p2)' d='M-100,300 C300,0 600,600 1000,400 C1300,250 1500,400 1600,100 L1600,1000 L-100,1000 Z'/><path fill='url(%23p3)' d='M-100,400 C250,200 450,700 900,500 C1200,350 1400,550 1600,350 L1600,1000 L-100,1000 Z'/></g></svg>");
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  animation: bgWaveSweep 15s ease-in-out infinite alternate;
}

@keyframes bgWaveSweep {
  0% {
    transform: scale(1) translateX(0) translateY(0);
  }

  100% {
    transform: scale(1.1) translateX(-30px) translateY(-10px);
  }
}

/* Subtle underlying gradient to mesh the white background naturally to the new wave */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at bottom center, rgba(216, 196, 182, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}


.hero__content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
  margin-top: -150px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.05;
  /* Tighter line height for large headings */
  margin-bottom: 20px;
  letter-spacing: -1px;
  white-space: nowrap;


  /* Entrance Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeSlideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
  padding-top: 18px;
  position: relative;

  /* Entrance Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeSlideUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
}

@keyframes heroFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gold separator line below the hero title, matching the how-it-works line */
.hero__subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;

  /* Entrance Animation */
  opacity: 0;
  transform: scale(0.95);
  animation: heroButtonsFadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s forwards;
}

@keyframes heroButtonsFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-primary {
  background-color: var(--gold);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.35);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(30, 45, 66, 0.4);
  letter-spacing: 0.3px;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(180, 160, 150, 0.3);
}

.btn-primary:hover i {
  transform: translateX(4px);
}


.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-medium);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  letter-spacing: 0.3px;
}

.btn-secondary i {
  transition: transform 0.3s ease;
  margin-left: 2px;
}

.btn-secondary:hover {
  background: rgba(42, 32, 16, 0.08);
  border-color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover i {
  transform: translateX(4px);
}

/* Hero Right - Bee Image */
.hero__visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
  min-height: 400px;
  margin-top: -60px;
}


.hero__bee-img {
  width: 460px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(80, 60, 10, 0.3));
  animation: beeFloat 3.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
  bottom: -10px;
  margin-left: 60px;
  /* Moved mascot to the rightside slightly */
}

@keyframes beeFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

/* Speech bubbles (Reference Image Exact Match + Better Spacing) */
.hero__bubbles {
  position: absolute;
  top: 40px;
  /* Moved down as requested */
  right: -10px;
  width: 280px;
  height: 250px;
  z-index: 3;
}

/* Single Welcome Popup Style */
.speech-bubble--welcome {
  position: absolute;
  top: 50px;
  right: 15px;
  /* Shifted slightly to the right */
  background: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.4;
  width: max-content;
  max-width: 250px;

  /* Initial hidden state, delays intro slightly */
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  animation: popupIntro 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards,
    popupFloat 4.5s ease-in-out 1.2s infinite;
}

@keyframes popupIntro {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.speech-bubble--welcome p {
  margin: 0;
  padding: 0;
}

.speech-bubble--welcome p:first-child {
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Sequential Word-by-Word Typing Animation */
.animated-word {
  display: inline-block;
  opacity: 0;
  /* Base animation delay starts at 1s (after popup entrance) */
  animation: wordFadeIn 0.3s ease forwards;
  animation-delay: calc(0.9s + (var(--wd) * 0.15s));
}

@keyframes wordFadeIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bubble Tail pointing to the Bee */
.speech-bubble--welcome::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 30px;
  width: 0;
  height: 0;
  border-top: 12px solid var(--white);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.05));
}

.speech-bubble--welcome::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 28px;
  width: 0;
  height: 0;
  border-top: 14px solid var(--gold);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
}

@keyframes popupFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--white);
  padding: 80px 72px 80px;
  position: relative;
  /* Differentiate from hero section visually */
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.02);
  z-index: 2;
  /* Ensure it sits cleanly above the hero waves */
}

.how-it-works__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

.how-it-works__line {
  height: 1px;
  background: rgba(212, 163, 115, 0.4);
  flex-shrink: 0;
}

.how-it-works__line--short {
  flex: 1;
}

.how-it-works__line--long {
  flex: 1;
}

.how-it-works__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.how-it-works__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Step Cards */
.step-card {
  background: var(--cream-bg);
  border-radius: 16px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.step-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-card__number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(180, 120, 20, 0.3);
  flex-shrink: 0;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.step-card__separator {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.step-card__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 250px;
  text-align: center;
}

/* Card icons */
.step-card__icon-wrap {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.step-card__icon-wrap svg {
  width: 60px;
  height: 60px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE (Consolidated & Enhanced)
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 132px 40px 70px;
    min-height: auto;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__bee-img {
    width: 350px;
  }

  .how-it-works {
    padding: 60px 40px;
  }

  .roles-grid {
    padding: 0 24px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {

  /* Navbar Mobile Layout */
  .navbar {
    padding: 0 16px;
    height: 56px;
    /* Compact reference header */
  }


  .navbar__hamburger {
    display: block;
  }

  .navbar__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #E9E4E2;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Override display:none if set */
  }

  .navbar__nav.active {
    right: 0;
  }

  .navbar__nav a {
    font-size: 1.4rem;
    font-weight: 600;
  }

  .navbar__actions {
    display: none;
    /* Hide top-level buttons */
    /* When menu is active, we can show them inside if needed, 
       but for now we focus on the core nav */
  }

  /* Show actions inside nav when active */
  .navbar__nav .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  /* Hero Section Mobile */
  .hero {
    flex-direction: column;
    padding: 80px 20px 40px;
    /* More compact top padding */
    text-align: center;
    min-height: auto;
  }

  .hero__content {
    margin-top: 0;
    max-width: 100%;
    order: 1;
    /* Content first */
  }

  .hero__title {
    font-size: 1.85rem;
    /* Reduced for sharpness */
    white-space: normal;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }


  .hero__subtitle {
    font-size: 1rem;
    padding-top: 12px;
    margin-bottom: 25px;
  }

  .hero__actions {
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
  }

  .hero__visual {
    margin-top: 0;
    min-height: auto;
    order: 2;
    /* Mascot second */
  }

  .hero__bee-img {
    width: 260px;
    margin-left: 0;
    bottom: -5px;
  }

  .hero__bubbles {
    display: none;
  }


  /* How It Works Mobile */
  .how-it-works {
    padding: 40px 20px;
  }


  .how-it-works__title {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .how-it-works__cards {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }


  /* Features Split Mobile */
  .features-split__container {
    flex-direction: column;
    gap: 40px;
  }

  .feature-item__divider {
    display: none;
  }

  .why-choose__grid {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .feature-item {
    width: 100%;
    max-width: 300px;
  }

  .feature-item__icon-wrap {
    width: 120px;
    height: 100px;
    margin-bottom: 20px;
  }

  .feature-svg {
    width: 80px;
    height: 90px;
  }

  .ats-resume-box {
    padding: 30px 16px;
    /* Super tight padding */
    text-align: center;
    border-radius: 16px;
  }

  .ats-resume-box .resume-preview-img {
    max-width: 220px;
    /* Scaled down for mobile */
    margin-top: 20px;
  }

  .ats-resume-box__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
  }


  .ats-resume-box__list {
    text-align: left;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .ats-resume-box__list li {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .btn-builder {
    min-width: 100%;
    font-size: 1.1rem;
    padding: 14px 20px;
  }


  /* Testimonial Mobile */
  .testimonial-card--small {
    margin: 30px 0 0 0;
    /* Reduced top margin */
    flex-direction: column;
    padding: 24px 16px;
    /* Tighter padding */
    gap: 15px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .testimonial-card--small .testimonial-card__profile {
    width: 80px;
    /* Smaller image for mobile */
    height: 80px;
  }


  /* Roles Section Mobile */
  .roles-section {
    padding: 60px 16px;
  }

  .roles-grid {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .roles-filters {
    flex-wrap: wrap;
  }

  /* CTA Final Mobile */
  .cta-final__title {
    font-size: 2rem;
  }

  .cta-final__subtitle {
    font-size: 1.2rem;
  }

  .cta-final__line {
    display: none;
  }

  .cta-final__container {
    padding: 40px 20px 80px;
  }

  /* Ready to Ace Mobile */
  .ready-box-modern__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 10px 20px;
  }

  /* Fix for the inline-styled logo in HTML */
  .navbar__brand .navbar__logo {
    height: 120px !important;
    /* Overriding the 220px inline style */
    margin: -40px 0 -40px -40px !important;
    /* Reduced negative margins */
  }

  .navbar {
    padding: 0 16px;
  }

  .how-it-works__title,
  .section-header-compact__title,
  .ats-resume-box__title {
    font-size: 1.25rem;
    /* Shorter headings for better fit */
    white-space: normal !important;
    text-align: center;
    width: 100%;
  }

  .step-card {
    padding: 12px;
    /* Super tight padding for "small box" feel */
    min-height: auto;
  }

  .step-card__title {
    font-size: 1.05rem;
    margin-bottom: 5px;
  }

  .step-card__desc {
    font-size: 0.85rem;
  }


  .step-card__icon-wrap {
    width: 44px;
    height: 44px;
    bottom: 12px;
    right: 12px;
  }

  .step-card__icon-wrap svg {
    width: 40px;
    height: 40px;
  }
}


@media (max-width: 380px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .hero__bee-img {
    width: 220px;
  }

  .section-header-compact__title,
  .how-it-works__title {
    font-size: 1.3rem;
  }

  .navbar__brand .navbar__logo {
    height: 70px !important;
    /* Pinning it to a small, professional height */
    margin: -15px 0 -15px -25px !important;
  }
}






/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================
   WHY CHOOSE & ATS RESUME (SPLIT)
   ============================================ */
.features-split {
  position: relative;
  background-color: var(--white);
  padding: 60px 0 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.features-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(139, 115, 85, 0.05) 100%);
  pointer-events: none;
}

.features-split__container {
  display: flex;
  gap: 32px;
  /* Restored gap for card-like appearance from image */
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Left: Why Choose */
.why-choose {
  flex: 1.8;
  background: transparent;
  padding: 50px 0;
}

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  width: 100%;
}

.section-header-compact__line {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  flex: 1;
}

.section-header-compact__line--short {
  flex: 1;
}

.section-header-compact__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: normal;
  /* Allow wrapping on mobile */
}


.why-choose__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 20px;
}

.feature-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The "Shelf" Platform from the image */
.feature-item__icon-wrap {
  position: relative;
  width: 140px;
  height: 120px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon-wrap::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

/* Small shelf base */
.feature-item__icon-wrap::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.feature-svg {
  width: 90px;
  height: 100px;
  position: relative;
  z-index: 2;
  filter: grayscale(100%) sepia(100%) hue-rotate(320deg) saturate(1.2) brightness(0.9) contrast(1.1);
  /* Unified premium brand icons */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-item:hover .feature-svg {
  transform: translateY(-5px);
}

.feature-item__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.feature-item__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.feature-item__divider {
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.08), transparent);
  flex-shrink: 0;
}

/* Right: ATS Resume Box */
.ats-resume-box {
  flex: 0.95;
  background: var(--gold);
  padding: 50px 35px;
  color: #000000;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(180, 160, 150, 0.25);
  position: relative;
  overflow: hidden;
}

/* Style for the integrated card inside the single box */
.ats-resume-box .resume-preview-area {
  margin-top: 30px;
  text-align: center;
  position: relative;
}

.ats-resume-box .resume-preview-img {
  width: 100%;
  max-width: 315px;
  /* Slightly larger as requested */
  height: auto;
  background: transparent;
  box-shadow: none;
  filter: sepia(0.8) hue-rotate(335deg) saturate(0.7) brightness(0.95) contrast(1.1);
  /* Synchronized to Taupe Accent theme */
}

.ats-resume-box__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 25px;
  white-space: normal;
  /* Allow wrapping */
}


.ats-resume-box__list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.ats-resume-box__list li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
  color: #000000;
}

.ats-resume-box__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000000;
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.btn-builder {
  display: block;
  min-width: 280px;
  width: fit-content;
  text-align: center;
  background: #000000;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 45px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin: auto auto 0;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
}

.btn-builder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  transform: rotate(25deg);
  animation: shimmerSwipe 3s infinite linear;
}

@keyframes shimmerSwipe {
  0% {
    left: -60%;
  }

  50% {
    left: 140%;
  }

  100% {
    left: 140%;
  }
}

.btn-builder:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  filter: brightness(1.15);
}

/* ============================================
   TESTIMONIAL & RESUME PREVIEW
   ============================================ */
/* Section integration: Testimonial sits below the feature icons */
.bottom-reveal {
  display: none;
}

/* Refined Testimonial Integration */
.testimonial-card--small {
  flex: none;
  background: var(--white) !important;
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin: 100px 0 0 45px;
  /* Moved further down for better spacing */
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 890px;
  min-height: 154px;
}

.testimonial-card--small .testimonial-card__profile {
  flex-shrink: 0;
  width: 160px;
  /* Significantly increased image size */
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid white;
  /* More prominent frame */
}

.testimonial-card--small .testimonial-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Ensures the face is always clearly visible */
}

.testimonial-card--small::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2500px;
  height: 300px;
  background-color: var(--cream-dark);
  z-index: -1;
  opacity: 1;
}

.testimonial-card--small .testimonial-card__profile {
  flex-shrink: 0;
  width: 140px;
  /* Restored visibility balance */
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 4px solid white;
  position: relative;
  z-index: 2;
}

.testimonial-card--small .testimonial-card__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 10px;
}

.testimonial-card--small .testimonial-card__author {
  font-weight: 700;
  font-family: var(--font-heading);
  color: #1a1a1a;
  text-align: right;
  font-size: 0.95rem;
}

.testimonial-card--small::before {
  content: '“';
  position: absolute;
  top: 5px;
  left: 15px;
  font-size: 4rem;
  color: #1a2535;
  opacity: 0.08;
  font-family: serif;
}

/* ============================================
   ROLES SELECTION
   ============================================ */
.roles-section {
  padding: 80px 0;
  background-color: var(--cream-dark);
  min-height: 900px;
  position: relative;
}

.roles-section__subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
}

.section-header--centered {
  justify-content: center;
}

.text-highlight {
  color: #c8962a;
}

.roles-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 25px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #665c40;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn.active,
.filter-btn:hover {
  background: #1a2535;
  color: white;
  border-color: #1a2535;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 48px;
}

.role-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, border-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0) scale(1);
  opacity: 1;
  position: relative;
  /* Container for absolute button */
}

.role-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(100, 70, 20, 0.12);
  border-color: #d4a373;
}

.role-card__icon {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.role-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.role-card__level {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.level--all {
  background: #e8dfc8;
  color: #6b5e43;
}

.level--beginner {
  background: #d4f3e5;
  color: #27ae60;
}

.level--intermediate {
  background: #fff4e5;
  color: #e67e22;
}

.level--advanced {
  background: #ffe5e5;
  color: #e74c3c;
}

.role-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 65px;
  /* Reserve space for absolute button */
}

.role-card__tags span {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.2s;
}

.role-card:hover .role-card__tags span {
  border-color: rgba(212, 163, 115, 0.4);
  color: #1a1a1a;
}

.role-card__btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 12px 35px;
  background: var(--gold);
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.3);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  z-index: 5;
}

.role-card:hover .role-card__btn {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.role-card__btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Staggered Entry Animation */
@keyframes roleCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.role-card.anim-in {
  animation: roleCardIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* ============================================
   READY TO ACE BOX (NEW SECTION)
   ============================================ */
.ready-to-ace {
  background-color: var(--white);
  padding-bottom: 50px;
}

.ready-box-modern {
  background: #E9E4E2;
  border-radius: 18px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.ready-box-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 150, 42, 0.04) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.ready-box-modern__title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.4px;
}

.ready-box-modern__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #000000;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  opacity: 1;
}

/* ============================================
   FINAL CTA & FOOTER
   ============================================ */
.cta-final {
  position: relative;
  background: var(--cream-dark);
  padding: 60px 0 60px;
  /* Reduced vertical padding for mobile baseline */
  text-align: center;
  overflow: hidden;
}


@keyframes subtleGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Futuristic AI Decorative Elements */
.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Hexagonal Nodes & Connecting Circuitry */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3C!-- Hex Nodes --%3E%3Cpolygon points='100,150 110,135 130,135 140,150 130,165 110,165' fill='%23888' opacity='0.3'/%3E%3Cpolygon points='850,200 865,180 890,180 905,200 890,220 865,220' fill='%23888' opacity='0.4'/%3E%3Cpolygon points='50,500 65,480 90,480 105,500 90,520 65,520' fill='%23888' opacity='0.2'/%3E%3C!-- Connectivity --%3E%3Cpath d='M140 150 L250 200 L400 150' stroke='%23888' stroke-width='1' fill='none' opacity='0.1'/%3E%3Cpath d='M850 200 L700 300 L600 250' stroke='%23888' stroke-width='1' fill='none' opacity='0.15'/%3E%3Cpath d='M105 500 L200 450 L300 500' stroke='%23888' stroke-width='1' fill='none' opacity='0.1'/%3E%3C!-- Small Nodes --%3E%3Ccircle cx='400' cy='150' r='3' fill='%23D8C4B6' opacity='0.4'/%3E%3Ccircle cx='600' cy='250' r='3' fill='%23D8C4B6' opacity='0.4'/%3E%3Ccircle cx='300' cy='500' r='3' fill='%23D8C4B6' opacity='0.4'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

/* Subtle Glow behind the button */
.cta-final__button-wrap {
  position: relative;
  display: inline-block;
  z-index: 5;
}

.cta-final__button-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, rgba(200, 150, 42, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.cta-final__foliage {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 400px;
  pointer-events: none;
  opacity: 0.15;
  background-repeat: no-repeat;
  background-size: contain;
}

.cta-final__foliage--left {
  left: -100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 600 C150 550 250 400 200 200 C150 0 50 -50 0 0 Z' fill='%236b5e43'/%3E%3Cpath d='M0 400 C100 350 150 200 120 100 C90 0 30 -20 0 0 Z' fill='%23544a35' opacity='0.6'/%3E%3Cellipse cx='50' cy='450' rx='80' ry='120' fill='%236b5e43' opacity='0.4'/%3E%3Cellipse cx='20' cy='300' rx='60' ry='90' fill='%23544a35' opacity='0.3'/%3E%3C/svg%3E");
  background-position: left center;
}

.cta-final__foliage--right {
  right: -100px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='scale(-1, 1) translate(-400, 0)'%3E%3Cpath d='M0 600 C150 550 250 400 200 200 C150 0 50 -50 0 0 Z' fill='%236b5e43'/%3E%3Cpath d='M0 400 C100 350 150 200 120 100 C90 0 30 -20 0 0 Z' fill='%23544a35' opacity='0.6'/%3E%3Cellipse cx='50' cy='450' rx='80' ry='120' fill='%236b5e43' opacity='0.4'/%3E%3Cellipse cx='20' cy='300' rx='60' ry='90' fill='%23544a35' opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right center;
}

.cta-final__container {
  background: #1A1A1A;
  padding: 50px 40px 110px;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(216, 196, 182, 0.05);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Moving Shine Effect */
.cta-final__container::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(-45deg);
  animation: boxShine 6s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes boxShine {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  35%,
  100% {
    transform: translate(50%, 50%) rotate(0deg);
    opacity: 0;
  }
}

.cta-final__waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300'%3E%3Cpath fill='%23FFC87F' opacity='0.8' d='M0,150 C150,100 250,200 400,150 C550,100 650,200 800,150 L800,300 L0,300 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 800px 300px;
  filter: drop-shadow(0 0 20px rgba(255, 200, 127, 0.5));
}

.wave1 {
  animation: moveWave 15s linear infinite;
  z-index: 1000;
  opacity: 0.4;
}

.wave2 {
  animation: moveWave 10s linear infinite;
  opacity: 0.3;
  z-index: 999;
  bottom: 10px;
}

.wave3 {
  animation: moveWave 25s linear infinite;
  opacity: 0.6;
  z-index: 998;
  bottom: 20px;
}

@keyframes moveWave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.cta-final__header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.cta-final__line {
  height: 1px;
  background: var(--gold);
  width: 120px;
  opacity: 0.8;
  margin-top: -46px;
}

.cta-final__title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #B08D57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  margin: 0;
}

.cta-final__subtitle {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 45px;
  position: relative;
  z-index: 5;
}

/* Bezel Button Style */
.btn-bezel {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #B08D57 100%);
  color: #000000;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 14px 45px;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  margin-top: -20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(176, 141, 87, 0.3);
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-bezel:hover {
  background: linear-gradient(135deg, #E2D1C8 0%, #D4A76A 100%);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 45px rgba(176, 141, 87, 0.5);
}

/* Footer Styles */
.main-footer {
  background-color: var(--cream-dark);
  padding: 40px 0 60px;
  color: var(--text-dark);
  border-top: none;
  font-family: var(--font-body);
}

.main-footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .main-footer__container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .main-footer__links {
    flex-direction: column;
    gap: 15px;
  }
}

.main-footer__links {
  display: flex;
  gap: 30px;
}

.main-footer__links a {
  color: var(--text-dark);
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.main-footer__links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.main-footer__social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-footer__social a {
  color: #000000;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.main-footer__social a:hover {
  color: var(--navy);
  transform: translateY(-5px);
}

.main-footer__copyright {
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  width: 100%;
  text-align: center;
  color: var(--text-dark);
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Icons via Font Awesome already included? If not, we can use SVG or Unicode. 
   Assuming the user has FA as per the <i> classes in my HTML. 
   If not, I'll add the kit or use SVGs in a follow up. */

@media (max-width: 768px) {
  .nav-mobile-only {
    display: block !important;
    width: 100%;
    text-align: center;
  }

  .btn-login-mobile,
  .btn-signup-mobile {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
    width: 80%;
    border: 2px solid #000;
    color: #000;
  }

  .btn-signup-mobile {
    background: var(--gold);
    color: #000;
    border: 2px solid var(--gold);
  }
}

.nav-mobile-only {
  display: none;
}



/* ============================================
   ADD NEW ROLE CARD & MODAL
   ============================================ */
.role-card--add-new {
  cursor: pointer;
  border: 2px dashed rgba(200, 150, 42, 0.3);
  background: rgba(255, 255, 255, 0.6);
  justify-content: center;
}

.role-card--add-new:hover {
  background: white;
  border-color: #d4a373;
}

.role-card--add-new .role-card__icon {
  background-color: #fdfaf3;
  box-shadow: 0 4px 10px rgba(200, 150, 42, 0.1);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.modal-subtitle {
  font-family: var(--font-body);
  color: #666;
  font-size: 1rem;
  margin-bottom: 30px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#customRoleInput {
  padding: 14px 20px;
  border: 1.5px solid #E9E4E2;
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

#customRoleInput:focus {
  outline: none;
  border-color: var(--gold);
}

#submitRoleBtn {
  margin-top: 5px;
  cursor: pointer;
  border: none;
}

/* Centering and Responsive Fixes for Small Screens */
@media (max-width: 768px) {

  /* Navbar adjustments - Forced Persistence */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    background-color: #E9E4E2 !important;
    z-index: 9999 !important;
    padding: 0 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .navbar__hamburger {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000000 !important;
    z-index: 10000 !important;
    margin-right: 18px !important;
    /* Moved further left */
  }

  .navbar__brand .navbar__logo {
    height: 78px !important;
    /* Increased size */
    width: auto !important;
    margin: 0 0 0 -12px !important;
    display: block !important;
  }

  /* Hero Section Stabilization */
  .hero__title {
    font-size: 1.65rem !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
  }

  .hero__actions {
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 170px !important;
    /* Reduced size */
    height: 42px !important;
    /* Reduced size */
    padding: 0 10px !important;
    font-size: 0.88rem !important;
  }

  .navbar__nav {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    padding: 30px 0 !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    z-index: 9998 !important;
    background-color: #E9E4E2 !important;
  }

  .navbar__nav a {
    font-size: 1.1rem !important;
  }

  /* Hero Section Mascot Resize */
  .hero__bee-img {
    width: 180px !important;
    margin: 10px auto !important;
    display: block !important;
  }

  .section-header-compact__title {
    font-size: 1.5rem !important;
  }

  .testimonial-card--small {
    margin: 40px auto 0 !important;
    padding: 20px 12px !important;
    max-width: 94% !important;
    width: 94% !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    left: 0 !important;
  }

  .testimonial-card--small .testimonial-card__profile {
    width: 100px !important;
    height: 100px !important;
  }

  .testimonial-card--small .testimonial-card__text {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  .testimonial-card--small .testimonial-card__author {
    text-align: center !important;
    margin-top: 8px !important;
    font-size: 0.85rem !important;
  }

  .testimonial-card--small::after {
    width: 100vw !important;
    height: 100% !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .why-choose__grid {
    gap: 35px !important;
    width: 100% !important;
    align-items: center !important;
  }

  .feature-item {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .feature-item__title {
    font-size: 1.1rem !important;
  }

  .feature-item__desc {
    font-size: 0.8rem !important;
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .feature-item__icon-wrap {
    width: 100px !important;
    height: 90px !important;
    margin-bottom: 20px !important;
  }

  .feature-svg {
    width: 70px !important;
    height: 80px !important;
  }
}

/* ============================================================
   PERMANENT NAVBAR HAMBURGER FIX (Antigravity)
   Ensures the menu stays static, visible, and functional
   without altering any existing layout logic.
   ============================================================ */

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex !important; /* Force visibility only on mobile screens */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 2000 !important; /* Absolute top priority */
    color: #000000 !important;
    font-size: 1.8rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto !important; /* Always push to the right end of the navbar */
    margin-right: 0 !important; /* Prevent it from being pushed off-screen */
  }
}

/* Ensure the inline logo styles don't squash or push the hamburger off-screen */
@media (max-width: 768px) {
  .navbar {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    /* Removed overflow-x: hidden !important which was clipping the fixed mobile menu! */
    overflow: visible !important; 
    padding: 0 16px !important; /* Keep mobile padding */
  }

  .navbar__brand {
    max-width: calc(100% - 60px) !important; /* Ensure enough space for hamburger */
    margin: 0 !important;
    flex-shrink: 1 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .navbar__logo {
    /* Safely constrain the large logo image */
    max-width: 150px !important;
    height: auto !important;
    /* OVERRIDE the extremely negative inline margins perfectly */
    margin: 0 !important;
    transform: scale(1.1); /* Slightly enlarge if needed without margin mess */
    transform-origin: left center;
  }
}

/* Keep the hamburger 'static' - ensuring it doesn't move or disappear during scroll */
.navbar--scrolled .navbar__hamburger {
  color: #000000 !important;
  transform: scale(0.9);
}

.navbar__hamburger:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================================
   MOBILE HERO FIXES (Buttons & Cursor text-wrapping)
   ============================================================ */
@media (max-width: 768px) {
  /* Fix title wrapping & cursor detachment */
  .hero__content {
    text-align: center !important; /* Ensure parent centers everything perfectly */
    width: 100% !important; /* Force static width so the gold underline doesn't shrink/expand */
  }

  .hero__title {
    display: inline-block !important; /* Shrink-wrap to content */
    white-space: normal !important; /* Wrap normally */
    word-break: normal !important; /* Ensure whole words wrap instead of breaking */
    text-align: center !important;
    margin: 0 auto 20px auto !important; /* Center the block itself */
  }
  
  .type-cursor {
    display: inline-block !important;
    vertical-align: text-bottom !important;
    float: none !important;
    position: static !important;
    margin-left: 5px !important;
  }

  /* Resize the Start Practice and Demo buttons to look cleaner, not full width */
  .hero__actions {
    display: flex !important;
    flex-direction: column !important; /* Stack buttons cleanly */
    align-items: center !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary {
    width: 220px !important; /* Reduced fixed button width */
    max-width: 90% !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* ============================================================
   MOBILE DROPDOWN MENU FIX (Compact Box vs Full Screen)
   ============================================================ */
@media (max-width: 768px) {
  /* Force Hamburger icon instead of X during active state */
  .navbar__hamburger .fa-times::before {
    content: "\f0c9" !important; /* Override X with hamburger icon */
  }

  .navbar__nav {
    position: absolute !important;
    top: 56px !important; /* Flush under the navbar */
    left: 0 !important;
    width: 100% !important;
    height: auto !important; /* Small, dynamic height */
    background: #ffffff !important; /* White dropdown clearly separates from beige hero */
    padding: 10px 0 20px !important;
    gap: 0 !important; /* Remove flex gap, use padding on items */
    
    /* Elegant box shadow & rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    
    /* Reveal logic */
    right: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
  }
  
  .navbar__nav.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* Style dropdown links like UrbanCode reference (left-aligned, clean, distinct) */
  .navbar__nav > li {
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  }

  .navbar__nav a {
    font-size: 0.95rem !important; /* Much smaller text */
    font-weight: 500 !important;
    padding: 14px 24px !important; /* Spacious hit area */
    display: block !important;
    text-align: center !important; /* Or left depending on preference, reference 3 has center-ish */
    color: var(--text-dark) !important;
  }

  /* Mobile specific action buttons sizing inside menu */
  .nav-mobile-only {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 15px !important;
    border-bottom: none !important; /* Remove line under last items */
  }

  .nav-mobile-only a {
    width: 180px !important;
    text-align: center !important;
    border: 2px solid var(--gold) !important;
    border-radius: 25px !important;
    padding: 10px 0 !important;
    font-size: 0.95rem !important;
    display: block !important;
  }
  
  .btn-signup-mobile {
    background: var(--gold) !important;
    color: #000000 !important;
  }

  .btn-login-mobile {
    background: transparent !important;
    color: #000000 !important;
    border-color: #000000 !important;
  }
}