/* css/styles.css */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@200;300;400;500;600;700&display=swap');

/* Custom Properties */
:root {
  /* Revised Colors - exactly matching design */
  --color-primary: #292B2D;          /* Dark blue for text and dark sections */
  --color-secondary: #F9F4F0;        /* Secondary color */
  --color-tertiary: #292B2D;         /* Bright blue for buttons and accents */
  --color-text: #1A1A1A;             /* Main text color */
  --color-text-light: #292B2D99;       /* Secondary text color */
  --color-background: #FFFFFF;       /* White background */
  --color-background-light: #F9F4F0; /* Light blue background for hero */
  --color-border: #F9F4F0;           /* Border color */
  --color-deep-grey: #292B2D99;
  --color-modern-ash: #F9F4F099;
  --color-soft-ash: #E4E6EC;
  
  /* Additional Colors */
  --color-blue-light: #F5F9FF;   /* Lighter blue for secondary backgrounds */
  --color-blue-gradient: linear-gradient(180deg, #2D7DED 0%, #2D7DED 100%);
  --color-shadow: rgba(45, 125, 237, 0.1); /* Blue-tinted shadows */
  --color-stylists-bg: #F0F7FF;  /* Light blue background For service providers page */

  /* Typography */
  --font-primary: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;

  /* Font weights */
  --font-extralight: 200;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;

  /* Container */
  --container-max-width: 1240px;
  --container-padding: var(--spacing-md);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-base: all 0.3s ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6000px;
  z-index: 99999;
  width: 100%;
  pointer-events: none;
  background-image: url('../images/Home.png');
  background-size: 1440px auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.5;
  display: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
  }
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-background);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled .nav {
  height: 60px;
}

.header.scrolled .nav__logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  transition: all 0.3s ease;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-background);
    flex-direction: column;
    justify-content: center;
    padding: 80px 24px;
    transition: right 0.3s ease;
    gap: 16px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav__menu a {
    font-size: 20px;
    width: 100%;
    justify-content: center;
    padding: 20px 32px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    max-width: 100%;
    padding: 80px 32px;
  }
}

/* Hero Section */
.hero {
  padding: 0 20px 40px;
}

.hero.home {
  margin-top: 75px;
}

.hero__content {
  padding-top: 19px;
}

.hero.home .hero__content .hero__apps {
  display: none;
}

.hero__grid {
  display: grid;
  row-gap: 16px;
  column-gap: 64px;
  padding: var(--spacing-xl) var(--spacing-xxl);
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  height: 624px;
}

.hero__title {
  font-size: 48px;
  padding: 1px 0 2px;
  font-weight: var(--font-semibold);
  letter-spacing: -1px;
}

.hero__subtitle {
  font-size: 28px;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  font-weight: var(--font-extralight);
}

