/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors - Canlı ve Ferah Palet */
  --primary-blue: #4F46E5;
  --primary-purple: #8B5CF6;
  --accent-purple: #A78BFA;
  --light-purple: #DDD6FE;
  --vivid-pink: #EC4899;
  --dark-bg: #0F172A;
  --light-bg: #F8FAFC;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  --success: #10B981;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 36, 99, 0.12);
  --shadow-lg: 0 8px 32px rgba(10, 36, 99, 0.16);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ============================================
   CSS RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  line-height: 1.7;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  margin-bottom: var(--spacing-sm);
}

.section__description {
  color: #475569;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Fade-in animation classes (used by JS) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #7C3AED, #DB2777);
}

.btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn--secondary:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn--outline:hover {
  background: var(--primary-purple);
  color: var(--white);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

.btn svg {
  flex-shrink: 0;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  letter-spacing: 0.02em;
}

.badge__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.badge svg:not(.badge__flag) {
  width: 16px;
  height: 16px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all var(--transition-normal);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo .logo-img {
  height: 50px;
  width: auto;
}

.nav__logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav__link {
  position: relative;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-purple);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav__toggle,
.nav__close {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg,
.nav__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 35%, #A855F7 70%, #EC4899 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero__content {
  color: var(--white);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero__description {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 500px;
}

.hero__shape {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  background: var(--white);
  top: 0;
  right: 0;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  background: var(--accent-purple);
  bottom: 100px;
  right: 150px;
  animation-delay: 1s;
  transform: rotate(45deg);
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  background: var(--white);
  bottom: 0;
  right: 50px;
  animation-delay: 2s;
  border-radius: 50%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--light-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  border: 2px solid var(--primary-purple);
  transform: scale(1.05);
}

.service-card--featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.service-card__badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-md);
  padding: 0.5rem 1rem;
  background: var(--primary-purple);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-purple), var(--accent-purple));
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.service-card__icon svg {
  stroke: var(--primary-purple);
}

.service-card__title {
  margin-bottom: var(--spacing-sm);
}

.service-card__description {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.service-card__features svg {
  stroke: var(--success);
  flex-shrink: 0;
}

.services__cta {
  text-align: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(109, 40, 217, 0.15);
  color: #5B21B6;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.trust-badge svg {
  stroke: #5B21B6;
}

/* ============================================
   CASE STUDY SECTION
   ============================================ */
.case-study__content {
  max-width: 1000px;
  margin: 0 auto;
}

.case-study__problem {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--light-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.case-study__problem h3 {
  color: var(--primary-purple);
  margin-bottom: var(--spacing-sm);
}

.case-study__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.flow-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.flow-step__number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-purple);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.flow-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-sm) auto;
}

.flow-step__icon svg {
  stroke: var(--primary-purple);
}

.flow-step h4 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
}

.flow-step p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-arrow svg {
  stroke: var(--primary-purple);
}

.case-study__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.result-card {
  text-align: center;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
  color: var(--white);
  border-radius: var(--radius-md);
}

.result-card__value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-xs);
}

.result-card__label {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: var(--light-bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.pricing-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border: 2px solid var(--primary-purple);
  transform: scale(1.05);
}

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

.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-md);
  padding: 0.5rem 1rem;
  background: var(--primary-purple);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-purple), var(--accent-purple));
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}

.pricing-card__icon svg {
  stroke: var(--primary-purple);
}

.pricing-card__title {
  margin-bottom: var(--spacing-xs);
}

.pricing-card__subtitle {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-dark);
}

.pricing-card__features svg {
  stroke: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq__container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.faq-item__icon {
  flex-shrink: 0;
  stroke: var(--primary-purple);
  transition: transform var(--transition-normal);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item__answer p {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--light-bg);
}

.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.875rem var(--spacing-sm);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-message {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  text-align: center;
}

.form-message.success {
  background: rgba(37, 211, 102, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid #EF4444;
}

.form-message.loading {
  background: rgba(157, 78, 221, 0.1);
  color: var(--primary-purple);
  border: 1px solid var(--primary-purple);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.footer__logo span {
  background: linear-gradient(135deg, var(--accent-purple), var(--light-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__description {
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.footer__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
  font-size: 0.9375rem;
}

.footer__trust svg {
  stroke: var(--accent-purple);
}

.footer__title {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__links a,
.footer__contact a {
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__links a:hover,
.footer__contact a:hover {
  opacity: 1;
  color: var(--accent-purple);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact svg {
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9375rem;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: scale(0);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark-bg);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4),
                0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4),
                0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4),
                0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float.visible {
  animation: pulse 2s infinite;
}
