:root {
  --bg: #060714;
  --bg-alt: #0f1020;
  --card-bg: #15162b;
  --accent: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.2);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.2);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1d1f3b 0, #020617 50%, #020617 100%);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.15), transparent),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.1), transparent);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--accent);
}

.logo .logo-main {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #facc15);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding: 6rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #facc15);
  color: #020617;
  box-shadow: 0 14px 40px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
}

.hero-image-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.3), transparent 55%),
    url("https://images.pexels.com/photos/8961067/pexels-photo-8961067.jpeg?auto=compress&cs=tinysrgb&w=1200")
      center/cover;
  min-height: 300px;
  box-shadow: var(--shadow-soft);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.2));
}

.hero-image-content {
  position: absolute;
  inset: 1.5rem;
  border-radius: 22px;
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(30, 64, 175, 0.8),
    rgba(15, 23, 42, 0.95)
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-image-content h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-image-content p {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.6rem;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.03), transparent 55%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(249, 115, 22, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  cursor: pointer;
  display: block;
}

.gallery-item::after {
  content: "Görüntüle";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  text-align: center;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  color: var(--text);
}

.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: min(80vh, 720px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: #020617;
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-map {
  margin-bottom: 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-info li + li {
  margin-top: 0.7rem;
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.15rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
  background: rgba(15, 23, 42, 0.98);
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.3rem 0 1.6rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.6));
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-to-top {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
}

.back-to-top:hover {
  background: rgba(15, 23, 42, 1);
}

.whatsapp-float {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: #22c55e;
  background: radial-gradient(circle at 30% 20%, #bbf7d0, #22c55e 40%, #16a34a 75%);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 70;
  animation: floatUpDown 2.4s ease-in-out infinite;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 55px rgba(22, 163, 74, 0.65);
}

.whatsapp-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-image-card {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav {
    position: absolute;
    inset-inline: 1.5rem;
    top: 4.5rem;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid var(--border);
    transform-origin: top;
    transform: scaleY(0.6);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.45rem 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