.hero__features {
  list-style: none;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__features li {
  margin-bottom: var(--spacing-sm);
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  letter-spacing: 0.15px;
}

.hero__features li::before {
  content: "";
  background-image: url('../images/checkmark-circle-01.svg');
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

.hero__features li.mobile {
  display: none;
  flex-direction: column;
}
.hero__features li.desktop {
  display: inherit;
}
@media (max-width: 480px) {
  .hero__features li.mobile {
    display: inherit;
  }
  .hero__features li.desktop {
    display: none;
  }
}

.hero__apps {
  display: flex;
  gap: var(--spacing-lg);
  padding: 30px 0 38px;
}

.hero__description {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.15px;
}

.hero__sign-in {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.15px;
  margin-top: 16px;
}

.hero__sign-in a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.hero__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -180px;
}

.hero__preview img {
  width: 120%;
  max-width: 120%;
  height: auto;
  transition: transform 0.3s ease;
}

.hero__preview img:hover {
  transform: scale(1.05);
}

.hero__preview p {
  margin-top: 16px;
}

.hero__preview .hero__apps {
  padding: 8px 0 0;
}

.hero__preview .hero__apps .app-button img {
  height: 50px;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 0.5fr 0.5fr;
    align-items: center;
  }

  .hero__title {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 0.6fr 0.4fr;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .location-search {
    max-width: 100%;
  }

  .hero__title {
    text-align: center;
  }

  .hero__description {
    text-align: center;
  }

  .hero__sign-in {
    text-align: center;
  }

  .hero__features {
    justify-content: center;
  }

  .hero__apps {
    justify-content: center;
  }

  .download-app__features {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero__grid {
    padding: 16px;
    height: auto;
    min-height: 500px;
  }

  .hero__content{
    padding: 32px 32px 0;
  }
  
  .hero__map {
    display: none;
  }

  .hero__preview {
    display: none;
  }

  .hero.home {
    margin-top: 0;
  }

  .hero.home .hero__content .hero__apps {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
  }

  .hero__city {
    display: none;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .hero__sign-in {
    text-align: center;
  }

  .hero__subtitle {
    font-size: 24px;
  }

  .hero__features li {
    font-size: 15px;
  }

  .hero__description {
    font-size: 13px;
  }

  .hero__apps {
    padding: 24px 0 32px;
  }

  .download-app__content {
    padding: 32px 32px 0;
  }

  .download-app__features li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero__grid {
    padding: 12px;
    min-height: 450px;
  }

  .hero__content{
    padding: 16px 16px 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
    text-align: center;
  }

  .hero__features li {
    font-size: 14px;
  }

  .hero__description {
    font-size: 12px;
  }

  .hero__map {
    display: none;
  }

  .hero__preview {
    display: none;
  }

  .hero.home {
    margin-top: 0;
  }

  .hero.home .hero__content .hero__apps {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
  }

  .hero__city {
    display: none;
  }

  .download-app__content {
    padding: 16px 16px 0;
  }

  .download-app__features li {
    font-size: 14px;
  }
}

.location-search {
  margin-top: 32px;
  width: 100%;
}

.location-search__wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: 0px 8px 24px rgba(26, 43, 59, 0.08);
}

.location-search__icon {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-search__input {
  width: 100%;
  height: 62px;
  padding: 0 56px 0 50px;
  border: none;
  background: none;
  font-size: 16px;
  color: #292B2D;
  font-family: 'Inter Tight', sans-serif;
}

.location-search__input::placeholder {
  color: #292B2D;
}

.location-search__input:focus {
  outline: none;
}

.location-search__button {
  position: absolute;
  right: 4px;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: #292B2D;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.location-search__button:hover {
  background: #292B2D99;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .location-search {
      max-width: 100%;
  }
}

/* Location Cards */
.locations {
  padding: 40px 0;
}

.locations .section-title {
  font-size: 28px;
  margin-bottom: var(--spacing-lg);
  text-align: left;
  font-weight: var(--font-semibold);
  letter-spacing: 0;
}

.locations__grid {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  width: 20vw;
  min-width: 20vw;
  max-width: 20vw;
}

.location-card__image-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.location-card__image {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  width: 100%;
}

.location-card__content {
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.location-card:hover .location-card__image {
  transform: scale(1.05);
}

.location-card:hover .location-card__content {
  transform: translateY(-4px);
}

.location-card__title {
  margin: 0;
  font-weight: var(--font-regular);
  font-size: 20px;
}

.location-card__count {
  color: var(--color-text-light);
  font-size: 14px;
  letter-spacing: -0.1px;
}

/* Steps Section */
.steps {
  padding: 62px 0;
}

.steps .section-title {
  color: var(--color-primary);
  font-size: 36px;
  letter-spacing: -0.5px;
  font-weight: var(--font-semibold);
  text-align: center;
  margin-bottom: 34px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    scroll-margin-top: 80px; /* Reduced for mobile nav */
  }
}

@media (max-width: 640px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }

  .steps .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .location-card {
    width: 70vw;
    min-width: 70vw;
    max-width: 70vw;
  }
}

/* Enhanced Step Cards */
.step {
  position: relative;
  padding: var(--spacing-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background: var(--color-background-light);
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step__number {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--color-background);
  background-color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  color: var(--color-primary);
  font-size: 28px;
  letter-spacing: -0.25px;
  font-weight: var(--font-semibold);
  margin: 0;
}

@media (max-width: 640px) {
  .step__title {
    font-size: 24px;
  }
}

.step__description {
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

/* Features Section */
.features-section {
  margin: 65px 0 25px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
}

.features-section .container {
  background-color: var(--color-primary);
  border-radius: 16px;
  min-height: 570px;
  margin: 0 auto;
  max-width: 1140px;
}

.features__layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 24px;
  justify-items: center;
}

.features__phone {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  top: -110px;
}

.features__phone-image {
  width: 264px;
  height: auto;
}

.feature-card {
  display: flex;
  position: relative;
  width: 320px;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: 12px;
  background: var(--color-secondary);
  box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
  font-size: 24px;
  color: var(--color-primary);
  display: inline-flex;
  margin: 2px 0;
}

.feature-card__title {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: var(--font-semibold);
  margin: 0;
  display: flex;
  gap: 12px;
}

.feature-card__description {
  color: var(--color-tertiary);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

/* Position the cards */
.feature-card--profiles {
  grid-column: 1;
  grid-row: 1;
  --originalX: 57px;
  --originalY: -42px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 4s infinite linear;
}

.feature-card--reviews {
  grid-column: 3;
  grid-row: 1;
  --originalX: -57px;
  --originalY: -42px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 4.5s infinite linear;
}

.feature-card--bookings {
  grid-column: 1;
  grid-row: 2;
  --originalX: -82px;
  --originalY: 23px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 5.5s infinite linear;
}

.feature-card--tips {
  grid-column: 3;
  grid-row: 2;
  --originalX: 82px;
  --originalY: 23px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 5.25s infinite linear;
}

.feature-card--search {
  grid-column: 1;
  grid-row: 3;
  --originalX: 28px;
  --originalY: 89px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 4.25s infinite linear;
}

.feature-card--messages {
  grid-column: 2;
  grid-row: 3;
  --originalX: 0px;
  --originalY: 138px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 5s infinite linear;
}

.feature-card--dashboard {
  grid-column: 3;
  grid-row: 3;
  transform: translate(-28px, 89px);
  --originalX: -28px;
  --originalY: 89px;
  transform: translate(var(--originalX), var(--originalY));
  animation: orbit 4.75s infinite linear;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

@media (max-width: 1200px) {
  .features__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-left: 30%;
    margin-top: -50px;
    margin-bottom: -50px;
  }

  .features__phone {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
    margin: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    transform: translate(30px, -50px);
  }

  .features__phone-image {
    width: 35%;
  }

  .feature-card {
    position: relative;
    transform: none;
    animation: none;
    width: 100%;
    max-width: 320px;
    z-index: 10;
  }

  .feature-card--profiles,
  .feature-card--reviews,
  .feature-card--bookings,
  .feature-card--tips,
  .feature-card--search,
  .feature-card--messages,
  .feature-card--dashboard {
    transform: none;
    animation: none;
  }

  .feature-card--profiles {
    transform: translateX(-50px);
  }

  .feature-card--reviews {
    transform: translateX(40px);
  }

  .feature-card--bookings {
    transform: translateX(70px);
  }

  .feature-card--tips {
    transform: translateX(20px);
  }

  .feature-card--search {
    transform: translateX(-50px);
  }

  .feature-card--messages {
    transform: translateX(-150px);
  }

  .feature-card--dashboard {
    transform: translateX(-280px);
  }
}

@media (max-width: 640px) {
  .features__layout {
    padding-left: 0;
    padding-bottom: 20px;
    margin-top: 0;
    margin-bottom: 0;
    align-items: center;
    padding-top: 340px;
  }

  .feature-card--profiles,
  .feature-card--reviews,
  .feature-card--bookings,
  .feature-card--tips,
  .feature-card--search,
  .feature-card--messages,
  .feature-card--dashboard {
    transform: none;
    animation: none;
  }

  .features__phone {
    position: absolute;
    right: auto;
    left: auto;
    transform: translate(0px, -100px);
  }

  .features__phone-image {
    width: 100%;
    max-width: 200px;
  }

  .feature-card {
    max-width: 100%;
    width: 360px;
  }

  .feature-card__title {
    font-size: 24px;
  }

  .feature-card--bookings,
  .feature-card--messages,
  .feature-card--search {
    align-self: flex-start;
  }

  .feature-card--search,
  .feature-card--reviews {
    align-self: flex-end;
  }
}

/* Trust Section */
.testimonials {
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
}

.testimonials .section-title {
  color: var(--color-primary);
  font-size: 36px;
  letter-spacing: -0.5px;
  font-weight: var(--font-semibold);
  text-align: center;
  margin-bottom: 34px;
}

.testimonials .section-title span {
  color: var(--color-tertiary);
}


.testimonials__rows {
  position: relative;
}

.testimonials__row {
  position: relative;
  padding: 8px 0 8px 85px;
}

.testimonials__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
  transition: animation-play-state 0.2s ease;
}

/* Optional: Add smooth transition when hovering */
.testimonials__track:hover {
  animation-play-state: paused;
  transition: animation-play-state 0.2s ease;
}

/* Simplified animations */
.testimonials__row[data-direction="left"] .testimonials__track {
  animation: scroll-left 40s linear infinite;
}

.testimonials__row[data-direction="right"] .testimonials__track {
  animation: scroll-right 40s linear infinite;
}

/* Direct hover state */
.testimonials__rows:hover .testimonials__track {
  animation-play-state: paused !important; /* Added !important to ensure it overrides */
  transition: all 0.5s ease-out;
}

.testimonial-card {
  background: var(--color-background-light);
  border-radius: 16px;
  padding: 16px;
  width: 402.67px;
  height: 172px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__meta {
  flex: 1;
  gap: 2px;
  display: flex;
  flex-direction: column;
  padding-top: 1px;
}

.testimonial-card__name {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: -0.2px;
  font-weight: var(--font-semibold);
  margin: 0;
}

.testimonial-card__location {
  color: var(--color-text-light);
  font-size: 12px;
  margin: 0;
}

.testimonial-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

.star {
  color: #FFB800;
  font-size: 24px;
}

.testimonial-card__text {
  color: var(--color-deep-grey);
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  padding-right: 0.5px;
  /* Add styles for ellipsis and line clamping */
  display: -webkit-box; /* Required for line clamping */
  -webkit-box-orient: vertical; /* Required for line clamping */
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Add ellipsis for overflow */
  /* Standard property for compatibility */
  line-clamp: 3;
}

.testimonial-card__text b {
  color: var(--color-primary);
  font-size: 16px;
}

.testimonials__loading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes scroll-left {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
      transform: translateX(-50%);
  }
  100% {
      transform: translateX(0);
  }
}


@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }

  .testimonials .section-title {
    font-size: 28px;
  }
}

