html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 3px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  /* Başlangıçta statik resim dursun */
  background-image: url("assets/bgnew1.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #000;
}

/* ÖNEMLİ: Video aktifken body resmini kaldırıyoruz ki video altta kalmasın */
body.video-mode {
  background-image: none !important;
}

#bg-video-wrapper {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block !important; /* Video kutusu her zaman açık kalmalı */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Mobilde akıcılık için optimize edilmiş filtreler */
  filter: brightness(1.1) contrast(1.1) blur(3px); 
  transform: scale(1.02) translateZ(0); 
  will-change: transform, filter; 
}

#bg-photo-wrapper {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: none; /* Sadece fotoğraf modunda açılacak */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.1) contrast(1.1) blur(3px);
}

/* Mod Yönetimi */
body.photo-mode #bg-photo-wrapper { display: block; }
body.photo-mode #bg-video-wrapper { display: none; }
body.video-mode #bg-photo-wrapper { display: none; }
body.video-mode #bg-video-wrapper { display: block; }

#intro-blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.4);
  /* 100px blur yerine 25px kullanarak GPU'yu rahatlattık */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none; /* Dokunmanın küreye geçmesi için şart */



  /* Katman sırası düzelsin */
/* bunlar #intro-blur-overlay’in içinde değil, ayrı selector olmalı */
.cyl-scene { position: relative; }
.cyl-ring { z-index: 1; }
.cyl-card { pointer-events: auto; }
.cyl-nav { z-index: 9999; pointer-events: auto; }

}

/* Sayfa açılır açılmaz blur aktif */
body.intro-active #intro-blur-overlay {
  opacity: 1;
}

/* Küre yaklaşırken blur kapansın */
body.intro-fadeout #intro-blur-overlay {
  opacity: 0;
}

/* SVG animasyonu başladığında (body.intro-active) blur açık olsun */
body.intro-active #intro-blur-overlay {
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: center;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: shine 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}
header.scrolled::before {
  content: none;
  animation: none;
}
header.scrolled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 255, 255, 0.3) 20%,
      rgba(0, 255, 255, 0.3) 25%,
      transparent 30%
    ),
    linear-gradient(
      90deg,
      transparent 40%,
      rgba(255, 0, 255, 0.3) 60%,
      rgba(255, 0, 255, 0.3) 65%,
      transparent 70%
    );
  background-size: 200% 100%;
  background-repeat: repeat-x;
  animation: neonStripes 10s linear infinite;
  filter: blur(1px);
  opacity: 0.6;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.header-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
  padding: 12px 40px;
  box-sizing: border-box;
}
.logo {
  max-height: 65px;
  transition: max-height 0.3s ease;
}
header.scrolled .logo {
  max-height: 50px;
}
.nav-buttons {
  display: flex;
  gap: 36px;
  margin-left: auto;
  align-items: center;
  white-space: nowrap;
}
.nav-buttons a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  display: inline-block;
}
header:not(.scrolled) .nav-buttons a {
  color: white;
}
.nav-buttons a:hover {
  opacity: 0.7;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
  padding: 5px 20px;
  z-index: 1001;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 95%;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  z-index: 999;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 40px;
  text-align: center;
  display: block;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(240, 240, 240, 0.5);
  transition: background 0.2s;
}
.mobile-menu a:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.content-section {
  min-height: 40vh;
  padding: 70px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  margin: 0 auto;
}
.content-section h2 {
  color: #fff;
  padding: 10px 30px;
  display: inline-block;
  margin: 0 auto 50px;
  letter-spacing: 1px;
}
.hero-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
  box-sizing: border-box;
}
canvas {
  position: relative;
  z-index: 1;
  max-width: 75%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
}
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    background-image: url("assets/mobile-bg.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 20px;
  }
  .header-inner {
    padding: 9px 10px;
    max-width: none;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
  }
  .logo-container {
    position: static;
    transform: none;
    z-index: 5;
  }
  .nav-buttons {
    display: none !important;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }
  header.scrolled .header-inner {
    justify-content: flex-start;
    padding: 1px 10px;
    width: 100%;
    min-height: 50px;
    height: 50px;
    align-items: center;
    box-sizing: border-box;
  }
  .header-logo {
    height: 50px !important;
    margin-left: -15px !important;
    margin-bottom: -10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: height 0.3s ease;
  }
  header.scrolled .header-logo {
    height: 40px !important;
    transition: height 0.3s ease;
  }
  header.scrolled .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header.scrolled .logo {
    max-height: 50px;
  }
  .hero-section {
    padding-top: 60px;
    min-height: 70vh;
  }
  .content-section {
    padding: 80px 15px;
  }

  canvas {
    max-width: 90%;
    max-height: 90vh;
  }
  .footer-col {
    max-width: 100% !important;
    flex: 1 1 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    padding: 20px 10px;
  }
  .contact-info p {
    text-align: center;
  }

  #scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
  }
  .map-link {
    width: 100%;
    height: 150px;
    margin: 15px auto 10px auto;
    border: 3px solid rgba(115, 111, 111, 0.7);
  }
  .map-link iframe {
    width: 100%;
    height: 100%;
    display: block;
  }
  .phone-info {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .phone-section .phone-number {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1.5px;
  }
  .phone-section p {
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .phone-sub-title {
    margin-top: 15px;
    margin-bottom: 25px;
  }
  .navigation-button {
    width: 90%;
    margin: 10px auto 0 auto;
    display: block;
  }
  .contact-info.office,
  .contact-info.depo {
    text-align: center;
  }
  .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .logo-container {
    position: static;
    transform: none;
    z-index: 5;
    margin: 0 auto;
  }
  header.scrolled .logo-container {
    margin: 0 auto;
  }
  .references-logo-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  .logo-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }
  .logo-item img {
    max-height: 50px;
    width: auto;
  }

  .cozumler-grid {
    flex-direction: column;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 5px;
  }
  footer {
    padding: 10px 0px;
  }
  footer .footer-logo {
    max-height: 40px;
  }
  footer .company-name {
    font-size: 0.55em;
  }
  footer::before {
    animation: neonStripes 10s linear infinite;
    background-size: 400% 100%;
  }

  #earth-canvas.sphere-center {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(5) !important;
    z-index: 999;
    transition: all 1.8s ease;
  }
  .contact-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .accordion-content p {
    font-size: 1em !important;
  }
}

