﻿/* ============================================
   ANIMATED HERO SECTION · مربی شنا
   ============================================ */

.ae-hero {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 600px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #ffffff !important;
  z-index: 1 !important;
  margin-top: -50px;
}

body.ph-home {
  overflow-x: clip !important;
}

body.ph-home .ae-hero {
  overflow: hidden !important;
}

.ae-hero__content {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  padding: 2rem !important;
  max-width: 900px !important;
  width: 100% !important;
}

.ae-cta-row {
  opacity: 1 !important;
}

.ae-hero__canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  background: #ffffff !important;
}

.ae-hero__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  z-index: 1 !important;
}

/* Eyebrow */
.ae-eyebrow {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: #0284c7 !important;
  margin-bottom: 1.5rem !important;
  opacity: 1 !important;
  animation: aeFadeInUp 0.8s ease forwards 0.2s !important;
}

/* Title */
.ae-title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  color: #0c4a6e !important;
  opacity: 1 !important;
  animation: aeFadeInUp 0.8s ease forwards 0.4s !important;
}

.ae-title-line {
  display: block !important;
}

/* Liquid / Morphing Text */
.ae-morph-container {
  position: relative !important;
  display: block !important;
  width: 100%;
  max-width: 1000px !important;
  margin: 0 auto 1.5rem auto !important;
  min-height: 3.5rem !important;
  box-sizing: border-box !important;
}

.ae-morph-text {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #0c4a6e !important;
  filter: url(#threshold) blur(0.6px);
  box-sizing: border-box !important;
}

/* Title morph layers - full width */
.ae-morph-text .ae-morph-layer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(2rem, 8vw, 4rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #0c4a6e !important;
  filter: none;
  opacity: 0;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.ae-morph-text .ae-morph-layer:nth-child(2) {
  opacity: 1;
}

/* Subtitle liquid morphing layers - below title */
.ae-subtitle {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  margin-top: 1rem !important;
  padding: 0 !important;
  min-height: 2rem !important;
  text-align: center !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(0.875rem, 3.5vw, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: rgba(12, 74, 110, 0.7) !important;
  box-sizing: border-box !important;
}

.ae-subtitle .ae-morph-layer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(0.875rem, 3.5vw, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: rgba(12, 74, 110, 0.7) !important;
  opacity: 0;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.ae-subtitle .ae-morph-layer:nth-child(2) {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .ae-morph-container {
    max-width: 90vw !important;
    width: 90vw !important;
  }

  .ae-morph-text {
    font-size: clamp(2rem, 8vw, 4rem) !important;
  }

  .ae-morph-text .ae-morph-layer {
    font-size: clamp(2rem, 8vw, 4rem) !important;
  }

  .ae-subtitle .ae-morph-layer {
    font-size: clamp(0.875rem, 3.5vw, 1.125rem) !important;
  }

  .ae-subtitle {
    font-size: clamp(0.875rem, 3.5vw, 1.125rem) !important;
  }
}

@media (max-width: 480px) {
  .ae-morph-container {
    max-width: 100vw !important;
    width: 100vw !important;
  }
}

@media (max-width: 425px) {
  .ae-morph-text {
    font-size: clamp(1.5rem, 7vw, 3rem) !important;
  }

  .ae-morph-text .ae-morph-layer {
    font-size: clamp(1.5rem, 7vw, 3rem) !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 30px !important;
  }

  .ae-subtitle .ae-morph-layer {
    font-size: clamp(0.8rem, 3.2vw, 1rem) !important;
    line-height: 1.6 !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ae-subtitle {
    font-size: clamp(0.8rem, 3.2vw, 1rem) !important;
  }
}

/* CTA Button */
.ae-cta-row {
  opacity: 1 !important;
  animation: aeFadeInUp 0.8s ease forwards 0.8s !important;
}

.ae-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.875rem 2rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: none !important;
}

.ae-btn--primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9) !important;
  color: #0c4a6e !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4) !important;
}

.ae-btn--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6) !important;
}

.ae-btn--primary svg {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.3s ease !important;
}

.ae-btn--primary:hover svg {
  transform: translateX(4px) !important;
}

/* Scroll indicator */
.ae-scroll {
  position: absolute !important;
  bottom: 2rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  opacity: 1 !important;
  animation: aeFadeIn 1s ease forwards 1.5s !important;
}

