/* ===============================
   Google Fonts
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

/* ===============================
   Genel Temel Stiller
=============================== */
body {
  margin: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #eee;
  background-color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #f1683a;
  border-radius: 8px;
}

/* ===============================
   Carousel Yapısı
=============================== */
.carousel {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.carousel .list .item:not(:first-child) {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(5px);
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .list .item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
  z-index: 1;
}

.carousel .list .item .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1140px;
  color: #fff;
  text-shadow: 0 5px 10px #0004;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3;
}

.carousel .list .item .topic {
  color: #f1683a;
}


/* ===============================
   Thumbnail Görseller
   =============================== */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    opacity: 0.5;
    border-radius: 20px;
    transition: box-shadow 0.5s ease-in-out, opacity 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.07); /* çok ince cam çizgisi */
    background: rgba(255, 255, 255, 0.01); /* cam efekti için çok düşük opaklık */
    backdrop-filter: blur(1.5px); /* hafif buzlu görünüm */
    box-shadow:
        0 0 4px rgba(0, 255, 255, 0.05),
        0 0 8px rgba(0, 255, 255, 0.03),
        inset 0 0 2px rgba(255, 255, 255, 0.02);
}

.thumbnail .item:hover {
    opacity: 1;
    box-shadow: 0 0 5px #fff, 0 0 10px #f1683a, 0 0 20px #f1683a;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.thumbnail .item .content .description {
    font-weight: 300;
}

/* Hologram aktif thumbnail */
.thumbnail .item.active {
    transform: scale(1.12) translateZ(30px);
    opacity: 1 !important;
    backdrop-filter: blur(8px) saturate(160%);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,255,0.15);
    outline: 2px solid rgba(0,255,255,0.15);
    outline-offset: -4px;
    border-radius: 20px;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(0, 255, 255, 0.2),
        0 0 60px rgba(241, 104, 58, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.thumbnail .item.active::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        rgba(255,255,255,0) 0%,
        rgba(0,255,255,0.07) 45%,
        rgba(255,255,255,0.15) 50%,
        rgba(0,255,255,0.07) 55%,
        rgba(255,255,255,0) 100%
    );
    animation: hologramScan 3.5s linear infinite;
    pointer-events: none;
}

@keyframes hologramScan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.thumbnail .item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.05) 0,
        rgba(0, 255, 255, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    animation: shimmer 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}




/* ===============================
   Efektler
   =============================== */

/* Light Sweep */
.light-sweep {
  position: relative;
  overflow: hidden;
}
.light-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-30deg);
  animation: sweep 2s infinite;
}

@keyframes sweep {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Typewriter */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #fff;
  white-space: nowrap;
  animation: typing 2s steps(12), blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* Zaman Çubuğu */
.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #027185;
    left: 0;
    top: 0;
}
.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 5s linear 1 forwards;
}
@keyframes runningTime {
    from { width: 100%; }
    to { width: 0; }
}

/* ===============================
   Mobil Responsive
=============================== */
@media screen and (max-width: 678px) {
  .carousel .list .item .content {
    padding-right: 0;
    margin-bottom: 160px; /* Thumbnail ile çakışmayı önle */
  }

  .carousel .list .item .content .title {
    font-size: 30px;
  }

  .carousel .list .item .content .topic {
    font-size: 24px;
  }

  .carousel .list .item .buttons {
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: 35px;
  }

  .thumbnail {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 14px;
    gap: 10px;
    width: auto;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    justify-content: flex-start;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-radius: 16px;
    box-shadow:
      0 0 4px rgba(0, 255, 255, 0.1),
      0 0 12px rgba(0, 255, 255, 0.05);
    scroll-behavior: smooth;
  }

  .thumbnail::-webkit-scrollbar {
    display: none;
  }

  .thumbnail {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .thumbnail .item {
    flex: 0 0 auto;
    width: 100px;
    height: 150px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.07);
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.05);
  }

  .thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .thumbnail .item .content {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    font-size: 11px;
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 0 0 4px #000;
  }

  .thumbnail .item .content .title {
    font-size: 0.75em;
  }

  .thumbnail .item .content .description {
    font-size: 0.7em;
  }
}

/* Küçük telefonlar (iPhone SE gibi) */
@media screen and (max-width: 600px) {
  .thumbnail {
    padding: 10px 12px;
  }
}

/* Tablet ve küçük dizüstü */
@media screen and (min-width: 679px) and (max-width: 1024px) {
  .thumbnail {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
  }

  .thumbnail .item {
    width: calc(25% - 10px);
    height: 110px;
    opacity: 1;
  }

  .thumbnail .item img {
    border-radius: 12px;
  }

  .thumbnail .item .content {
    font-size: 12px;
    bottom: 6px;
    left: 6px;
    right: 6px;
    text-align: center;
  }

  .thumbnail .item .content .title {
    font-size: 0.8em;
  }

  .thumbnail .item .content .description {
    font-size: 0.7em;
  }
}


