/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cert-speed: 45s;
  --header-height: 4rem;
  --footer-height: 3.5rem;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #f5faff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 200px; /* Sabit menü yüksekliği kadar */
}

/* Mobilde logo, header ve sayaç sıkıştırması */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* logo + header yüksekliği */
  }
  .logo-link .site-logo {
    max-height: 70px; /* logo küçültüldü */
  }
  .video-wrapper {
    margin-top: 2rem; /* video ile header arası boşluk */
  }
  .overlay-info {
    padding: 0.3rem 0.5rem; /* kutu daraltıldı */
    max-width: 95%;
  }
  .counters {
    gap: 0.5rem; /* sayaçlar arası boşluk daraltıldı */
  }
  .counter .count {
    font-size: 1.2rem; /* rakamlar küçültüldü */
  }
  .counter p {
    font-size: 0.75rem; /* etiketler küçültüldü */
  }
  .quote {
    display: none; /* alıntı gizlendi */
  }
}

/* Sabit Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #e0f7fa;
  border-bottom: 2px solid #c0d4e9;
  padding: 1rem;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-link .site-logo {
  max-height: 140px;
  background: transparent;
  display: block;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #003a78;
  z-index: 1001;
}

/* Menü */
.nav-menu {
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav-menu ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-menu.open ul {
  display: flex;
}
.nav-menu ul li a {
  color: #003a78;
  text-decoration: none;
  font-weight: bold;
}
.nav-menu ul li a.active {
  text-decoration: underline;
}

/* Dil Seçici */
.lang-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  font-size: 0.9rem;
  font-weight: 600;
  background: #e0f7fa;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Video Alanı */
.video-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 1rem;
}
.main-video {
  max-width: 900px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.overlay-info {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.5rem;
  border-radius: 8px;
  max-width: 90%;
}
.counters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.counter {
  text-align: center;
  color: #003a78;
}
.counter .count {
  font-size: 2rem;
  font-weight: bold;
}
.counter p {
  font-size: 1rem;
}
.quote {
  font-style: italic;
  color: #004d60;
  font-size: 1.1rem;
}

/* Kayan Sertifikalar */
.cert-bar {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background: #ffffff;
  padding: 1rem 0;
}
.cert-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left var(--cert-speed) linear infinite;
}
.cert-marquee img {
  height: 120px;
  margin: 0 0.5rem;
  object-fit: contain;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sosyal Bar */
.social-bar {
  background: #f6f7fa;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  height: 52px;
  margin-top: 0.7rem;
  border-radius: 0 0 16px 16px;
}
.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(70,110,140,0.12);
  transition: box-shadow 0.15s, transform 0.14s;
}
.social-bar img {
  width: 22px;
  height: 22px;
}
.social-bar a:hover {
  box-shadow: 0 8px 32px rgba(20,60,120,0.16);
  transform: scale(1.12);
}
@media (max-width: 650px) {
  .social-bar { gap: 10px; height: 36px; }
  .social-bar a { width: 28px; height: 28px; }
  .social-bar img { width: 16px; height: 16px; }
}

/* Sayfa Başlıkları */
.page-title {
  display: block;
  color: #1d468b;
  background: #fff;
  margin: 0 auto 32px auto;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 18px 0 10px 0;
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 2px 14px rgba(60, 80, 150, 0.10);
  z-index: 2;
  position: relative;
  border: none;
}

/* Referans Kartları */
.references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}
.reference-card {
  background-color: #0a3d62;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #007bff;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease, transform 0.3s ease;
}
.reference-card.scroll-active {
  opacity: 1;
  transform: translateY(0);
}
.reference-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3);
  border-color: #ffffff;
}
.reference-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: #ffffff;
}
.reference-card p {
  margin: 8px 0;
  font-size: 16px;
  color: #ffffff;
}

/* Sertifika Sayfası Grid */
.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}
.certificate {
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
}
.certificate img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.certificate:hover img {
  transform: scale(1.05);
}

/* Galeri */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}
.gallery-item img {
  width: 100%;  
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem 0;
  background: #f5faff;
  color: #003a78;
  font-weight: bold;
  position: relative;
  margin-top: auto;
}

/* Animasyon */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.scroll-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive (diğer) */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-menu ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    right: 1rem;
    background: rgba(0,123,255,0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000;
  }
  .nav-menu.open ul { display: flex; }
  .nav-menu ul li a { color: #fff; }

  /* NOT: yukarıdaki sıkıştırma zaten uygulandı */
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  .cert-marquee {
    animation: none !important;
  }
}

/* İletişim Sayfası */
.contact-main-container {
  max-width: 900px;
  margin: 38px auto 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.08), 0 1.5px 6px 0 rgba(0,0,0,0.02);
  padding: 2.2rem 2.5rem;
  gap: 30px;
  align-items: center;
}
.contact-main-container form {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  margin: 0 auto;
}
.contact-main-container input,
.contact-main-container textarea {
  padding: 0.7em 0.9em;
  border-radius: 7px;
  border: 1px solid #b6c8e5;
  font-size: 1em;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #f7f9fc;
  box-shadow: 0 1px 4px 0 rgba(34,61,128,0.02);
}
.contact-main-container input:focus,
.contact-main-container textarea:focus {
  border-color: #2477db;
}
.contact-main-container button[type="submit"] {
  padding: 0.65em 1.6em;
  background: #1d468b;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1.08em;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 4px;
}
.contact-main-container button[type="submit"]:hover {
  background: #245599;
}
.contact-info-box {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 18px;
  background: #f7f9fa;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.04);
  padding: 1.7rem 1.3rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  align-items: flex-start;
}
.contact-info-box .contact-name {
  font-size: 1.24rem;
  font-weight: 700;
  color: #2349a4;
  letter-spacing: 0.5px;
  margin-bottom: 0.6em;
}
.contact-info-box p { margin: 0.1em 0; }
.contact-info-box strong { color: #245599; }
.social-icons {
  display: flex;
  gap: 10px;
  margin: 0.5em 0 0.1em 0;
}
social-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  border: 1.5px solid #e1e9f3;
}
social-icons a:hover {
  background: #e4ecf8;
  border-color: #a8b9d3;
}
.social-icons img {
  width: 20px;
  height: 20px;
  display: block;
}
@media (max-width: 900px) {
  .contact-main-container {
    padding: 1.4rem 0.5rem;
    gap: 21px;
  }
  .contact-main-container form,
  .contact-info-box { max-width: 99%; }
}
.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 18px 0 10px 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 6px rgba(0,0,0,0.03);
  margin-top: 18px;
}
.social-bar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  transition: transform 0.16s;
  border: 1.5px solid #e3eaf7;
}
.social-bar img:hover {
  transform: scale(1.11);
  box-shadow: 0 3px 12px rgba(30,80,180,0.12);
  border-color: #b3c5ed;
}
