:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-soft: rgba(37,99,235,0.12);
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

html[dir="rtl"] * {
  direction: rtl;
  text-align: right;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: auto;
  padding: 0 16px;
}

/* NAVBAR */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

/* LOGO + YAZI */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

/* Mobilde logo küçülsün */
@media (max-width: 768px) {
  .logo-img {
    height: 36px;
  }
  .logo span {
    font-size: 20px;
  }
}


.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.btn-nav {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.lang-switch {
  font-size: 14px;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text);
}

/* HERO ENGINE */

.hero-engine {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  margin-bottom: 40px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blur {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f8fafc 100%);
  z-index: 5;
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  color: #1e293b;
  max-width: 640px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 20px;
  color: #475569;
  margin-bottom: 20px;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.full { width: 100%; text-align: center; }

/* SECTIONS */

.section {
  padding: 60px 0 80px;
}

.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 40px;
}

/* GRID & CARDS */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card img,
.blog-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.blog-card {
  text-decoration: none;
  color: var(--text);
}

/* TWO COLUMN */

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* STATS */

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  background: var(--primary-soft);
  padding: 16px;
  border-radius: var(--radius);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.stat-label { color: var(--muted); }

/* FORMS */

.contact-form {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
}

/* PAGE IMAGE */

.page-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}

/* FOOTER */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
}

@media (min-width: 900px) {
  .hero-video.desktop { display: block; }
  .hero-image { display: none; }
}

@media (max-width: 899px) {
  .hero-video.mobile { display: block; }
  .hero-image { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }
}
