/* ============================================
   SUSAVERDA — 3D Animations & Transitions
   ============================================ */

/* ---------- Reveal on Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-60px);
}
.reveal--left.visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(60px);
}
.reveal--right.visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.9);
}
.reveal--scale.visible {
  transform: scale(1);
}

.reveal--rotate {
  transform: perspective(800px) rotateY(8deg) translateY(30px);
}
.reveal--rotate.visible {
  transform: perspective(800px) rotateY(0) translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero Animations ---------- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  33% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
  66% {
    transform: scale(1.12) translate(1%, -2%);
  }
  100% {
    transform: scale(1.06) translate(-0.5%, 1%);
  }
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  animation: kenBurns 25s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 42, 42, 0.85) 0%,
    rgba(74, 87, 64, 0.7) 50%,
    rgba(107, 124, 94, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary-light);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid rgba(220, 199, 169, 0.3);
  border-radius: 50px;
  animation: fadeInUp 1s ease 0.5s both;
}

.hero__title {
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  animation: fadeInUp 1s ease 0.7s both;
}

.hero__subtitle {
  color: rgba(250, 248, 245, 0.85);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.1s both;
}

.hero__image-wrapper {
  position: relative;
  animation: scaleIn 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both;
}

.hero__profile-img {
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
  max-height: 580px;
  object-fit: cover;
  width: 100%;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-smooth);
}

.hero__profile-img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero__float-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  animation: heroFloat 6s ease-in-out infinite;
  background: white;
  padding: 8px;
}

.hero__float-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Floating 3D Shapes ---------- */
.float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: heroFloat 8s ease-in-out infinite;
}

.float-shape--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.float-shape--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent), transparent);
  bottom: 15%;
  left: -3%;
  animation-delay: -3s;
}

.float-shape--3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--color-secondary), transparent);
  top: 40%;
  right: 30%;
  animation-delay: -5s;
}

/* ---------- Parallax Depth Layers ---------- */
.parallax-container {
  perspective: 1200px;
  overflow: hidden;
}

.parallax-layer {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.parallax-layer--back {
  transform: translateZ(-200px) scale(1.2);
}

.parallax-layer--mid {
  transform: translateZ(-100px) scale(1.1);
}

.parallax-layer--front {
  transform: translateZ(0);
}

/* ---------- 3D Image Frame ---------- */
.image-3d-frame {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.image-3d-frame__img {
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-smooth);
}

.image-3d-frame:hover .image-3d-frame__img {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
}

.image-3d-frame__depth {
  position: absolute;
  inset: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  z-index: -1;
  transform: translateZ(-30px) scale(1.05);
  opacity: 0.3;
  filter: blur(20px);
}

/* ---------- About Section ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about__text-content h3 {
  color: var(--color-primary);
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.about__text-content h2 {
  margin-bottom: 1.5rem;
}

.about__text-content p {
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
}

/* ---------- Pain Points Section ---------- */
.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pain-point {
  text-align: center;
  padding: 2.5rem 2rem;
}

.pain-point__icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  display: block;
  transform: translateZ(10px);
}

.pain-point__title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.pain-point__text {
  color: var(--color-text-light);
  font-size: 0.98rem;
}

/* ---------- Methods Section ---------- */
.methods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.method-card {
  text-align: center;
  position: relative;
}

.method-card__number {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(107, 124, 94, 0.08);
  line-height: 1;
}

/* ---------- Epigenetics Section ---------- */
.epigenetics__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.epigenetics__content h5 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.epigenetics__content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.epigenetics__factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.factor-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: white;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.factor-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.factor-chip__icon {
  font-size: 1.2rem;
}

/* ---------- CTA / Contact Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #7a9068 100%);
  color: var(--color-text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite;
}

.cta-section h2 {
  color: var(--color-text-white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(250, 248, 245, 0.85);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.btn--white {
  background: white;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--white:hover {
  background: var(--color-secondary-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__desc {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-secondary-light);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.4);
}

/* ---------- Process / How I Work ---------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  align-items: stretch;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  opacity: 0.2;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(107,124,94,0.3);
}

.process-step__title {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.process-step__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Testimonial / Quote ---------- */
.quote-block {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-primary);
  transform-style: preserve-3d;
}

.quote-block__mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.quote-block__text {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-primary-dark);
  position: relative;
  z-index: 1;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
