/* ================= 1. CSS VARIABLES ================= */

:root {
  --bgColor: #FCF4E3;
  --mainColor: #433222;
  --textColor: black;
  --textWhy: #907263;
  --secbg: #FEFCF8;
  --faqOpenbg: #ffffff;

  --navBorderColor: var(--textColor);
  --indicatorBg: black;
  --iconActive: #FCF4E3;
  --iconInactive: black;
  --avatarBg: #dcd7ca;
  --userNameColor: #333;
  --accordionColor: #6b5e4f;

  --mainFont: 'Tajawal', sans-serif;
  --secFont: 'Doran', serif;

  --card-glass-light: rgba(255, 252, 240, 0.92);
  --border-glow-light: rgba(67, 50, 34, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.08);
  --path-stroke: #433222;
  --circle-stroke: #433222;
  --text-muted-light: #5e4b38;
}

:root.dark,
body.dark {
  --bgColor: #121211;
  --mainColor: #EEE7D4;
  --textColor: #EEE7D4;
  --textWhy: #E4CAAE;
  --secbg: #191918;
  --faqOpenbg: #252525;

  --navBorderColor: var(--mainColor);
  --indicatorBg: var(--mainColor);
  --iconActive: #FCF4E3;
  --iconInactive: black;
  --avatarBg: transparent;
  --userNameColor: var(--mainColor);

  --card-glass-light: rgba(18, 18, 17, 0.92);
  --border-glow-light: rgba(238, 231, 212, 0.35);
  --shadow-light: rgba(0, 0, 0, 0.4);
  --path-stroke: #EEE7D4;
  --circle-stroke: #E4CAAE;
  --text-muted-light: #CBB99A;
}

/* ================= 2. GENERAL STYLES ================= */

@font-face {
  font-family: 'Doran';
  src: url('../resource/fonts/Doran-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bgColor);
  color: var(--textColor);
  transition: background-color 0.4s ease, color 0.4s ease;
  cursor: none;
}

#water-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

#cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mainColor);
  box-shadow: 0 0 12px var(--faqOpenbg);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  z-index: 9999;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--textWhy);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body.dark #water-container {
  display: none;
}

/* Hide cursor elements on touch devices */
@media (hover: none) and (pointer: coarse) {

  #cursor,
  #cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}

@keyframes breatheText {

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

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.rtl {
  direction: rtl;
  text-align: right;
}

/* ================= 3. NAVBAR ================= */

.navbar {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  width: 100%;
  z-index: 9999;
  transition: background-color 0.4s ease;
}

.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  justify-content: flex-start;
}

.nav-logo img {
  height: 40px;
}

.logo-dark {
  display: none;
}

body.dark .logo-light {
  display: none;
}

body.dark .logo-dark {
  display: block;
}

/* ================= 4. NAV LINKS ================= */

.nav-links {
  display: flex;
  justify-content: center;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--secFont);
  color: var(--textColor);
  font-size: 24px;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--textColor);
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ================= 5. NAV ACTIONS ================= */

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.mode-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85px;
  height: 38px;
  background: var(--bgColor);
  border: 1px solid var(--navBorderColor);
  border-radius: 25px;
  padding: 0 4px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.4s ease;
}

.mode-icon {
  font-size: 15px;
  z-index: 2;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.4s ease, transform 0.4s ease;
}

.mode-indicator {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: var(--indicatorBg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body:not(.dark) .mode-indicator {
  left: calc(100% - 32px - 4px);
}

body.dark .mode-indicator {
  left: 4px;
}

#moon-icon {
  color: var(--iconActive);
}

#sun-icon {
  color: var(--iconInactive);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 1px solid var(--navBorderColor);
  border-radius: 48px;
  height: 38px;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  margin-left: 2px;
  background: var(--textColor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bgColor);
  border: 2px solid var(--mainColor);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--textColor);
  font-family: var(--mainFont);
  transition: color 0.4s ease;
  margin-right: 10px;
}

