* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Anton', 'Impact', 'Arial Black', sans-serif;
}

body {
  background-color: #1a0508;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  color: #fff;
  transition: background-color 0.5s ease;
}

/* ========================================================
   ARKAPLAN YILDIZ EFEKTİ (P5 STARS)
======================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  
  /* --- ESKİ NOKTALI ARKA PLAN (YORUM SATIRI) --- 
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 38%, black 82%);
          mask-image: radial-gradient(ellipse at center, transparent 38%, black 82%);
  ------------------------------------------------ */

  /* --- YENİ PERSONA 5 YILDIZLI ARKA PLAN --- */
  background-image: url('figures/prsona5_stars.jpg');
  background-size: cover;
  background-position: center;
  
  /* JS'den gelen değişen arkaplan renklerinin yıldızlarla harmanlanması için: */
  opacity: 0.35; 
  mix-blend-mode: screen; 
  
  pointer-events: none;
  z-index: -1;
}

/* --- Müzik Arayüzü --- */
.music-player-ui {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 100;
}

.audio-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 100;
}

.audio-toggle:hover {
  transform: scale(1.1);
}

.track-info {
  position: fixed;
  top: 20px;
  right: 80px; 
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 15px;
  font-size: 1.2rem;
  white-space: nowrap;
  z-index: 100;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.screen.active {
  display: block; 
}

/* ========================================================
   ANA MENÜ (VELVET ROOM & P5 UI) 
======================================================== */
#screen-main {
  background-image: url('figures/velvet_room.jpeg'); 
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.velvet-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 30, 0.4); 
  z-index: 1;
}

.p5-choices-container {
  position: absolute;
  top: 20%;
  right: 5%;
  display: none; 
  flex-direction: column;
  gap: 25px;
  align-items: flex-end;
  z-index: 30;
}

.p5-choice-btn {
  background-color: #000; 
  color: #fff;
  border: 3px solid #fff; 
  padding: 15px 40px;
  font-size: 1.6rem;
  cursor: pointer;
  transform: skewX(-15deg); 
  box-shadow: 8px 8px 0px #122594; 
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.p5-choice-btn:hover {
  background-color: #081d8c; 
  color: #fff;
  border-color: #fff;
  transform: skewX(-15deg) scale(1.05) translateX(-10px);
  box-shadow: -8px 8px 0px #000; 
}

.p5-choice-text {
  display: inline-block;
  transform: skewX(15deg); 
  font-weight: bold;
}

.dialogue-section {
  position: absolute;
  bottom: 10px;
  left: 2%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 10;
  width: 90%;
}

.dialogue-scene {
  width: 95%;
  max-width: 1100px;
  height: auto;
  display: block;
  cursor: pointer;
  filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.dialogue-scene:hover {
  transform: scale(1.01);
}

/* ========================================================
   DİĞER EKRANLAR (GTK, SUBSCRIPTION, QUIT)
======================================================== */
#screen-gtk.active {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 5%;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 8px 18px;
  font-size: 1rem;
}

.back-btn:hover {
  background-color: #fff;
  color: #000;
}

#screen-subscription.active {
  display: block;
  position: relative;
  padding: 0;
}

.subscription-dialogue {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.subscribe-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  max-width: 700px;
  width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.subscribe-actions.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

#screen-quit.active {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 5%;
  position: relative;
}

.quit-box {
  max-width: 560px;
  border: 4px solid #fff;
  padding: 40px;
  background-color: #141014;
  box-shadow: 10px 10px 0px #e60012;
}

/* --- "theworld" easter egg --- */
body.time-stop-invert {
  filter: invert(1) hue-rotate(180deg);
  transition: filter 0.12s ease-out;
}

body.time-stop-invert *:not(.jojo-text):not(.btn-troll-yes) {
  animation-play-state: paused !important;
  transition: none !important;
  pointer-events: none !important;
}