.contact-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col {
  flex: 1;
  padding: 20px;
  border: 1px solid rgba(240, 240, 240, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info p {
  text-align: left;
  margin-bottom: 5px;
  font-size: 0.8em;
  line-height: 1.3;
  overflow: hidden;

  display: -webkit-box;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: normal;
  height: 5.2em;
  flex-shrink: 0;
}
.contact-info.office,
.contact-info.depo {
  display: flex;
  flex-direction: column;
}
.phone-info p {
  align-items: center;
}
.phone-info p a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: color 0.3s, text-decoration 0.3s;
}
.phone-info p a:hover {
  color: #b9b0b0;
  text-decoration: underline;
}
.phone-section {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 15px;
  border-radius: 8px;
}
.phone-section .phone-number {
  color: #ffffff;
  font-size: 1.5em;
  letter-spacing: 1px;
  display: block;
  margin: 5px 0;
  transition: color 0.3s;
}
.phone-section a.phone-number::before {
  content: "\260E\a0";
  margin-right: 8px;
  font-size: 1.1em;
  color: #fff;
}
.phone-info p a[href^="mailto"]::before {
  content: "\2709\a0";
  margin-right: 8px;
  font-size: 1.1em;
  color: #fff;
}
.phone-sub-title {
  color: #fff;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.map-link {
  display: flex;
  flex-direction: column;
  height: 100px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-grow: 1;
  flex-shrink: 0;
}
.map-link iframe {
  width: 100%;
  height: 100%;
}
.navigation-button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-top: 10px;
  background-color: none;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.navigation-button:hover {
  background-color: #7e7575;
}
.contact-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.6);
  color: #000;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
}
#scrollToTopBtn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}
.references-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
  justify-items: center;
  align-items: center;
}
.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.logo-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  opacity: 1;
}
.logo-item img {
  max-width: 90%;
  max-height: 80px;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s;
}
.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}
.logo-item img.logo-large {
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
}
/* Sadece yazı eklediğimiz kart: dikey hizala */
.logo-item--caption{
  flex-direction: column;
  gap: 8px;
  height: 120px;              /* yazı için biraz alan */
  text-decoration: none;
  color: inherit;
}