/* FAQ Section */
.faq {
  padding: 30px 20px;
}

.faq .container {
  background-color: var(--color-secondary);
  padding: 48px 48px 40px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 36px;
  border-radius: 16px;
}

.faq__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq .section-title {
  font-size: 48px;
  font-weight: var(--font-semibold);
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: 20px;
}

.faq__grid {
  margin: 0 auto;
}

.faq__item {
  background: var(--color-background);
  border-radius: 8px;
  margin-bottom: 8px;
}

.faq__toggle {
  display: none;
}

.faq__question {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 16px 16px 14px;
  gap: 8px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: var(--font-medium);
}

.faq__icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  padding: 0 16px;
  margin-top: -1px;
}

.faq__answer p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.25;
  padding-bottom: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

.faq__answer p:first-child::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-modern-ash);
  margin-bottom: 16px;
}

/* Accordion functionality */
.faq__toggle:checked + .faq__question .faq__icon {
  transform: rotate(180deg);
}

.faq__toggle:checked ~ .faq__answer {
  max-height: 500px; /* Adjust based on content */
}

.faq__toggle:checked ~ .faq__answer p {
  opacity: 1;
  transform: translateY(0);
}

.faq__apps {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

/* Hover states */
.faq__question:hover {
  color: var(--color-primary);
}

.faq__item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
  .faq .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .faq .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .faq__header {
    text-align: center;
  }

  .faq__apps {
    justify-content: center;
  }

  .faq .section-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .faq .section-subtitle {
    font-size: 14px;
  }
}

