/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: #000;
  color: #f0f0f0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}


body.light-mode {
  background-color: #fff;
  color: #333;
}

body.light-mode::before {
  background-color: #fff;
  filter: grayscale(100%) brightness(1.1);
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* GİRİŞ EKRANI */
.intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  color: #fff;
  text-align: center;
  padding: 2rem;
  animation: fadeInDark 1s ease-in-out;
}

body.light-mode .intro-overlay {
  background: rgba(255, 255, 255, 0.9);
  color: #222;
}

.intro-avatar {
  width: 180px;
  aspect-ratio: 1 / 1; /* Genişlik ve yüksekliğin orantısını sabitler */
  border-radius: 50%;
  margin-bottom: 3em; 
  border: 4px solid #fff;
  object-fit: cover;
}



body.light-mode .intro-avatar {
  border-color: #000;
}

.name {
  font-size: 1.8em;
  margin-bottom: 2em;
}


.role {
  font-size: 1.2em;
  margin-bottom: 1em;
  font-weight: 300;
}

.hint {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 1em;
}

.typewriter-text {
  font-size: 1em;
  max-width: 400px;
  font-style: italic;
  color: #f0f0f0;
}

body.light-mode .typewriter-text {
  color: #333;
}

/* NAVİGASYON */
#globalNav {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* yuvarlak */
  border: none;
  font-size: 1.2em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

body.light-mode .nav-icon-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

body.light-mode .nav-icon-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* STEP PANEL */
.step-panel {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
}

.step-panel.visible {
  display: flex;
  animation: fadeSlideUp 0.9s ease-out forwards;
}


body.light-mode .step-panel {
  background: rgba(255, 255, 255, 0.3);
  color: #222;
}

.step-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 20px;
}

.step-desc {
  font-size: 1em;
  color: #ddd;
  max-width: 600px;
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.6;
}

body.light-mode .step-title,
body.light-mode .subtitle,
body.light-mode .step-desc {
  color: #333;
}

/* STEP BUTTONS */
.step-button {
  display: block;
  width: 240px;
  padding: 12px 28px;
  margin: 8px auto;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(224, 177, 0, 0.3);
  color: #fff;
  border: 1px solid rgba(224, 177, 0, 0.5);
}

.step-button:hover {
  background: rgba(224, 177, 0, 0.6);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(224, 177, 0, 0.4);
}

