/* ============================================================
   SARITEKIN — Personal Portfolio
   Dark theme, TMLS design system
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  line-height: 1.82;
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.84);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }

.mono-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.text-muted {
  color: rgba(255, 255, 255, 0.54);
}

.text-faint {
  color: rgba(255, 255, 255, 0.28);
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.84);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.84);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 0 5rem;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(120px, 20vw, 300px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left column */
.hero-left {
  text-align: left;
}

.hero-left h1 {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 1);
}

.hero-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.54);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-statement {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

/* Metrics row */
.metrics-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.metric {
  text-align: left;
}

.metric-value {
  font-family: 'DM Mono', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  display: block;
}

.metric-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 0.2rem;
  display: block;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

.scroll-indicator svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.22);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-top: 0.5rem;
}

.about-bio p {
  color: rgba(255, 255, 255, 0.54);
  margin-bottom: 1rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.highlights {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.54);
}

/* Tech stack */
.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  padding: 0.4rem 0.8rem;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.54);
  transition: color 0.2s, border-color 0.2s;
}

.tech-badge:hover {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   TIMELINE (inside hero)
   ============================================================ */
/* Right column — timeline */
.hero-timeline {
  text-align: left;
  position: relative;
  max-height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 70%, transparent 100%);
}

.tl-scroll {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.tl-scroll::-webkit-scrollbar {
  display: none;
}

/* Individual event */
.tl-event {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1rem;
}

.tl-event--last {
  padding-bottom: 0;
}

/* Dot */
.tl-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.tl-event:first-child .tl-dot {
  background: rgba(255, 255, 255, 0.5);
}

.tl-event:hover .tl-dot {
  background: rgba(255, 255, 255, 0.5);
}

/* Connecting line between dots */
.tl-connector {
  position: absolute;
  left: 2.5px;
  top: 15px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* Body */
.tl-body {
  min-width: 0;
}

.tl-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.54);
  transition: color 0.2s;
  display: block;
  line-height: 1.4;
}

a.tl-title:hover {
  color: rgba(255, 255, 255, 0.84);
}

.tl-date {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  margin-top: 0.05rem;
}

.tl-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 0.4rem;
  vertical-align: middle;
  animation: tl-pulse 2s ease-in-out infinite;
  cursor: help;
}

@keyframes tl-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.sort-tabs {
  display: flex;
  gap: 0.25rem;
}

.sort-tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-tab:hover {
  color: rgba(255, 255, 255, 0.54);
  border-color: rgba(255, 255, 255, 0.15);
}

.sort-tab.active {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.filter-tab {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: rgba(255, 255, 255, 0.54);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-tab.active {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.project-card {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-card-name {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.project-card-stars {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.project-card-desc {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.42);
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s;
}

.project-link:hover {
  color: rgba(255, 255, 255, 0.84);
}

.lang-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.project-card-lang {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

.projects-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.6rem 1.2rem;
  margin-top: 1.5rem;
  transition: all 0.2s;
}

.projects-more:hover {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.28);
}

.projects-loading,
.projects-error {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.28);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

/* ============================================================
   BLOG PREVIEW (homepage) — thumbnail + text rows
   ============================================================ */
.blog-preview {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2rem;
}

.blog-preview-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.blog-preview-card:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-preview-card:hover {
  padding-left: 0.25rem;
}

.blog-preview-card:hover .blog-preview-title {
  color: rgba(255, 255, 255, 1);
}

.blog-preview-card:hover .blog-preview-thumb {
  opacity: 1;
}

.blog-preview-thumb {
  width: 72px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.blog-preview-title {
  flex: 1;
  font-size: 0.93rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s;
  line-height: 1.3;
}

.blog-preview-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   MUSIC
   ============================================================ */
.music-content {
  margin-top: 2rem;
}

.music-intro {
  color: rgba(255, 255, 255, 0.54);
  max-width: 600px;
  margin-bottom: 2rem;
}

.music-intro strong {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

.music-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.music-card {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.music-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.music-card-art {
  position: relative;
  width: 140px;
  flex-shrink: 0;
}

.music-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-card-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  background: linear-gradient(to right, transparent 0%, rgba(22, 22, 22, 0.4) 40%, #161616 100%);
}

.music-card-body {
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.music-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.music-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0.25rem;
}

.music-card-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

.music-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.music-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}

.music-link:hover {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.28);
}

.music-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.music-card-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s;
}

.music-card-links a:hover {
  color: rgba(255, 255, 255, 0.84);
}

.music-previously {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 1.5rem;
}

/* ============================================================
   CONNECT
   ============================================================ */
.connect-content {
  margin-top: 2rem;
}

.connect-statement {
  color: rgba(255, 255, 255, 0.54);
  margin-bottom: 2rem;
  max-width: 500px;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.connect-block {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.connect-block:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.connect-block-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.connect-block-value {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.84);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #080808;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
}

.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 14px; }

  h1 { font-size: 2.2rem; }

  section { padding: 4rem 0; }

  .container { padding: 0 1.25rem; }

  .hero { padding: 5rem 0 4rem; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .hero-left { text-align: left; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .metrics-row {
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 10px;
  }

  .hero-watermark {
    font-size: 80px;
  }

  .blog-preview-thumb {
    width: 56px;
  }
}

@media (max-width: 480px) {
  .metrics-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .filter-tabs {
    gap: 0.5rem;
  }

  .nav-links {
    display: none;
  }
}
