/* =============================================
   EZ Portal Hebrew - Main Styles
   Bio-Cognitive Center Design
   ============================================= */

/* === Homepage Container === */
.homepage-container {
  min-height: 100vh;
  background: #fffbf7;
  overflow-x: hidden;
}

/* === Demo Banner === */
.demo-banner {
  background: #ff4444;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 5%;
  overflow: hidden;
  background: #fffbf7;
}

/* --- Blob Shapes --- */
.hero-blob-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: linear-gradient(135deg, #FF7F4D 0%, #ffa07a 50%, #FF7F4D 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
  animation: blobMove1 20s ease-in-out infinite;
}

.hero-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 35%;
  height: 60%;
  background: linear-gradient(135deg, #ffcdb8 0%, #ffeee6 100%);
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  z-index: 1;
  animation: blobMove2 15s ease-in-out infinite;
}

@keyframes blobMove1 {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  50% { border-radius: 35% 65% 65% 35% / 35% 35% 65% 65%; }
  75% { border-radius: 45% 55% 55% 45% / 45% 45% 55% 55%; }
}

@keyframes blobMove2 {
  0%, 100% { border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%; }
  50% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

/* --- Hero Content Grid --- */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

/* --- Text Content (Right Side for RTL) --- */
.hero-text-content {
  padding-left: 40px;
}

/* Top Badge */
.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-mini-logo svg {
  filter: drop-shadow(0 2px 8px rgba(255, 127, 77, 0.3));
}

.hero-badge-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* Main Title */
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 28px;
}

.hero-title .brand {
  color: #1e293b;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.9;
  margin-bottom: 20px;
  max-width: 600px;
}

/* See How It Works Link */
.hero-see-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 35px;
  transition: all 0.3s ease;
}

.hero-see-more:hover {
  color: #FF7F4D;
}

.hero-see-more svg {
  transition: transform 0.3s ease;
}

.hero-see-more:hover svg {
  transform: scale(1.1);
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF7F4D;
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 127, 77, 0.3);
}

.hero-cta-primary:hover {
  background: #ff6a35;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 127, 77, 0.4);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #1e293b;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  border-color: #FF7F4D;
  color: #FF7F4D;
}

/* --- Visual Content (Left Side for RTL) --- */
.hero-visual-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-height: 350px;
}

.hero-visual-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.hero-visual-card svg {
  filter: drop-shadow(0 4px 20px rgba(255, 127, 77, 0.2));
}

.hero-visual-tagline {
  text-align: center;
  margin-top: 24px;
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
}

/* Floating elements around the card */
.hero-floating-element {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: #475569;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

/* Clickable tags */
.hero-floating-element.clickable {
  cursor: pointer;
}

.hero-floating-element.clickable::after {
  content: '→';
  opacity: 0;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.hero-floating-element.clickable:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 127, 77, 0.2);
  border-color: #FF7F4D;
}

.hero-floating-element.clickable:hover::after {
  opacity: 1;
}

/* Dynamic tag positioning handled by JS */
.hero-floating-element.dynamic-tag {
  position: absolute;
  transform-origin: center center;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-content {
    padding-left: 0;
    order: 1;
  }

  .hero-visual-content {
    order: 2;
    margin-top: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-blob-1 {
    width: 80%;
    height: 60%;
    top: auto;
    bottom: 0;
    right: -20%;
  }

  .hero-blob-2 {
    display: none;
  }

  .hero-floating-element {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 40px 20px;
    min-height: auto;
    padding-top: 80px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-visual-card {
    padding: 30px;
  }

  .hero-visual-card svg {
    width: 120px;
    height: 120px;
  }
}

/* =============================================
   BLOCKS SECTION - Links Grid
   ============================================= */
.blocks-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.blocks-section-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 60px;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual Block Card */
.block-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.block-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

/* Block Header */
.block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.block-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF7F4D 0%, #f97316 100%);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 127, 77, 0.3);
}

.block-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

/* Block Items List */
.block-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #475569;
  text-decoration: none;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid #e2e8f0;
}

.block-item a:hover {
  background: #ffffff;
  color: #FF7F4D;
  border-color: #FF7F4D;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.block-item-icon {
  width: 10px;
  height: 10px;
  background: #FF7F4D;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.block-item a:hover .block-item-icon {
  transform: scale(1.3);
}

