:root {
  /* Primary Colors */
  --color-navy: #1F2A44;
  --color-gray-soft: #F4F6F8;
  --color-gray-light: #e2e8f0;
  
  /* Accent Colors */
  --color-blue: #2F80ED; /* Accent / CTA */
  --color-teal: #28A3BD;  /* Data / Tech */
  --color-orange: #f39f1c;

  /* Status Colors */
  --color-green: #27AE60;
  --color-red: #EB5757;

  /* Neutrals */
  --color-charcoal: #1A1A1A;
  --color-white: #FFFFFF;
  --color-gray: #666666;
  --color-black: #000000;
  
  /* Typography */
  --font-inter: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-system: Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Sabit headerın yüksekliği için pay */
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for Safari Turkish 'İ' rendering */
html[lang="tr"], html[lang="tr"] body {
  -webkit-locale: "tr";
  font-feature-settings: "locl" 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600; /* Inter SemiBold */
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #246BCC;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
}

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

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-hover-grow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-hover-glow:hover {
  background-color: rgba(255,255,255,0.15) !important;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* --- NAV --- */
.nav-link {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-orange);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-orange);
}

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

/* --- RESPONSIVE UTILITIES --- */
.mobile-show { display: none !important; }
.mobile-hide { display: block; }

@media (max-width: 768px) {
  .mobile-show { display: block !important; }
  .mobile-hide { display: none !important; }
  .container { padding: 0 1.25rem !important; }
  
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.85rem !important; }
}

/* --- HEADER --- */
header {
  padding: 0.75rem 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1350px !important;
  position: relative;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-navy);
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.25rem;
  justify-self: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
}

.lang-toggle .inactive {
  color: #64748b;
  opacity: 0.7;
}

.lang-sep {
  color: #cbd5e1;
  font-weight: 400;
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .hamburger-btn { display: flex !important; }
  
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    padding: 80px 2rem 2rem;
    gap: 2rem;
    align-items: center;
    z-index: 1000;
    margin-left: 0;
    overflow-y: auto;
  }
  
  nav.active {
    display: flex !important;
  }

  .nav-link {
    font-size: 1.2rem !important;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .lang-toggle {
    font-size: 1.1rem !important;
    padding: 1rem 0;
  }
}

/* --- HERO --- */
.hero-title-main {
  display: block; 
  white-space: nowrap;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

@media (max-width: 768px) {
  .hero-title-main {
    white-space: normal !important; 
    width: 100% !important; 
    left: 0 !important; 
    transform: none !important; 
  }
}

/* --- DOWNLOAD SECTION --- */
@media (max-width: 768px) {
  .download-section { padding: 3rem 0 !important; }
  .download-cta-inner { padding: 2rem 1.5rem !important; gap: 2rem !important; text-align: center !important; }
  .download-text { flex: 1 1 100% !important; text-align: center !important; }
  .download-title { font-size: 1.75rem !important; }
  .download-desc { font-size: 1rem !important; margin: 1rem auto 0 !important; }
  .download-buttons { gap: 0.75rem !important; }
  .app-btn { height: 45px !important; }
}

/* Hide video controls three-dots menu (Chrome/Safari) */
video::-internal-media-controls-overflow-button { display: none !important; }
video::-webkit-media-controls-overlay-play-button { display: none !important; }

/* Stats Carousel Section */
.stats-section {
  padding: 8rem 0;
  background: linear-gradient(rgba(244, 246, 248, 0.88), rgba(244, 246, 248, 0.95)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.stats-header {
  text-align: center;
  margin-bottom: 4rem;
}

.stats-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stats-carousel {
  display: flex;
  justify-content: flex-start; /* Changed from center to allow normal scrolling */
  align-items: center;
  padding-bottom: 3rem; /* Extra padding for scrollbar visibility if any */
  padding-top: 4rem;
  flex-wrap: nowrap; /* Prevent breaking into multiple lines */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory;
}

/* 
  Creating the overlapping effect from the image:
  We use negative margins and hover scaling.
*/
.stat-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
  margin-right: -40px; /* This creates the overlap! */
}

/* Reset margin for the last item so it doesn't overflow */
.stat-card-wrapper:last-child {
  margin-right: 0;
}

.stat-card-wrapper:hover {
  transform: translateY(-20px) scale(1.08);
  z-index: 10 !important;
}

/* Stacking order so left cards are below right cards (or vice versa) */
.stat-card-wrapper:nth-child(1) { z-index: 1; }
.stat-card-wrapper:nth-child(2) { z-index: 2; }
.stat-card-wrapper:nth-child(3) { z-index: 3; }
.stat-card-wrapper:nth-child(4) { z-index: 4; }
.stat-card-wrapper:nth-child(5) { z-index: 5; }
.stat-card-wrapper:nth-child(6) { z-index: 6; }
.stat-card-wrapper:nth-child(7) { z-index: 7; }
.stat-card-wrapper:nth-child(8) { z-index: 8; }
.stat-card-wrapper:nth-child(9) { z-index: 9; }
.stat-card-wrapper:nth-child(10) { z-index: 10; }

.stat-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.stat-badge::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background-color: inherit;
  z-index: 1;
}

.stat-card {
  border-radius: 16px;
  padding: 2.5rem 1.2rem 5.5rem 1.2rem; /* Increased bottom padding for the logo */
  color: white;
  text-align: center;
  height: 380px; /* Slightly increased to prevent text overflow */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-shadow: -10px 0 25px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.stat-text {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-logo-link {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-logo-link:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Colors for cards matching the gradient vibe */
.stat-c1 { background-color: #8CC63F; }
.stat-c2 { background-color: #27AE60; }
.stat-c3 { background-color: #00B18A; }
.stat-c4 { background-color: #28A3BD; }
.stat-c5 { background-color: #00A3DA; }
.stat-c6 { background-color: #0073E6; }
.stat-c7 { background-color: #2F80ED; }
.stat-c8 { background-color: #0F52BA; }
.stat-c9 { background-color: #1D3557; }
.stat-c10 { background-color: #1A233A; }

/* Responsive */
@media (max-width: 1200px) {
  .stats-carousel {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
  }
  .stat-card-wrapper {
    margin-right: 0;
    margin-left: 1rem;
    flex: 0 0 240px;
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  /* Fix Background Images Not Showing on Mobile */
  section {
    background-attachment: scroll !important;
  }
  
  /* Fix Impact Chart Overlap on Mobile */
  .impact-chart-glass {
    padding: 2.5rem 1.5rem !important;
  }
  
  .impact-header-row {
    padding: 0 !important;
    height: auto !important;
    margin-bottom: 3rem !important;
  }
  
  .impact-header-row > div {
    flex-direction: column !important;
    gap: 15px;
  }
  
  .impact-shape-left, .impact-shape-right {
    clip-path: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 1.15rem !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .impact-stats-container {
    padding: 0 !important;
  }
  
  .impact-stat-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 3rem !important;
  }
  
  .impact-stat-label {
    order: -1 !important; /* Move text above circles */
    width: 100% !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    padding: 0.6rem 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .impact-circle {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.1rem !important;
  }
}