/* GLOBAL STYLING */

html {
  scroll-behavior: smooth;
}
  
body {
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #ebebe9;
  font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
  
h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 500;
  line-height: 1.20;
}
  
h2 {
  color: #4f7ea3;
  margin-top: 0;
  margin-bottom: 18px;
}
  
a {
  text-decoration: none;
}
  
  
  /* LAYOUT */
  
.container {
  background-color: white;
  margin: 30px auto;
  padding: 28px 32px;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
  
footer {
  background-color: #4f7ea3;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
}
  
  
/* HEADER & NAV */
  
header {
  background-color: #4f7ea3;
  color: #fff;
  padding: 15px;
  text-align: center;
}

.subtitle {
  display: block;
  font-size: 0.8em;
}
  
h1 a {
  color: white;
}
  
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 8px;
}
  
nav a {
  color: white;
  text-underline-offset: 4px;
  font-weight: 500;
}
  
nav a:hover {
  text-decoration: underline;
}
  
nav a.active {
  text-decoration: underline;
  font-weight: 600;
}
  
  
/* Dropdown */
  
.dropdown {
  position: relative;
}
  
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  top: 100%;
  left: 0;
  z-index: 1000;
}
  
.dropdown-content a {
  color: #333;
  padding: 10px;
  display: block;
}
  
.dropdown-content a:hover {
  background-color: #f2f2f2;
  padding-left: 14px;
  transition: 0.2s;
}
  
.dropdown:hover .dropdown-content {
  display: block;
}
  
.dropbtn {
  background: none;
  border: none;
  color: white;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
  
.dropbtn:hover {
  text-decoration: underline;
}
  
  
/* REUSABLE COMPONENTS */
  
/* Skills */
  
.skills-group {
  margin-bottom: 24px;
}
  
.skills-group h3 {
  margin-bottom: 8px;
}
  
.skills-group p,
.skills-group ul {
  margin: 0;
}
  
.skills-group ul {
  padding-left: 20px;
}
  
  
/* Project cards */
  
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
  
.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
  
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
  
.project-card p {
  margin-top: 0;
  margin-bottom: 16px;
}
  
  
/* Links */
  
.project-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
  
.project-link {
  font-weight: 500;
  color: #4f7ea3;
  transition: 0.2s;
}
  
.project-link:hover {
  text-decoration: underline;
  color: #2f5978;
  transform: translateY(-4px);
}
  
  
/* Meta */
  
.project-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 24px;
}
  
  
/* QA */
  
.qa-finding {
  background-color: #f1f5f9;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}
  
  
/* Utility links */

.go-to-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #4f7ea3;
  font-weight: 500;
}

.go-to-link:hover {
  text-decoration: underline;
  color: #2f5978;
}
  
.back-link {
  margin-top: 24px;
  padding-top: 10px;
}

.back-link a {
  color: #4f7ea3;
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
  color: #2f5978;
}
  
/* Contact */
  
.contact-links {
  padding-top: 1px;
}
  
.contact-links a {
  color: #4f7ea3;
  font-weight: 500;
}
  
.contact-links a:hover {
  text-decoration: underline;
  color: #2f5978;
}
  
  
/* IMAGES */
  
.profile-image {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin: 20px auto 30px auto;
}
  
.project-image {
  display: block;
  width: 85%;
  max-width: 600px;
  margin: 0 auto 16px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
  
.project-detail-image {
  display: block;
  width: 85%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
  
.project-figure {
  margin: 30px auto 34px auto;
  max-width: 600px;
}
  
.project-figure figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}
  
  
/* PAGE-SPECIFIC (INTRO) */
  
#intro p {
  margin-bottom: 18px;
}
  
#intro ul {
  margin-bottom: 38px;
  padding-left: 22px;
}
  
#intro li {
  margin-bottom: 6px;
}
  
#intro h3 {
  margin-top: 32px;
  margin-bottom: 14px;
}
  
  
/* RESPONSIVE */
  
@media (max-width: 768px) {
  header {
    padding: 18px 16px;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
  }
  
  nav a {
    font-size: 0.95rem;
  }
  
  .dropdown-content {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    min-width: unset;
    margin-top: 6px;
    text-align: center;
  }
  
  .dropdown-content a {
    color: white;
    padding: 6px 0;
  }
  
  .container {
    margin: 20px 14px;
    padding: 18px;
  }
  
  .project-card {
    padding: 20px;
  }
  
  .project-image,
  .project-detail-image {
    width: 100%;
    max-width: 100%;
  }
}
  
@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }  
  
  h2 {
    font-size: 1.9rem;
  }
  
  nav {
    gap: 8px 12px;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .dropdown-content {
    display: none !important;
  }
  
  .container {
    margin: 14px 10px;
    padding: 16px;
    border-radius: 6px;
  }
  
  .project-card {
    padding: 16px;
  }
  
  .project-card h3 {
    font-size: 1.1rem;
  }
  
  .project-links {
    gap: 10px;
  }
}
