/* YAPİX - Modern Profesyonel Tasarım Sistemi */

:root {
  /* Renkler - Yumuşak slate/blue-gray palet */
  --primary: #475569;
  --primary-dark: #334155;
  --primary-light: #94a3b8;
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;

  --secondary: #334155;
  --secondary-light: #475569;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #475569;
  --info-bg: #f1f5f9;

  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Gölgeler */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Border radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  animation: pageEnter 0.5s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--secondary);
}

a { color: var(--primary); text-decoration: none; }

/* =========== NAVBAR =========== */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
  background: var(--border-light);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

/* =========== BUTONLAR =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-whatsapp {
  background: white;
  color: var(--secondary);
  border: 1px solid var(--border);
}

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

/* =========== HERO =========== */
.hero {
  background: linear-gradient(180deg, #334155 0%, #475569 100%);
  color: white;
  padding: 100px 32px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
  color: white;
  line-height: 1;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1 {
  font-size: 28px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

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

/* =========== PAGE BRAND (Sayfa içi marka) =========== */
.page-brand {
  background: linear-gradient(180deg, #334155 0%, #475569 100%);
  padding: 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.page-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -20%, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.page-brand-text {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: white;
  margin: 0;
  position: relative;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-brand-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 2.5px;
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

/* =========== STATS =========== */
.stats {
  background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 56px 32px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-number {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 6px;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* =========== SECTIONS =========== */
.section {
  padding: 80px 32px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========== FEATURE CARDS =========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =========== CONTAINER =========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

/* =========== DASHBOARD LAYOUT =========== */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 73px);
}

.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-item:hover {
  background: var(--border-light);
  color: var(--secondary);
}

.sidebar-item.active {
  background: var(--primary-50);
  color: var(--primary);
}

.dashboard-main {
  padding: 32px 40px;
  background: var(--bg);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

/* =========== CARDS =========== */
.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

/* =========== KPI =========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.kpi-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-value {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kpi-card.success .kpi-value { color: var(--success); }
.kpi-card.warning .kpi-value { color: var(--warning); }
.kpi-card.danger .kpi-value { color: var(--danger); }

.kpi-change {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--success);
}

.kpi-change.negative { color: var(--danger); }

/* KPI durum çubukları */
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition);
}

.kpi-card.success::before { background: var(--success); }
.kpi-card.warning::before { background: var(--warning); }
.kpi-card.danger::before { background: var(--danger); }

.kpi-card:hover::before { opacity: 1; }

/* =========== TABLE =========== */
.project-table {
  width: 100%;
  border-collapse: collapse;
}

.project-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.project-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.project-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}

.project-table tbody tr:hover {
  background: var(--border-light);
}

.project-table tbody tr:last-child td {
  border-bottom: none;
}

/* =========== PROGRESS =========== */
.progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }
.progress-bar.success { background: var(--success); }

/* =========== BADGES =========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid #dcfce7; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fef3c7; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #fee2e2; }
.badge-info { background: var(--info-bg); color: var(--secondary); border: 1px solid var(--border); }

/* =========== GANTT =========== */
.gantt {
  margin-top: 8px;
}

.gantt-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.gantt-row:last-child { border-bottom: none; }

.gantt-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.gantt-track {
  position: relative;
  height: 22px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
}

.gantt-bar {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding-left: 8px;
  animation: ganttFill 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gantt-bar.done { background: var(--success); }
.gantt-bar.delayed { background: var(--danger); }

@keyframes ganttFill {
  from { width: 0 !important; opacity: 0; }
}

/* =========== PHOTOS =========== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  transition: transform var(--transition-slow);
  border: 1px solid var(--border);
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.photo-item .photo-date {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

/* =========== TIMELINE =========== */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--primary);
}

.timeline-date {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.timeline-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--secondary);
  margin-bottom: 3px;
}

.timeline-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========== COST =========== */
.cost-bar {
  display: flex;
  height: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
}

.cost-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.cost-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.cost-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.cost-legend-color {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
}

/* =========== ALERT BANNER =========== */
.alert-banner {
  background: white;
  color: var(--text);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
}

.alert-icon {
  font-size: 24px;
  margin-right: 10px;
}

.alert-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.alert-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-text span {
  font-size: 13px;
  opacity: 0.92;
}

.alert-actions {
  display: flex;
  gap: 8px;
}

.alert-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.alert-btn:hover {
  background: var(--primary-50);
  border-color: var(--secondary);
}

.alert-banner.warning { border-left-color: var(--warning); }
.alert-banner.success { border-left-color: var(--success); }
.alert-banner.info { border-left-color: var(--secondary); }
.alert-banner .alert-text strong { color: var(--secondary); }
.alert-banner .alert-text span { color: var(--muted); }

/* =========== FLOATING CONTACT =========== */
.floating-contacts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

.floating-btn.whatsapp {
  background: var(--secondary);
}

.floating-btn.call {
  background: var(--secondary);
}

.floating-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  color: white;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
}

/* =========== MODAL =========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.modal-close {
  background: var(--border-light);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
  color: var(--secondary);
}

.modal-body {
  color: var(--text);
  line-height: 1.65;
  font-size: 14.5px;
}

.modal-body p { margin-bottom: 10px; }

.modal-footer {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* =========== TOAST =========== */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--secondary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  max-width: 360px;
}

