:root {
  --bg: #f6f1ea;
  --bg-alt: #eef3f6;
  --ink: #1f2a35;
  --muted: #51606b;
  --accent: #d07b55;
  --accent-strong: #b46340;
  --surface: rgba(255, 255, 255, 0.72);
  --stroke: rgba(31, 42, 53, 0.12);
  --shadow: 0 24px 60px rgba(26, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(
    circle at top left,
    #f9efe4 0%,
    var(--bg) 45%,
    #e8f0f5 100%
  );
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -180px;
  background: radial-gradient(
    circle,
    rgba(208, 123, 85, 0.18),
    transparent 70%
  );
  filter: blur(10px);
}

body::after {
  width: 620px;
  height: 420px;
  left: -180px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(50, 96, 128, 0.16), transparent 72%);
  filter: blur(12px);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px 64px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 56px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 48px;
  align-self: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
}

.role {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.summary {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlights span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(31, 42, 53, 0.08);
  color: var(--ink);
}

.content {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-labels label {
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-labels label:hover {
  color: var(--ink);
  border-color: rgba(31, 42, 53, 0.18);
}

#tab-about:checked ~ .tab-labels label[for="tab-about"],
#tab-contact:checked ~ .tab-labels label[for="tab-contact"],
#tab-cv:checked ~ .tab-labels label[for="tab-cv"] {
  background: var(--ink);
  color: #f7f4ee;
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.16);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.6s ease both;
}

#tab-about:checked ~ .tab-panels #panel-about,
#tab-contact:checked ~ .tab-panels #panel-contact,
#tab-cv:checked ~ .tab-panels #panel-cv {
  display: block;
}

.tab-panel h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.tab-panel p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 42, 53, 0.08);
}

.contact-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent-strong);
}

.contact-note {
  margin-top: 8px;
  font-size: 0.85rem;
}

.cv-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fffaf4;
  box-shadow: 0 12px 30px rgba(208, 123, 85, 0.28);
}

.button.ghost {
  border: 1px solid rgba(31, 42, 53, 0.18);
  color: var(--ink);
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .intro {
    position: static;
  }

  .content {
    padding: 22px;
  }
}

/* Hamburger Menu - Hidden on Desktop */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
}

.overlay {
  display: none;
}

@media (max-width: 560px) {
  .page {
    padding: 32px 20px 40px;
    gap: 24px;
  }

  /* Intro section - kompakt ve ortalı */
  .intro {
    gap: 14px;
    text-align: center;
    align-items: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  .role {
    font-size: 0.95rem;
  }

  .summary {
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 320px;
  }

  .highlights {
    justify-content: center;
    gap: 6px;
  }

  .highlights span {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* Content card */
  .content {
    border-radius: 20px;
    overflow: hidden;
  }

  /* Hide desktop tabs on mobile */
  .tab-labels {
    display: none;
  }

  /* Tab panels */
  .tabs {
    gap: 0;
  }

  .tab-panels {
    padding: 20px;
  }

  .tab-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .tab-panel p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  /* Contact card mobile */
  .contact-card {
    padding: 14px;
    gap: 14px;
    border-radius: 14px;
  }

  .contact-label {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }

  .contact-card a {
    font-size: 0.9rem;
  }

  /* CV actions mobile */
  .cv-actions {
    flex-direction: column;
    gap: 10px;
  }

  .button {
    padding: 12px 20px;
    font-size: 0.9rem;
    justify-content: center;
  }

  /* ===== HAMBURGER MENU STYLES ===== */

  /* Hamburger Icon */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  }

  /* Hamburger Animation - X when open */
  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile Navigation Panel */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #faf7f2 0%, #f6f1ea 100%);
    z-index: 1000;
    padding: 100px 32px 40px;
    gap: 8px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  #menu-toggle:checked ~ .mobile-nav {
    right: 0;
  }

  .mobile-nav-item {
    display: block;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-nav-item:hover {
    background: rgba(31, 42, 53, 0.06);
    color: var(--ink);
  }

  .mobile-nav-item:active {
    background: rgba(31, 42, 53, 0.1);
    transform: scale(0.98);
  }

  /* Overlay */
  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 42, 53, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
  }

  #menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Adjust page for hamburger space */
  .page {
    padding-top: 80px;
  }
}