body.time-stop-invert .btn-troll-yes {
  transition: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.jojo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 2rem;
  color: #ffe600;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0 0 22px rgba(255, 230, 0, 0.85);
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.jojo-text.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.quit-box h2 {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 2.2rem;
  color: #e60012;
  margin-bottom: 20px;
}

.quit-box p {
  line-height: 1.6;
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 1.1rem;
}

.fake-subscribe-btn {
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 12px 32px;
  background-color: #e60012;
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-family: 'Anton', 'Impact', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fake-subscribe-btn:hover {
  background-color: #fff;
  color: #e60012;
}

.exes-note {
  font-style: italic;
  color: #ccc;
  font-size: 0.95rem;
}

.quit-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 26px;
}

.quit-buttons button {
  padding: 10px 26px;
  border: 2px solid #fff;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.quit-buttons button:hover {
  background-color: #fff;
  color: #000;
}

.btn-troll-yes {
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* ========================================================
   ÇİÇEK MENÜ (BEYAZ ÇERÇEVELİ, YARIM OKLU)
======================================================== */
.persona-container {
  position: relative; 
  display: flex;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  gap: 50px;
  padding-left: 360px; 
  z-index: 2;
}

.menu-container {
  position: fixed; 
  bottom: 0;
  left: 0;
  width: 380px;
  height: 380px;
  z-index: 100;
}

.avatar-img {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: 220px; 
  max-height: 220px;
  object-fit: contain;
  z-index: 20; 
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none; 
}

.menu-container:hover .avatar-img {
  transform: scale(1.05);
}

.persona-menu {
  position: absolute;
  bottom: 130px; 
  left: 130px;
  width: 0;
  height: 0;
  z-index: 10; 
}

.menu-item {
  --angle: 0deg;
  --radius: 20px; 
  position: absolute;
  left: 0;
  bottom: -30px; 
  width: 225px;
  height: 60px;
  background-color: #000; 
  color: #fff;
  border: 3px solid #fff; 
  border-left: none; 
  padding: 0 22px 0 15px; 
  font-size:  1.35rem;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transform-origin: 0% 50%; 
  transform: rotate(var(--angle)) translateX(var(--radius));
  filter: drop-shadow(6px 6px 0px #e60012);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item::before {
  content: "";
  position: absolute;
  left: -20px; 
  top: -3px; 
  bottom: -3px; 
  width: 20px;
  background-color: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.menu-item::after {
  content: "";
  position: absolute;
  left: -15px; 
  top: 0; 
  bottom: 0; 
  width: 15px;
  background-color: #000;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: background-color 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inverted-letter {
  background-color: #fff;
  color: #000;
  padding: 0 4px;
  margin: 0 2px;
  display: inline-block;
  transform: scale(1.1); 
  transition: all 0.2s ease;
  font-style: normal;
}

.persona-menu .menu-item:nth-child(1) { --angle: -5deg; }
.persona-menu .menu-item:nth-child(2) { --angle: -25deg; }
.persona-menu .menu-item:nth-child(3) { --angle: -45deg; }
.persona-menu .menu-item:nth-child(4) { --angle: -65deg; }
.persona-menu .menu-item:nth-child(5) { --angle: -85deg; }
.persona-menu .menu-item:nth-child(6) { --angle: -105deg; }

.menu-container:hover .menu-item {
  opacity: 1;
  visibility: visible;
  --radius: 135px; 
  transform: rotate(var(--angle)) translateX(var(--radius));
}

.menu-item:hover {
  background-color: #e60012; 
  --radius: 150px; 
  transform: rotate(var(--angle)) translateX(var(--radius)) scale(1.1);
  filter: drop-shadow(-6px 6px 0px #000); 
  z-index: 30; 
}

.menu-item:hover::after {
  background-color: #e60012;
}

.menu-item:hover .inverted-letter {
  background-color: #000;
  color: #fff;
  box-shadow: 2px 2px 0px #fff;
}
/* --- Sağ Bilgi Kutusu --- */
.content-panel {
  flex: 1;
  border: 4px solid #fff;
  transform: skewX(-5deg);
  box-shadow: 10px 10px 0px #e60012;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.section-content {
  display: none;
  font-family: Arial, sans-serif;
  padding: 30px;
  min-height: 400px;
  box-sizing: border-box;
  background-color: #111;
  font-size:   1.3rem;
}

.section-content.active {
  display: block;
}

#system.active {
  display: flex;
  flex-direction: column;
}
.contact-block {
  margin-top: auto; 
  padding-top: 35px;
  border-top: 2px dashed #444; 
}

.stats-logos {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.stats-logos .uni-logo {
  height: 75px !important; 
  width: auto;
  filter: drop-shadow(2px 2px 0px #e60012);
}

.logo-badge { display: none; }

.section-content h2 {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 2.5rem;
  color: #e60012;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 14px;
}

.section-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 130px;
  max-width: 40%;
  height: 3px;
  background-color: #fff;
}

.section-content h3, .section-content h4 {
  margin-top: 15px;
  color: #fff;
  font-size: 1.3rem;
}

.section-content p {
  margin-top: 6px;
  line-height: 1.6;
  font-size:   1.3rem;
}

.skills-list {
  margin-left: 20px;
  margin-top: 10px;
}

.skills-list li {
  margin-bottom: 10px;
  line-height:  1.3;
  font-size: 1.1rem;
}

hr {
  margin: 15px 0;
  border-color: #333;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.stats-header .portrait {
  width: 130px !important;
  height: 130px !important;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 6px 6px 0px #e60012;
  flex-shrink: 0;
}

.project-card {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #333;
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  color: #fff;
  font-size: 1.3rem;
}

.project-card .date {
  color: #e60012;
  font-size: 0.9rem;
  white-space: nowrap;
}

.project-card .org {
  color: #bbb;
  font-style: italic;
  margin-top: 3px;
  font-size: 1.05rem;
}

#system a {
  color: #e60012;
  text-decoration: none;
  font-weight: bold;
}

#system a:hover {
  text-decoration: underline;
}

/* --- Çift Taraflı Achievements / Certs Kartı --- */
.quest-card {
  perspective: 1000px;
  width: 100%;
  min-height: 550px; 
}

.quest-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 550px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.quest-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.quest-card-front, .quest-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  background-color: #111; 
}

.quest-card-back {
  transform: rotateY(180deg);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #fff;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.card-header-flex h2 {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.card-header-flex h2::after {
  display: none;
}

.flip-btn {
  background-color: #e60012;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 4px 4px 0px #000;
}

.flip-btn:hover {
  background-color: #fff;
  color: #e60012;
  box-shadow: 4px 4px 0px #e60012;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  margin-top: 15px;
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px solid #333;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  transition: all 0.2s ease;
}

.cert-thumb:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: #e60012;
  box-shadow: 6px 10px 0px #e60012;
}

/* Tam Ekran Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal.active {
  display: flex;
  cursor: pointer;
}

.modal img {
  max-width: 85%;
  max-height: 85%;
  border: 4px solid #fff;
  box-shadow: 0px 0px 30px #e60012;
}

.modal-close {
  color: #fff;
  font-size: 2rem;
  margin-top: 20px;
  font-family: 'Anton', 'Impact';
  letter-spacing: 2px;
}

/* ============================================================
   RESPONSIVE / FARKLI CİHAZ-TARAYICI UYUMU
   ============================================================ */
img { max-width: 100%; height: auto; }

@media (max-width: 1024px) {
  html { font-size: 15px; }
}
@media (max-width: 640px) {
  html { font-size: 13px; }
}
@media (max-width: 380px) {
  html { font-size: 11.5px; }
}

@media (max-width: 900px) {
  #screen-gtk.active {
    flex-direction: column;
    padding: 90px 5% 40px;
  }
  .persona-container {
    flex-direction: column;
    padding-left: 0;
    max-width: 100%;
  }
  .content-panel {
    transform: none; 
    box-shadow: 6px 6px 0px #e60012;
  }
  #screen-main.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 4% 12px;
  }
  .p5-choices-container {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    align-items: stretch;
    margin-bottom: 15px;
  }
  .p5-choice-btn {
    width: 100%;
    padding: 14px 22px;
    font-size: 1.25rem;
    transform: skewX(-10deg);
  }
  .p5-choice-btn:hover {
    transform: skewX(-10deg) scale(1.02);
  }
  .dialogue-section {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
  }
}

