@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  scroll-behavior: smooth;
}


::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e293b;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}


.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
}
.scroll-down span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--light);
  border-right: 2px solid var(--light);
  transform: rotate(45deg);
  margin: -10px;
  animation: scroll-down 2s infinite;
}
.scroll-down span:nth-child(2) {
  animation-delay: -0.2s;
}
.scroll-down span:nth-child(3) {
  animation-delay: -0.4s;
}
@keyframes scroll-down {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}


section {
  min-height: 100vh;
  height: auto;
  padding: 100px 5%;
  position: relative;
  overflow: visible; 
  backface-visibility: hidden;
  transform: translateZ(0);
}



.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
}
.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    rgba(124, 58, 237, 0.3),
    rgba(16, 185, 129, 0.3)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.card-glow:hover::before {
  opacity: 1;
}


.faq-item {
  transition: all 0.3s ease;
}
.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-answer {
  max-height: 300px;
}


.gradient-text {
  background: linear-gradient(90deg, #7c3aed, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: transparent;
}


.btn-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}
.btn-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-hover:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
button,
a.btn,
.action {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover,
a.btn:hover,
.action:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(135, 0, 245, 0.3);
}


@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
.floating {
  animation: float 4s ease-in-out infinite;
}


.section-zoom {
  animation: zoomIn 0.6s ease;
  will-change: transform, opacity;
}

@keyframes zoomIn {
  from {
    transform: scale(0.97);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


.pulse {
  animation: pulseClick 0.3s ease;
}
@keyframes pulseClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}


.card-spacing {
  margin-bottom: 2rem;
}
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-button-container {
  margin-top: auto;
  padding-top: 1.5rem;
}


@media (max-width: 768px) {
  section {
    padding: 80px 5%;
    height: auto;
  }
  .scroll-down {
    bottom: 20px;
  }
}


.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}
.fade-in[data-dir='left'] {
  transform: translateX(-50px);
}
.fade-in[data-dir='right'] {
  transform: translateX(50px);
}
.fade-in[data-dir='up'] {
  transform: translateY(50px);
}
.fade-in.show {
  opacity: 1;
  transform: translate(0, 0);
}