/* Link gibi görünmesin */
.logo-item--caption:visited{
  color: inherit;
}

/* Logo biraz küçülsün ki yazı sığsın */
.logo-item--caption img{
  max-height: 55px;
  width: auto;
}

/* Yazı stili */
.logo-item--caption .logo-caption{
  text-decoration: none !important;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.1;
  text-align: center;
}



/* Çözümler bölümü: boşluğu kısalt */
#cozumler.content-section{
  min-height: unset !important;     /* 100vh varsa iptal */
  height: auto !important;

  padding-top: 70px !important;     /* üst boşluk */
  padding-bottom: 100px !important;  /* alt boşluk */

  /* content-section flex ile ortalıyorsa: üstten başlat */
  justify-content: flex-start !important;
  align-items: stretch !important;
}


.cozumler-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}
.cozumler-item {
  flex: 1;
  min-width: 0;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  height: auto;
  display: flex;
  flex-direction: column;
}
.cozumler-baslik {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #fff;
}
.accordion-item {
  border-bottom: 1px solid #ccc;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.accordion-header:hover {
  color: #ccc;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding: 0 10px;
  box-sizing: border-box;
}
.accordion-item.active .accordion-header {
  color: antiquewhite;
  font-weight: 600;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 10px 10px 20px;
}
.toggle-icon {
  font-size: 0.8em;
  color: #fff;
  transition: transform 0.3s;
}
.accordion-item.active .toggle-icon {
  transform: rotate(180deg);
}
.hizmetler-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  width: fit-content;
}
.hizmetler-list li {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #fff;
  padding: 8px 0;
  transition: color 0.3s;
}
.hizmetler-list li::before {
  content: "•";
  color: #fff;
  font-size: 1.2em;
  line-height: 1;
  margin-right: 10px;
  position: relative;
  top: -1px;
}
.hizmetler-list li:hover {
  color: #ccc;
  cursor: default;
}
footer {
  position: relative;
  padding: 14px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background-color: transparent;
}
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px) brightness(120%);
  -webkit-backdrop-filter: blur(12px) brightness(120%);
  filter: none;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 255, 255, 0.3) 20%,
      rgba(0, 255, 255, 0.3) 25%,
      transparent 30%
    ),
    linear-gradient(
      90deg,
      transparent 40%,
      rgba(255, 0, 255, 0.3) 60%,
      rgba(255, 0, 255, 0.3) 65%,
      transparent 70%
    );
  background-size: 200% 100%;
  background-repeat: repeat-x;
  animation: neonStripes 10s linear infinite;
  filter: blur(1px);
  opacity: 0.6;
}
@keyframes neonStripes {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.footer-content {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  text-shadow: none;
}
.footer-logo {
  max-height: 30px;
  width: auto;
  vertical-align: middle;
}
.company-name {
  margin: 0;
  font-size: 0.65em;
  letter-spacing: 1px;
}

/* animation */
.hero-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 0;
  overflow: hidden;
}
.logo-3d-wrapper {
  position: relative;
  display: inline-block;
  max-width: min(80vw, 1000px);
}
body.intro-active {
  overflow: hidden;
}
body.intro-active .hero-section {
  min-height: 100vh;
  padding-top: 0;
}
#logo-svg [id^="letter-"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

#earth-canvas {
  position: absolute;
  /* Mobilde kaydırmayı engeller, sadece küreyi döndürür */
  touch-action: none; 
  left: 69.8%;
  top: 42.8%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 18.6%;
  aspect-ratio: 1 / 1;
  z-index: 2;
  cursor: grab;
  opacity: 0;
  
  /* MOBİL TIKLAMA OPTİMİZASYONU */
  pointer-events: none; /* Animasyon başlayana kadar tıklanamaz */
  -webkit-tap-highlight-color: transparent; /* S24 FE'de tıklama sırasındaki mavi kutuyu kaldırır */
  user-select: none; /* Parmağını basılı tutunca metin seçilmesini engeller */
  outline: none;

  transition: opacity 0.8s ease, transform 1.8s ease, left 1.8s ease, top 1.8s ease;
}