/* Navbar Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 60px;
  }


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

  .nav-center {

    display: flex;
    justify-content: center;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    /* أو 100% حسب رغبتك */
  }

  .nav-logo,
  .nav-actions {
    z-index: 2;
    /* لمنع تداخل أي عناصر */
  }


  .nav-links a {
    font-size: 18px;
  }

  .user-name {
    display: none;
  }

  .user-profile {
    gap: 0;
  }

  .avatar-circle {
    margin-left: 0;
  }

  .mode-switch {
    width: 70px;
    height: 32px;
  }

  .mode-indicator {
    width: 26px;
    height: 26px;
  }

  body:not(.dark) .mode-indicator {
    left: calc(100% - 26px - 4px);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 12px;
  }
}

/* ================= 6. HERO SECTION ================= */

/* ================= 6. HERO SECTION (RESPONSIVE ENHANCED) ================= */

.hero-section {
  min-height: calc(100vh - 70px);
  padding: 34px clamp(20px, 6vw, 120px) 0;
  background-color: var(--bgColor);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease;
  overflow-x: clip;
  position: relative;
}

.row-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 150px);
  gap: clamp(18px, 3vw, 42px);
}

/* ── Row One ── */
.row-one {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  direction: rtl;
  z-index: 20;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-team {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 20;
  flex-wrap: wrap;
  justify-content: center;
}

.team-avatars {
  display: flex;
  flex-direction: row;
}

.team-avatars img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--bgColor);
  margin-right: -15px;
  position: relative;
  object-fit: cover;
}

.team-avatars img:first-child {
  margin-right: 0;
}

.team-link {
  text-decoration: none;
  color: var(--textColor);
  font-family: var(--mainFont);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.row-one h1 {
  font-size: clamp(42px, 8vw, 150px);
  font-family: var(--secFont);
  color: var(--textColor);
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

/* ── Row Two ── */
.row-two {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 100%;
  z-index: 20;
  position: relative;
  flex-wrap: wrap;
  gap: 30px;
}

.row-two a {
  background-color: var(--mainColor);
  color: var(--bgColor);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--secFont);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 2vw, 18px);
  transition: 0.3s ease;
  opacity: 1;
  visibility: hidden;
  /* مخفي افتراضياً على الشاشات الكبيرة */
  z-index: 100;
  white-space: nowrap;
  flex-shrink: 0;
}

.hidden-on-load {
  opacity: 0;
  visibility: hidden;
}

.row-two a:hover {
  transform: scale(1.05);
}

.row-two h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
  font-size: clamp(42px, 8vw, 150px);
  font-family: var(--secFont);
  color: var(--textColor);
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}

/* Rotating Image */
.routat-image {
  width: clamp(100px, 12vw, 170px);
  height: clamp(100px, 12vw, 170px);
  background-color: var(--mainColor);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

body.dark .routat-image {
  background-color: transparent;
  border: 4px solid transparent;
}

body.dark .routat-image::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 60px;
  background: conic-gradient(var(--mainColor), var(--mainColor), var(--mainColor), var(--mainColor));
  animation: spin 2.5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.routat-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transform: rotate(45deg);
  transition: 0.4s ease;
  position: relative;
  z-index: 2;
}

/* ── Row Three / Column Hero ── */
.column-hero {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
  direction: rtl;
  z-index: 20;
  margin-top: 40px;
}

.column-one h2,
.column-two h2 {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 15px;
  font-family: var(--mainFont);
  color: var(--textColor);
  font-weight: 600;
}

.column-one p,
.column-two p {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.6;
  opacity: 0.8;
  color: var(--textColor);
  max-width: 350px;
}

.column-one,
.column-two {
  position: relative;
  padding-left: 30px;
  text-align: right;
  z-index: 20;
}

.column-one::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 2.5px;
  background-color: var(--textColor);
  opacity: 0.7;
}

.column-three {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-self: end;
  align-items: flex-start;
  z-index: 20;
}

.column-three h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-family: var(--mainFont);
}

.column-three a {
  text-decoration: none;
  color: var(--textColor);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  font-family: var(--mainFont);
  opacity: 0.7;
  position: relative;
  width: fit-content;
}

.column-three div:first-child a::after {
  content: "";
  position: absolute;
  bottom: -16px;
  right: 0;
  width: 100%;
  height: 1.7px;
  background-color: var(--textColor);
  pointer-events: none;
  opacity: 0.89;
}

.column-three a:hover {
  color: var(--mainColor);
}

.rotated-45 {
  transform: rotate(45deg);
  font-size: 14px;
}