/* Color variations for block numbers */
.block-card[data-color="orange"] .block-number { background: linear-gradient(135deg, #FF7F4D 0%, #f97316 100%); box-shadow: 0 4px 15px rgba(255, 127, 77, 0.3); }
.block-card[data-color="blue"] .block-number { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.block-card[data-color="green"] .block-number { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.block-card[data-color="purple"] .block-number { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.block-card[data-color="pink"] .block-number { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); }
.block-card[data-color="teal"] .block-number { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3); }
.block-card[data-color="yellow"] .block-number { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.block-card[data-color="indigo"] .block-number { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }

/* Color variations for item icons on hover */
.block-card[data-color="orange"] .block-item a:hover { color: #FF7F4D; border-color: #FF7F4D; }
.block-card[data-color="orange"] .block-item-icon { background: #FF7F4D; }

.block-card[data-color="blue"] .block-item a:hover { color: #3b82f6; border-color: #3b82f6; }
.block-card[data-color="blue"] .block-item-icon { background: #3b82f6; }

.block-card[data-color="green"] .block-item a:hover { color: #10b981; border-color: #10b981; }
.block-card[data-color="green"] .block-item-icon { background: #10b981; }

.block-card[data-color="purple"] .block-item a:hover { color: #8b5cf6; border-color: #8b5cf6; }
.block-card[data-color="purple"] .block-item-icon { background: #8b5cf6; }

.block-card[data-color="pink"] .block-item a:hover { color: #ec4899; border-color: #ec4899; }
.block-card[data-color="pink"] .block-item-icon { background: #ec4899; }

.block-card[data-color="teal"] .block-item a:hover { color: #14b8a6; border-color: #14b8a6; }
.block-card[data-color="teal"] .block-item-icon { background: #14b8a6; }

.block-card[data-color="yellow"] .block-item a:hover { color: #f59e0b; border-color: #f59e0b; }
.block-card[data-color="yellow"] .block-item-icon { background: #f59e0b; }

.block-card[data-color="indigo"] .block-item a:hover { color: #6366f1; border-color: #6366f1; }
.block-card[data-color="indigo"] .block-item-icon { background: #6366f1; }

/* Responsive for blocks */
@media (max-width: 900px) {
  .blocks-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blocks-section {
    padding: 60px 20px;
  }

  .blocks-section-title {
    font-size: 2rem;
  }

  .block-card {
    padding: 28px 24px;
  }
}

/* =============================================
   SCIENCE SECTION - The Science Behind EZ
   ============================================= */
.science-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

/* Floating shapes */
.science-shape-1 {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 127, 77, 0.15) 0%, rgba(255, 127, 77, 0.05) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: scienceFloat1 15s ease-in-out infinite;
}

.science-shape-2 {
  position: absolute;
  bottom: 15%;
  left: 3%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
  animation: scienceFloat2 12s ease-in-out infinite;
}

.science-shape-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: scienceFloat3 18s ease-in-out infinite;
}

@keyframes scienceFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, 20px) rotate(10deg); }
}

@keyframes scienceFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, -15px) rotate(-8deg); }
}

@keyframes scienceFloat3 {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(15deg); }
}

/* Content wrapper */
.science-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section header */
.science-header {
  text-align: center;
  margin-bottom: 60px;
}

.science-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
}

.science-title span {
  color: #FF7F4D;
}

.science-intro {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Themes grid */
.science-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

/* Theme card */
.science-theme {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
}

.science-theme:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 127, 77, 0.3);
  transform: translateY(-6px);
}

.science-theme-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FF7F4D 0%, #f97316 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.science-theme-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.science-theme-text {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.8;
}

/* CTA buttons */
.science-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.science-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF7F4D 0%, #f97316 100%);
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 127, 77, 0.3);
}

.science-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 127, 77, 0.4);
}

.science-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.science-cta-secondary:hover {
  border-color: #FF7F4D;
  color: #FF7F4D;
}

/* Responsive for science section */
@media (max-width: 900px) {
  .science-themes {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .science-section {
    padding: 60px 20px;
  }

  .science-title {
    font-size: 2rem;
  }

  .science-intro {
    font-size: 1.05rem;
  }

  .science-shape-1,
  .science-shape-2,
  .science-shape-3 {
    opacity: 0.5;
  }
}

/* =============================================
   CONTACT SECTION - Let's Talk
   ============================================= */
.contact-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.contact-decoration-1 {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 50%;
}

.contact-decoration-2 {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.03) 100%);
  border-radius: 50%;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.contact-text {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.contact-cta svg {
  width: 22px;
  height: 22px;
}

/* Responsive for contact section */
@media (max-width: 640px) {
  .contact-section {
    padding: 60px 20px;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-cta {
    padding: 16px 32px;
    font-size: 1rem;
  }
}