/* ========================================
   PROJEFLOW v1.2 - MODERN FRONTEND CSS
   BEM Methodology + Design System
   ======================================== */

/* ========================================
   1. CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ======================================== */
:root {
  /* Color Palette */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  --color-secondary-50: #f8fafc;
  --color-secondary-100: #f1f5f9;
  --color-secondary-200: #e2e8f0;
  --color-secondary-300: #cbd5e1;
  --color-secondary-400: #94a3b8;
  --color-secondary-500: #64748b;
  --color-secondary-600: #475569;
  --color-secondary-700: #334155;
  --color-secondary-800: #1e293b;
  --color-secondary-900: #0f172a;

  --color-success-500: #10b981;
  --color-warning-500: #f59e0b;
  --color-error-500: #ef4444;
  
  /* Modern Typography System */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Sizes - Modern Scale */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  --font-size-7xl: 4.5rem;     /* 72px */
  --font-size-8xl: 6rem;       /* 96px */
  --font-size-9xl: 8rem;       /* 128px */

  /* Font Weights - Modern Scale */
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* Line Heights - Modern Scale */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing - Modern Scale */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --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);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.2s ease-in-out;
  --transition-slow: 0.3s ease-in-out;
  
  /* Z-Index - Updated for better mobile menu layering */
  --z-dropdown: 1000;
  --z-mobile-menu: 9999;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-fab: 1080;
}

/* ========================================
   TOOLTIP SYSTEM
   ======================================== */
.tooltip {
  position: absolute;
  background: var(--color-secondary-900);
  color: white;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  z-index: var(--z-tooltip);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-base);
  white-space: nowrap;
  max-width: 150px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  line-height: 1.2;
}

.tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--color-secondary-900);
}

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

/* Hide tooltips on mobile */
@media (max-width: 768px) {
  .tooltip {
    display: none !important;
  }
}

/* Ensure tooltips don't appear below footer */
.tooltip {
  max-height: 200px;
  overflow: hidden;
}

/* Hide tooltips when they would overlap with footer */
body:has(footer) .tooltip {
  z-index: var(--z-tooltip);
}

/* Additional positioning constraints */
.tooltip {
  position: fixed !important;
  transform: translateX(-50%) translateY(-100%);
  top: auto !important;
  bottom: 100% !important;
  margin-bottom: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-secondary-700);
  background-color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain; /* iOS Safari bounce scroll engelleme - hem x hem y */
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   3. MODERN TYPOGRAPHY SYSTEM
   ======================================== */

