:root {
  --primary-color: #8f87f1;
  --secondary-color: #c2c2c2;
}
* {
  box-sizing: border-box;
}
.rubik-font {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
body {
  margin: 0;
  background-color: #fbfbfb;
}
a {
  text-decoration: none;
}
nav {
  position: sticky;
  top: 0;
  background-color: #fbfbfb;
  border: #fbfbfb 5px solid;
  z-index: 1000;
  max-width: 965px;
  margin: 0 auto;
  padding: 10px;
}
nav a {
  margin: 0 0.5rem;
  color: #222;
}
nav a:hover {
  color: var(--primary-color);
}
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 15px;
}
#wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
}
header {
  text-align: center;
}
header h1 {
  font-weight: 300;
}
section h1 {
  font-weight: 300;
  font-size: 1.8rem;
}
section p {
  line-height: 1.8rem;
}
.site-footer {
  text-align: center;
  padding: 10px;
}
.card {
  background-color: #fff;
  border: 1px solid #eee;
  margin-top: 1rem;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.profile-image {
  height: 160px;
  padding: 0.25rem;
  background-color: #fff;
  border: 5px solid var(--primary-color);
  border-radius: 0.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* CONTACT SECTION */
.contact-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #646464;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-links a:hover {
  color: var(--primary-color);
}
.contact-links i {
  font-size: 1.2rem;
}

/* EDUCATION SECTION */
.education-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #555);
  margin-bottom: 10px;
}

/* EXPERIENCE SECTION */
.experience {
  padding: 24px;
}
.experience-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.experience-header i {
  font-size: 20px;
  color: var(--primary-color);
  margin-top: 4px;
}
.experience-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.experience-place {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
}
.experience-date {
  font-weight: normal;
  color: var(--muted, #555);
}
.experience-item ul {
  margin: 0;
  padding-left: 20px;
}
.experience-item li {
  margin-bottom: 12px;
}

/* PROJECTS SECTION */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.project-row a {
  text-decoration: none;
  color: var(--secondary-color);
}
.project-row a:hover {
  color: var(--primary-color);
}
.project-details {
  padding: 1rem;
}
.project-row img {
  max-width: 100%;
  object-fit: contain;
}
.project-tags {
  color: var(--primary-color);
}
.project-desc {
  color: #757575;
}
.project_title {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}
.more-projects-p {
  padding: 1rem;
  color: #222;
}
.more-projects-p a {
  color: #222;
}
.more-projects-p a:hover {
  color: var(--primary-color);
}

/* SKILLS SECTION */
.skills {
  padding: 24px;
}
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skills-category {
  margin-bottom: 20px;
}
.skills-category h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--primary-color);
}
.skills-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills-category li {
  background: #f7f7f9;
  border: 1px solid #e8e8ee;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

/* MILITARY SERVICE SECTION */
.military {
  padding: 24px;
}
.military-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.fas.fa-medal {
  color: var(--primary-color);
  margin-right: 4px;
}
.military-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #555);
  margin-bottom: 10px;
}
.military-item ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* PROJECTS */
.project-logo img {
  width: 100%;
}
.project-screenshot {
  width: 100%;
}
.btn-back-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.btn-back {
  display: inline-block;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.btn-back:hover {
  background-color: #ac7ae6;
}
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    gap: 8px;
    padding: 10px 12px;
  }
  nav.menu-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 10px 4px;
  }
  #projects img {
    display: none;
  }
  .project-row {
    grid-template-columns: 1fr;
  }
  #projects img {
    display: none;
  }
  .project-row {
    grid-template-columns: 1fr;
  }
  .military-item ul {
    gap: 16px;
  }
}
