/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  background-color: #000000;
  color: #fafaf9;
  font-family: "Inknut Antiqua", serif;
  padding: 48px 64px;
}

/* LAYOUT */
.container {
  max-width: 1500px;
  margin: 0 auto;
}

.header {
  margin-bottom: 40px;
}

/* HEADER */
.Portrait {
  display: flex;
  align-items: center;
  gap: 16px;
}

.Portrait img {
  width: 180px;
  height: 200px;
}

h1 {
  font-size: 42px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
}

h2 {
  margin-top: 12px;
}

h3 {
  margin-top: 8px;
}

/* CONTENT */
ul {
  list-style: none;
}

/* PROJECT CARD */
.project {
  font-size: 20px;
  line-height: 1.4;
  background-color: #3a3a3a;
  margin-bottom: 16px;
  padding: 16px 24px;
  letter-spacing: -1px;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-title {
  font-size: 28px;
  font-weight: bold;
  background-color: #262526;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 4px;

  display: flex;
  align-items: center;
}

.projects-section-label {
  margin: 8px 0 12px 0;
}

.projects-section-label h4 {
  font-family: "Inknut Antiqua", serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1bed5;  /* muted purple-white, fits your palette */
}

.project--star {
  border-left: 4px solid #eab308; /* matches your existing hover gold */
  padding-left: 20px;
}

/* LINKS */
.project-title a {
  color: #fafaf9;
  text-decoration: none;
  display: block;
  width: 100%;
}

.project-title a:hover {
  color: #eab308;
}

.repository {
  color: #a8a29e;
  text-decoration: none;
  margin-left: 12px;
  transition: 0.3s;
}

.repository:hover {
  color: #3b82f6;
}

.CV a {
  color: #fafaf9;
  text-decoration: none;
  display: block;
}

.CV a:hover {
  color: #3b82f6;
}

/* DROPDOWN HEADER */
#projects-toggle {
  cursor: pointer;
  text-align: center;
  margin-bottom: 16px;
}

#projects-toggle h3 {
  font-size: 24px;
  user-select: none;
}

/* TABLET */
@media (max-width: 1200px) {
  .project {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding: 24px 16px;
  }

  .Portrait {
    flex-direction: column;
    text-align: center;
  }

  .Portrait img {
    width: 120px;
    height: 140px;
  }

  h1 {
    font-size: 28px;
    margin-top: 12px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 🔥 THIS IS THE IMPORTANT FIX */
  .project {
    flex-direction: column;
    align-items: stretch;
    font-size: 16px;
    padding: 14px 16px;
    gap: 10px;
  }

  .project-title {
    font-size: 18px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .repository {
    margin-left: 0;
    font-size: 14px;
  }
}

/* ===== DROPDOWN TOGGLES ===== */
.projects-toggle,
.certificates-toggle {
  cursor: pointer;
  text-align: left;
  margin-bottom: 16px;
}

.projects-toggle h3,
.certificates-toggle h3 {
  font-size: 24px;
  user-select: none;
}

/* ===== CERTIFICATES ===== */
.certificates {
  background-color: #3a3a3a;
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.certificate-title {
  font-size: 20px;
}

.certificate-title a {
  color: #fafaf9;
  text-decoration: none;
}

.certificate-title a:hover {
  color: #eab308;
}

/* ===== MOBILE CERTIFICATES ===== */
@media (max-width: 768px) {
  .certificates {
    padding: 12px 14px;
  }

  .certificate-title {
    font-size: 16px;
  }

  .projects-toggle h3,
  .certificates-toggle h3 {
    font-size: 20px;
    padding: 12px;
  }
}

/* ===== CONTACT ===== */
.contact-toggle {
  cursor: pointer;
  text-align: left;
  margin-bottom: 16px;
}

.contact-toggle h3 {
  font-size: 24px;
  user-select: none;
}

.contact-info {
  background-color: #3a3a3a;
  padding: 18px 24px;
  border-radius: 16px;
  margin-bottom: 16px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list {
  font-size: 18px;
  font-weight: 400;
}

.contact-list a {
  color: #fafaf9;
  text-decoration: none;
}

.contact-list a:hover {
  color: #3b82f6;
}

/* ===== MOBILE CONTACT ===== */
@media (max-width: 768px) {
  .contact-info {
    padding: 14px 16px;
  }

  .contact-list {
    font-size: 16px;
  }

  .contact-toggle h3 {
    font-size: 20px;
    padding: 12px;
  }
}

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

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: #391f3f;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888889;
  border-radius: 10px;
  border: 2px solid #391f3f;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4c3c4;
}

/* Firefox */
* {
  scrollbar-width: thick;
  scrollbar-color: #888889 #c4c3c4;
}
