/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #0f172a; /* fallback, canvas üstte */
  color: #f1f5f9;
  line-height: 1.6;
  scroll-behavior: smooth;
}


/* === HEADER === */
header {
  padding: 20px;
  background: #0f172a;
  position: sticky;
  top: 0; z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.motto {
  font-size: 1rem;
  color: #94a3b8;
  margin-left: 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .motto { display: none !important; }
}

/* === NAVIGATION === */
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  text-decoration: none;
  color: #38bdf8;
  font-weight: 600;
  transition: 0.3s;
}
nav a:hover { color: #facc15; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: none;
  color: #38bdf8; cursor: pointer;
  z-index: 1100;
  position: absolute; top: 20px; right: 20px;
  align-items: center; justify-content: center;
}
.hamburger:hover { color: #facc15; }
@media (max-width: 768px) { .hamburger { display: flex; } }

/* Mobil Menü */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0; right: -100%;
    height: 100%; width: 250px;
    background: #1e293b;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }
  nav.show { right: 0; }
  nav a { font-size: 1.2rem; }
}

/* === SECTION BASE === */
.site-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  z-index: 2;
}

/* === HEADER MOTTO ANIM === */
header p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #94a3b8;
  animation: fadeIn 3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === SECTION HIGHLIGHT === */
.section-highlight::before {
  content: none; /* Arka plan kaldırıldı */
}

/* === HİZMETLER (GRID) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.services-grid .card {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.services-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.services-grid .card svg {
  width: 60px; height: 60px;
  margin-bottom: 15px;
  fill: #38bdf8;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* === REFERANSLAR === */
.references {
  display: flex; justify-content: center; align-items: center;
  gap: 60px; margin-top: 40px;
  flex-wrap: wrap; position: relative; z-index: 2;
}
.references svg {
  width: 120px; height: 120px;
  fill: #38bdf8; transition: transform 0.3s;
}
.references svg:hover { transform: scale(1.05); fill: #facc15; }

/* === HAKKIMIZDA === */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  z-index: 2;
}
.about-text { flex: 1; min-width: 360px; text-align: justify; }
.about-visual { flex: 1; min-width: 360px; text-align: right; }

/* ✅ SVG padding için düzenleme */
.about-visual svg,
.about-visual object,
.orbit-chart {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .about-text { max-width: 90%; margin: 0 auto; font-size: 0.95rem; text-align: justify; }
  .orbit-chart { max-width: 320px; padding: 10px; } /* ✅ mobilde kenarlardan boşluk */
}

/* === İLETİŞİM === */
.contact-links {
  margin-top: 20px;
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.contact-links a {
  color: #38bdf8; text-decoration: none; font-weight: 600;
  transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.contact-links a:hover { color: #facc15; }
.contact-links svg { width: 24px; height: 24px; fill: currentColor; }
form {
  max-width: 600px; margin: 30px auto 0;
  display: flex; flex-direction: column; gap: 15px;
}
input, textarea {
  padding: 12px; border-radius: 8px; border: none;
  font-family: 'Montserrat', sans-serif;
}
input[type="submit"] {
  background: #38bdf8; color: #0f172a;
  font-weight: 600; cursor: pointer; transition: 0.3s;
}
input[type="submit"]:hover { background: #facc15; }

/* === FOOTER === */
footer { text-align: center; padding: 30px; background: #020617; color: #94a3b8; }

/* === HİZMET POPUP === */
#servicePopup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#servicePopup.popup-hidden { display: none; }
#servicePopup .popup-content {
  background: #1e293b;
  padding: 40px 50px;
  border-radius: 16px;
  max-width: 800px;
  width: 95%;
  color: #f1f5f9;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  animation: popupFade 0.3s ease;
  text-align: left;
}
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
#servicePopup .popup-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #38bdf8;
  text-align: center;
}
#servicePopup .popup-content p {
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: justify;
}
#servicePopupClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #f1f5f9;
}

/* === RESPONSIVE === */
@media (min-width: 1024px) {
  .about-container, .services-grid, .references {
    justify-content: space-between;
  }
}
@media (max-width: 1024px) {
  .about-container { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  h2 { font-size: 2rem; }
  .motto { font-size: 0.95rem; }
  .references svg { width: 80px; height: 80px; }
}
#logo { max-width: 240px; height: auto; }
@media (max-width: 768px) { #logo { max-width: 70%; height: auto; } }

.contact-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-links a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-links a:hover {
  color: #facc15;
}

.contact-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

#popup {
  position: fixed; /* ✅ formun altına yapışmasın */
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup.popup-hidden {
  display: none;
}

#popup .popup-content {
  background: #1e293b;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  color: #f1f5f9;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  text-align: center;
}

#popupClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #f1f5f9;
  transition: 0.3s;
}

#popupClose:hover {
  color: #facc15;
}
/* === HEADER BRAND === */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* ortala */
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center; /* logo ve motto ortada */
}

.brand #logo {
  display: block;
  height: auto;
}

.brand .motto {
  margin-top: 6px;
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
}

/* === CHIP BACKGROUND (standalone) === */
#chipBackground {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;           /* içeriğin arkasında */
  background: #0f172a;   /* koyu zemin */
}
