/* ===== Custom Properties ===== */
:root {
  --navy: #0c0c2d;
  --navy-light: #151545;
  --navy-mid: #1a1a50;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fb923c;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--orange);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(12, 12, 45, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Hero ===== */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1055 40%, #0c0c2d 100%);
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ===== Steps Timeline ===== */
.step-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ===== Defect Cards ===== */
.defect-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.defect-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
  transform: translateY(-4px);
}
.defect-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.defect-card:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(1) saturate(20) hue-rotate(10deg);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--orange);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== Benefits Section ===== */
.benefits-section {
  background: linear-gradient(135deg, #0c0c2d 0%, #1a1055 50%, #0c0c2d 100%);
  position: relative;
  overflow: hidden;
}
.benefits-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.benefits-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Glass Cards ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.1), 0 0 0 1px rgba(249, 115, 22, 0.15);
}
.glass-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
.glass-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.75rem;
}
.faq-item.active {
  border-color: var(--orange);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  background: inherit;
  transition: color 0.3s ease;
  gap: 1rem;
  width: 100%;
  border: none;
  text-align: left;
  font-size: inherit;
  min-height: 44px;
}
.faq-question:hover {
  color: var(--orange);
}
.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--orange);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== About Section ===== */
.about-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1055 100%);
}

/* ===== Footer ===== */
.footer {
  background: #070718;
}

/* ===== Scroll Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Category Cards (defektebiler page) ===== */
.category-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .defect-card {
    padding: 1rem;
  }
  .defect-card img {
    width: 44px;
    height: 44px;
  }
  .testimonial-card {
    padding: 1.25rem;
  }
}

/* ===== Testimonial Scroll ===== */
.testimonial-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testimonial-scroll::-webkit-scrollbar {
  display: none;
}
.testimonial-scroll > * {
  scroll-snap-align: start;
  flex: 0 0 300px;
}
@media (min-width: 768px) {
  .testimonial-scroll > * {
    flex: 0 0 calc(33.333% - 1rem);
  }
}
@media (min-width: 1024px) {
  .testimonial-scroll {
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
  }
  .testimonial-scroll > * {
    flex: 0 0 calc(20% - 1.2rem);
  }
}

/* ===== Offer Bubble ===== */
.offer-bubble {
  animation: bubbleIn 0.6s ease 1.2s both;
}
@keyframes bubbleIn {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Staggered fade-in for children ===== */
.stagger-in > * {
  opacity: 0;
  transform: translateY(16px);
}
.stagger-in.visible > * {
  animation: staggerFade 0.5s ease forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.12s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.19s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.26s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.33s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.40s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.47s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.54s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.61s; }
@keyframes staggerFade {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Gentle float animation for hero image ===== */
.float-gentle {
  animation: floatGentle 4s ease-in-out infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Logo Strip: infinite scroll marquee ===== */
.logo-marquee {
  overflow: hidden;
  position: relative;
}
.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--gray-50, #f9fafb) 0%, transparent 100%);
}
.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--gray-50, #f9fafb) 0%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  animation: marqueeScroll 20s linear infinite;
  width: max-content;
}
.logo-track img {
  height: 38px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.logo-track img:hover {
  opacity: 1;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark variant for v1 */
.logo-marquee-dark::before {
  background: linear-gradient(90deg, #070718 0%, transparent 100%);
}
.logo-marquee-dark::after {
  background: linear-gradient(270deg, #070718 0%, transparent 100%);
}
.logo-marquee-dark .logo-track img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
.logo-marquee-dark .logo-track img:hover {
  opacity: 0.9;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ===== Touch Targets ===== */
#mobile-menu a,
#menu-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ===== Subtle scale on card hover ===== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===== CTA button pulse ===== */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
}
.btn-pulse {
  animation: subtlePulse 2.5s ease-in-out infinite;
}
