/* Custom CSS to override animations and ensure preview images are visible */
.preview-image {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
  animation: none !important;
  width: 300px !important;
  height: 600px !important;
  overflow: hidden !important;
}

/* Set positions for preview images - make first and third higher, without rotation */
.preview-gallery .preview-image:nth-child(1),
.preview-gallery .preview-image:nth-child(3) {
  transform: translateY(-60px) !important;
}

.preview-gallery .preview-image:nth-child(2) {
  transform: translateY(60px) !important;
}

/* Make sure images in the preview-image elements are visible and fit perfectly */
.preview-image img {
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Hover effects */
.preview-image:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(93, 33, 208, 0.4) !important;
}

.preview-gallery .preview-image:nth-child(1):hover,
.preview-gallery .preview-image:nth-child(3):hover {
  transform: translateY(-70px) !important;
}

.preview-gallery .preview-image:nth-child(2):hover {
  transform: translateY(50px) !important;
}

/* FAQ Section Styling */
.faq .section-title {
  margin-bottom: 25px;
  position: relative;
  cursor: pointer; /* İmleci el işaretine çevir */
  transition: all 0.3s ease;
}

.faq .section-title:hover {
  color: var(--primary-color); /* Hover durumunda mor renge değişsin */
}

.faq .section-title::after {
  content: "▼";
  font-size: 14px;
  margin-left: 10px;
  vertical-align: middle;
  display: inline-block;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-container.visible + .section-title::after {
  transform: rotate(180deg);
}

/* Enhanced Hero Section Styling */
.hero {
  padding: 160px 0 120px;
  background: linear-gradient(
    135deg,
    rgba(93, 33, 208, 0.2) 0%,
    rgba(132, 68, 224, 0.18) 25%,
    rgba(255, 218, 74, 0.15) 50%,
    rgba(240, 203, 61, 0.18) 75%,
    rgba(93, 33, 208, 0.15) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at 20% 20%,
      rgba(93, 33, 208, 0.3) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(255, 218, 74, 0.25) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 60% 30%,
      rgba(132, 68, 224, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 30% 70%,
      rgba(240, 203, 61, 0.2) 0%,
      transparent 40%
    );
  z-index: -1;
  animation: colorful-float 20s ease-in-out infinite alternate;
}

@keyframes colorful-float {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 20%, 20% 80%;
  }
  50% {
    background-position: 10% 10%, 90% 90%, 60% 30%, 30% 70%;
  }
  100% {
    background-position: 20% 20%, 80% 80%, 70% 40%, 40% 60%;
  }
}

.hero-content {
  flex: 1.2;
  padding: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(93, 33, 208, 0.2),
    0 5px 15px rgba(255, 218, 74, 0.15);
  border-left: 6px solid var(--primary-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(93, 33, 208, 0.25),
    0 8px 20px rgba(255, 218, 74, 0.2);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #5d21d0, #8844e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 3px 3px 6px rgba(93, 33, 208, 0.15);
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.hero h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--secondary-color),
    rgba(255, 218, 74, 0.5)
  );
  border-radius: 4px;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.hero p strong {
  color: var(--primary-color);
  font-weight: 600;
}

.hero p .highlight {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  padding: 0 2px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  margin-left: 30px;
}

.hero-image img {
  max-width: 110%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(93, 33, 208, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.15);
  transform: perspective(1200px) rotateY(-8deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border: 4px solid rgba(255, 255, 255, 0.4);
  filter: brightness(1.05) contrast(1.05);
}

.hero-image img:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-15px);
  box-shadow: 0 25px 50px rgba(93, 33, 208, 0.35),
    0 15px 30px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1) contrast(1.1);
}

.hero-buttons .primary-btn {
  padding: 16px 34px;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), #8844e0);
  color: white;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(93, 33, 208, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: enhanced-pulse 2.5s infinite;
}

.hero-buttons .primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(93, 33, 208, 0.5);
  background: linear-gradient(135deg, #8844e0, var(--primary-color));
}

.hero-buttons .primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.hero-buttons .primary-btn:hover::before {
  left: 100%;
}

.hero-buttons .primary-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.hero-buttons .primary-btn:hover i {
  transform: translateX(3px);
}

/* Additional enhancements for hero section */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(93, 33, 208, 0.15) 0,
      transparent 20px
    ),
    radial-gradient(
      circle at 30% 70%,
      rgba(255, 218, 74, 0.12) 0,
      transparent 30px
    ),
    radial-gradient(
      circle at 60% 40%,
      rgba(132, 68, 224, 0.1) 0,
      transparent 25px
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(240, 203, 61, 0.13) 0,
      transparent 35px
    ),
    radial-gradient(
      circle at 20% 60%,
      rgba(124, 71, 233, 0.08) 0,
      transparent 28px
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(255, 231, 125, 0.1) 0,
      transparent 32px
    );
  z-index: -1;
  animation: move-particles 15s ease-in-out infinite alternate;
}

@keyframes move-particles {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
  100% {
    background-position: 5% 10%, -10% 5%, 8% -8%, -5% 8%, 12% -5%, -8% 12%;
  }
}

/* Add pulse effect to hero button */
@keyframes enhanced-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(93, 33, 208, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(93, 33, 208, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 33, 208, 0);
  }
}

/* Responsive adjustments for enhanced hero section */
@media (max-width: 992px) {
  .hero {
    padding: 130px 0 90px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-left: 0;
    justify-content: center;
  }

  .hero-image img {
    transform: perspective(1000px) rotateY(0);
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 0 70px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero-content {
    padding: 25px;
  }

  .hero-buttons .primary-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
  }
}
