/* ============================================================
   RESET / BASE
   ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.5;
}

/* ============================================================
   MENU BAR (logo + main menu, combined into one dark bar)
   ============================================================ */
.menu-bar {
  display: flex;
  align-items: center;
  background-color: #1a1a1a;   /* darker than sub-menu, clearly "top level" */
  padding: 0 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem 0.6rem 0;
}

.logo img {
  height: 42px;         /* adjust to fit your actual logo file */
  width: auto;
  display: block;
}

/* ============================================================
   MAIN MENU
   ============================================================ */
.main-menu {
  display: flex;
  flex-wrap: wrap;
}

.menu-item {
  background: none;
  border: none;
  color: white;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: #404040;
}

.menu-item.active {
  background-color: #555555;
  font-weight: bold;
}

/* ============================================================
   SUB MENU
   ============================================================ */
.sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #eee;
  padding: 0.4rem 1rem 0.4rem 4rem;
  margin-top: 0.6rem;      /* the visible gap that separates it from the main menu */
}

.submenu-item {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submenu-item:hover {
  background-color: #ddd;
}

.submenu-item.active {
  background-color: #2a2a2a;
  color: white;
  border-color: #2a2a2a;
}

/* ============================================================
   CONTENT
   ============================================================ */
main {
  padding: 1.5rem;
  min-height: 300px;
  max-width: 900px;
  margin: 0 auto;
}

main h2 {
  margin-top: 0;
  color: #2a2a2a;
}

main ul {
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.4rem;
  margin-left: 1rem;
}

main p {
  text-align: justify;
  text-justify: inter-word;
}

.profile-summary {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 180px;          /* adjust size as you prefer */
  border-radius: 8px;    /* optional: rounded corners */
  object-fit: cover;
}

.profile-text {
  flex: 1;
}

.profile-text p {
  text-align: justify;   /* your preferred paragraph style */
}


/* ============================================================
   experience section
   ============================================================ */

.experience-section h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #2a2a2a;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2rem;
}

.experience-section h4 {
  margin: 0.2rem 0;
  color: #444;
  font-weight: normal;
}

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

.exp-header h4 {
  margin: 0;
}

.exp-header .exp-meta {
  font-size: 0.9rem;
  color: #666;
}

.exp-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.experience-block ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
}

.experience-block li {
  margin-bottom: 0.4rem;
}

/* ============================================================
   Competences
   ============================================================ */

.competences h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #2a2a2a;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2rem;
}

.competences ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
}

.competences li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.competences li strong {
  color: #333;
}



/* ============================================================
   IT SKILLS / TOOLS SECTION
   ============================================================ */

.tools-section h3 {
  margin-top: 1.5rem;
  color: #2a2a2a;
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3rem;
}

.tools-section ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
}

.tools-section li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  text-align: justify;
}

.tools-section li:last-child {
  border-bottom: none;
}

/* ============================================================
   Projects
   ============================================================ */


.projects-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.project-image img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  object-fit: cover;
}

/* Mobile layout */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }

  .project-image img {
    width: 100%;
  }
}

.project-content h3 {
  margin-top: 0;
}

.project-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.project-desc {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-outcomes li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}




/* ============================================================
   Publications
   ============================================================ */

.publications h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2rem;
}

.publications ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
}

.publications li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  text-align: justify;
}


/* ============================================================
   Certificates
   ============================================================ */


.certificates h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2rem;
}

.certificates ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 1.2rem;
}

.certificates li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
  text-align: justify;
}

.certificates li strong {
  color: #333;
}


/* ============================================================
   Contact Form
   ============================================================ */

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.8rem 1.2rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: #555;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: #2a2a2a;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .menu-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
  }

  .menu-item {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #333;
  }

  .sub-menu {
    flex-direction: column;
    align-items: center;
  }

  .submenu-item {
    width: 100%;
    text-align: left;
    
  }

  .profile-summary {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .profile-photo {
    width: 60%;
    max-width: 240px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image img {
    width: 100%;
  }

  main {
    padding: 1rem;
  }
}
