:root {
  --terminal-bg: rgba(48, 10, 36, 0.85);
  --terminal-header: #484848;

  --code-keyword: #c678dd;
  --code-var: #e06c75;
  --code-bracket: #abb2bf;
  --code-bg: #1a1a1a;

  --git-line: #334155;
  --commit-green: #27c93f;

  --spotify-bg: rgba(30, 41, 59, 0.5);

  --accent-color: #2dd4bf;
  --accent: #2dd4bf;
  --text-white: #ffffff;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-border: #334155;
}

.terminal-window {
  width: 100%;
  max-width: 600px;
  margin: 1.25rem auto;
  background-color: var(--terminal-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  font-family: "Ubuntu Mono", "Consolas", monospace;
  box-sizing: border-box;
}

.terminal-header {
  background-color: var(--terminal-header);
  padding: 0.625rem 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.red {
  background-color: #ff5f56;
}
.yellow {
  background-color: #ffbd2e;
}
.green {
  background-color: #27c93f;
}

.terminal-title {
  color: #d1d1d1;
  font-size: 0.85rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.terminal-body {
  padding: 1.25rem;
  color: var(--text-white);
  font-size: 1rem;
  line-height: 1.5;
  min-height: auto;
  word-wrap: break-word;
  transition: height 0.3s ease;
}

#terminal-logs {
  margin-top: 15px;
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.reveal-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.log-item {
  display: block;
  margin-bottom: 2px;
}
.success {
  color: #27c93f;
}
.info {
  color: #2dd4bf;
}
.warning {
  color: #ffbd2e;
}

.user-prefix {
  color: var(--accent-color);
  font-weight: bold;
  white-space: nowrap;
}

#terminal-text {
  color: var(--text-white);
  margin-left: 0.25rem;
}

.cursor {
  display: inline-block;
  background-color: var(--text-white);
  width: 0.5rem;
  height: 1.2rem;
  vertical-align: middle;
  margin-left: 0.25rem;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.stack-container {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stack-header {
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.stack-main-title {
  font-family: "Ubuntu Mono", monospace;
  font-size: 1.8rem;
  color: var(--text-main);
  letter-spacing: -1px;
}

.code-keyword {
  color: var(--code-keyword);
}
.code-var {
  color: var(--code-var);
}
.code-bracket {
  color: var(--code-bracket);
}

.stack-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stack-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stack-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(45, 212, 191, 0.1);
}

.badge {
  background-color: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: 0.3s;
}

.stack-card:hover .badge {
  background-color: var(--accent);
  color: var(--bg-main);
}

.commit-timeline {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  position: relative;
}

.timeline-header {
  margin-bottom: 3rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

.timeline-main-title {
  font-family: "Ubuntu Mono", monospace;
  font-size: 1.6rem;
}

.timeline-area {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-area::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--git-line) 80%);
}

.commit-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.commit-card::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--bg-main);
  border: 3px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent);
}

.commit-card:hover {
  transform: translateX(10px);
  border-color: var(--accent);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.commit-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0;
}

.aciklama {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tarih {
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.8;
}

.commit-area {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--commit-green);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commit {
  font-family: "Ubuntu Mono", monospace;
  color: var(--commit-green);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.commit-index {
  color: rgba(39, 201, 63, 0.4);
  margin-right: 5px;
  font-size: 0.75rem;
}

.commit-date {
  color: var(--accent);
  margin-right: 5px;
  font-size: 0.75rem;
}

.spotify-wrapper {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}

.spotify-title-header {
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

.spotify-main-title {
  font-family: "Ubuntu Mono", "Consolas", monospace;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.spotify-container {
  background: var(--spotify-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.spotify-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.3);
}

.spotify-header {
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-dots {
  display: flex;
  gap: 6px;
}

.spotify-status {
  font-family: "Ubuntu Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
}

.spotify-container iframe {
  display: block;
  margin-top: -1px;
  border-radius: 0 0 16px 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Call Back Button --- */
.call-back-btn {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem; /* Yan boşluklar diğer bölümlerle tutarlı olsun */
  margin: 4rem 0;
}

.call-back-btn a {
  background-color: var(--accent);
  color: var(--bg-main);
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
}

.call-back-btn a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.6);
}

@media (max-width: 768px) {
  .terminal-window {
    width: 92%;
  }
  .terminal-body {
    padding: 0.9375rem;
    font-size: 0.9rem;
  }

  .stack-main-title,
  .timeline-main-title,
  .spotify-main-title {
    font-size: 1.3rem;
  }

  .stack-area {
    grid-template-columns: 1fr;
  }

  .stack-card {
    padding: 1.25rem;
  }

  .timeline-area {
    padding-left: 1.5rem;
  }

  .timeline-area::before {
    left: 0;
  }

  .commit-card::before {
    left: -1.5rem;
    width: 12px;
    height: 12px;
  }

  .commit-title {
    font-size: 1.1rem;
  }

  .spotify-wrapper {
    margin: 2rem auto;
  }

  .spotify-title-header {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
  }

  .spotify-status {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .terminal-body {
    font-size: 0.8rem;
  }

  .user-prefix {
    font-size: 0.75rem;
  }
}
