/* ================================
   ROOT & RESET
   ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Tillana", system-ui;
  font-style: normal;
}

:root {
  --bg: #2e3440;
  --surface: #3b4252;
  --accent: #5e81ac;
  --accent-2: #4c6f96;
  --accent-3: #88c0d0;
  --text: #d1d2d6;
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

/* ================================
   SCROLLBAR
   ================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* ================================
   LAYOUT
   ================================ */

.main-wrapper {
  height: 100%;
  max-width: 960px;
  min-width: 0;
  width: 100%;
  margin: auto;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

a {
  color: var(--text);
}

/* ================================
   NAVBAR
   ================================ */

.navbar {
  min-height: 40px;
  height: fit-content;
  padding: 0px 8px;
  font-weight: 500;
  border-bottom: 2px solid var(--bg);
  display: flex;
  justify-content: space-between;
}

.navbar>ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar>ul>li {
  list-style: none;
}

li.lang {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 5px;
}

li.lang>a {
  text-decoration: none;
}

li.lang>a.active {
  text-decoration: underline;
}

/* ================================
   SECTIONS
   ================================ */

.section-wrapper {
  /* border: 1px solid red; */
  margin: 12px 0px;
  padding: 4px 8px;
  text-align: center;
}

.landing-message>p {
  font-size: 18px;
}

.section-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.section-buttons>.button {
  border: none;
  font-size: 18px;
  padding: 0px 4px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: var(--transition);
  border-radius: var(--radius);
}

.section-buttons>.button.active {
  background-color: var(--accent);
  color: var(--text);
}

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

.section-wrapper:not(.landing-message) {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.section-tab {
  display: none;
}

.section-tab.active {
  display: block;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ================================
   EXPERIENCE
   ================================ */

.experience-item {
  text-align: left;
  padding: 12px 0px;
  border-bottom: 1px solid var(--bg);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.experience-title {
  font-size: 17px;
  font-weight: 700;
}

.experience-company {
  font-size: 15px;
  color: var(--accent-3);
}

.experience-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  opacity: 0.7;
  margin: 2px 0px 8px 0px;
}

.experience-list {
  padding-left: 20px;
  font-size: 15px;
}

.experience-list>li {
  margin-bottom: 4px;
}

/* ================================
   EDUCATION
   ================================ */

.education-item {
  text-align: left;
  padding: 12px 0px;
  border-bottom: 1px solid var(--bg);
}

.education-item:last-child {
  border-bottom: none;
}

.education-title {
  font-size: 17px;
  font-weight: 700;
}

.education-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  opacity: 0.7;
  margin: 2px 0px 4px 0px;
}

.education-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

/* ================================
   TALENTS
   ================================ */

.talents-category {
  padding: 8px 0px;
  border-bottom: 1px solid var(--bg);
  text-align: left;
}

.talents-category:last-child {
  border-bottom: none;
}

.talents-category-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.talent-tag {
  background-color: var(--bg);
  color: var(--text);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 14px;
}

/* ================================
   LANGUAGES
   ================================ */

.language-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0px;
  border-bottom: 1px solid var(--bg);
  text-align: left;
}

.language-item:last-child {
  border-bottom: none;
}

.language-name {
  font-size: 16px;
  font-weight: 700;
}

.language-level {
  font-size: 13px;
  opacity: 0.7;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {

  /* Mobilde sabit yükseklik ve overflow yerine
     sayfanın doğal scroll yapması sağlanır */
  html {
    height: auto;
    overflow: auto;
  }

  body {
    height: auto;
    overflow: auto;
  }

  .main-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .section-wrapper:not(.landing-message) {
    flex: unset;
    overflow: visible;
    min-height: 0;
  }

  .section-tab.active {
    flex: unset;
    overflow-y: visible;
    min-height: 0;
  }

  /* Navbar */
  .navbar {
    flex-wrap: wrap;
    padding: 4px 8px;
    gap: 2px;
  }

  .navbar>ul {
    gap: 8px;
  }

  /* Landing */
  .section-wrapper {
    padding: 4px 12px;
  }

  .landing-message h1 {
    font-size: 24px;
  }

  .landing-message h3 {
    font-size: 14px;
  }

  .landing-message>p {
    font-size: 14px;
  }

  /* Tab butonları */
  .section-buttons {
    flex-wrap: wrap;
  }

  .section-buttons>.button {
    font-size: 14px;
    padding: 2px 8px;
  }

  /* Tecrübeler */
  .experience-title {
    font-size: 15px;
  }

  .experience-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  .experience-list {
    font-size: 14px;
  }

  /* Eğitim */
  .education-title {
    font-size: 15px;
  }

  .education-meta {
    flex-wrap: wrap;
    gap: 4px;
  }
}