.ae-scroll__text {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.75rem !important;
  color: rgba(12, 74, 110, 0.5) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}

.ae-scroll__line {
  width: 1px !important;
  height: 40px !important;
  background: rgba(12, 74, 110, 0.2) !important;
  animation: aeScrollPulse 2s ease-in-out infinite !important;
}

/* Animations */
@keyframes aeFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aeFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes aeScrollPulse {

  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ae-title {
    font-size: 2rem !important;
  }

  .ae-animate-word {
    min-width: 120px !important;
  }

  .ae-eyebrow {
    font-size: 0.75rem !important;
  }

  .ae-subtitle {
    font-size: 0.875rem !important;
  }

  .ae-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
}

/* ============================================
    TWESTIMONIAL CARDS · Twitter/X Style
    Positioned below hero on the right side
    ============================================ */

.hero-cards-area {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--ph-pad, 64px);
  display: flex;
  justify-content: flex-end;
  min-height: 350px;
  margin-top: 0;
}

.ttc-grid {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 350px;
}

.ttc-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  border: 2px solid #42C0F8;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: skewY(-8deg);
  outline: none;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(22, 119, 210, 0.15);
}

.ttc-card:hover {
  border-color: #1A8AE8;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 8px 30px rgba(22, 119, 210, 0.3);
}

.ttc-card--back {
  z-index: 1;
  filter: grayscale(100%);
  opacity: 0.5;
  border-color: rgba(22, 119, 210, 0.3);
}

.ttc-card--back:hover {
  filter: grayscale(0);
  opacity: 1;
}

.ttc-card--middle {
  z-index: 2;
  transform: skewY(-8deg) translateX(16px) translateY(6px);
}

.ttc-card--front {
  z-index: 3;
  transform: skewY(-8deg) translateX(32px) translateY(12px);
}

.ttc-grid[data-hover="0"] .ttc-card--middle {
  transform: skewY(-8deg) translateX(16px) translateY(26px);
}

.ttc-grid[data-hover="0"] .ttc-card--front {
  transform: skewY(-8deg) translateX(32px) translateY(40px);
}

.ttc-grid[data-hover="1"] .ttc-card--front {
  transform: skewY(-8deg) translateX(32px) translateY(34px);
}

.ttc-card--active {
  box-shadow: 0 0 0 2px rgba(22, 119, 210, 0.5);
}

.ttc-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ttc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #22d3ee, #42C0F8, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ttc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttc-meta {
  flex: 1;
  min-width: 0;
}

.ttc-username {
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1A3A5C;
  display: flex;
  align-items: center;
  gap: 4px;
  direction: rtl;
}

.ttc-verified {
  display: inline-flex;
  align-items: center;
}

.ttc-verified svg {
  width: 14px;
  height: 14px;
  color: #42C0F8;
  fill: #42C0F8;
}

.ttc-handle {
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 11px;
  color: #627D98;
  direction: rtl;
}

.ttc-twitter-icon {
  width: 16px;
  height: 16px;
  color: #1A3A5C;
  flex-shrink: 0;
  fill: currentColor;
}

.ttc-content {
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #1A3A5C;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  direction: rtl;
}

.ttc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 11px;
  color: #627D98;
}

.ttc-footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ttc-action {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ttc-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ttc-date {
  font-size: 10px;
}

.ttc-grid {
  animation: ttcFadeIn 0.7s ease forwards;
  opacity: 1;
}

@keyframes ttcFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero-cards-area {
    justify-content: center;
    margin-top: 0;
    padding: 0 24px;
  }

  .ttc-grid {
    max-width: 340px;
  }

  .ttc-card--middle {
    transform: skewY(-8deg) translateX(10px) translateY(4px);
  }

  .ttc-card--front {
    transform: skewY(-8deg) translateX(20px) translateY(8px);
  }

  .ttc-grid[data-hover="0"] .ttc-card--middle {
    transform: skewY(-8deg) translateX(10px) translateY(20px);
  }

  .ttc-grid[data-hover="0"] .ttc-card--front {
    transform: skewY(-8deg) translateX(20px) translateY(30px);
  }
}

@media (max-width: 768px) {
  .hero-cards-area {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttc-card {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}