/* Initial animation states */
.row-one h1,
.row-two h1,
.routat-image,
.column-hero,
.hero-team {
  visibility: hidden;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */

@media (max-width: 1200px) {
  .hero-section {
    padding: 30px 60px 0;
  }

  .column-hero {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 24px 40px 0;
  }

  .row-hero {
    min-height: auto;
  }

  .column-hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .column-three {
    grid-column: span 2;
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .column-three div:first-child a::after {
    right: auto;
    left: 0;
  }

  .row-two a {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .row-two a.hidden-on-load {
    visibility: visible !important;
    opacity: 1 !important;
  }
}



/* نقطة التحول الرئيسية: شاشات 940px فأقل (ترتيب عمودي) */
@media (max-width: 940px) {
  .row-two {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: auto;
  }

  .row-two h1 {
    position: static;
    transform: none;
    white-space: normal;
    text-align: center;
    order: 1;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: clamp(38px, 10vw, 70px);
    line-height: 1.2;
  }

  .routat-image {
    order: 2;
  }

  .row-two a {
    order: 3;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal;
    text-align: center;
    position: relative;
    margin: 0;
    max-width: 100%;
  }

  .row-two a.hidden-on-load {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .row-one {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-team {
    justify-content: center;
  }

  .team-link {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 20px 24px 20px;
    min-height: auto;
  }

  .row-hero {
    min-height: auto;
    gap: 30px;
    padding-bottom: 40px;
  }

  .row-one h1 {
    font-size: clamp(38px, 10vw, 70px);
    line-height: 1.1;
  }

  .row-two h1 {
    font-size: clamp(38px, 10vw, 70px);
  }

  .routat-image {
    width: 110px;
    height: 110px;
    border-radius: 40px;
  }

  .row-two a {
    font-size: 15px;
    padding: 12px 24px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .column-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
  }

  .column-one,
  .column-two,
  .column-three {
    justify-self: center;
    text-align: center;
    align-items: center;
    padding-left: 0;
  }

  .column-one::after {
    display: none;
  }

  .column-one p,
  .column-two p {
    max-width: 100%;
  }

  .column-three {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 16px 16px 20px;
  }

  .row-one {
    gap: 12px;
  }

  .row-one h1,
  .row-two h1 {
    font-size: clamp(32px, 11vw, 52px);
  }

  .team-avatars img {
    width: 38px;
    height: 38px;
  }

  .team-link {
    font-size: 13px;
  }

  .routat-image {
    width: 90px;
    height: 90px;
    border-radius: 30px;
  }

  .row-two a {
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
  }
}

/* ================= 7. PIN SECTION ================= */

.pin-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--secbg);
  transition: background-color 0.4s ease;
  position: relative;
  flex-direction: column;
  z-index: 50;
}

.pin-section>h1 {
  width: 100%;
  color: var(--mainColor);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  padding-top: 48px;
  font-family: var(--secFont);
  flex-wrap: wrap;
}

.pin-section .content {
  position: relative;
  z-index: 20;
}

.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  padding: 0 48px;
  height: 85vh;
  align-items: center;
  position: fixed;
}

.left-list-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.indicator-track {
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--mainColor);
  opacity: 0.12;
}

.indicator-segments {
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  width: 3px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.indicator-segment {
  flex: 1;
  position: relative;
  padding-bottom: 5px;
}

.list {
  list-style: none;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 80px;
  text-align: right;
}

.list li {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--textWhy);
  opacity: 0.15;
  font-family: var(--secFont);
  white-space: nowrap;
  will-change: opacity, transform, color;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.right-cards-side {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

/* Feature Card */
.feature-card {
  width: 100%;
  max-width: 680px;
  border-radius: 28px;
  border: 1px solid var(--mainColor);
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(80px, 10vw, 130px) 1fr;
  background: var(--bgColor);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.card-accent {
  background: var(--mainColor);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 48px) 20px;
}

.card-num {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--bgColor);
  line-height: 1;
  opacity: 0.9;
  writing-mode: horizontal-tb;
  letter-spacing: -0.02em;
}

.card-accent-line {
  width: 2px;
  flex: 1;
  margin: 20px 0;
  background: var(--bgColor);
  opacity: 0.2;
}

.card-accent-icon {
  width: 44px;
  height: 44px;
  opacity: 0.7;
}

.card-accent-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--bgColor);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  padding: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 48px) clamp(24px, 3vw, 48px) clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  text-align: right;
  border-right: 1px solid var(--mainColor);
}