/* Küre göründüğünde tıklanabilir hale getirir */
#earth-canvas.sphere-visible {
  opacity: 1;
  pointer-events: auto !important; /* Tıklamayı kesin olarak aktif eder */
}
#earth-canvas.sphere-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(3);
  z-index: 999;
  transition: all 1.8s ease;
}
.content-section {
  min-height: 70vh;
  padding: 120px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
}
.content-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.content-section p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

#content-modal {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;       /* ÖNEMLİ: dikey ortala */

  padding: 16px;             /* ÖNEMLİ: üstten itmesin */
  box-sizing: border-box;

  overflow-y: auto;          /* içerik uzarsa sayfa içinde kaydır */
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  pointer-events: none;

  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 9999 !important;

  transition: opacity 0.6s ease, background 0.6s ease;
}

/* Modal iç kutu: ekrana sığ, ortada kal */
#content-modal .modal-glass {
  position: relative;
  width: min(900px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kutular yukarı itmesin */
.modal-media-box { margin: 0 auto !important; }
.modal-caption-box { margin: 0 auto !important; }
#content-modal.active {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.95);
}
.modal-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 1200px;
  background: #111;
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-bottom: 0;
}
.modal-content-wrapper img,
.modal-content-wrapper video {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
}
.close-button,
#close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  transition: color 0.2s;
  z-index: 10000;
}
.close-button:hover,
#close-modal:hover {
  color: #ff004c;
}

@keyframes mediaZoomIn {
  from {
    transform: scale(0.2);
    opacity: 0;
    filter: blur(10px);
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}
header {
  opacity: 0;
  pointer-events: none;
}
header.header-visible {
  opacity: 1;
  pointer-events: auto;
}
.header-logo {
  height: 55px;
  margin-right: 15px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: height 0.3s ease;
}

@keyframes headerLogoAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoFlyToHeader {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  70% {
    opacity: 0.5;
    transform: translate(var(--target-x), var(--target-y)) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(var(--target-x), var(--target-y)) scale(0);
  }
}

.header-logo-appear {
  animation: headerLogoAppear 1.2s ease-out forwards;
}
.logo-fly-out {
  animation: logoFlyToHeader 1.5s ease-in-out forwards;
  transform-origin: center center;
  pointer-events: none;
}
.media-zoom-in {
  animation: mediaZoomIn 0.8s ease-out forwards;
  transform-origin: center center;
}
.phone-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ===============================
   BELGELER - 3D CYLINDER CAROUSEL 
================================ */

/* Sertifikalar bölümü: boşluğu azalt */
#belgeler.content-section {
  min-height: unset !important; /* 100vh varsa iptal */
  height: auto !important;
  padding-top: 70px !important; /* yukarıdan boşluk */
  padding-bottom: 40px !important;

  /* content-section flex ile ortalıyorsa: üstten başlat */
  justify-content: flex-start !important;
  align-items: stretch !important;
}

/* Başlık aralığı */
#belgeler .certs-title {
  margin: 0 0 16px !important; /* alt boşluğu azalt */
}

/* Carousel üst boşluğu + sahne yüksekliği */
#belgeler .cyl-wrap {
  margin: 10px auto 0 !important; /* 30px -> 10px */
}

#belgeler .cyl-scene,
.cyl-scene {
  height: 520px !important;   /* masaüstü daha rahat */
  overflow: visible !important;
}
/* TETSED kutusu da çok aşağı itmesin */
#belgeler .tetsed-box {
  margin: 35px auto 25px !important; /* 70px auto 40px -> daha kompakt */
}

/* Mobil */
@media (max-width: 768px) {
  #belgeler.content-section {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  #belgeler .cyl-scene {
    height: 290px !important;
  }
}

.certs-title {
  position: relative;
  top: -25px; /* yukarı çıkarır -> -25 / -45 deneyebilirsin */
  margin-bottom: -10px; /* aşağıdaki carousel ile arayı da toparlar */
}

/* Wrapper */
.cyl-wrap {
  width: 100%;
  max-width: 100%;
  margin: 15px auto 0;
  padding: 0 20px;
}

/* 3D sahne */
.cyl-scene {
  width: 100%;
  height: 360px;
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}

/* Ring (dönen parça) */
.cyl-ring {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(0deg);
  will-change: transform;
  pointer-events: none; /* swipe/tıklamayı engellemesin */
}