body.light-mode .step-button {
  background: rgba(140, 140, 140, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #111;
}

body.light-mode .step-button:hover {
  background: rgba(0, 0, 0, 0.22);
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FADE-IN ANİMASYON */
@keyframes fadeInDark {
  0% { opacity: 0; transform: scale(1.03); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.fade-in {
  animation: fadeInDark 0.8s ease forwards;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(30, 30, 30, 0.8); /* daha opak */
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 20px;
  max-width: 720px;
  width: 90%;
  color: #f0f0f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: atmSlideUp 0.6s ease-out;
  transform-origin: bottom center;
 
}


body.light-mode .modal {
  background-color: rgba(255, 255, 255, 0.7);
}

body.light-mode .modal-content {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  color: #222;
}

/* CLOSE BUTTON */
.modal-content .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
  align-self: flex-end;
}

.modal-content .close:hover {
  color: #fff;
}

body.light-mode .modal-content .close {
  color: #555;
}

body.light-mode .modal-content .close:hover {
  color: #000;
}

/* MODAL BUTTONS */
.modal-link-button,
.modal-link-button.small {
  display: block;
  font-size: 0.85em;
  padding: 8px 16px;
  margin: 6px auto;
  width: 90%;
  max-width: 320px;
  border-radius: 10px;
  text-align: center;
  background: rgba(224, 177, 0, 0.3);
  border: 1px solid rgba(224, 177, 0, 0.5);
  color: #fff;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(224, 177, 0, 0.2);
  text-decoration: none;
}

.modal-link-button:hover,
.modal-link-button.small:hover {
  background: rgba(224, 177, 0, 0.7);
  transform: scale(1.05);
  text-decoration: none;
}

body.light-mode .modal-link-button,
body.light-mode .modal-link-button.small {
  background: rgba(140, 140, 140, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #111;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-link-button:hover,
body.light-mode .modal-link-button.small:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
  transform: scale(1.03);
}


@keyframes atmSlideUp {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.continue-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3.5em; /* <-- daha büyük ok */
  cursor: pointer;
  margin-top: 80px; /* <-- daha aşağıda durur */
  animation: bounceDown 2s infinite;
  transition: transform 0.2s ease;
}

.continue-btn:hover {
  transform: scale(1.2);
}

body.light-mode .continue-btn {
  color: #333;
}

/* Zıplama animasyonu */
@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes introSlideOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
  }
}

.intro-overlay.exit {
  animation: introSlideOutUp 0.8s ease forwards;
  pointer-events: none;
}












/* === Sadece Personal Projects Modal için geçerli === */
.project-card {
  position: relative;
  width: 90%;
  max-width: 360px;
  margin: 8px auto;
  padding: 6px;
  border: 1px solid rgba(224, 177, 0, 0.4);
  border-radius: 16px;
  background: rgba(224, 177, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.project-card:hover {
  transform: scale(1.03);
  background: rgba(224, 177, 0, 0.35);
}

.project-title {
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #fff;
}

.project-hover-content {
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  overflow: hidden;
}

.project-card:hover .project-hover-content {
  opacity: 1;
  max-height: 300px;
}

.project-hover-content p {
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #f0f0f0;
  line-height: 1.5;
}

.project-images {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-images img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.project-images img:hover {
  transform: scale(1.05);
}

/* Light Mode Desteği */
body.light-mode .project-card {
  background: rgba(140, 140, 140, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .project-card:hover {
  background: rgba(0, 0, 0, 0.12);
}

body.light-mode .project-title,
body.light-mode .project-hover-content p {
  color: #111;
}

body.light-mode .project-images img {
  border-color: #000;
}








.modal-subtitle {
  font-size: 1.1em;
  font-weight: normal;
  margin-bottom: 20px;
  color: #ccc;
  font-family: Georgia, serif;
}

body.light-mode .modal-subtitle {
  color: #333;
}

.project-card.hover-bubbles {
  position: relative;
  background: rgba(224, 177, 0, 0.15);
  border: 1px solid rgba(224, 177, 0, 0.3);
  border-radius: 20px;
  padding: 20px;
  margin: 24px auto;
  max-width: 360px;
  width: 90%;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.project-title {
  font-weight: bold;
  color: #fff;
  font-size: 1.05em;
  text-decoration: none;
}

.project-desc {
  font-size: 0.85em;
  color: #ccc;
  margin-top: 6px;
}


.project-card:hover .bubble {
  opacity: 0.5;
  transform: scale(1.1);
}

/* Farklı konumlar */
.b1 { top: -20px; left: -30px; }
.b2 { top: 0; right: -40px; }
.b3 { bottom: -25px; left: 20%; }
.b4 { top: 10%; left: 70%; }
.b5 { bottom: -20px; right: -30px; }

body.light-mode .bubble {
  opacity: 0.1;
  filter: blur(1.2px);
}

body.light-mode .project-title,
body.light-mode .project-desc {
  color: #111;
}



/* Farklı pozisyonlar - kutunun dışında */
.pos-1 { top: -60px; left: -80px; }
.pos-2 { top: 20px; right: -90px; }

/* Hover olduğunda görünürlük */
.project-card:hover + .bubble-group .floating-bubble {
  opacity: 0.25;
  transform: scale(1.2);
}


#global-bubbles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  display: none;
}

.bubble-float {
  position: absolute;
  width: 200px; 
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  opacity: 0.3 !important;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow:
    inset -15px -15px 40px rgba(0, 0, 0, 0.6), 
    inset 15px 15px 40px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0,0,0,0.5);
}



body.light-mode .bubble-float {
  opacity: 0.8 !important;
}





.intro-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.8); /* Daha net ve parlak görünüm */
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); 
  z-index: 10;
}



/* HOVER anında da yazılar siyah kalsın (light mode) */
body.light-mode .project-card:hover .project-title,
body.light-mode .project-card:hover .project-desc {
  color: #000 !important;
}


button[title="Back"],
button[title="Forward"],
button[title="Restart"] {
  display: none !important;
}



/* Modal içeriği otomatik olarak içeriğe göre şekillensin */
.auto-img-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
}





/* === RESUME MODAL AYARLARI === */
#resumeModal .modal-content {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* Modal container artık kaydırılabilir */
  overflow-y: auto; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-content {
  max-width: 800px;
  width: 100%;
  margin: auto;         /* İçerik küçükse merkezde kalır */
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.8) !important;
  color: #fff;
  /* İçerik 90vh'yi aşarsa kaydırılabilir olur */
  max-height: 90vh;      
  overflow-y: auto;
}

/* Light mod: %80 opak beyaz arka plan, yazılar siyah */
body.light-mode .resume-content {
  background-color: rgba(255, 255, 255, 0.8) !important; /* !important ekleyin */
  color: #000;
}


.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  transform: scale(0.98);
  transform-origin: center center;
}

