/* ================================================================
   ANADOLU GELECEK ZİRVESİ — GLOBAL DESIGN SYSTEM
   ================================================================
   Ana CSS dosyası: Reset, değişkenler, tipografi, utility ve animasyonlar.
   Tüm sayfalarda yüklenir.
   ================================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* ---- Color Palette ---- */
  --color-primary: #3D1E6D;
  --color-primary-light: #5A2D9E;
  --color-primary-dark: #2A1050;
  --color-primary-darker: #1A0A35;
  --color-accent-green: #1C543B;
  --color-accent-green-light: #28754F;
  --color-accent-orange: #FF8C00;
  --color-accent-orange-light: #FFA333;
  --color-accent-orange-dark: #E07B00;
  --color-light: #F5F5DC;
  --color-light-soft: #FAFAF2;
  --color-dark: #333333;
  --color-dark-deeper: #1a1a1a;
  --color-white: #FFFFFF;

  /* ---- Semantic Colors ---- */
  --color-text-on-dark: rgba(255, 255, 255, 0.92);
  --color-text-muted-on-dark: rgba(255, 255, 255, 0.6);
  --color-text-body: #444444;
  --color-overlay: rgba(26, 10, 53, 0.82);
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-glass-strong: rgba(255, 255, 255, 0.10);
  --color-glass-border: rgba(255, 255, 255, 0.13);

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

  /* ---- Font Sizes (fluid) ---- */
  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 2.5rem;     /* 40px */
  --fs-4xl: 3rem;       /* 48px */
  --fs-hero: clamp(2.8rem, 6vw, 5rem);

  /* ---- Spacing ---- */
  --section-py: 100px;
  --container-max: 1200px;
  --container-px: 24px;

  /* ---- Easing & Transitions ---- */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* ---- Border Radius (Subtle Minimalist Design) ---- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.25);
  --shadow-glow-orange: 0 4px 30px rgba(255, 140, 0, 0.25);
  --shadow-glow-purple: 0 4px 30px rgba(61, 30, 109, 0.35);

  /* ---- Z-Index Scale ---- */
  --z-navbar: 1000;
  --z-overlay: 900;
  --z-modal: 2000;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

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

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   SECTION UTILITIES
   ================================================================ */
.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

.badge--green {
  background: var(--color-accent-green);
  color: var(--color-white);
}

.badge--green::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent-orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge--orange {
  background: var(--color-accent-orange);
  color: var(--color-white);
}

.badge--purple {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title--light {
  color: var(--color-white);
}

.section-title--dark {
  color: var(--color-dark);
}

.section-subtitle {
  font-size: var(--fs-md);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle--light {
  color: var(--color-text-on-dark);
}

.section-subtitle--muted {
  color: var(--color-text-muted-on-dark);
}

.section-subtitle--dark {
  color: #666;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn i {
  font-size: 0.9em;
  transition: transform var(--transition-normal);
}

.btn:hover i {
  transform: translateX(3px);
}

/* Primary (Orange) */
.btn--primary {
  background: var(--color-accent-orange);
  color: var(--color-white);
  border-color: var(--color-accent-orange);
  box-shadow: var(--shadow-glow-orange);
}

.btn--primary:hover {
  background: var(--color-accent-orange-light);
  border-color: var(--color-accent-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(255, 140, 0, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Outline Light (for dark backgrounds) */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* Green */
.btn--green {
  background: var(--color-accent-green);
  color: var(--color-white);
  border-color: var(--color-accent-green);
}

.btn--green:hover {
  background: var(--color-accent-green-light);
  border-color: var(--color-accent-green-light);
  transform: translateY(-2px);
}

/* Small variant */
.btn--sm {
  padding: 10px 22px;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}

/* ================================================================
   REVEAL ANIMATIONS (Scroll-triggered)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children delay */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(10px, -20px) scale(1.1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-5px, -35px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(15px, -15px) scale(1.05);
    opacity: 0.6;
  }
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --container-px: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 48px;
    --container-px: 14px;
  }
}