/* Kartlar */
.cyl-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;

  width: 240px;
  height: 180px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  overflow: hidden;

  transform: translate(-50%, -50%);
  transition: filter 0.25s ease, opacity 0.25s ease;
  pointer-events: auto; /* kart tıklanabilir */
}

.cyl-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.cyl-card:hover {
  filter: brightness(1.08);
}

/* Öndeki kart vurgusu */
.cyl-card.is-front {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  filter: brightness(1.08);
}

/* 
   BUTONLAR (Desktop için)
 */
.cyl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;

  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;

  display: grid;
  place-items: center;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: auto;
}

.cyl-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

.cyl-nav.prev {
  left: 12px;
}
.cyl-nav.next {
  right: 12px;
}

@media (max-width: 1100px) {
  .cyl-nav.prev {
    left: 8px;
  }
  .cyl-nav.next {
    right: 8px;
  }
}

/* 
   MOBİL (buton yok, swipe var)
*/
@media (max-width: 768px) {
  .cyl-wrap {
    padding: 0 15px;
  }

  .cyl-scene {
    height: 360px;
    perspective: 1000px;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }

  .cyl-scene:active {
    cursor: grabbing;
  }

  .cyl-nav {
    display: none !important;
  }

  .cyl-card {
    width: 200px;
    height: 150px;
    padding: 10px;
  }
}

/* 
   MODAL - GÖRSEL KUTU + AÇIKLAMA KUTU
*/

/* Ortak genişlik kontrolü (ikisini aynı eksene kilitler) */
:root {
  --modalBoxW: min(900px, 88%);
  --modalBoxWMobile: min(560px, 94%);

  --modalMediaH: 440px;
  --modalMediaHMobile: 210px;
}

/* GÖRSEL KUTUSU */
.modal-media-box {
  width: var(--modalBoxW) !important;
  margin: 0 auto !important;   /* eskisi: 10px auto 0 */
  box-sizing: border-box;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* GÖRSEL KUTUSU */
.modal-media-box {
  width: var(--modalBoxW) !important;
  margin: 0 auto !important;   /* eskisi: 10px auto 0 */
  box-sizing: border-box;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* İçerik alanı */
#modal-media {
  width: 100%;
  max-height: 70vh;      /* 85vh yerine daha dengeli */
  height: auto;          /* sabit yükseklik olmasın */

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

#modal-media img,
#modal-media video,
#modal-media iframe {
  max-width: 100%;
  max-height: 70vh;      /* 85vh yerine */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* AÇIKLAMA KUTUSU */
.modal-caption-box {
  width: var(--modalBoxW) !important;
  margin: 0 auto !important;   /* eskisi: 15px auto 0 */
  box-sizing: border-box;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  background: rgba(165, 17, 17, 0.267);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobil */
@media (max-width: 768px) {
  .modal-media-box,
  .modal-caption-box {
    width: var(--modalBoxWMobile) !important;
  }

  #modal-media {
    max-height: 48vh;   /* daha stabil */
  }

  #modal-media img,
  #modal-media video,
  #modal-media iframe {
    max-height: 48vh;
  }

  #modal-caption {
    font-size: 14px;
  }
}
/*Tetsed kutusu*/