.card-tag {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--textWhy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.card-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--textWhy);
  opacity: 0.5;
}

.card-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--mainColor);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--textColor);
  line-height: 1.85;
  opacity: 0.7;
  font-weight: 450;
}

/* Pin Section Responsive */
@media (max-width: 1100px) {
  .content {
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    padding: 0 32px;
  }

  .list li {
    font-size: 2.5rem;
    white-space: normal;
    word-break: keep-all;
  }

  .card-title {
    font-size: 2rem;
  }

  .card-desc {
    font-size: 1rem;
  }

  .feature-card {
    max-width: 620px;
  }

  .card-body {
    padding: 36px 32px;
  }
}

@media (max-width: 850px) {
  .content {
    grid-template-columns: 1fr;
    height: auto;
    gap: 30px;
    padding: 40px 24px;
    position: relative;
  }

  .pin-section {
    height: auto;
    min-height: 100vh;
  }

  .right-cards-side {
    height: 520px;
    min-height: 480px;
  }

  .list {
    padding-right: 40px;
    padding-left: 0;
    justify-content: center;
    gap: 20px;
  }

  .list li {
    white-space: normal;
    text-align: right;
    font-size: 2.2rem;
  }

  .left-list-side {
    justify-content: flex-end;
  }

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

@media (max-width: 600px) {
  .pin-section>h1 {
    font-size: clamp(22px, 6vw, 34px);
    padding-top: 30px;
    gap: 12px;
  }

  .content {
    padding: 24px 16px;
    gap: 20px;
  }

  .right-cards-side {
    height: 400px;
    min-height: 380px;
  }

  .list li {
    font-size: 1.8rem;
  }

  .list {
    padding-right: 30px;
  }

  .feature-card {
    grid-template-columns: 70px 1fr;
    border-radius: 20px;
  }

  .card-accent {
    padding: 20px 12px;
  }

  .card-body {
    padding: 20px 16px;
  }

  .card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .card-desc {
    font-size: 0.85rem;
  }

  .card-num {
    font-size: 1.8rem;
  }
}

/* ================= 8. JOURNEY / WHY PAGE ================= */

.page {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-Why {
  text-align: center;
  padding: 30px 0 0;
  opacity: 0;
  transform: translateY(15px);
  animation: riseUp 0.9s 0.2s forwards;
}

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

.header-Why h1 {
  font-size: clamp(2rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--mainColor);
  margin-bottom: 24px;
  font-family: var(--secFont);
}

.header-Why p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--textWhy);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.scroll-hint {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--textWhy);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  animation: gentleFloat 2.2s infinite;
}

@keyframes gentleFloat {

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

  50% {
    transform: translateY(7px);
  }
}

.journey-container {
  position: relative;
  width: 100%;
  margin: 0 0 40px;
}

.path-wrap {
  position: relative;
  width: 100%;
  height: auto;
}

.cards-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journey-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.stop-group {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.6s cubic-bezier(0.34, 1.3, 0.55, 1);
}

.stop-group.lit {
  opacity: 1;
  transform: scale(1);
}

.stop-group circle:first-child {
  animation: pulseRing 3.8s infinite ease-in-out;
}

@keyframes pulseRing {
  0% {
    stroke-opacity: 0.1;
    r: 68;
  }

  50% {
    stroke-opacity: 0.5;
    r: 84;
  }

  100% {
    stroke-opacity: 0.1;
    r: 68;
  }
}

.dash-triple-group {
  transform-origin: center;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.55, 1), opacity 0.4s;
}

.dash-triple-group.active {
  opacity: 1;
  transform: scale(1);
}

.dash-triple-group circle {
  filter: drop-shadow(0 0 6px var(--mainColor));
  transition: r 0.2s;
}

/* Journey Cards */
.card {
  position: absolute;
  pointer-events: auto;
  width: clamp(220px, 26vw, 340px);
  background: var(--card-glass-light);
  backdrop-filter: blur(20px);
  border-radius: 36px;
  padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) clamp(20px, 2vw, 32px);
  border: 1px solid var(--border-glow-light);
  box-shadow: 0 28px 48px -18px var(--shadow-light), 0 0 0 0.5px rgba(67, 50, 34, 0.08) inset;
  transition: all 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  opacity: 0;
  transform: translateY(40px);
  cursor: default;
  z-index: 20;
}

