/* ==========================================
   Apple-inspired CV — styles.css
   ========================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

button {
  font-family: inherit;
}

/* ---- Header ---- */
header {
  background-color: #ffffff;
  padding: 0 24px;
  position: relative;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ---- Footer ---- */
footer {
  background-color: #f5f5f7;
  text-align: center;
  padding: 24px 16px;
  color: #6e6e73;
  font-size: 14px;
}

footer a {
  color: #0071e3;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---- Main & Card ---- */
main {
  max-width: 860px;
  width: 100%;
  margin: 32px auto;
  padding: 0 16px;
  flex: 1;
}

.cv-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 48px;
}

/* ---- Typography ---- */
h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e7;
}

section {
  margin-bottom: 28px;
}

.subtitle {
  color: #6e6e73;
  font-size: 1.05rem;
  font-weight: 500;
  margin: -8px 0 16px 0;
  letter-spacing: 0.01em;
}

/* ---- Contact row ---- */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0 20px 0;
  font-size: 0.95rem;
  color: #6e6e73;
}

.contact-row a {
  color: #0071e3;
}

/* ---- Links ---- */
a {
  color: #0071e3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Collapsible buttons ---- */
.collapsible {
  background-color: #ffffff;
  color: #1d1d1f;
  cursor: pointer;
  padding: 14px 18px;
  width: 100%;
  border: 1px solid #e5e5e7;
  border-left: 3px solid #0071e3;
  border-radius: 8px;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow {
  font-size: 0.75rem;
  color: #6e6e73;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.collapsible.active .arrow {
  transform: rotate(90deg);
}

.active,
.collapsible:hover {
  background-color: #f5f5f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---- Collapsible content ---- */
.content {
  padding: 8px 18px 12px;
  display: none;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 12px;
}

/* ---- PDF / Print button ---- */
#pdf-button {
  padding: 8px 18px;
  background-color: #0071e3;
  color: #ffffff;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

#pdf-button:hover {
  background-color: #0077ed;
}

/* ---- War protest stamp: fixed in grey margin, clear of card ---- */
#nez2 {
  position: absolute !important;
  right: 16px !important;
  top: 70px !important;
  z-index: 10;
}

@media (max-width: 900px) {
  #nez2 {
    display: none !important;
  }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  header {
    height: auto;
    padding: 10px 16px;
  }

  #pdf-button {
    display: none;
  }

  main {
    margin: 16px auto;
    padding: 0 10px;
  }

  .cv-card {
    padding: 24px 20px;
    border-radius: 8px;
  }

  .collapsible {
    font-size: 13px;
    padding: 12px 14px;
    white-space: normal;
    word-break: break-word;
  }
}

/* ---- Print ---- */
@media print {
  header,
  footer,
  #nez2 {
    display: none !important;
  }

  /* Hide QA Engineer section entirely */
  #experience .collapsible:nth-of-type(2),
  #experience .collapsible:nth-of-type(2) + .content {
    display: none !important;
  }

  /* Hide responsibilities zero-md; keep achievements zero-md */
  zero-md.resp {
    display: none !important;
  }

  /* Hide Skills section */
  #skills {
    display: none !important;
  }

  body {
    background: white;
    min-height: unset;
    display: block;
  }

  main {
    flex: none;
  }

  .cv-card {
    box-shadow: none;
    padding: 16px 24px;
  }

  section {
    margin-bottom: 6px;
  }

  .contact-row {
    display: none;
  }

  .content {
    display: block !important;
  }
}
