/* components.css */

/* 1. Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.8s forwards 0.2s;
}

.preloader-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.35));
}

.preloader-bar-bg {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--purple-gradient);
  border-radius: 4px;
  animation: progress-load 0.65s ease-in-out forwards;
}

/* 2. Custom Cursor */
.custom-cursor-dot,
.custom-cursor-outline {
  display: none; /* Hidden on mobile/tablets, enabled via JS on desktop */
}

@media (pointer: fine) {
  .custom-cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  
  .custom-cursor-outline {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  }
  
  /* Cursor Hover States */
  body.cursor-hover .custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--primary-purple);
  }
  
  body.cursor-hover .custom-cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(139, 92, 246, 0.1);
    border-color: var(--hover-purple);
  }
}

/* 3. Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(9, 11, 17, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(9, 11, 17, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-gradient);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Navbar Dropdown for Services */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .nav-dropdown-toggle svg,
.nav-item-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 250px;
  list-style: none;
  padding: 10px;
  border-radius: 16px;
  background: rgba(14, 17, 26, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-dropdown-menu li a::after {
  display: none;
}

.nav-dropdown-menu li a:hover {
  background: rgba(139, 92, 246, 0.14);
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-normal);
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--purple-gradient);
  color: var(--text-primary);
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8B5CF6, #A855F7, #7C3AED);
  transition: opacity 0.5s ease;
  z-index: -1;
  opacity: 0;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--glow-color);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-purple);
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

/* 5. Glassmorphism Card Base */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

/* 6. Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-glow-gradient);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-purple);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  border-color: var(--primary-purple);
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 15px var(--glow-color-soft);
}

.service-card:hover .service-icon svg {
  animation: rotate-icon 4s linear infinite;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-purple);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition-normal);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--primary-purple);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-link:hover {
  color: var(--hover-purple);
  transform: translateX(4px);
}

/* 7. Why Us Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  background: var(--purple-gradient);
  transform: translateX(-50%);
  z-index: 1;
  transition: height 0.1s ease-out;
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 50px;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  z-index: 3;
  transition: var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary-purple);
  background: var(--primary-purple);
  box-shadow: 0 0 15px var(--primary-purple);
}

.timeline-content {
  padding: 25px 30px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.timeline-item.active .timeline-title {
  color: var(--primary-purple);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 8. Logo Slider (Infinite Marquee) */
.marquee-container {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  position: relative;
  background: rgba(18, 21, 29, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, rgba(9, 11, 17, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, rgba(9, 11, 17, 0) 100%);
}

.marquee-content {
  display: flex;
  gap: 64px;
  padding-right: 64px;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.55;
  transition: var(--transition-fast);
}

.marquee-item:hover {
  opacity: 1;
  transform: scale(1.06);
}

.marquee-item span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text-primary);
}

/* 9. Working Process (Çalışma Süreci) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.process-card {
  padding: 35px 30px;
  position: relative;
  overflow: hidden;
}

.process-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  opacity: 0.6;
}

.process-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 10. Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  align-items: center;
}

.pricing-card {
  padding: 50px 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  transform: scale(1.05);
  border-color: var(--border-purple);
  box-shadow: 0 15px 45px rgba(139, 92, 246, 0.2);
  z-index: 5;
  background: rgba(26, 31, 42, 0.6);
}

.pricing-card.popular::after {
  content: 'EN POPÜLER';
  position: absolute;
  top: 25px;
  right: -35px;
  background: var(--purple-gradient);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 35px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.pricing-card.popular .pricing-name {
  color: var(--primary-purple);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
  min-height: 48px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-purple);
  stroke-width: 2.5;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
}

/* 11. Testimonials (Müşteri Yorumları) */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0 auto;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 25px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: #F59E0B;
  stroke: none;
}

.testimonial-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.testimonial-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  filter: blur(5.5px);
  opacity: 0.75;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  letter-spacing: 0.04em;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--primary-purple);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--primary-purple);
}

/* 13. Accordion (SSS) */
.faq-container {
  max-width: 800px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 12px;
  border: var(--glass-border);
  background: var(--card-bg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: var(--border-purple);
  background: rgba(26, 31, 42, 0.55);
}

.faq-trigger {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.faq-item:hover .faq-question {
  color: var(--primary-purple);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-icon svg {
  stroke: var(--primary-purple);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
  padding: 0 30px;
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-bottom: 24px;
}

/* 14. Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-purple);
  stroke-width: 1.5;
  fill: none;
}

.contact-item-details h3,
.contact-item-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-item-details p,
.contact-item-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-item-details a:hover {
  color: var(--primary-purple);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(18, 21, 29, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  background: rgba(18, 21, 29, 0.6);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.form-btn {
  width: 100%;
  border: none;
}