.toast.show {
  display: flex;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }

/* =========== SPLASH SCREEN =========== */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #334155 0%, #475569 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  animation: splashFadeOut 0.6s ease 2.4s forwards;
}

@keyframes splashFadeOut {
  to { opacity: 0; visibility: hidden; }
}

.splash-logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 100px;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 12px;
  color: white;
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.splash-tagline {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.splash-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

.splash-loader {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.splash-loader::after {
  content: "";
  display: block;
  height: 100%;
  width: 30%;
  background: white;
  border-radius: var(--radius-full);
  animation: splashLoaderSlide 1.5s ease-in-out infinite;
}

@keyframes splashLoaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(330%); }
}

/* =========== FOOTER =========== */
.footer {
  background: #334155;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px;
  text-align: center;
  font-size: 14px;
}

.footer p { margin: 4px 0; }

.footer a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer a:hover { color: white; }

/* =========== CLICKABLE =========== */
.clickable {
  cursor: pointer;
}

/* =========== MICRO INTERACTIONS =========== */

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =========== RAFINE ANIMASYONLAR =========== */

/* Stagger reveal */
.feature-card { animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }

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

.kpi-card { animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }

.card { animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }

.project-table tbody tr {
  animation: rowReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.project-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.project-table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.project-table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.project-table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.project-table tbody tr:nth-child(5) { animation-delay: 0.3s; }

@keyframes rowReveal {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stat number sayma efekti hissi */
.stat-number {
  animation: statReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.stats-grid > div:nth-child(1) .stat-number { animation-delay: 0.1s; }
.stats-grid > div:nth-child(2) .stat-number { animation-delay: 0.2s; }
.stats-grid > div:nth-child(3) .stat-number { animation-delay: 0.3s; }
.stats-grid > div:nth-child(4) .stat-number { animation-delay: 0.4s; }

@keyframes statReveal {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Photo grid stagger */
.photo-item {
  animation: photoReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.photo-item:nth-child(1) { animation-delay: 0.05s; }
.photo-item:nth-child(2) { animation-delay: 0.1s; }
.photo-item:nth-child(3) { animation-delay: 0.15s; }
.photo-item:nth-child(4) { animation-delay: 0.2s; }
.photo-item:nth-child(5) { animation-delay: 0.25s; }
.photo-item:nth-child(6) { animation-delay: 0.3s; }
.photo-item:nth-child(7) { animation-delay: 0.35s; }
.photo-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes photoReveal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Timeline stagger */
.timeline-item {
  animation: rowReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.18s; }
.timeline-item:nth-child(3) { animation-delay: 0.26s; }
.timeline-item:nth-child(4) { animation-delay: 0.34s; }
.timeline-item:nth-child(5) { animation-delay: 0.42s; }

/* Sidebar item entrance */
.sidebar-item {
  animation: sidebarItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar-item:nth-child(5) { animation-delay: 0.3s; }
.sidebar-item:nth-child(6) { animation-delay: 0.35s; }
.sidebar-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes sidebarItemIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Gantt bar shimmer (sadece progress'te) */
.gantt-bar {
  position: relative;
  overflow: hidden;
}

.gantt-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: ganttShine 3s ease-in-out infinite;
}

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

.gantt-bar.done::after { display: none; }

/* Live indicator (sahada usta) */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  position: relative;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Card subtle hover (genel) */
.feature-card,
.kpi-card {
  position: relative;
  isolation: isolate;
}

.feature-card::before,
.kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--primary-light), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.feature-card:hover::before,
.kpi-card:hover::after {
  opacity: 0.5;
}

/* Buton içi ripple efekti */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  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.4s ease, height 0.4s ease;
  pointer-events: none;
}

.btn:active::after {
  width: 240px;
  height: 240px;
  transition: width 0.6s ease, height 0.6s ease;
}

/* Alert banner subtle pulse */
.alert-banner {
  position: relative;
  overflow: hidden;
}

.alert-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: alertShine 4s linear infinite;
  pointer-events: none;
}

@keyframes alertShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Sticky sidebar on scroll */
@media (min-width: 769px) {
  .sidebar {
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
  }
}

/* Page header has separation */
.page-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

/* Progress shimmer */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2.5s linear infinite;
}

@keyframes progressShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Empty value placeholder */
[data-empty]::after {
  content: "—";
  color: var(--muted);
}

/* Hero subtle pattern */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

/* Page brand subtle pattern */
.page-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-brand { font-size: 64px; letter-spacing: 2px; }
  .hero h1 { font-size: 22px; }
  .page-brand-text { font-size: 28px; }
  .nav-links { display: none; }
  .navbar { padding: 12px 20px; }
  .section { padding: 56px 20px; }
  .dashboard-main { padding: 20px; }
  .alert-banner { flex-direction: column; text-align: center; gap: 12px; }
  .floating-contacts { bottom: 16px; right: 16px; }
}