/* ===============================
   Bio Card (Neon 3D Etkili)
=============================== */
.bio-card {
  width: 90%;
  max-width: 300px;
  margin: 10px auto;
  padding: 14px;
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(140%);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 2;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 50px rgba(0, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.bio-card:hover,
.bio-card:focus-within,
.bio-card:has(:focus),
.bio-card.active-touch {
  transform: scale(1.15) rotateX(6deg) rotateY(-6deg);
  box-shadow:
    0 0 60px rgba(0, 255, 255, 0.5),
    0 0 100px rgba(0, 255, 255, 0.25),
    inset 0 0 60px rgba(0, 255, 255, 0.15);
  z-index: 99;
}

.bio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: shimmer 12s linear infinite;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.03) 0,
    rgba(0, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
}

/* İçerik */
.bio-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.name {
  font-size: 2em;
  margin-bottom: 5px;
  text-shadow: 0 0 5px #0ff;
}

.role {
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #f1683a;
}

.about {
  font-size: 1em;
  color: #eee;
  line-height: 1.5;
  padding: 0 10px;
  text-shadow: 0 0 3px rgba(0, 255, 255, 0.2);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.socials a {
  font-size: 1.5em;
  color: #0ff;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px #0ff;
}

@keyframes shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* ===============================
   Skill Bar Container
=============================== */
.bar-container {
  width: 100%;
  height: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(to right, rgba(0,255,255,0.08), rgba(0,255,255,0.02));
  box-shadow: inset 0 0 5px rgba(0,255,255,0.2);
  transform: perspective(300px) rotateX(6deg);
}

/* Filled Bar + Animasyon */
.bar.fill {
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  animation: growBar 1.8s ease-out forwards;
  background: linear-gradient(135deg, #00ffff, #f1683a);
  box-shadow:
    0 0 10px rgba(0,255,255,0.6),
    0 0 20px rgba(241,104,58,0.4),
    inset 0 0 4px rgba(0,255,255,0.3);
  transition: all 0.3s ease;
}

/* Bar Width + Delay */
.bar.html  { width: 50%; animation-delay: 0.2s; }
.bar.css   { width: 75%; animation-delay: 0.4s; }
.bar.js    { width: 60%; animation-delay: 0.6s; }
.bar.linux { width: 99%; animation-delay: 0.8s; }

@keyframes growBar {
  to { transform: scaleX(1); }
}

/* ===============================
   Skill Bar Label
=============================== */
.bar-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: lighten;

  /* Parlama Efekti */
  background: linear-gradient(
    120deg,
    rgba(0, 255, 255, 0.2),
    rgba(255, 255, 255, 0.9),
    rgba(241, 104, 58, 0.4)
  );
  background-size: 200%;
  background-position: 0 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  animation: flicker 2s infinite alternate, scanGlow 5s linear infinite;
  text-shadow:
    0 0 6px rgba(0,255,255,0.8),
    0 0 10px rgba(0,255,255,0.6),
    0 0 20px rgba(241,104,58,0.2);
}

@keyframes flicker {
  0%   { opacity: 0.9; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.04); }
  100% { opacity: 0.95; transform: scale(1); }
}

@keyframes scanGlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}


/* ===============================
   High-Resolution Bio Card Layout
=============================== */

/* Bilgisayarda sola yasla */
@media screen and (min-width: 1024px) {
  .bio-card {
    margin-left: -30px;
    margin-right: auto;
  }
}

/* Responsive Ölçekleme */
@media screen and (min-width: 1280px) {
  .bio-card { max-width: 420px; font-size: 14px; margin-top: 60px; }
}
@media screen and (min-width: 1920px) {
  .bio-card { max-width: 540px; font-size: 15px; margin-top: 80px; }
}
@media screen and (min-width: 2560px) {
  .bio-card { max-width: 620px; font-size: 16px; margin-top: 100px; }
}
@media screen and (min-width: 3840px) {
  .bio-card { max-width: 720px; font-size: 17px; margin-top: 130px; }
}
@media screen and (min-width: 5120px) {
  .bio-card { max-width: 840px; font-size: 18px; margin-top: 160px; }
}
@media screen and (min-width: 6016px) {
  .bio-card { max-width: 960px; font-size: 19px; margin-top: 180px; }
}
@media screen and (min-width: 7168px) {
  .bio-card { max-width: 1080px; font-size: 20px; margin-top: 200px; }
}
@media screen and (min-width: 7680px) {
  .bio-card { max-width: 1180px; font-size: 21px; margin-top: 220px; }
}
