@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-base: #e8dcc8;
  --bg-panel-1: #ebe0cc;
  --bg-panel-2: #e8dcc8;
  --bg-panel-3: #e5d9c4;
  --bg-panel-4: #e2d5bf;

  --text-primary: #2a2018;
  --text-heading: #3d2e1f;
  --text-muted: #7a6b5a;
  --text-light: #a09585;

  --accent: #b44a2d;
  --accent-hover: #9c3f26;
  --accent-secondary: #c4912a;

  --border: #c4b5a0;
  --border-light: #d4c7b2;

  --card-bg: rgba(255, 255, 255, 0.25);
  --card-border: #c9bba6;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --panel-speed: 0.65s;
  --panel-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --content-speed: 0.4s;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LANGUAGE TOGGLE ===== */

.lang-toggle {
  position: fixed;
  top: 24px;
  right: 80px;
  z-index: 100;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--text-muted);
}

.lang-option {
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-option.active {
  color: var(--text-heading);
  font-weight: 500;
}

.lang-divider {
  color: var(--border);
  user-select: none;
}

/* ===== SCROLL HINT ===== */

.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--text-light);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-hint.hidden {
  opacity: 0;
}

.scroll-arrow {
  margin-top: 8px;
  font-size: 1rem;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== PANELS CONTAINER ===== */

.panels-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
}

/* ===== PANEL BASE ===== */

.panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--panel-speed) var(--panel-ease);
  border-right: 1px solid var(--border);
}

.panel:last-child {
  border-right: none;
}

.panel:nth-child(1) { background: var(--bg-panel-1); }
.panel:nth-child(2) { background: var(--bg-panel-2); }
.panel:nth-child(3) { background: var(--bg-panel-3); }
.panel:nth-child(4) { background: var(--bg-panel-4); }

.panel:not(.active)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.panel:not(.active):hover::after {
  background: rgba(0, 0, 0, 0.025);
}

/* ===== PANEL LABEL ===== */

.panel-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 5;
  transition: opacity 0.25s ease;
}

.panel-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-light);
}

.panel-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  transition: height 0.3s ease;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1.5px;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}

/* ===== PANEL CONTENT ===== */

.panel-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--content-speed) ease 0s,
    visibility 0s linear var(--content-speed);
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
}

.panel-content::-webkit-scrollbar { width: 3px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===== PANEL STATES ===== */

.panel.active {
  flex: 7;
  cursor: default;
}

.panel.active .panel-label {
  opacity: 0;
  pointer-events: none;
}

.panel.active .panel-content {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--content-speed) ease 0.35s,
    visibility 0s linear 0s;
}

.panel.active::after {
  display: none;
}

.panel.collapsed {
  flex: 0.7;
}

.panel.collapsed .panel-title {
  font-size: 0.8rem;
}

.panel.collapsed .panel-divider {
  height: 18px;
}

.panel.collapsed .panel-number {
  font-size: 0.65rem;
}

/* ===== CLOSE BUTTON ===== */

.panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.5s, border-color 0.2s ease, color 0.2s ease;
}

.panel.active .panel-close {
  opacity: 1;
}

.panel-close:hover {
  border-color: var(--text-muted);
  color: var(--text-heading);
}

/* ===== HERO ===== */

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-inner {
  text-align: center;
  max-width: 700px;
  padding: 60px;
}

.hero-logo {
  margin-bottom: 12px;
}

.hero-logo h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -2px;
  line-height: 1;
}

.hero-logo .dot {
  color: var(--accent);
}

.hero-rule {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 28px auto;
}

.hero-slogan {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

/* ===== ABOUT ===== */

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-inner {
  max-width: 520px;
  padding: 60px;
  text-align: center;
}

.about-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

.about-photo {
  margin-bottom: 32px;
}

.photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-primary);
}

/* ===== PROJECTS ===== */

.projects-content {
  padding: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.projects-inner {
  flex: 1;
}

.projects-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== PROJECT CARD ===== */

.project-card {
  position: relative;
  padding: 20px 20px 20px 24px;
  border: 1px solid #d0c2ad;
  border-left: 4px solid var(--border);
  border-radius: 4px;
  background: #2b231d; /* Koyu kontrast kahve / atölye metal rengi */
  color: #ebe0cc;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.project-card::before {
  content: attr(data-index);
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
}

.project-card:hover {
  background: #362c25;
  border-color: #5c4d41;
}

/* Left border color by status */
.project-card[data-card-status="hit"]      { border-left-color: #e65f3c; }
.project-card[data-card-status="alive"]    { border-left-color: #d19228; }
.project-card[data-card-status="wip"]      { border-left-color: #8c7e6c; }
.project-card[data-card-status="sleeping"] { border-left-color: #a89a87; }
.project-card[data-card-status="idea"]     { border-left-color: #c0b29c; }
.project-card[data-card-status="done"]     { border-left-color: #688554; }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.project-status {
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ebe0cc;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.project-status[data-status="hit"]     { border-color: #e65f3c; color: #e65f3c; background: rgba(230, 95, 60, 0.1); }
.project-status[data-status="alive"]   { border-color: #d19228; color: #d19228; background: rgba(209, 146, 40, 0.1); }
.project-status[data-status="wip"]     { border-color: #8c7e6c; color: #bcaea0; background: rgba(140, 126, 108, 0.1); }
.project-status[data-status="sleeping"]{ border-color: #a89a87; color: #bcaea0; background: rgba(168, 154, 135, 0.1); }
.project-status[data-status="idea"]    { border-color: #c0b29c; color: #c0b29c; font-style: italic; background: rgba(192, 178, 156, 0.1); }
.project-status[data-status="done"]    { border-color: #688554; color: #688554; background: rgba(104, 133, 84, 0.1); }

.project-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #c7bba9;
  margin-bottom: 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 12px;
}

.project-meta-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2px;
  color: #a89b88;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.project-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.project-link:hover {
  background: #ffffff;
  color: #2b231d;
  border-color: #ffffff;
}

/* ===== FOOTER ===== */

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.footer-inner {
  text-align: center;
  max-width: 460px;
  padding: 60px;
}

.footer-quote {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.footer-company {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -1px;
  margin-bottom: 40px;
  opacity: 0.3;
}

.footer-contact {
  margin-bottom: 28px;
}

.footer-contact a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-contact a:hover {
  border-bottom-color: var(--accent);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ===== PAGE LOAD ===== */

.panel {
  opacity: 0;
  animation: panelIn 0.5s ease forwards;
}

.panel:nth-child(1) { animation-delay: 0.05s; }
.panel:nth-child(2) { animation-delay: 0.15s; }
.panel:nth-child(3) { animation-delay: 0.25s; }
.panel:nth-child(4) { animation-delay: 0.35s; }

@keyframes panelIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