.card.lit {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: var(--mainColor);
  box-shadow: 0 32px 58px -20px rgba(0, 0, 0, 0.3), 0 0 24px rgba(67, 50, 34, 0.2);
  background: var(--secbg);
  transform: translateY(-6px);
}

.card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 800;
  color: var(--mainColor);
  margin-bottom: 14px;
  line-height: 1.45;
}

.card p {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: var(--textWhy);
  line-height: 1.7;
}

/* Card Positions */
.card[data-pos="s1"] {
  top: 7.2%;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
}

.card[data-pos="s2"] {
  top: 16.2%;
  left: 15%;
}

.card[data-pos="s3"] {
  top: 27.1%;
  right: 14.5%;
}

.card[data-pos="s4"] {
  top: 38%;
  left: 15%;
}

.card[data-pos="s5"] {
  top: 48.9%;
  right: 14.5%;
}

.card[data-pos="s6"] {
  top: 59.8%;
  left: 15%;
}

.card[data-pos="s7"] {
  top: 70%;
  right: 14.5%;
}

.card[data-pos="s8"] {
  top: 80.2%;
  left: 15%;
}

.card[data-pos="s9"] {
  top: 93.8%;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
}

.card[data-pos="s1"].lit,
.card[data-pos="s9"].lit {
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 820px) {
  .card {
    width: 240px;
    padding: 20px;
  }

  .card[data-pos="s2"],
  .card[data-pos="s4"],
  .card[data-pos="s6"],
  .card[data-pos="s8"] {
    left: 10%;
    right: auto;
  }

  .card[data-pos="s3"],
  .card[data-pos="s5"],
  .card[data-pos="s7"] {
    right: 8%;
    left: auto;
  }

  .card[data-pos="s1"],
  .card[data-pos="s9"] {
    left: 50%;
    right: auto;
  }

  .card[data-pos="s1"] {
    top: 8%;
  }

  .card[data-pos="s9"] {
    top: 94%;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 0 16px;
  }

  .card {
    width: clamp(160px, 42vw, 220px);
    padding: 14px 16px;
    border-radius: 22px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.75rem;
  }

  .card[data-pos="s2"],
  .card[data-pos="s4"],
  .card[data-pos="s6"],
  .card[data-pos="s8"] {
    left: 4%;
  }

  .card[data-pos="s3"],
  .card[data-pos="s5"],
  .card[data-pos="s7"] {
    right: 2%;
  }

  .card[data-pos="s1"] {
    top: 9%;
  }

  .card[data-pos="s9"] {
    top: 94.5%;
  }
}

/* ================= 9. THREE.JS CANVAS ================= */

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s;
}

body.dark #three-canvas {
  opacity: 0.55;
}

/* ================= 10. PRIVACY SECTION ================= */

.privacySec {
  background-color: var(--bgColor);
  height: fit-content;
  width: 100%;
  margin: 50px auto;
  padding: 0 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

h2 {
  width: fit-content;
  margin: 0;
  font-family: var(--secFont);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  word-spacing: 0.2rem;
  color: var(--mainColor);
  z-index: 9999;
}

h2 span {
  color: var(--textWhy);
}

.privacyContent {
  margin: 50px 0;
  display: flex;
  gap: 50px;
  justify-content: space-between;
  align-items: center;
  z-index: 9991;
}

.PrivacyText {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  line-height: 1.5;
  width: 50%;
  height: 100%;
  margin: 0 auto;
  gap: 30px;
  font-family: var(--mainFont);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  z-index: 9999;
}

.PrivacyText p {
  width: 90%;
  text-align: justify;
  text-justify: inter-word;
  color: var(--mainColor);
  z-index: 9999;
}

.PrivacyText p span {
  padding: 5px;
  position: relative;
  width: fit-content;
  color: var(--textColor);
  z-index: 10;
  transition: all 0.3s ease-in-out;
}

.PrivacyText p span::after {
  content: "";
  width: 100%;
  height: 1.5px;
  background-color: var(--mainColor);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}

.PrivacyText p span:hover {
  color: var(--bgColor);
  z-index: 999;
}

.PrivacyText p span:hover::after {
  height: 100%;
  z-index: -1;
}

.privacyImgContainer {
  width: clamp(240px, 30vw, 400px);
  position: relative;
  height: fit-content;
}

.cardFly {
  border: 1px solid rgb(155, 155, 155);
  width: 200px;
  height: 50px;
  backdrop-filter: blur(1px) saturate(150%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5));
  border-radius: 10px;
  position: absolute;
  top: 30px;
  right: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: flyCard 4s ease-in-out infinite;
  transition: all 0.3s ease-in-out;
  z-index: 9990;
}