/* Blog Section */
.latest {
  padding: 70px 0 0;
}

.latest .container {
  padding: 0;
}

@media (max-width: 1200px) {
  .latest .container  {
    padding: 0 20px;
  }
}

.latest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.latest__header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.latest__header h2 {
  color: var(--color-primary);
  font-size: 36px;
  letter-spacing: -0.5px;
  font-weight: var(--font-semibold);
}

.latest__header p {
  font-size: 18px;
  color: #292B2D;
}

.latest__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.latest__card {
  background: var(--color-soft-ash);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
  border-radius: 12px;
  border: 1px solid var(--color-soft-ash);
  background: var(--color-background-light);
}

.latest__card:hover {
  transform: translateY(-4px);
}
.latest__card img {
  width: 100%;
  object-fit: cover;
  height: 155px;
  align-self: stretch;
  aspect-ratio: 275/155;
  border-radius: 8px;
}

.latest__card-content {
  padding: 0 8px;
}

.latest__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tag {
  background: var(--color-primary);
  color: var(--color-background);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  height: 32px;
  padding: 0px 12px;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.latest__meta time {
  color: #292B2D;
  font-size: 14px;
}

.latest__card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #292B2D;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.25px;
}

.latest__card p {
  color: #292B2D;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 20px;
}

.latest__read-more {
  color: #292B2D;
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
}

.latest__read-more:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .latest__grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .latest__grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .latest__header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
  }
}

@media (max-width: 600px) {
  .latest__grid {
      grid-template-columns: 1fr;
  }
  
  .latest__header h2 {
      font-size: 36px;
  }
}

