:root {
  --primary: #d3b270;
  --primary-dark: #b49456;
  --accent: #5cb8ff;
  --dark: #0b1019;
  --dark-soft: #151d2b;
  --text: #202733;
  --muted: #62708a;
  --bg: #f4f7fb;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(8, 16, 34, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: radial-gradient(circle at top right, #eef5ff 0%, #f7f9fc 36%, #f4f7fb 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #111111;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(211, 178, 112, 0.28);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 1.08rem;
}

.brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #111111;
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(211, 178, 112, 0.35);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  color: #f2f6ff;
  font-weight: 600;
}

nav a {
  padding: 10px 15px;
  border-radius: 999px;
  transition: 0.25s ease;
}

nav a:hover,
nav a.active {
  color: #0f1729;
  background: linear-gradient(120deg, var(--primary), #f5deaa);
}

.hero {
  min-height: 78vh;
  background: linear-gradient(rgba(10, 18, 30, 0.68), rgba(10, 18, 30, 0.72)),
    url("assets/proje-4.png") center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
}

.hero .container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  padding: 34px 26px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero p {
  width: min(780px, 96%);
  margin: 0 auto 22px;
  color: #eaf0ff;
}

.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--primary), #f0cc85);
  color: #111827;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(211, 178, 112, 0.35);
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(180, 148, 86, 0.4);
}

section {
  padding: 70px 0;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 780px;
}

.stats {
  margin-top: -34px;
}

.stats-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--dark-soft);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 18px;
}

.card h3 {
  margin-bottom: 8px;
  color: #152038;
}

.card p {
  color: var(--muted);
}

.cta {
  background: linear-gradient(120deg, #10192c, #1f2c44);
  color: var(--white);
  text-align: center;
}

.page-title {
  background: #111111;
  color: var(--white);
  padding: 42px 0;
  text-align: center;
  border-bottom: 1px solid rgba(211, 178, 112, 0.22);
}

.page-title h1 {
  font-size: clamp(1.65rem, 3.7vw, 2.4rem);
  letter-spacing: 0.5px;
}

.about-text {
  background: var(--white);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2f3a50;
}

.about-hero {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
  padding: 26px;
  color: #fff;
  background: linear-gradient(rgba(10, 15, 24, 0.32), rgba(10, 15, 24, 0.72)),
    url("assets/proje-4.png") center/cover no-repeat;
}

.about-hero h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  margin-bottom: 8px;
}

.about-hero p {
  font-size: 1.05rem;
  color: #e7eefb;
  max-width: 680px;
}

.gallery {
  grid-template-columns: repeat(3, 1fr);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.project-links a {
  background: var(--white);
  border: 1px solid #dde5f2;
  border-radius: 24px;
  padding: 9px 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.project-links a:hover {
  border-color: #a8bad8;
  transform: translateY(-1px);
}

footer {
  background: #0f1624;
  color: #c6cfdd;
  padding: 24px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .grid-3,
  .gallery,
  .stats-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
  }

  .brand img {
    width: 82px;
    height: 82px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .grid-3,
  .gallery,
  .stats-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 68vh;
  }

  .hero .container {
    padding: 24px 16px;
  }

  .brand img {
    width: 70px;
    height: 70px;
  }
}

.section-soft {
  background: linear-gradient(160deg, #ffffff, #f4f8ff);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.split img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-list li {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #33425f;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.alert-ok {
  background: #e9fbef;
  color: #1f6d3a;
  border: 1px solid #bbe8c8;
}

.alert-error {
  background: #fff2f2;
  color: #922a2a;
  border: 1px solid #f3c7c7;
}

.page-enter {
  animation: pageIn 0.28s ease;
}

.page-leave {
  animation: pageOut 0.22s ease forwards;
}

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

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

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 25, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 94vw);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d1a2e;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0d1a2e;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.empty-project-box {
  background: #fff;
  border: 2px dashed #d2dceb;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: #52617e;
  box-shadow: var(--shadow);
}

.map-box iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .split,
  .project-detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
