/* ===================================
   TABLE OF CONTENTS
   1. CSS Variables
   2. Global Styles
   3. Navbar
   4. Hero Section
   5. Journey Section
   6. Partners Section
   7. App Section
   8. Footer
   9. Animations
   =================================== */

/* ===================================
   1. CSS Variables
   =================================== */
:root {
  /* Colors */
  --color-primary: #8b6f47;
  --color-secondary: #d4a574;
  --color-accent: #c2a878;
  --color-light: #e5d3b7;
  --color-bg-dark: #2a2a2a;
  --color-bg-darker: #1a1a1a;
  --color-bg-light: #f5f0e8;
  --color-bg-gradient: #e8ddc8;
  --color-text-light: #ece4d5;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Typography */
  --font-primary: "Almadinah";
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-hero: 6.25rem;
  --font-size-subtitle: 4rem;

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

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   2. Global Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: #f9f6f2;
  color: var(--color-white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===================================
   3. Navbar
   =================================== */
.navbar {
  padding: var(--spacing-sm) 0;
  transition: var(--transition-base);
}

.navbar-brand {
  color: var(--color-white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.language-switcher {
  display: flex;
  gap: var(--spacing-xs);
}

.language-switcher a {
  color: white;
  line-height: normal;
}

.lang-btn {
  background-color: transparent;
  color: var(--color-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  font-size: 0.875rem;
  padding: 0;
  border: unset;
  margin-top: 5px;
}

.lang-btn.active {
  display: none;
}

/* ===================================
   4. Hero Section
   =================================== */
.hero-section {
  position: relative;
  min-height: 815px;
  /* overflow: hidden; */
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: opacity 0.6s ease-in-out;
  border-radius: 0 0 30px 30px;
  filter: brightness(0.7);
}

.hero-bg.fade-out {
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
  font-size: var(--font-size-subtitle);
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 0;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
  margin: 0 auto;
  animation: fadeInUp 1s ease 0.6s both;
  /* max-width: 800px; */
  color: #ece4d5;
  text-align: center;
  font-family: "29LT-Azer";
  font-size: 24px;
  font-style: normal;
  font-weight: 420;
  line-height: 130%;
}

/* Thumbnails */
.thumbnails-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -93px;
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: var(--spacing-lg);
  animation: fadeInUp 1s ease 0.8s both;
}

@media screen and (max-width: 767px) {
  .thumbnails-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 0;
    padding-left: 0;
    justify-content: flex-start;
  }
}

.thumbnail-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  max-width: 290px;
  box-shadow: 0px 4.06px 4.06px 0px #00000040;
}

@media screen and (max-width: 767px) {
  .thumbnail-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

.thumbnail-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.thumbnail-card.active {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.5);
}

.thumbnail-img {
  width: 100%;
  height: 141px;
  padding: 12px;
  border-radius: 17px;
  object-fit: fill;
}

.thumbnail-text {
  display: flex;
  flex-direction: column;
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.thumbnail-text-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.thumbnail-text-top p {
  margin: 0;
  font-size: 34.05px;
  color: #c2a878;
}

.thumbnail-text .des p {
  font-family: "29LT-Azer";
  margin: 0;
  font-size: 18.38px;
  color: white;
  margin-top: 11px;
}

/* ===================================
   5. Journey Section
   =================================== */
.journey-section {
  padding-top: 220px;
  padding-bottom: 175px;
  color: #333;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
  .journey-section {
    padding-top: 120px;
    padding-bottom: 75px;
    color: #333;
  }

  .top-header {
    flex-direction: column;
    align-items: center;
  }
}

.journey-title {
  color: #9a9;
  font-family: "29LT-Azer";
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 70px;
  text-transform: capitalize;
}

.journey-description {
  color: #514732;
  font-family: "29LT-Azer";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  transition: var(--transition-base);
  text-align: center;
  font-family: "29LT-Azer";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.64px;
  padding: 10px;
  color: #514732;
  border-bottom: 1.5px solid transparent;
}

.tab-btn:hover {
  color: #823c30;
  padding: 10px;
}

.tab-btn.active {
  color: #823c30;
  padding: 10px;
  border-bottom: 1.5px solid #823c30;
}

/* Carousel Custom Styles */
.journey-carousel {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-item {
  position: relative;
}

.carousel-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-caption-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 40px 30px 30px;
  color: var(--color-white);
}

.carousel-caption-custom h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.carousel-caption-custom p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  /* background: #572019; */
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  right: -40px;
  left: auto;
}

.carousel-control-next {
  left: -40px;
  right: auto;
}

/* ===================================
   6. Partners Section
   =================================== */
.partners-section {
  padding: 60px 0;
}

.partners-title {
  font-family: "29LT-Azer";
  font-size: 60px;
  line-height: normal;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: #99aa99;
}

.partners-container {
  background: #381e18;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logo {
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: var(--transition-base);
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===================================
   7. App Section
   =================================== */

.main-content {
  position: relative;
  overflow: hidden;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../assets/bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  filter: grayscale(1);
  opacity: 0.3;
  z-index: -1;
}

.app-section {
  padding: var(--spacing-xl) 0;
  color: #333;
  position: relative;
}

.app-bg {
  border-radius: 48.671px;
  background: rgba(254, 253, 248, 0.44);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  padding: 35px 70px;
}

.app-bg .order-lg-2 {
  position: absolute;
  inset-inline-end: 150px;
}

@media (max-width: 768px) {
  .app-bg .order-lg-2 {
    position: unset;
  }
}

.app-mockup {
  max-width: 650px;
  margin: 0 auto;
  animation: floatAnimation 3s ease-in-out infinite;
}

.app-mockup img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.app-content h2 {
  font-family: "Almadinah";
  font-size: 63.772px;
  font-style: normal;
  font-weight: 700;
  line-height: 99.95%;
  letter-spacing: 0.638px;
  text-transform: capitalize;
  text-align: start;
}

.app-content p {
  color: #514732;
  font-family: "29LT-Azer";
  font-size: 23.098px;
  font-style: normal;
  font-weight: 400;
  line-height: 38.497px;
  letter-spacing: 0.462px;
  text-transform: capitalize;
  text-align: start;
  max-width: 384px;
}

.download-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: var(--spacing-md);
}

.download-buttons p {
  color: #403d3a;
  font-family: "29LT-Azer";
  font-size: 23.098px;
  font-style: normal;
  font-weight: 420;
  line-height: 23.098px;
  margin: 0;
}

.download-btn {
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  width: fit-content;
}

.download-btn:hover {
  background: #333;
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-btn i {
  font-size: 1.5rem;
}

.download-btn .content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.download-btn .content p {
  color: white;
  margin: 0;
  line-height: normal;
}

.download-btn .content span {
  font-size: 10px;
  color: white;
  line-height: normal;
}

.learn-more-link {
  display: flex;
  align-items: center;
  transition: var(--transition-base);
  color: #403d3a;
  font-family: "29LT-Azer";
  font-size: 23.098px;
  font-style: normal;
  font-weight: 400;
  line-height: 23.098px;
}

/* ===================================
   8. Footer
   =================================== */
.footer {
  padding: 40px 0 80px;
  color: var(--color-white);
  background-image: url("../assets/footer-background.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 750px;
  overflow: hidden;
}

.footer .container {
  position: relative;
  height: inherit;
}

.footer-logo {
  max-width: 150px;
  margin: 0 auto var(--spacing-md);
}

.footer-links {
  font-family: "Fustat";
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f9f6f2;
  font-family: Fustat;
  font-size: 14.994px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
}

.social-icons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 41px;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.icons-container {
  display: flex;
  gap: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e4;
  transition: var(--transition-base);
  border: 1px solid #e4e4e4;
  border-radius: 100%;
}

.social-icon:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.footer-contact {
  margin: 0 40px;
  color: #e4e4e4;
  font-family: "29LT-Azer";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.footer-contact span {
  margin: 0 10px;
}

.footer-contact a {
  text-decoration: none;
  transition: color 0.3s;
  color: #e4e4e4;
  font-weight: 400;
}

/* ===================================
   9. Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mahdi */

.credit {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: inherit;
}

.options {
  position: relative;
  display: flex;
  flex-direction: row;
  width: calc(100% - 100px);
  height: 570px;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .options {
    flex-direction: column;
    height: 800px;
  }
}

.options .option {
  position: relative;
  overflow: hidden;
  min-width: 134.061px;
  min-height: 150px;
  margin: 12px;
  background: var(--optionBackground, var(--defaultBackground, #e6e9ed));
  background-size: auto 120%;
  background-position: center;
  cursor: pointer;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
  background-repeat: no-repeat;
  background-size: cover;
}

.options .option.active {
  flex-grow: 10000;
  transform: scale(1);
  margin: 12px;
  border-radius: 60px;
  background-size: auto;
}

.options .option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0.3;
  z-index: -1;
}

.options .option.active .label .info > div {
  left: 0px;
  opacity: 1;
}

.options .option:not(.active) {
  flex-grow: 1;
  border-radius: 179.873px;
}

.options .option:not(.active) .label {
  bottom: 10px;
  left: 10px;
}

.options .option:not(.active) .label .info > div {
  opacity: 0;
}

.options .option .label {
  display: flex;
  position: absolute;
  right: 0;
  padding: 60px;
  bottom: 60px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.options .option .label .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.options .option .label .info > div {
  position: relative;
  transition:
    0.2s cubic-bezier(0.05, 0.61, 0.41, 0.95),
    opacity 0.2s ease-out;
}

.options .option .label .info .main {
  color: #ece4d5;

  font-family: "Almadinah";
  font-size: 77.157px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -3.086px;
  margin-bottom: 35px;
}

.options .option .label .info .sub {
  transition-delay: 0.1s;
  font-family: "29LT Azer";
  font-size: 23.147px;
  font-style: normal;
  font-weight: 420;
  line-height: 150%;
}
