/* ===== Variables ===== */
:root {
  --navy-dark: #0f1e35;
  --navy: #1b3358;
  --navy-light: #2c4f80;
  --accent: #3d7bd9;
  --accent-glow: #5b9bff;
  --gray: #8a8f98;
  --gray-light: #e9ebee;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text-dark: #1c2430;
  --header-height: 132px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

ul { list-style: none; }

.section { padding: 110px 0; position: relative; }

.section-head { text-align: center; margin-bottom: 56px; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy-dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--navy-light));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(61, 123, 217, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(61, 123, 217, 0.45);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(15, 30, 53, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 26px rgba(15, 30, 53, 0.12);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }

.logo-img { height: 116px; width: auto; object-fit: contain; }

.nav-list {
  display: flex;
  gap: 42px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-dark);
  padding: 10px 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gray-light);
  border-radius: 2px;
  transform: scaleX(0.4);
  opacity: 0;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
  background: var(--accent-glow);
}

.nav-link.active {
  color: var(--navy-dark);
  font-weight: 700;
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 12px 1px var(--accent-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(15, 30, 53, 0.12);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1050;
  padding: 150px 32px;
}

.nav-mobile.open { transform: translateX(0); }

.nav-list-mobile { display: flex; flex-direction: column; gap: 28px; }

.nav-link-mobile {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}

.nav-link-mobile::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link-mobile.active {
  color: var(--navy-dark);
  font-weight: 700;
}

.nav-link-mobile.active::after {
  width: 100%;
  height: 4px;
  box-shadow: 0 0 12px 1px var(--accent-glow);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(61, 123, 217, 0.15), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(27, 51, 88, 0.12), transparent 50%),
    linear-gradient(180deg, var(--off-white), var(--white));
  z-index: -1;
}

.hero-content { max-width: 720px; }

.hero .eyebrow { font-size: 0.95rem; }

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 22px;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent), var(--navy-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: #555c66;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-down span {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollDown 1.6s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===== Hizmetler ===== */
.hizmetler { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: 0 6px 20px rgba(15, 30, 53, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 30, 53, 0.12);
}

.service-icon { font-size: 2.2rem; margin-bottom: 16px; }

.service-card h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p { color: #5a616b; font-size: 0.95rem; }

/* ===== Projeler ===== */
.projeler { background: var(--white); }

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

.projects-grid .project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 18px);
  margin: 0 auto;
}

.project-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 30, 53, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(15, 30, 53, 0.14);
}

.project-thumb-link { display: block; }

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--accent));
}

.project-thumb.ph-2 { background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); }
.project-thumb.ph-3 { background: linear-gradient(135deg, var(--accent), var(--gray)); }

.project-thumb-icon {
  font-size: 5.5rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

/* ===== Product Thumbnails ===== */
.project-thumb.product-thumb { background: #ffffff; }

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.project-thumb-link:hover .product-thumb-img { transform: scale(1.06); }

/* ===== Video Thumbnails ===== */
.project-thumb.video-thumb { background: var(--navy-dark); }

.video-thumb-img,
.video-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.project-thumb-link:hover .video-thumb-img,
.project-thumb-link:hover .video-thumb-video { transform: scale(1.05); }

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), background var(--transition);
}

.play-icon::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 4px;
}

.project-thumb-link:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.12);
  background: #fff;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 53, 0) 55%, rgba(15, 30, 53, 0.55) 100%);
  pointer-events: none;
}

.video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: linear-gradient(135deg, var(--accent), var(--navy-light));
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(15, 30, 53, 0.3);
  pointer-events: none;
}

.video-embed {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 30, 53, 0.16);
  display: block;
  background: #000;
}

.project-info { padding: 22px 24px; background: var(--white); }

.project-info h3 { color: var(--navy-dark); margin-bottom: 8px; font-size: 1.1rem; }

.project-info p { color: #5a616b; font-size: 0.92rem; margin-bottom: 16px; }

.project-links { display: flex; gap: 14px; }

.project-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  position: relative;
  padding-bottom: 2px;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-glow);
  transition: width var(--transition);
}

.project-link:hover::after { width: 100%; }

.project-link-secondary { color: var(--gray); }
.project-link-secondary::after { background: var(--gray); }

/* ===== Interactive Compare Demo (Yol Çukur Tespiti) ===== */
.compare-container { background: none; cursor: default; }

.compare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  user-select: none;
  pointer-events: none;
}

.bbox {
  position: absolute;
  top: 5%;
  left: 22%;
  width: 48%;
  height: 52%;
  border: 5px solid rgba(0, 200, 100, 1);
  background: rgba(0, 200, 100, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 70;
  opacity: 0;
}

.bbox-helmet {
  top: 8%;
  left: 36%;
  width: 24%;
  height: 18%;
}

.bbox-label {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 160, 80, 1);
  color: #fff;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 95;
  pointer-events: none;
}

.compare-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 75%;
  width: 6px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  touch-action: none;
}

.compare-handle {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.compare-handle::after {
  content: "\2194";
  color: #222;
  font-size: 13px;
}

.demo-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 30, 53, 0.7);
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 96;
  pointer-events: none;
  white-space: nowrap;
}

/* ===== İletişim ===== */
.iletisim { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info { display: flex; flex-direction: column; gap: 26px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
  font-size: 1.4rem;
  background: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 30, 53, 0.08);
  flex-shrink: 0;
}

.contact-item h4 { color: var(--navy-dark); font-size: 1rem; margin-bottom: 4px; }
.contact-item p { color: #5a616b; font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 30, 53, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { align-self: flex-start; border: none; }

/* ===== Project Detail Pages ===== */
.detail-hero {
  padding: calc(var(--header-height) + 56px) 0 64px;
  background:
    radial-gradient(circle at 85% 15%, rgba(61, 123, 217, 0.14), transparent 50%),
    linear-gradient(180deg, var(--off-white), var(--white));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 24px;
  transition: gap var(--transition);
}

.back-link:hover { gap: 12px; }

.detail-hero .eyebrow { margin-bottom: 6px; }

.detail-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 18px;
  max-width: 800px;
}

.detail-tagline {
  font-size: 1.15rem;
  color: #4c535d;
  max-width: 700px;
  margin-bottom: 28px;
}

.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.tech-badge {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(15, 30, 53, 0.05);
}

.detail-section { padding: 64px 0; }
.detail-section:nth-of-type(even) { background: var(--off-white); }

.detail-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 24px;
}

.detail-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.detail-text p {
  color: #4c535d;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.demo-showcase {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.demo-showcase .compare-container {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 30, 53, 0.16);
}

.demo-caption {
  text-align: center;
  color: var(--gray);
  font-size: 0.88rem;
  margin-top: 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 30, 53, 0.06);
  color: #3d434d;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-list .check {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.media-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.media-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 2px dashed var(--gray-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
}

.media-placeholder .icon { font-size: 1.8rem; }
.media-placeholder span.label { font-size: 0.85rem; font-weight: 600; }

.detail-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 60px 0 90px;
}

.detail-cta-center { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 64px;
}

.footer-inner p { color: #b7bfc9; font-size: 0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .demo-showcase { position: static; max-width: 380px; margin: 0 auto; }
  .media-placeholder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 80px 0; }
  .section-head h2 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .detail-hero h1 { font-size: 2rem; }
  .feature-list { grid-template-columns: 1fr; }
  .media-placeholder-grid { grid-template-columns: 1fr; }
}
