/* --- Root Variables --- */
:root {
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-highlight: #ffd700;
  --color-success-start: #10b981;
  --color-success-end: #059669;
  --color-error-start: #ef4444;
  --color-error-end: #dc2626;
  --color-cursor: #ffd700;
  --color-pulse-glow: rgba(79, 70, 229, 0.3);
  --color-pulse-glow-active: rgba(79, 70, 229, 0.6);
  --color-loading-border: #ffffff;
  --color-video-bg: rgba(255, 255, 255, 0.1);
  --color-video-border: rgba(255, 255, 255, 0.2);
  --color-testimonial-bg: rgba(255, 255, 255, 0.95);
  --color-testimonial-border: rgba(255, 255, 255, 0.3);
  --color-goals-box-border: var(--color-secondary);
  --color-goals-box-bg: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Assistant", sans-serif;
  background: linear-gradient(135deg, #fffaf4 0%, #ffffff 100%);
  color: #4a4a4a; /* Softer dark grey */
  line-height: 1.8; /* Increased line height */
  letter-spacing: 0.02em; /* Slightly increased letter spacing */
  overflow-x: hidden;
  animation: fadeIn 1s ease-in-out;
}

.hero {
  background: url("media/background.avif")
    center/cover no-repeat;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 70%, rgba(255, 255, 255, 0.8) 95%, #ffffff 100%); /* Dark overlay fading to white */
}

/* Original Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  color: #FFFFFF; /* White Text for dark background */
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  /* Removed animation: zoomIn from here */
}

.scroll-down-arrow {
  font-size: 3rem;
  color: white;
  animation: bounce-vertical 2s infinite;
  animation-delay: 3.5s; /* Delay after the last hero animation (svg-container-white at 1.8s + 1.5s duration) */
  z-index: 3;
  opacity: 0;
  animation-fill-mode: forwards;
  margin-top: 2rem; /* Add spacing */
}

@keyframes bounce-vertical {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}