/* Çarpı işareti görünür kalsın */
#resumeModal .close {
  position: fixed; /* Buton artık viewport'a sabitleniyor */
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: #fff !important;
  z-index: 10000; /* Yüksek z-index ile her zaman üstte kalır */
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: background 0.3s ease, transform 0.2s ease;
}



#resumeModal .close:hover {
  background: rgba(255,255,255,0.8);
  color: #000 !important;
  transform: scale(1.1);
}


#resumeModal .modal-content {
  position: relative; /* close'a referans noktası olur */
}

/* Işık modunda da aynı kalsın */
body.light-mode #resumeModal .close {
  color: #000 !important;
  background: rgba(255, 255, 255, 0.9);
}





@media (max-width: 768px) {
  #resumeModal .modal-content {
    width: 100vw;
    height: 95vh;
    margin: 2.5vh auto;
    padding: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
    overflow: auto; /* "hidden" yerine "auto" yapıldı */
    display: flex;
    flex-direction: column; /* İçerik dikeyde kaydırılabilir olması için */
    justify-content: flex-start; /* İsteğe bağlı, üstten başlatır */
    align-items: center;
  }
}


  .pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1);
    transform-origin: center center;
    pointer-events: auto;
  }

#resumeModal .pdf-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  z-index: 10;
  cursor: pointer;
  line-height: 1;
  font-weight: normal;
  transition: opacity 0.2s ease;
}

#resumeModal .pdf-close:hover {
  opacity: 0.6;
}





}


@keyframes floatLoop {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}


@media (max-width: 768px) {
  .bubble-float {
    animation: floatLoop 6s ease-in-out infinite;
  }
}

#mobilePdfFullscreen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#fullscreenPdfFrame {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

#closeFullscreenPdf {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 26px;
  color: black; /* ✅ siyah görünür */
  background: rgba(255, 255, 255, 0.85); /* ✅ açık zemin */
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Modal açıldığında arka planın kaydırılmasını engelle */
body.modal-open {
  overflow: hidden;
}

.publication-item {
  margin: 0 auto 20px; /* Üst boşluk sıfır, alt boşluk 20px; yatayda otomatik */
  max-width: 800px;     /* İsteğe bağlı: maksimum genişlik */
  text-align: center;   /* İçeriğin ortalanması */
}

.publication-description {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  text-align: center;   /* Yazının ortalanması */
  line-height: 1.4;
}



#pubModal .modal-content {
  max-height: 90vh;  /* Modal içeriği ekranın %90'ı kadar yüksekliği geçerse scroll oluşur */
  overflow-y: auto;  /* Yalnızca dikey kaydırma aktif */
}




