/* Modern Design System */
:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --accent-blue: #3b82f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile-first responsive improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Touch target optimization - minimum 44x44px */
button, a, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: rgba(24, 140, 65, 0.2);
        tap-highlight-color: rgba(24, 140, 65, 0.2);
    }
}

/* Modern Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Custom form input focus */
.custom-focus:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}
.logo {
  height: 50px;
  margin-right: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 42px;
  }
}

.nav-btn {
  text-decoration: none;
  color: #188C41;
  font-weight: bold;
  font-family: sans-serif;
}

.nav-btn:hover {
  text-decoration: underline;
}

/* ===== EKİBİMİZ / TEAM SECTION ===== */

.team-section {
  text-align: center;
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .team-section {
    padding: 80px 20px;
  }
}

.team-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1f2937;
}

@media (min-width: 768px) {
  .team-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
}

.team-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: auto;
  background: #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
}

.team-card img {
  width: 100%;
  display: block;
  height: auto;
}

.phone-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2d3748;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
}

.team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d3748;
  color: white;
  padding: 14px 16px;
  font-size: 15px;
}

.team-footer .role {
  opacity: 0.8;
}

/* ===== SCROLL ANIMATION BASE ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* YANLARDAN GELENLER */
.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.fade-scale {
  transform: scale(0.95);
}

.scroll-animate.show.fade-left,
.scroll-animate.show.fade-right,
.scroll-animate.show.fade-scale {
  transform: none;
}

/* Image optimization for mobile */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve form inputs on mobile */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Skip to content link - hidden by default, visible on focus */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 9999;
  background-color: #188C41;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Better spacing on mobile */
@media (max-width: 640px) {
  section {
    margin-bottom: 2rem;
  }
}

/* FAQ Accordion Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f3f4f6;
}

.faq-answer {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Stats section responsive */
@media (max-width: 640px) {
  #stats .text-4xl {
    font-size: 2rem;
  }
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Köşelerdeki taşmaları önler */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* GPU acceleration ve render optimizasyonu */
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.modern-card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Modern Button Styles */
.modern-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.modern-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.modern-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.modern-btn-outline:hover {
    background: white;
    color: #10b981;
    transform: translateY(-2px);
}

/* Testimonial cards hover effect */
#testimonials .bg-white {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    #testimonials .bg-white:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-xl);
    }
}

/* Modern Section Styles */
.modern-section {
    position: relative;
    overflow: hidden;
}

.modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
}

/* Modern Icon Container */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* ::before elementi kaldırıldı - kartlarda bozukluğa sebep oluyordu */
}

/* Icon container içindeki gradient div için ekstra kontrol */
.icon-container > div {
    position: relative;
    z-index: 1;
}

/* Eğer glow efekti isteniyorsa, bu daha kontrollü bir yöntem */
.icon-container.with-glow::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0.15;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.icon-container.with-glow:hover::before {
    transform: scale(1.2);
    opacity: 0.2;
}

/* Modern Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Shadow Utilities */
.shadow-modern {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-modern-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Modern Border Radius */
.rounded-modern {
    border-radius: 20px;
}

.rounded-modern-lg {
    border-radius: 24px;
}