.tetsed-box{
  display:flex;
  justify-content:center;
  max-width:500px;
  margin:70px auto 40px;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background: rgba(185,181,181,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tetsed-line{
  display:flex;
  align-items:center;
  gap:12px;            /* yazı-logo arası boşluk */
  text-align:center;
  color:#fff;
}

.tetsed-inline-logo{
  height:36px;         /* logo boyu */
  width:auto;
  display:block;
  border-radius:3px;   
}

.member{
  display: inline-block;
  font-family: "Dancing Script", "Segoe Script", "Brush Script MT", cursive;
  font-size: 20px;
  font-weight: 700;

  font-style: italic;                 /* eğik */
  transform: skewX(-12deg) rotate(-2deg); /* el yazısı eğimi gibi */
  letter-spacing: 0.2px;
  line-height: 1;
}


/* ===============================
   ABSEN DISTRIBUTOR HIGHLIGHT
================================ */

.absen-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  max-width: 520px;
  margin: 0 auto 40px auto;
  padding: 16px 22px;

  border: 1px solid rgba(255, 255, 255, 0.103);
  border-radius: 14px;
  background: rgba(138, 128, 128, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  text-align: center;
}

.absen-logo {
  height: 42px;
  width: auto;
}

.absen-text {
  color: #fff;
  line-height: 1.2;
}

.absen-text strong {
  font-size: 1.2em;
  letter-spacing: 1px;
}

.absen-text span {
  font-size: 0.85em;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Mobil uyum */
@media (max-width: 768px) {
  .absen-highlight {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .absen-logo {
    height: 38px;
  }
}
/* style.css dosyasının en altına ekle */

/* Video panelindeki ses butonunu ve ses çubuğunu tamamen yok eder */
video::-webkit-media-controls-volume-control-container,
video::-webkit-media-controls-mute-button {
    display: none !important;
}

/* Diğer kontrol elemanlarının yerleşimini bozmadan sadece sesi hedef alır */
video::-internal-media-controls-volume-control-container {
    display: none !important;
}

/* Sertifikalar - kırpılma fix */
#belgeler .cyl-scene{
  height: clamp(460px, 62vh, 660px) !important;
  overflow: visible !important;
}

@media (max-width: 768px){
  #belgeler .cyl-scene{
    height: clamp(380px, 58vh, 560px) !important;
    overflow: visible !important;
  }
}

/* Sertifikalar - resize sonrası kırpılma fix */
.cyl-scene{
  height: clamp(420px, 60vh, 560px) !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .cyl-scene {
    height: clamp(380px, 58vh, 560px);
    overflow: visible;
  }
}

/* =========================
   MODAL - KESİLME FIX (GARANTİ)
   ========================= */

/* Modal overlay ortada dursun */
#content-modal{
  align-items: center !important;                 /* eskisi flex-start idi */
  padding: 16px !important;                       /* eskisi 40px 0 80px */
}

/* İç cam kutu: ekrana sığ, flex kolon */
#content-modal .modal-glass{
  width: min(920px, 92vw);
  max-height: 92vh;                               /* ekranı aşma */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Kutular üstten itmesin */
#content-modal .modal-media-box,
#content-modal .modal-caption-box{
  margin: 0 auto !important;                      /* eskisi 10px/15px ile aşağı itiyordu */
}

/* Medya alanı: sabit yükseklik yok, kalan alanı alsın */
#content-modal #modal-media{
  height: auto !important;                        /* 85vh'i iptal */
  max-height: none !important;
  flex: 1 1 auto;                                 /* büyüsün/küçülsün */
  min-height: 0;                                  /* ÖNEMLİ: flex içinde taşma fix */
  overflow: auto !important;                      /* gerekirse içeride kaydır */
  -webkit-overflow-scrolling: touch;
  background: #000;
  border-radius: 12px;
}

/* Görsel/video: container'a sığ */
#content-modal #modal-media img,
#content-modal #modal-media video,
#content-modal #modal-media iframe{
  max-width: 100% !important;
  max-height: 72vh !important;   /* BELGE burada küçülür */
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Mobilde de sabit 210px'i iptal et */
/* Mobilde biraz daha küçük */
@media (max-width: 768px){
  #content-modal .modal-glass{
    width: min(94vw, 560px) !important;
    max-height: 86vh !important;
  }
  #content-modal #modal-media{
    max-height: 62vh !important;
  }
  #content-modal #modal-media img,
  #content-modal #modal-media video,
  #content-modal #modal-media iframe{
    max-height: 62vh !important;
  }
}
/*

Absen Distiribütör / Çözüm Ortağı için eklenen logo yazı ve arka plan kodlarının değişiklik yapmak için direkt class üzerinden değil index.html' e 
verilen kod bu kodda aşağıda yer alan diğer style kısımmlarından düzeltilir.

.-box 

.absen-logo {
  height: 42px;
  width: auto;
}

.absen-text {
  color: #fff;
  line-height: 1.2;
}

.absen-text strong {
  font-size: 1.2em;
  letter-spacing: 1px;
}

.absen-logo {
  height: 42px;
  width: auto;
}
  .absen-logo {
  height: 42px;
  width: auto;
}

.absen-text strong {
  font-size: 1.2em;
  letter-spacing: 1px;
}