/* Display Typography */
.text-display-2xl {
  font-family: var(--font-family-display);
  font-size: var(--font-size-7xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-display-xl {
  font-family: var(--font-family-display);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-display-lg {
  font-family: var(--font-family-display);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-display-md {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-display-sm {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
}

/* Heading Typography */
.text-heading-2xl {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-heading-xl {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.text-heading-lg {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
}

.text-heading-md {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
}

.text-heading-sm {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.text-heading-xs {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

/* Body Typography */
.text-body-xl {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
}

.text-body-lg {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
}

.text-body-md {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.text-body-sm {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.text-body-xs {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

/* Label Typography */
.text-label-lg {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.text-label-md {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.text-label-sm {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

/* Caption Typography */
.text-caption-lg {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--color-secondary-600);
}

.text-caption-md {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--color-secondary-600);
}

.text-caption-sm {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-secondary-500);
}

/* Code Typography */
.text-code-lg {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.text-code-md {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

.text-code-sm {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Text Color Utilities */
.text-primary {
  color: var(--color-primary-600);
}

.text-primary-light {
  color: var(--color-primary-500);
}

.text-primary-dark {
  color: var(--color-primary-700);
}

.text-secondary {
  color: var(--color-secondary-600);
}

.text-secondary-light {
  color: var(--color-secondary-500);
}

.text-secondary-dark {
  color: var(--color-secondary-700);
}

.text-success {
  color: var(--color-success-500);
}

.text-warning {
  color: var(--color-warning-500);
}

.text-error {
  color: var(--color-error-500);
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/* Text Decoration */
.text-underline {
  text-decoration: underline;
}

.text-no-underline {
  text-decoration: none;
}

.text-overline {
  text-decoration: overline;
}

.text-line-through {
  text-decoration: line-through;
}

/* Text Transform */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-normal-case {
  text-transform: none;
}

/* Font Weight Utilities */
.font-thin {
  font-weight: var(--font-weight-thin);
}

.font-extralight {
  font-weight: var(--font-weight-extralight);
}

.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}

.font-black {
  font-weight: var(--font-weight-black);
}

/* Line Height Utilities */
.leading-none {
  line-height: var(--line-height-none);
}

.leading-tight {
  line-height: var(--line-height-tight);
}

.leading-snug {
  line-height: var(--line-height-snug);
}

.leading-normal {
  line-height: var(--line-height-normal);
}

.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

.leading-loose {
  line-height: var(--line-height-loose);
}

/* Letter Spacing Utilities */
.tracking-tighter {
  letter-spacing: var(--letter-spacing-tighter);
}

.tracking-tight {
  letter-spacing: var(--letter-spacing-tight);
}

.tracking-normal {
  letter-spacing: var(--letter-spacing-normal);
}

.tracking-wide {
  letter-spacing: var(--letter-spacing-wide);
}

.tracking-wider {
  letter-spacing: var(--letter-spacing-wider);
}

.tracking-widest {
  letter-spacing: var(--letter-spacing-widest);
}

/* ========================================
   4. HEADER COMPONENT (BEM)
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-secondary-200);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

/* ========================================
   5. NAVIGATION COMPONENT (BEM)
   ======================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.nav__brand:focus {
  outline: none;
}

.nav__logo {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

.nav__logo--large {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
}

/* Modern logo text styling */
.nav__brand .text-2xl {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1;
}

.nav__brand .text-xs {
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  opacity: 0.8;
}

.nav__menu {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav__link {
  color: var(--color-secondary-600);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: color var(--transition-base);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav__link:hover {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
}

.nav__mobile-actions {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

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

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

/* Show mobile toggle only on mobile */
@media (max-width: 1023px) {
  .nav__toggle {
    display: block;
  }
}

.nav__toggle:hover {
  background: var(--color-secondary-100);
}

.nav__hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary-600);
  position: relative;
  transition: all var(--transition-base);
}

.nav__hamburger::before,
.nav__hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--color-secondary-600);
  transition: all var(--transition-base);
}

.nav__hamburger::before {
  top: -8px;
}

.nav__hamburger::after {
  top: 8px;
}

.nav__toggle--active .nav__hamburger {
  background: transparent;
}

.nav__toggle--active .nav__hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav__toggle--active .nav__hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ========================================
   6. HERO COMPONENT (BEM)
   ======================================== */
.hero {
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-secondary-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-900);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

.hero__description {
  font-size: var(--font-size-xl);
  color: var(--color-secondary-600);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-12);
}

/* ========================================
   7. BUTTON COMPONENT (BEM)
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  min-height: 52px;
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--font-size-xl);
  min-height: 60px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
  color: white;
  border-color: var(--color-primary-600);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-800));
  border-color: var(--color-primary-700);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active {
  background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-900));
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.25);
}

.btn--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn--secondary {
  background: white;
  color: var(--color-primary-600);
  border-color: var(--color-primary-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-300);
  color: var(--color-primary-700);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn--secondary:active {
  background: var(--color-primary-100);
  transform: translateY(0);
}

.btn--secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-600);
  border-color: var(--color-primary-300);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-400);
  color: var(--color-primary-700);
  box-shadow: 0 2px 8px 0 rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.btn--outline:active {
  background: var(--color-primary-100);
  transform: translateY(0);
}

.btn--outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-600);
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn--ghost:active {
  background: var(--color-primary-100);
  transform: translateY(0);
}

.btn--ghost:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn--success {
  background: linear-gradient(135deg, var(--color-success-500), var(--color-success-600));
  color: white;
  border-color: var(--color-success-500);
  box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.25);
}

.btn--success:hover {
  background: linear-gradient(135deg, var(--color-success-600), var(--color-success-700));
  border-color: var(--color-success-600);
  box-shadow: 0 6px 20px 0 rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.btn--success:active {
  background: linear-gradient(135deg, var(--color-success-700), var(--color-success-800));
  transform: translateY(0);
}

.btn--success:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.btn--warning {
  background: linear-gradient(135deg, var(--color-warning-500), var(--color-warning-600));
  color: white;
  border-color: var(--color-warning-500);
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.25);
}

.btn--warning:hover {
  background: linear-gradient(135deg, var(--color-warning-600), var(--color-warning-700));
  border-color: var(--color-warning-600);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.btn--warning:active {
  background: linear-gradient(135deg, var(--color-warning-700), var(--color-warning-800));
  transform: translateY(0);
}

.btn--warning:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.btn--error {
  background: linear-gradient(135deg, var(--color-error-500), var(--color-error-600));
  color: white;
  border-color: var(--color-error-500);
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
}

.btn--error:hover {
  background: linear-gradient(135deg, var(--color-error-600), var(--color-error-700));
  border-color: var(--color-error-600);
  box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn--error:active {
  background: linear-gradient(135deg, var(--color-error-700), var(--color-error-800));
  transform: translateY(0);
}

.btn--error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.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;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn--sm .btn-icon {
  width: 1rem;
  height: 1rem;
}

.btn--lg .btn-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.btn--xl .btn-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.btn--mobile-nav {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.btn--mobile-nav:last-child {
  margin-bottom: 0;
}

.btn--fab {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  z-index: var(--z-fab);
}

.btn--fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.2);
}

.btn--fab:active {
  transform: scale(0.95);
}

/* ========================================
   8. CONTAINER COMPONENT (BEM)
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

/* ========================================
   9. SECTION COMPONENT (BEM)
   ======================================== */
.section {
  padding: var(--space-16) 0;
}

.section--hero {
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
}

.section--features {
  background: white;
}

.section--contact {
  background: var(--color-secondary-50);
}

.section__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-900);
  text-align: center;
  margin-bottom: var(--space-6);
}

.section__description {
  font-size: var(--font-size-lg);
  color: var(--color-secondary-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   10. RESPONSIVE TYPOGRAPHY
   ======================================== */

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
  .text-display-2xl {
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
  }

  .text-display-xl {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
  }

  .text-display-lg {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-snug);
  }

  .text-heading-2xl {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }

  .text-heading-xl {
  font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
  }

  .text-heading-lg {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-snug);
  }

  .text-body-xl {
  font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
  }

  .text-body-lg {
    font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  }
}

/* Small Mobile Typography */
@media (max-width: 480px) {
  .text-display-2xl {
  font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
  }

  .text-display-xl {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }

  .text-display-lg {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-snug);
  }

  .text-heading-2xl {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
  }

  .text-heading-xl {
  font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
  }

  .text-heading-lg {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-snug);
  }

  .text-body-xl {
    font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  }
}

/* ========================================
   11. RESPONSIVE DESIGN
   ======================================== */

/* Desktop navigation - show menu links */
@media (min-width: 1024px) {
  .nav {
    max-width: 1400px;
  }
  
  .nav__menu {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    gap: var(--space-6);
    flex-wrap: nowrap;
  }
  
  /* Desktop menu links - reduce padding for Turkish text */
  .nav__menu .nav__link {
    padding: var(--space-2) var(--space-2);
    white-space: nowrap;
    font-size: var(--font-size-sm);
  }
  
  /* Hide mobile menu header and close button on desktop */
  .nav__menu-header {
    display: none !important;
  }
  
  .nav__menu-close {
    display: none !important;
  }
  
  
  .nav__actions {
    display: flex !important;
    gap: var(--space-3);
  }
  
  /* Desktop lang switcher */
  .nav__actions .nav__lang-switcher {
    width: auto;
    min-width: auto;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-secondary-600);
    border: 1px solid transparent;
    background: transparent;
  }
  
  .nav__actions .nav__lang-switcher:hover {
    color: var(--color-secondary-900);
    background: transparent;
    border-color: transparent;
  }
  
  .nav__mobile-actions {
    display: none !important;
  }

  .nav__mobile-brand {
    display: none !important;
  }
  
  .nav__toggle {
    display: none !important;
  }
}

/* WhatsApp button responsive design */
@media (max-width: 640px) {
  .nav__brand {
    gap: var(--space-2);
  }
  
  .nav__brand a[href*="wa.me"] {
    padding: var(--space-2);
  }
  
  .nav__brand a[href*="wa.me"] span {
    display: none;
  }
}

/* Floating buttons responsive design */
@media (max-width: 768px) {
  .fixed.bottom-6.right-6,
  .fixed.bottom-6.right-20 {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .fixed.bottom-6.right-20 {
    right: 6rem;
  }
}

@media (max-width: 480px) {
  .fixed.bottom-6.right-6,
  .fixed.bottom-6.right-20 {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }
  
  .fixed.bottom-6.right-20 {
    right: 5rem;
  }
}

/* Logo responsive design */
@media (max-width: 768px) {
  /* Header logo-icon - mobile */
  .nav__brand img[alt="ProjeFlow Logo"] {
    height: 2.5rem !important;
    width: auto !important;
  }
  
  /* Footer logo - mobile */
  footer img[alt="ProjeFlow Logo"] {
    height: 2.5rem !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {
  /* Header logo-icon - small mobile */
  .nav__brand img[alt="ProjeFlow Logo"] {
    height: 2rem !important;
    width: auto !important;
  }
  
  /* Footer logo - small mobile */
  footer img[alt="ProjeFlow Logo"] {
    height: 2rem !important;
    width: auto !important;
  }
}

@media (max-width: 1023px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    background: #ffffff !important;
    border-top: 1px solid var(--color-secondary-200);
    flex-direction: column;
    padding: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all var(--transition-base);
    transition: all var(--transition-base);
    z-index: 9999 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    will-change: transform, opacity;
    isolation: isolate;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  /* Mobile Menu Content Area */
  .nav__menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-2) var(--space-3) var(--space-2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__menu--active {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    z-index: 9999 !important;
    background: #ffffff !important;
    display: flex !important; /* iPhone X için zorla göster */
  }
  
  .nav__menu--active .nav__menu-header {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Mobile Menu Header */
  .nav__menu-header {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: #ffffff !important;
    flex-shrink: 0;
    position: relative;
    min-height: 48px;
    z-index: 10;
    width: 100%;
  }
  
  /* Mobile Menu Close Button */
  .nav__menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-secondary-600);
    cursor: pointer;
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: absolute;
    top: var(--space-2);
    right: var(--space-3);
    z-index: 10;
  }
  
  .nav__menu-close:hover {
    background: var(--color-secondary-100);
    color: var(--color-secondary-800);
  }
  
  .nav__menu-close:active {
    background: var(--color-secondary-200);
    transform: scale(0.95);
  }
  
  .nav__menu-close svg {
    width: 24px;
    height: 24px;
  }
  
  /* Mobile menu overlay removed */
  
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--color-secondary-200);
    flex-shrink: 0;
  }
  
  .nav__mobile-actions .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
  }
  
  /* Language switcher in mobile menu */
  .nav__lang-switcher {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-secondary-700);
    text-decoration: none;
    border: 1px solid var(--color-secondary-200);
    border-radius: var(--radius-lg);
    background-color: white;
    transition: all var(--transition-base);
  }
  
  .nav__lang-switcher:hover {
    background-color: var(--color-secondary-50);
    border-color: var(--color-secondary-300);
    color: var(--color-secondary-900);
  }
  
  .nav__lang-switcher:active {
    background-color: var(--color-secondary-100);
    transform: scale(0.98);
  }

  .nav__mobile-brand {
    display: none;
  }

  .nav__actions {
    display: none;
  }

  .hero__actions {
  flex-direction: column;
  align-items: center;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section--hero {
    padding: calc(80px + var(--space-12)) 0 var(--space-12);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: var(--space-3) var(--space-4);
  }

  .nav__menu {
    padding: var(--space-2) var(--space-4);
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.375rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    margin: 0.0625rem 0;
  }

  .nav__toggle {
    padding: var(--space-3);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__description {
  font-size: var(--font-size-base);
  }

  .btn {
    min-height: 48px;
    padding: var(--space-3) var(--space-5);
  }
  
  .btn--sm {
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
  }
  
  .btn--lg {
    min-height: 56px;
    padding: var(--space-4) var(--space-6);
  }
  
  .btn--xl {
    min-height: 64px;
    padding: var(--space-5) var(--space-8);
  }

  .container {
    padding: 0 var(--space-3);
  }

  .section {
    padding: var(--space-8) 0;
  }

  .section--hero {
    padding: calc(80px + var(--space-8)) 0 var(--space-8);
  }
}

/* ========================================
   11. ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .btn--outline,
  .btn--ghost {
    border-width: 2px;
  }
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
   12. ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .text-primary {
    color: var(--color-primary-700);
  }
  
  .text-secondary {
    color: var(--color-secondary-800);
  }
  
  .text-gray-600 {
    color: var(--color-secondary-800);
  }
  
  .text-gray-500 {
    color: var(--color-secondary-700);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .text-display-2xl,
  .text-display-xl,
  .text-display-lg,
  .text-heading-2xl,
  .text-heading-xl,
  .text-heading-lg {
    letter-spacing: var(--letter-spacing-normal);
  }
}

/* Focus Visible Support */
.text-focus-visible:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary-600);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

.skip-link:focus {
  top: 6px;
}

/* Text Selection */
::selection {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  -webkit-text-selection: var(--color-primary-100);
}

::-moz-selection {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* iOS Safari Selection Highlight */
::-webkit-selection {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* ========================================
   13. ANIMATIONS
   ======================================== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* ========================================
   13. INTERACTIVE STATES
   ======================================== */
.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive:hover {
  transform: translateY(-1px);
}

.interactive:active {
    transform: translateY(0);
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ========================================
   14. MODERN MOBILE-FIRST IMPROVEMENTS
   ======================================== */

/* Touch Target Sizes - Minimum 48x48px for better accessibility */
button,
a,
input[type="button"],
input[type="submit"],
.btn,
.nav__link,
.interactive {
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent; /* iOS Safari için şeffaf highlight */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
  button,
  a,
  .btn,
  .nav__link,
  .interactive {
    min-height: 52px;
    min-width: 52px;
    padding: 0.875rem 1.25rem;
  }
  
  /* Floating action buttons */
  .fixed.bottom-6.right-6,
  .fixed.bottom-6.right-20 {
    min-height: 52px;
    min-width: 52px;
  }
  
  /* Mobile menu links */
  .nav__menu .nav__link {
    min-height: 32px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
  }
  
  /* Ensure mobile menu stays on top of all content */
  .nav__menu {
    z-index: 9999 !important;
    background: #ffffff !important;
  }
  
  .nav__menu--active {
    z-index: 9999 !important;
    background: #ffffff !important;
  }
}

/* Exception for small buttons - ensure minimum touch target */
.btn--fab,
.btn--sm {
    min-height: 48px;
    min-width: 48px;
    padding: 0.75rem;
}

/* Icon-only buttons should have minimum touch target */
button[aria-label],
a[aria-label] {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Prevent text size adjustment on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Safe Area Insets for notched devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  
  .nav__menu {
    padding-top: max(var(--space-4), env(safe-area-inset-top));
    padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }
  
  .nav__menu--active {
    padding-top: max(var(--space-4), env(safe-area-inset-top));
    padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Improved touch scrolling - Universal selector kaldırıldı, body'de tanımlı */

/* Modern font rendering - body'de zaten tanımlı, bu block kaldırıldı */

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  font-size: 16px; /* Prevents iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* iOS Safari Keyboard Handling - Mobile menu'de zaten tanımlı */
.viewport-fix {
  height: -webkit-fill-available; /* iOS Safari için viewport fix */
}

/* iOS Safari Keyboard Viewport Fix */
@supports (-webkit-touch-callout: none) {
  .viewport-fix {
    height: -webkit-fill-available;
  }
}

/* iOS Safari Form Validation Styling */
input:invalid,
textarea:invalid,
select:invalid {
  -webkit-box-shadow: none;
  box-shadow: none;
}

input:focus:invalid,
textarea:focus:invalid,
select:focus:invalid {
  -webkit-box-shadow: 0 0 0 2px var(--color-error-500);
  box-shadow: 0 0 0 2px var(--color-error-500);
}

/* iOS Safari Form Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--color-secondary-700) !important;
  transition: background-color 5000s ease-in-out 0s;
}

@media (min-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: inherit; /* Use inherited size on larger screens */
  }
}

/* Improved button interactions on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none; /* Disable hover effects on touch devices */
  }
  
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  .interactive:hover {
    transform: none; /* Disable hover effects on touch devices */
  }
  
  .interactive:active {
    transform: scale(0.98);
  }
}

/* Container improvements for mobile */
  .container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* iPhone X Özel Düzeltmeler */
@supports (-webkit-touch-callout: none) {
  /* iPhone X'te mobil menü için özel düzeltmeler */
  .nav__menu {
    top: 0 !important;
    -webkit-transform: translate3d(0, -100%, 0) !important;
    transform: translate3d(0, -100%, 0) !important;
  }
  
  .nav__menu--active {
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .nav__menu--active .nav__menu-header {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
  }
  
  /* iPhone X'te viewport height düzeltmesi */
  .nav__menu {
    height: 100vh;
    height: -webkit-fill-available;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* Grid improvements for mobile */
@media (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Ensure cards don't overflow on mobile */
  .card,
  [class*="rounded"] {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Specific card improvements */
  .bg-white.rounded-2xl,
  .bg-gradient-to-br {
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  /* Grid cards responsive */
  .grid-cols-1,
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Modern spacing for mobile */
@media (max-width: 767px) {
  .space-y-3 > * + *,
  .space-y-4 > * + *,
  .space-y-6 > * + * {
    margin-top: clamp(0.75rem, 2vw, 1rem);
  }
  
  /* Improved container spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Section spacing improvements */
  .section {
    padding: 2rem 0;
  }
  
  .section--hero {
    padding: calc(80px + 2rem) 0 2rem;
  }
  
  /* Card spacing */
  .bg-white.rounded-2xl {
    padding: 1.5rem;
    margin: 0.5rem 0;
  }
  
  /* Grid spacing */
  .grid {
    gap: 1.5rem;
  }
  
  /* Button spacing */
  .btn {
    margin: 0.25rem;
  }
  
  /* Footer contact info centering on mobile */
  footer .flex.flex-col.md\\:flex-row.items-center {
    text-align: center;
    align-items: center !important;
  }
  
  footer .flex.items-center.space-x-2 {
    justify-content: center;
    text-align: center;
  }
}

/* Improved focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .nav__link {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here if needed */
}

/* Container query support (modern browsers) */
@supports (container-type: inline-size) {
  .container {
    container-type: inline-size;
  }
}

/* Modern backdrop filter support */
@supports (backdrop-filter: blur(10px)) {
  .nav,
  .modal {
    backdrop-filter: blur(10px);
  }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 400px;
  font-weight: 500;
  color: white;
}

.notification--visible {
  transform: translateX(0);
  opacity: 1;
}

.notification--success {
  background-color: #10b981;
}

.notification--error {
  background-color: #ef4444;
}

.notification--info {
  background-color: #3b82f6;
}

.notification--warning {
  background-color: #f59e0b;
}

@media (max-width: 768px) {
  .notification {
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    transform: translateY(-100px);
  }
  
  .notification--visible {
    transform: translateY(0);
  }
}