.cardFly:hover {
  animation-play-state: paused;
  background-color: rgba(255, 255, 255, 0.4);
}

.cardFly p {
  font-family: var(--secFont);
  font-weight: 400;
  color: #FCF4E3;
  word-spacing: 0.2rem;
  z-index: 9990;
}

.cardFly2 {
  top: auto;
  bottom: 30px;
  right: auto;
  left: -30px;
  z-index: 9999;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5));
  animation: flyCard2 4s ease-in-out infinite;
}

@keyframes flyCard {

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

  50% {
    transform: translateY(-10px) translateX(0px);
  }
}

@keyframes flyCard2 {

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

  50% {
    transform: translateY(10px) translateX(0px);
  }
}

.privacyImg {
  transform: rotateY(180deg);
  border-radius: 5%;
  margin: auto;
  width: 100%;
  max-width: 400px;
  z-index: 100;
  filter: brightness(0.9);
  transition: all 0.3s ease-in-out;
  display: block;
}

.privacyImg:hover {
  filter: brightness(0.8);
}

.privacyBtn {
  position: relative;
  width: fit-content;
  padding: 10px 30px;
  border: none;
  border-radius: 40px;
  background-color: var(--mainColor);
  color: var(--bgColor);
  border: 2px solid var(--mainColor);
  box-shadow: 0 0 0 2px var(--mainColor);
  font-family: var(--secFont);
  font-weight: 500;
  font-size: 1rem;
  word-spacing: 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  z-index: 9999;
}

.privacyBtn:hover {
  border: 2px solid var(--bgColor);
}

.privacyBtn:active {
  transform: scale(0.93);
}

.privacyBtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  transition: all 0.3s ease-in-out;
  z-index: 0;
}

/* Privacy Responsive */
@media (max-width: 1000px) {
  .privacySec h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0 auto;
  }

  .privacyContent {
    flex-direction: column-reverse;
    gap: 30px;
    z-index: 9999;
  }

  .PrivacyText {
    width: 100%;
    text-align: center;
    align-items: center;
    z-index: 9999;
  }

  .PrivacyText p {
    width: 100%;
  }

  .privacyImgContainer {
    display: flex;
    justify-content: center;
    width: clamp(240px, 70vw, 380px);
  }
}

@media (max-width: 500px) {
  .privacyContent .PrivacyText h2 {
    font-size: 1.4rem;
    margin: 0 auto;
  }

  .privacyImgContainer {
    width: 280px;
  }

  .cardFly,
  .cardFly2 {
    width: 150px;
    height: 40px;
  }

  .cardFly {
    right: -10px;
  }

  .cardFly2 {
    left: -10px;
  }

  .cardFly p,
  .cardFly2 p {
    font-size: 0.78rem;
  }
}

/* ================= 11. FAQ SECTION ================= */

.faq-container {
  background-color: var(--secbg);
  font-family: "Doran";
  font-weight: bold;
  width: 100%;
  padding: 50px 5%;
  text-align: center;
  margin: 100px auto 40px;
  position: relative;
  z-index: 9000;
}

.faq-header h1 {
  font-size: clamp(26px, 4vw, 48px);
  color: var(--mainColor);
  margin-bottom: 10px;
}

.faq-header p {
  color: var(--accordionColor);
  font-size: clamp(14px, 1.8vw, 18px);
  margin-bottom: 40px;
}

