/* ==========================================================================
   OzonSellerTR.com Custom Styles
   Designed to work with Tailwind CSS
   Primary Color: #7c3aed (violet-600)
   ========================================================================== */

:root {
  --primary-color: #7c3aed;
  --primary-color-hover: #6d28d9;
  --primary-color-light: #ede9fe;
  --transition-speed: 0.3s;
}

/* 1. Base & Smooth Scroll */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* 7. Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-hover);
}

/* 6. Sticky Header Transition */
header {
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 5. Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: white;
  z-index: 50;
  transition: right var(--transition-speed) ease-in-out;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 8. Hero Section Decorative Elements */
.hero-gradient-bg {
  position: relative;
  overflow: hidden;
}

.hero-gradient-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-gradient-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
}

/* 2. Scroll-triggered Fade-in Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.animate,
.fade-in-left.animate,
.fade-in-right.animate {
  opacity: 1;
  transform: translate(0);
}

/* Delay classes for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 10. CTA Button Pulse */
@keyframes pulse-violet {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.cta-pulse {
  animation: pulse-violet 2s infinite;
}

/* 9. Service Card Hover */
.service-card {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--primary-color);
}

/* 3. Counter Animation Styling */
.stat-counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* 11. Testimonial Card */
.testimonial-card {
  border-left: 4px solid var(--primary-color);
  background-color: #f8fafc;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 12. Partner Section */
.partner-section-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, #5b21b6 100%);
  color: white;
}

/* 13. Step/Process Circles */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50px;
  width: calc(100% - 60px);
  height: 2px;
  background-color: var(--primary-color-light);
  z-index: -1;
}

@media (max-width: 768px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  transition: all var(--transition-speed) ease;
}

.process-step:hover .step-circle {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* 4. FAQ Accordion Styles */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-speed) ease;
}

.faq-item:hover {
  border-color: var(--primary-color-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  background-color: white;
  transition: color var(--transition-speed) ease;
}

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

.faq-icon,
.faq-chevron {
  transition: transform var(--transition-speed) ease;
  color: var(--primary-color);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background-color: #f8fafc;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #475569;
}

/* 14. Contact Form Input Focus */
.contact-form-input {
  transition: all var(--transition-speed) ease;
  outline: none;
}

.contact-form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* 15. Responsive Adjustments */
@media (max-width: 640px) {
  .hero-gradient-bg::before,
  .hero-gradient-bg::after {
    width: 300px;
    height: 300px;
  }
}

/* Active Nav Link */
.nav-link.active-link {
  color: var(--primary-color);
  position: relative;
}

.nav-link.active-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

/* Form error state */
.form-group .error-message {
  display: block;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.form-group .error-message.hidden {
  display: none;
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

.wa-float a {
  animation: wa-pulse 2.5s ease infinite;
}

