:root {
  --ana-renk: #FF6600;
  --koyu-renk: #003366;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f4f0;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background-color: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 70px;   /* Nav yüksekliğine göre ayarla (örneğin 60px) */
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding: 8px;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: var(--ana-renk);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ana-renk);
}

/* HERO */
.hero {
  background: url('images/home/hero.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  margin-top: 10px;
  font-size: 1.2rem;
}

.hero-button {
  margin-top: 30px;
  padding: 14px 28px;
  background: rgba(255, 102, 0, 0.15);
  border: 2px solid var(--ana-renk);
  color: white;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-button:hover {
  background: var(--ana-renk);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero-button i {
  font-size: 1.2rem;
}

/* SECTION */
.section {
  padding: 80px 20px;
  text-align: center;
  background-color: white;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
}

/* DEVAM EDEN PROJELER */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-card {
  background-color: white;
  border: 2px solid var(--ana-renk);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

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

.progress-bar {
  background-color: #ddd;
  height: 10px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
}

.progress {
  height: 100%;
  background-color: var(--ana-renk);
}


/* HİZMETLER */
.hizmetler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: auto;
  margin-top: 40px;
}

.hizmet-kutu {
  background: white;
  border: 1px solid #ddd;
  border-left: 6px solid var(--ana-renk);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.hizmet-kutu:hover {
  transform: translateY(-5px);
}

.hizmet-kutu {
  position: relative;
  padding-left: 1.5rem; /* Ok için boşluk */
}

/* Sol alt köşede ok işareti */
.hizmet-kutu::before {
  content: "➜"; /* ok işareti */
  position: absolute;
  left: 0.3rem;  /* sola yasla */
  bottom: 0.3rem; /* alta yasla */
  font-size: 1rem; /* büyüklük */
  color: #888; /* gri renk */
  transition: color 0.3s ease;
}

/* Hover ve aktif durumda renk değişimi */
.hizmet-kutu:hover::before,
.hizmet-kutu.active::before {
  color: var(--ana-renk); /* Senin ana rengin */
}

.ikon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--ana-renk);
}

/* MODAL hizmet */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: white;
  margin: 80px auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content h3 {
  color: var(--ana-renk);
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 1rem;
  color: #444;
}

.close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: var(--ana-renk);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* HAKKIMIZDA */
.about-box {
  max-width: 800px;
  margin: auto;
  padding: 40px 30px;
  border-left: 6px solid var(--ana-renk);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  text-align: left;
}

.about-box h2 {
  font-size: 2rem;
  color: var(--ana-renk);
  margin-bottom: 16px;
}

.about-box p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

/* REFERANSLAR - KAYAN MARQUEE VERSİYON */
.ref-marquee-wrapper {
  overflow: hidden;
  position: relative;
  max-width: 100%;
  padding: 20px 0;
  background-color: #fff;
}

.ref-marquee-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 30s linear infinite;
  gap: 30px;
}

.ref-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 250px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ref-card:hover {
  transform: scale(1.05);
}

.ref-card img {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.ref-card h3 {
  color: var(--ana-renk);
  font-size: 1rem;
  margin-bottom: 6px;
}

.ref-card p {
  font-size: 0.9rem;
  color: #555;
}

.detay-button {
  margin-bottom: 16px;
  padding: 8px 14px;
  background-color: var(--ana-renk);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

/* REFERANS MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.modal-content h3 {
  color: var(--ana-renk);
  margin-bottom: 10px;
}

.modal-content p {
  color: #444;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: var(--ana-renk);
}


/* KAYAN ANİMASYON */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ref-card {
    min-width: 250px;
    flex-shrink: 0;
  }
  .ref-card img {
    max-width: 180px;
    height: 120px;
  }
}

/* ANİMASYON */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #eee;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .project-grid,
  .hizmetler-grid {
    grid-template-columns: 1fr;
  }

  .about-box {
    text-align: center;
  }
}

/* FOOTER */
.footer {
  background-color: var(--ana-renk);
  color: white;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-column hr {
  border: none;
  height: 2px;
  background-color: white;
  margin: 10px 0 20px;
  width: 50px;
}

.footer-column p,
.footer-column li {
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-icons {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  margin-top: 80px;
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  font-size: 0.9rem;
}

.icon-box {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.icon-box:hover {
  transform: scale(1.1);
}

/* MARKA RENKLERİ */
.facebook {
  background-color: #3b5998;
}

.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.whatsapp {
  background-color: #25D366;
}

.map-container {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 10px;
}

/* AÇILIŞ LOADER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000f2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 1s ease;
}

.loader-logo {
  width: 300px;
  transition: all 1s ease-in-out;
  animation: logoEntry 2s ease forwards;
}

@keyframes logoEntry {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
  80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Animasyon sonrası sayfa içeriği yavaşça belirir */
body.loaded .fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

/* LOGO NAVBARA KAYARKEN */
.logo-animate {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.4);
  animation: moveToNavbar 1s forwards ease;
}

@keyframes moveToNavbar {
  to {
    top: 20px;
    left: 100px;
    transform: scale(1);
  }
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--ana-renk);
}