@media (max-width: 900px), (pointer: coarse) {
  .menu-container {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 25px;
    z-index: 2;
  }
  .avatar-img { display: none; }
  .persona-menu {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .menu-item,
  .menu-container:hover .menu-item,
  .menu-item:hover {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    margin-left: 20px; 
  }
  .menu-item:hover {
    filter: drop-shadow(-4px 4px 0px #000);
  }
}

@media (max-width: 640px) {
  .back-btn { padding: 6px 14px; font-size: 0.9rem; }
  .audio-toggle { width: 38px; height: 38px; font-size: 1.1rem; }
  .track-info {
    right: 64px;
    max-width: 52vw;
    padding: 6px 10px;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .section-content { padding: 20px; }
  .stats-logos {
    position: static;
    justify-content: center;
    margin-bottom: 15px;
  }
  .stats-logos .uni-logo { height: 46px !important; }
  .stats-header {
    justify-content: center;
    text-align: center;
  }
  .quit-box, .subscribe-actions { padding-left: 5px; padding-right: 5px; }
  .quit-box { padding: 25px; }
  .jojo-text { font-size: 1.1rem; white-space: normal; width: 90%; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dialogue-section, .subscription-dialogue {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
  .dialogue-scene { min-width: 480px; width: auto; max-width: none; }
  .quest-card, .quest-card-inner { min-height: 760px; }
}

@media (max-width: 420px) {
  .cert-grid { grid-template-columns: 1fr; }
}