/* Restore original animation rules */
.hero-content h1,
.hero-content p,
.svg-container-white {
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-logo {
  width: 250px;
  height: auto; /* Use auto for img tag */
  margin-bottom: 1rem;
  animation: zoomIn 1.5s ease forwards;
  animation-delay: 0.3s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.hero-content p {
  animation-name: fadeUp;
  animation-duration: 1.5s;
  animation-delay: 0.8s;
}

.hero-content h1 {
  animation-name: zoomIn;
  animation-duration: 1.5s;
  animation-delay: 1.3s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: text-shadow 0.3s ease;
}

.hero-content h1:hover {
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
}

.svg-container-white {
    animation-name: fadeUp;
    animation-duration: 1.5s;
    animation-delay: 1.8s;
}

.highlight {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1em;
}

.golden-touch {
  color: #b8860b; /* DarkGoldenrod - a more subtle gold */
  font-weight: 600; /* Slightly less bold */
  text-shadow: 0 0 2px rgba(184, 134, 11, 0.3); /* Very faint shadow */
}
.keyword-highlight {
  font-weight: 900;
  color: #4c51bf; /* Darker Indigo */
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.my-goal-section {
  background-color: rgba(237, 242, 247, 0.8);
  border-right: 6px solid var(--color-primary);
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: 12px;
  text-align: right;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.question-mark-container {
  position: relative;
  text-align: center;
}

.question-mark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem; /* Large size */
  font-weight: 900;
  color: rgba(79, 70, 229, 0.15); /* Strengthened transparent primary color */
  z-index: -1;
  user-select: none;
  text-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}

.section {
  max-width: 900px;
  margin: auto;
  padding: 4rem 1.5rem;
  line-height: 1.9;
  text-align: center;
  /* animation: fadeUp 1.5s ease forwards; <-- This is removed */
}

/* New Animate-on-Scroll System */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(217, 119, 6, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  transform: translateY(-8px);
}
.btn {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}
footer {
  background: #f8f8f8;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  body {
    line-height: 1.7; /* Improve readability on mobile */
  }

  .hero {
    min-height: 85vh; /* Slightly shorter hero for mobile */
  }

  .hero-logo {
    width: 150px; /* Smaller logo on mobile */
  }

  .section {
    padding: 2.5rem 1rem; /* Tighter padding on mobile */
  }

  .question-mark-bg {
    font-size: 7rem; /* Smaller question mark on mobile */
  }

  /* Simpler, fade-in only animations for mobile */
  .animate-on-scroll {
    transform: translateY(15px); /* Less movement */
  }

  .my-goal-section {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .testimonials-container {
    gap: 1rem;
  }

  .testimonial-card {
    min-width: 280px;
  }

  .testimonial-nav {
    gap: 0.75rem; /* Tighter gap for nav */
  }

  .nav-dots {
    gap: 0.5rem; /* Tighter gap for dots */
  }

  .new-footer {
    padding: 3rem 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  /* Tap feedback for mobile */
  button:active,
  a:active {
    transform: scale(0.97);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
}

:where([class^="ri-"])::before {
  content: "\f3c2"; /* ודא שיש לך את הספרייה של Remix Icons */
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--color-pulse-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--color-pulse-glow-active);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

.loading {
  position: relative;
  pointer-events: none;
}
.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-loading-border);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

/* --- Messages --- */
.success-message,
.error-message {
  color: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease-out;
}
.success-message {
  background: linear-gradient(
    135deg,
    var(--color-success-start),
    var(--color-success-end)
  );
}
.error-message {
  background: linear-gradient(
    135deg,
    var(--color-error-start),
    var(--color-error-end)
  );
}
.success-message.show,
.error-message.show {
  opacity: 1;
  transform: scale(1);
}

.video-card {
  background: var(--color-video-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-video-border);
}

.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.5rem;
  background-color: #fffaf4; /* לבן חם שמתאים לזהב */

  display: flex;              /* מאפשר מרכוז גמיש */
  justify-content: center;    /* מרכז אופקית */
  align-items: center;        /* מרכז אנכית */
  flex-wrap: wrap;            /* שורות נוספות אם יש יותר מתמונה אחת */
  gap: 1rem;                  /* רווח בין התמונות */
  
  min-height: 300px;          /* גובה מינימלי לסקשן */
}



.testimonials-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.testimonials-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #daa520; /* צבע זהב */
  border-radius: 2px;
}

.testimonials-container {
  display: flex;
  gap: 2rem; /* רווח בין הכרטיסים */
  padding: 1rem; /* ריווח קטן כדי שהצל לא ייחתך */
  margin: 0 -1rem; /* פיצוי על הריווח */
  position: relative;
  overflow-x: hidden; /* הסתרת הגלילה האופקית */
  scroll-behavior: smooth; /* גלילה חלקה */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

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

.testimonial-card{
   display: flex;
  justify-content: center;
  align-items: center;
}


.testimonial-image {
  display: block;
  max-width: 300px;        /* גודל מותאם */
  height: auto;            /* שמירה על פרופורציה */
  border-radius: 12px;     /* פינות מעוגלות */
  border: 4px solid #ffffff; /* מסגרת לבנה */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.1); /* צללים רכים */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), 0 12px 30px rgba(0, 0, 0, 0.15); /* צל חזק יותר בהובר */
}




.nav-dots {
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #daa520;
  transform: scale(1.2);
}



.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center; /* Added for vertical alignment */
  gap: 1rem;
  margin-top: 2rem;
}

.arrow-btn {
  background: white;
  border: 1px solid #ddd;
  color: #daa520; /* צבע זהב */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.arrow-btn:hover {
  background: #daa520; /* צבע זהב */
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.rounded-text {
  font-family: "Amatic SC", cursive;
}

.whatsapp-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.whatsapp-contact.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-contact:hover {
  background-color: #128c7e;
}

.whatsapp-contact img {
  margin-left: 8px;
}

/* --- Back to Top Button --- */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
}

/* --- Testimonial Modal Styles --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
  backdrop-filter: blur(5px); /* Subtle blur effect */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation-name: zoomInModal;
  animation-duration: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-media {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.close-button {
  color: #fff;
  position: absolute;
  top: 15px;
right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  transform: rotate(90deg);
}

@keyframes zoomInModal {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

.svg-container-white {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

#white-svg {
  width: 250px;
  height: auto;
  margin-top: 0.5rem;
}

/* --- New Footer Styles --- */
/* --- Accessibility Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px; /* Adjust as needed for element shape */
}

/* Remove outline for mouse users, but keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}
.new-footer {
  background-color: #2d3748; /* Gray 800 */
  color: #e2e8f0; /* Gray 200 */
  padding: 4rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-logo-new {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.copyright {
  font-size: 0.9rem;
  color: #a0aec0; /* Gray 400 */
  line-height: 1.5;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #e2e8f0; /* Gray 200 */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #e2e8f0;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* --- Social Links Section Styles --- */
.social-links-section {
  padding: 3rem 1.5rem;
  text-align: center;
}

.social-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-tiktok {
  background: #000000;
}

.social-whatsapp {
  background: #25D366;
}

.social-email {
  background: #809cff;
}
