/* Custom CSS overrides for Xarp website */

/* ==========================================================================
   Typography Standardization
   ========================================================================== */

/* Standardize body text sizes */
.text-block {
  font-size: 1.125rem !important; /* 18px base */
  line-height: 1.6 !important;
}

/* Larger body text for emphasis sections - slight emphasis only */
.larger-para {
  font-size: 1.25rem !important; /* 20px - subtle emphasis */
  line-height: 1.5 !important;
  font-weight: 500 !important; /* slightly bolder instead of much bigger */
}

/* Responsive text scaling */
@media screen and (min-width: 1290px) {
  .text-block {
    font-size: 1.25rem !important; /* 20px on larger screens */
  }

  .larger-para {
    font-size: 1.375rem !important; /* 22px on larger screens */
  }
}

@media screen and (min-width: 1920px) {
  .text-block {
    font-size: 1.375rem !important; /* 22px on very large screens */
  }

  .larger-para {
    font-size: 1.5rem !important; /* 24px on very large screens */
  }
}

/* Small text consistency */
.text-block-3,
.caption-text,
.team-role {
  font-size: 0.875rem !important; /* 14px */
  line-height: 1.5 !important;
}

/* Restore footer gradient (remove dark overlay image) */
.footer {
  background-image: linear-gradient(106deg, #32a7e9 9.18%, #b6ffff 91.98%) !important;
}

/* Make footer text black for better contrast against bright gradient */
.footer .text-block,
.footer .text-block-3,
.footer .footer-link {
  color: #000 !important;
}

/* Add top margin to team page bottom heading */
.promox {
  margin-top: 60px !important;
}

/* Increase team member name font size to balance with role text */
.team-name {
  font-size: 1.5em;
  margin-top: 12px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 1em;
  opacity: 0.8;
}

/* Team bio styling */
.team-bio {
  font-size: 0.9em;
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Make hero heading more impactful */
.heading.heading-1 {
  font-size: 5rem !important;
  line-height: 1.1 !important;
}

@media screen and (min-width: 1440px) {
  .heading.heading-1 {
    font-size: 6rem !important;
  }
}

@media screen and (min-width: 1920px) {
  .heading.heading-1 {
    font-size: 7rem !important;
  }
}

@media screen and (max-width: 991px) {
  .heading.heading-1 {
    font-size: 3.5rem !important;
  }
}

@media screen and (max-width: 479px) {
  .heading.heading-1 {
    font-size: 2.5rem !important;
  }
}

/* Fix hero section to use auto height instead of fixed heights */
.hero.desktop {
  height: auto !important;
  min-height: 600px;
}

/* Override fixed heights at all breakpoints */
@media screen and (min-width: 1280px) {
  .hero.desktop {
    height: auto !important;
  }
}

@media screen and (min-width: 1440px) {
  .hero.desktop {
    height: auto !important;
  }
}

@media screen and (min-width: 1920px) {
  .hero.desktop {
    height: auto !important;
  }
}

/* Fix mobile hero heights to prevent cropping */
@media screen and (max-width: 991px) {
  .hero,
  .hero.desktop,
  .hero.mobile.tablet {
    height: auto !important;
    min-height: 600px;
    overflow: visible !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column;
  }

  .image-6,
  .hero video {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .hero,
  .hero.mobile,
  .hero.desktop {
    height: auto !important;
    min-height: 500px;
    overflow: visible !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column;
  }
}

/* Reduce spacing between hero and next section */
.hero.desktop .section-padding-large {
  padding-bottom: 40px;
}

.section-2 {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Make section-2 heading always visible (override Webflow animation) */
.work-top-block {
  opacity: 1 !important;
}

/* Further reduce spacing at larger resolutions */
@media screen and (min-width: 1920px) {
  .hero.desktop .section-padding-large {
    padding-bottom: 20px;
  }

  .section-2 {
    padding-top: 10px;
    padding-bottom: 30px;
  }
}

/* Hide Learn More button */
.f-header-button-wrapper-2 {
  display: none;
}

/* Fix 3-column layout for sections - always 3 columns on desktop */
@media screen and (min-width: 992px) {
  .f-header-grid-2._3column {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}

/* Team page layout fixes */
/* Desktop (992px+): 4 columns in a row */
@media screen and (min-width: 992px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px;
  }
}

/* Tablet (768px - 991px): 2 columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
  }
}

/* Mobile (below 768px): 1 column */
@media screen and (max-width: 767px) {
  .f-header-grid-2._3column.promoapp {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
}

/* Ensure images don't break layout */
.f-image-cover-2 {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Ecosystem Section - App Store Buttons
   ========================================================================== */

.ecosystem-image-wrapper {
  position: relative;
  width: 100%;
}

.ecosystem-buttons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

/* App Store style badges - larger and more prominent */
.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(20, 25, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  transition: all 0.2s ease;
  min-width: 155px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.app-store-button:hover {
  background: rgba(30, 40, 55, 0.98);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-store-text strong {
  font-size: 15px;
  font-weight: 600;
  margin-top: 1px;
}

/* Catalog button - same style as app store buttons */
.catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(20, 25, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 155px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.catalog-button:hover {
  background: rgba(30, 40, 55, 0.98);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 767px) {
  .ecosystem-buttons {
    bottom: 12px;
    right: 12px;
    gap: 6px;
  }

  .app-store-button {
    padding: 8px 14px;
    font-size: 10px;
    min-width: 135px;
  }

  .app-store-text strong {
    font-size: 13px;
  }

  .catalog-button {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 135px;
  }
}

/* ==========================================================================
   Clean Modern Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (min-width: 992px) and (max-width: 1440px) {
  .nav-container {
    padding: 0.5rem 1.5rem;
  }

  .nav-brand .logo {
    width: 130px;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.nav-brand .logo {
  height: auto;
  width: 154px;
  transition: opacity 0.3s ease;
}

.nav-brand:hover .logo {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle-icon {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile responsive */
@media screen and (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-brand .logo {
    width: 120px;
  }

  .nav-menu {
    width: 100%;
    right: -100%;
  }
}

/* Adjust main content for fixed navbar */
.main-wrapper {
  padding-top: 70px;
}

@media screen and (min-width: 992px) and (max-width: 1440px) {
  .main-wrapper {
    padding-top: 60px;
  }
}

@media screen and (max-width: 479px) {
  .main-wrapper {
    padding-top: 65px;
  }
}

/* ==========================================================================
   Background Gradients - Balanced Blue/Black Alternation
   ========================================================================== */

/* Hero: Subtle blue gradient, centered with full coverage */
.hero.desktop {
  background-color: #000 !important;
  background-image: radial-gradient(ellipse 200% 150% at 50% 50%, rgba(32, 56, 118, 0.48) 0%, #000 55%) !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}

/* Section-2 heading: Pure black with equal padding */
.section-2 {
  background-color: #000 !important;
  background-image: none !important;
  padding-top: clamp(60px, 8vw, 100px) !important;
  padding-bottom: clamp(60px, 8vw, 100px) !important;
}

/* Process (Snap a Selfie + Benefits): Medium blue gradient, same style as hero */
.process {
  background-color: #000 !important;
  background-image: radial-gradient(ellipse 200% 150% at 50% 50%, rgba(38, 72, 145, 0.55) 0%, #000 55%) !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}

/* Work section: Pure black - full width */
.work {
  background-color: #000 !important;
  background-image: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.work .section-padding-large,
.work .work-content-wrapper,
.work .container,
.work .work-marquee-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Contact section: Pure black */
.contact {
  background-color: #000 !important;
  background-image: none !important;
}

/* Passport section: Stronger blue gradient approaching footer, same style as hero */
#passport {
  background-color: #000 !important;
  background-image: radial-gradient(ellipse 150% 120% at 50% 50%, rgba(44, 88, 165, 0.62) 0%, #000 60%) !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}

/* Fix work section edge gradients for ultra-wide displays */
@media screen and (min-width: 2400px) {
  .hero-slider-effect-left {
    width: calc((100vw - 2400px) / 2 + 291px) !important;
  }

  .hero-slider-effect-right {
    width: calc((100vw - 2400px) / 2 + 270px) !important;
  }
}

/* ==========================================================================
   Partners Section - Thin Strip with Moving Logos
   ========================================================================== */

.partners {
  background-color: #000 !important;
  padding: 30px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-content {
  width: 100%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: fit-content;
}

.partners-slide {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners-slide img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-slide img:hover {
  opacity: 0.7;
}

@media screen and (max-width: 767px) {
  .partners {
    padding: 20px 0;
  }

  .partners-track {
    animation-duration: 20s;
  }

  .partners-slide {
    gap: 60px;
    padding-right: 60px;
  }

  .partners-slide img {
    height: 30px;
  }
}