@media (max-width: 768px) {
  .latest__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .latest__header h2 {
    font-size: 28px;
  }

  .latest__header p {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .latest {
    scroll-margin-top: 80px; /* Reduced for mobile nav */
  }
}

/* Download Section */
.download-app {
  padding: 140px 20px 64px;
  overflow: hidden;
  position: relative;
}

.download-app .container {
  background-color: #292B2D;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px;
  padding: 64px;
  max-height: 390px;
}

.download-app__content {
  width: 50%;
}

.download-app__content-header {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  display: inline-flex;
}

.download-app h2 {
  display: inline-flex;
  color: var(--color-background);
  font-size: 36px;
  font-style: normal;
  font-weight: var(--font-medium);
  letter-spacing: -0.1px;
}

.download-app img{
  width: 165px;
  text-align: right;
  margin: -4px 0 4px auto;
}

.download-app__features {
  list-style: none;
  margin: 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-app__features li {
  margin-bottom: var(--spacing-sm);
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  letter-spacing: 0.15px;
  color: #fff;
}

.download-app__features li::before {
  content: "";
  background-image: url('../images/checkmark-circle-02.svg');
  background-size: cover;
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  color: #fff;
}

.download-app__subtitle {
  font-size: 32px;
  color: #7B8C9E;
  font-style: italic;
  display: block;
  margin-bottom: 24px;
}

.download-app__description {
  font-size: 16px;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.download-app__secondary {
  font-size: 16px;
  line-height: 1.2;
  color: #7B8C9E;
  margin-bottom: 34px;
}

.download-app__stores {
  display: flex;
  gap: 16px;
}

.store-button {
  height: 40px;
  transition: transform 0.3s ease;
}

.store-button:hover {
  transform: translateY(-4px);
}

.store-button img {
  height: 100%;
  width: auto;
}

/* Mockups styling */
.download-app__mockups {
  position: relative;
  width: 50%;
  height: 500px;
  perspective: 1000px;
  transform: translateY(-70px);
}

.mockup {
  position: absolute;
  width: 280px;
  top: 50px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mockup img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.mockup--center {
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

.mockup--left {
  z-index: 1;
  left: 25%;
  transform: translateX(-60%) translateZ(-100px) rotateY(10deg);
  opacity: 1;
}

.mockup--right {
  z-index: 1;
  left: 75%;
  transform: translateX(-40%) translateZ(-100px) rotateY(-10deg);
  opacity: 1;
}

/* Hover animations */
.download-app__mockups:hover .mockup--left {
  transform: translateX(-70%) translateZ(0) rotateY(20deg);
}

.download-app__mockups:hover .mockup--right {
  transform: translateX(-30%) translateZ(0) rotateY(-20deg);
}

.download-app__mockups:hover .mockup--center {
  transform: translateX(-50%) translateZ(50px);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .download-app .container {
    flex-direction: column;
    text-align: center;
    max-height: 100%;
    row-gap: 96px;
    padding-bottom: 0;
  }

  .download-app__content {
    width: 100%;
  }
  
  .download-app__stores {
    justify-content: center;
  }

  .download-app__mockups {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .download-app__subtitle {
    font-size: 24px;
  }

  .download-app {
    padding: 60px 20px 64px;
  }

  .download-app .container {
    padding: 32px 12px 12px;
  }

  .download-app h2 {
    font-size: 24px;
  }

  .download-app__features li {
    text-align: left;
    font-size: 14px;
  }
}


/* FAQ Styles */

.faq-section .container {
  display: flex;
  gap: 8px;

  .faq__grid {
    .faq__item {
      background-color: var(--color-background-light);
    }
  }
}

.hero-box {
  background: #F9F4F0;
  border-radius: 16px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}
.hero-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.hero-header-title {
  text-align: center;
  font-size: 48px;
  letter-spacing: -1px;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-header-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.faq-search {
  margin-top: 32px;
  width: 420px;
}

.faq-search__wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: 0px 8px 24px rgba(26, 43, 59, 0.08);
}

.faq-search__icon {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-search__input {
  width: 100%;
  height: 62px;
  padding: 0 56px 0 24px;
  border: none;
  background: none;
  font-size: 16px;
  color: #292B2D;
  font-family: 'Inter Tight', sans-serif;
}

.faq-search__input::placeholder {
  color: #292B2D;
}

.faq-search__input:focus {
  outline: none;
}

.faq-search__button {
  position: absolute;
  right: 4px;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: #292B2D;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.faq-search__button:hover {
  background: #292B2D99;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-search {
      max-width: 100%;
  }
}


/* About Styles */


.about-hero {
  background: linear-gradient(to left, #F9F4F0, #F9F4F0);
  border-radius: 16px;
  padding: 64px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.about-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  position: relative;
}
.about-hero-text-title {
  line-height: 1.2;
  text-align: left;
  font-size: 64px;
  letter-spacing: -2px;
  font-weight: 700;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.about-hero-text-content {
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.about-hero-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  position: relative;
}

.mission-section-content,
.story-section-content {
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.mission-section-text,
.story-section-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-section-image,
.story-section-image {
  flex: 1;
}

.mission-section-content-title,
.story-section-content-title {
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1px;
}

.mission-section-content-body,
.story-section-content-body {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Features Section */
.features {
  margin: 65px 0 25px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
}

.features .container {
  background-color: var(--color-primary);
  border-radius: 16px;
  min-height: 570px;
  margin: 0 auto;
  max-width: 1140px;
}

.feature-item {
  background: var(--color-secondary, #F9F4F0);
  border-radius: 8px;
  padding: 40px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
  position: relative;
}
.feature-item-icon {
  background: var(--color-primary, #292B2D);
  border-radius: 100px;
  padding: 12px;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}
.feature-item-text-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item-text-description {
  color: var(--color-deep-grey, #292B2D99);
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Styles */
.contact-section {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 720px;
}
.form-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-header-title {
  color: var(--appacut-primary, #292B2D);
  font-size: var(--title-large-font-size, 48px);
  letter-spacing: var(--title-large-letter-spacing, -1px);
  font-weight: var(--title-large-font-weight, 600);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-header-subtitle {
  color: var(--royal-black, #14141f);
  font-size: var(--paragraph-large-font-size, 20px);
  font-weight: var(--paragraph-large-font-weight, 400);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-instructions-title {
  color: var(--royal-black, #14141f);
  text-align: left;
  font-size: var(--button-large-font-size, 20px);
  font-weight: var(--button-large-font-weight, 500);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-instructions-subtitle {
  color: var(--deep-gray, #63687d);
  text-align: left;
  font-size: var(--paragraph-medium-font-size, 16px);
  font-weight: var(--paragraph-medium-font-weight, 400);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-content: flex-start;
}
.input-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.form-label {
  padding: 0px 16px 0px 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  color: var(--royal-black, #14141f);
  text-align: left;
  font-size: var(--title-xs-font-size, 12px);
  font-weight: 500;
  text-transform: uppercase;
}
.form-input {
  background: var(--royal-white, #f0f1f5);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
  position: relative;
  border: none;
  font-family: "Inter Tight";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.form-textarea {
  background: var(--royal-white, #f0f1f5);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
  position: relative;
  border: none;
  font-family: "Inter Tight";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 100%;
  min-height: 160px;
}
.button {
  background: var(--appacut-primary, #292B2D);
  color: white;
  border-radius: 16px;
  padding: 14px 32px 14px 32px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 54px;
  font-family: "Inter Tight";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}



/* Footer Styles */
.footer {
  padding: 36px 0 0;
}

.footer .navigation {
  background-color: var(--color-secondary);
  height: 300px;
  display: flex;
  align-items: center;
}

.footer__main {
  display: grid;
  grid-template-columns: 300px 3fr 0.8fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}

.footer__logo {
  width: auto;
  height: 32px;
  margin-bottom: 2px;
}

.footer__tagline {
  color: #292B2D;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: 0.15px;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 32px;
  height: 32px;
  background-color: #292B2D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.footer__social a:hover {
  background-color: #292B2D99;
}

.footer__social a svg path {
  fill: var(--color-background);
}

.footer__social img {
  width: 100%;
  height: 100%;
}

.footer h3 {
  color: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 9px;
}

.footer__cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  line-height: 1.3;
}

.footer ul li a {
  color: #292B2D99;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #292B2D;
}

.footer__cities {
  margin-top: 4px;
}

.footer__company {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.footer__sign-in {
  margin-top: 8px;
  background-color: #292B2D;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-flex;
  padding: 6px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  width: fit-content;
}

.footer__sign-in:hover {
  background-color: #292B2D99;
}

.footer__bottom {
  padding-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  color: #292B2D;
  font-size: 10px;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  color: #292B2D;
  text-decoration: none;
  font-size: 10px;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #292B2D;
}

.footer__brand img {
  height: 32px;
}

@media (max-width: 1024px) {
  .footer .navigation {
    height: 100%;
    padding: 36px 0;
  }
  .footer__main {
    grid-template-columns: 0.5fr 1fr 0.3fr;
  }
  
  .footer__main {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding-bottom: 16px;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__brand img {
    height: 28px;
  }
}

.colophon {
  height: 60px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .colophon {
    height: 100%;
    padding: 30px 0 0;
  }
}

.scroll-margin {
  scroll-margin-top: 60px;
}

@media (max-width: 1024px) {
  .scroll-margin {
    scroll-margin-top: 30px;
  }
}

/* Utility Classes */
.btn {
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-primary);
  display: flex;
  height: 48px;
  padding: 12px 20px;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: var(--font-medium);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  outline: none;
}

@media (max-width: 900px) {
  .btn {
    height: 40px;
    padding: 8px 16px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .btn {
    font-size: 14px;
  }
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-light);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-background);
}

.btn--primary::after {
  background-color: #02101f;
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--secondary {
  background-color: var(--color-secondary);
}

.btn--secondary::after {
  background-color: #e4ddd8;
}

.btn--secondary:hover::after {
  opacity: 0.75;
}

.btn--tertiary {
  background-color: var(--color-tertiary);
  color: var(--color-background);
}

.btn--tertiary::after {
  background-color: var(--color-primary);
}

.btn--tertiary:hover::after {
  opacity: 0.75;
}

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

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Additional CSS for enhanced styling */

/* App Store Buttons */
.app-button {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-button:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}

.app-button img {
  height: 40px;
  width: auto;
}

/* Enhanced Blog Cards */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced FAQ Section */
.faq__item {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.nav__mobile-button {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav__mobile-button {
    display: block;
  }
  
  .nav__mobile-button span {
    display: block;
    width: 24px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
  }
}

/* Loading States */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes orbit {
  0% {
    transform: translate(var(--originalX), var(--originalY)) rotate(0deg) translate3d(4px, 0px, 0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(var(--originalX), var(--originalY)) rotate(90deg) translate3d(4px, 0px, 0px) rotate(-90deg) scale(0.98);
  }
  50% {
    transform: translate(var(--originalX), var(--originalY)) rotate(180deg) translate3d(4px, 0px, 0px) rotate(-180deg) scale(0.95);
  }
  75% {
    transform: translate(var(--originalX), var(--originalY)) rotate(270deg) translate3d(4px, 0px, 0px) rotate(-270deg) scale(0.98);
  }
  100% {
    transform: translate(var(--originalX), var(--originalY)) rotate(360deg) translate3d(4px, 0px, 0px) rotate(-360deg) scale(1);
  }
}

/* Service providers Page Specific Styles */
body.stylists-page {
  background-color: var(--color-secondary);
}

body.stylists-page .hero {
  background-color: var(--color-secondary);
  margin-top: 80px;
}

body.stylists-page .header {
  background-color: var(--color-secondary);
}

body.stylists-page .hero__grid {
  background-color: var(--color-background);
}

body.stylists-page .feature-card {
  background-color: var(--color-background);
}

body.stylists-page .footer .navigation {
  background-color: var(--color-primary);
}

body.stylists-page .footer ul li a {
  color: var(--color-modern-ash);
}

body.stylists-page .footer h3 {
  color: var(--color-secondary);
}

body.stylists-page .footer__tagline {
  color: var(--color-modern-ash);
}

body.stylists-page .footer__social a {
  background-color: var(--color-background);
}

body.stylists-page .footer__social a svg path {
  fill: var(--color-primary);
}

body.stylists-page .footer__sign-in {
  background-color: var(--color-background);
  color: var(--color-primary);
}
body.stylists-page .footer__sign-in:hover {
  background-color: var(--color-secondary);
}

body.stylists-page .faq .container {
  background-color: var(--color-background);
}

body.stylists-page .faq__item {
  background-color: var(--color-background-light);
}

body.stylists-page .latest {
  padding-bottom: 35px;
}

body.stylists-page .hero__mockups {
  position: relative;
  height: 100%;
  transform: translateY(-30px);
  perspective: 1000px;
}

body.stylists-page .hero__mockup {
  position: absolute;
  max-width: 260px;
  width: 45vw;
  height: auto;
  transition: transform 0.3s cubic-bezier(.23,1,.32,1);
}

body.stylists-page .hero__mockup--1 {
  left: 0%;
  top: 10px;
  z-index: 2;
  transform: rotate(-6deg) scale(1.2);
}

body.stylists-page .hero__mockup--2 {
  left: 40%;
  top: 10px;
  z-index: 1;
  transform: rotate(10deg) scale(1.1);
}

body.stylists-page .hero__mockups:hover .hero__mockup--1 {
  transform: translateX(-15%) translateZ(0) rotateY(5deg) rotate(-8deg) scale(1.2);
  z-index: 2;
}

body.stylists-page .hero__mockups:hover .hero__mockup--2 {
  transform: translateX(20%) translateZ(0) rotateY(-15deg) rotate(12deg) scale(1.1);
  z-index: 1;
}

/* Service providers Page - Getting Started Section */
body.stylists-page .start {
  padding: 30px 20px;
}

body.stylists-page .start .container {
  background-color: var(--color-background);
  padding: 48px 48px 40px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 36px;
  border-radius: 16px;
}

body.stylists-page .start__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 48px;
}

body.stylists-page .start .section-title {
  font-size: 48px;
  font-weight: var(--font-semibold);
  letter-spacing: -1px;
}

body.stylists-page .start .section-subtitle {
  color: #22334A;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

body.stylists-page .start__steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 24px 0;
}

body.stylists-page .start__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

body.stylists-page .start__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 50px;
}

body.stylists-page .start__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

body.stylists-page .start__icon svg path {
  fill: var(--color-background);
}

body.stylists-page .start__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.stylists-page .start__title {
  font-size: 20px;
  font-weight: var(--font-medium);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.2;
}

body.stylists-page .start__desc {
  font-size: 16px;
  color: var(--color-deep-grey);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}


@media (max-width: 1024px) {
  body.stylists-page .start .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  body.stylists-page .start .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  body.stylists-page .start {
    text-align: center;
  }

  body.stylists-page .start__header {
    padding-right: 0px;
}

  body.stylists-page .start .section-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  body.stylists-page .start .section-subtitle {
    font-size: 14px;
  }

  body.stylists-page .start__step {
    flex-direction: column;
    align-items: center;
  }
}



@media (max-width: 900px) {
  body.stylists-page .hero__mockups {
    min-height: 460px;
    display: flex;
    align-items: center;
    transform: translate(0, 20px);
  }
  body.stylists-page .hero__mockup {
    max-width: 180px;
    width: 38vw;
  }
  body.stylists-page .hero__mockup--1 {
    left: 25%;
    top: 0;
  }
  body.stylists-page .hero__mockup--2 {
    left: 40%;
    top: 30px;
  }
}

.stats {
  padding: 40px 20px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background-color: var(--color-primary);
  border-radius: 16px;
  padding: 48px 0;
}

.stats .stat-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stats .stat-column .stat-column__value {
  font-size: 48px;
  font-weight: var(--font-semibold);
  letter-spacing: -1px;
  color: var(--color-background);
}

.stats .stat-column .stat-column__info {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-background);
}


@media (max-width: 768px) {
  .stats .container {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding: 48px 24px;
  }
}

/* Barbers Near You Section */
.barbers-near-you {
  padding: 48px 0 32px 0;
  position: relative;
  overflow: visible; /* Allow content to overflow */
}

.barbers-near-you .container {
  padding: 0;
  overflow: visible;
}

@media (max-width: 1200px) {
  .barbers-near-you .container  {
    padding: 0 20px;
    overflow: visible;
  }
}

.barbers-near-you__title {
  color: var(--color-primary);
  font-size: 48px;
  font-weight: var(--font-semibold);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -1px;
}

.barbers-near-you__grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 0 24px 12px;
  margin-top: 40px;
  overflow-x: auto; /* Restore horizontal scrolling */
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  /* Remove overflow: visible as it conflicts with overflow-x: auto */
}

.barbers-near-you__grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.barbers-near-you__loading {
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10; /* Ensure it's above other content */
  pointer-events: all; /* Allow interaction while loading is visible */
  opacity: 1;
  transition: opacity 0.3s ease;
}

.barbers-near-you__loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spinner styles */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1); /* Light grey border */
  border-top: 4px solid var(--color-primary); /* Primary color for the top border */
  border-radius: 50%;
  width: 40px; /* Spinner size */
  height: 40px; /* Spinner size */
  animation: spin 1s linear infinite; /* Spinning animation */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.barber-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  transition: transform 0.3s ease, z-index 0s ease 0.3s;
  position: relative;
  z-index: 1;
  /* Add margin to prevent clipping when scaled */
  margin: 20px 0;
}

.barber-card:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.barber-card__header {
  position: relative;
  width: 100%;
}

.barber-card__banner-image {
  width: 100%;
  height: 180px; /* Adjust height as needed to match image */
  object-fit: cover;
  display: block; /* Remove extra space below image */
}

.barber-card__banner-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 180px; /* Adjust height as needed to match image */
  object-fit: cover;
  display: block; /* Remove extra space below image */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.5) 75%);
}

.barber-card__profile-information {
  margin-top: -35px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 0 16px;
}

.barber-card__profile-image {
  left: 20px; /* Adjust positioning */
  width: 70px; /* Adjust size */
  height: 70px; /* Adjust size */
  border-radius: 50%;
  border: 4px solid #fff; /* White border */
  object-fit: cover;
  z-index: 1; /* Ensure it's above the banner */
}

.barber-card__title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.barber-card__title {
  font-size: 14px; /* Adjust font size */
  font-weight: 500;
  color: #fff; /* Primary text color */
  z-index: 1;
  /* Prevent text from going under profile image */
  padding-right: 10px; /* Add some padding */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Optional: Add shadow for readability */
}

.barber-card__rating {
  font-size: 12px;
  color: #292B2D; /* Secondary text color */
  display: flex;
  align-items: center;
  gap: 4px; /* Space between elements */
  z-index: 1;
}

.barber-card__rating .star {
  color: #ffc107; /* Star color */
  margin-right: 0;
  font-size: 18px;
}

.barber-card__rating span:nth-child(2) {
  font-size: 15px;
  font-weight: 600;
  color: #292B2D;
}

.barber-card__services-container {
  padding: 20px; /* Add padding around the services */
  padding-top: 10px; /* Less padding at the top */
  overflow-x: auto; /* Enable horizontal scrolling */
  white-space: nowrap; /* Prevent items from wrapping */
  /* Optional: Hide scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.barber-card__services-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.service-card {
  display: inline-block; /* Arrange cards in a row */
  background-color: #F5F6F7; /* Light grey background */
  padding: 12px 12px; /* Adjust padding */
  border-radius: 6px; /* Slightly rounded corners */
  margin-right: 8px; /* Space between service cards */
  white-space: normal; /* Allow text inside service card to wrap */
  vertical-align: top; /* Align cards nicely in the row */
  min-width: 160px;
  width: 160px;
  max-width: 160px;
  box-sizing: border-box;
  flex-shrink: 0; /* Prevent cards from shrinking */
}

.service-card:last-child {
  margin-right: 0;
}

.service-card__title {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #292B2D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card__details {
  font-size: 11px;
  color: #292B2D;
  margin: 0;
  display: flex; /* Use flexbox for time and price layout */
  align-items: center;
  gap: 8px; /* Space between time and price */
}

.service-card__chips {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 12px;
}

.service-card__chips span {
  background-color: #e7eaee;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #51616F;
  margin-right: 8px;
}

.service-card__time,
.service-card__price {
  /* Reset margin-right as gap handles spacing */
  margin-right: 0;
}

/* Optional: Add styles for the error message */
.error-message {
  color: #d32f2f; /* Red color for error */
  text-align: center;
  padding: 20px;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: #292B2D;
}

@media (max-width: 1200px) {
  .barbers-near-you__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .barbers-near-you__title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .barbers-near-you__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 0 8px;
  }
}

.hidden {
  display: none !important;
}

.barber-card__more {
  background-color: var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  transition: transform 0.3s ease, z-index 0s ease 0.3s;
  position: relative;
  z-index: 1;
  /* Add margin to prevent clipping when scaled */
  margin: 20px 0;
  gap: 16px;
}

.barber-card__more:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.barber-card__more p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  width: 240px;
  text-align: center;
  white-space: pre-wrap;
}