.faq-box {
  background-color: var(--secbg);
  border: 1px solid #ffffff;
  border-radius: 30px;
  padding: clamp(16px, 4vw, 40px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 9000;
}

.accordion-item {
  border: 1px solid #a69d8a;
  border-radius: 15px;
  margin-bottom: 15px;
  background-color: transparent;
  overflow: hidden;
  transition: border-color 0.3s ease;
  z-index: 9000;
}

.accordion-header {
  width: 100%;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  font-family: "Doran", sans-serif;
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: bold;
  color: var(--mainColor);
  text-align: right;
}

.icon-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-line {
  position: absolute;
  background-color: var(--circle-stroke);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-h {
  width: 20px;
  height: 2px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-v {
  width: 2px;
  height: 20px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 clamp(16px, 2.5vw, 25px);
  color: var(--textWhy);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.8;
  text-align: right;
}

.accordion-item.active {
  border-color: #3d2c1e;
  background-color: var(--faqOpenbg);
}

.accordion-item.active .line-v {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-item.active .line-h {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: clamp(16px, 2vw, 25px);
}

@media (max-width: 600px) {
  .faq-container {
    padding: 30px 5%;
    margin: 60px auto 20px;
  }

  .faq-box {
    padding: 16px 12px;
    border-radius: 20px;
  }

  .accordion-header {
    padding: 14px 12px;
  }
}

/* ================= 12. SLIDER SECTION ================= */

.slider-section {
  margin: 50px 0;
  font-family: "Doran";
  font-weight: 800;
  padding: 40px 5%;
  width: 100%;
  position: relative;
  background-color: var(--secbg);
  z-index: 9909;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.logo-main {
  width: clamp(55px, 7vw, 80px);
}

#charityLogo {
  width: clamp(70px, 9vw, 100px);
}

.charity-logo-container {
  display: flex;
  align-items: center;
}

.charity-logo-container img {
  width: clamp(50px, 7vw, 70px);
  height: auto;
}

.slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.slides-container {
  display: flex;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: clamp(30px, 8vw, 80px) 20px;
}

.slide h2 {
  font-size: clamp(18px, 4vw, 42px);
  color: var(--mainColor);
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 2px;
  margin: 0 auto 25px;
}

.slide p {
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--accordionColor);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

.slider-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.controls-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  background: var(--mainColor);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--bgColor);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--accordionColor);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 15px;
  height: 4px;
  background: var(--mainColor);
  opacity: 0.3;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.4s;
}

.dot.active {
  opacity: 1;
  width: 45px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mainColor);
  font-weight: bold;
  font-size: clamp(13px, 1.8vw, 18px);
  transition: 0.3s;
}

.contact-link i {
  transition: transform 0.3s;
  font-size: 0.9em;
}

.contact-link:hover {
  color: var(--accordionColor);
  opacity: 0.9;
}

.contact-link:hover i {
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .slider-footer {
    flex-direction: column-reverse;
    gap: 25px;
    text-align: center;
  }

  .controls-wrapper {
    width: 100%;
    justify-content: center;
  }

  .contact-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .slider-section {
    margin: 30px 0;
    padding: 28px 5%;
  }

  .slider-footer {
    margin-top: 24px;
  }
}

/* ================= 13. FOOTER ================= */

footer {
  padding: 8px 20px;
}

.footer-content {
  border-top: 1.5px solid var(--userNameColor);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-r {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 48px;
}

.footer-r img {
  width: 48px;
  height: 48px;
}

.footer-c {
  flex: 1;
  text-align: center;
  font-size: clamp(12px, 1.5vw, 14px);
  font-family: var(--mainFont);
  color: var(--textColor);
  white-space: nowrap;
}

.footer-l {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.footer .team-avatars {
  display: flex;
  align-items: center;
  direction: rtl;
}

.footer .team-avatars img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: -10px;
  border: 2px solid var(--textColor);
  object-fit: cover;
}

.footer .team-link {
  margin-left: 10px;
  text-decoration: none;
  color: inherit;
  font-size: clamp(12px, 1.5vw, 14px);
  font-family: var(--mainFont);
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .footer-r,
  .footer-l {
    justify-content: center;
  }

  .footer-c {
    order: 3;
  }

  .footer-r {
    order: 1;
  }

  .footer-l {
    order: 2;
  }
}

@media (max-width: 400px) {
  .footer-c {
    font-size: 11px;
  }

  .footer .team-avatars img {
    width: 28px;
    height: 28px;
  }
}