/* this one's for you doc */
a {
  text-decoration: none;
}
/* this is th e css style sheet for the site header */
.site-header {
  padding: 1rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header table {
  width: 100%;
  border-collapse: collapse;
}

.site-header td {
  vertical-align: middle;
  padding: 0.5rem 0.75rem;
}

.site-header img {
  width: 10rem;
  height: auto;
  border-radius: 8px;
}

.site-header .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-header nav a {
  text-decoration: none;
  display: inline-block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
}

.site-header nav a:link    { color: #0f172a; background: #e2e8f0; }
.site-header nav a:visited { color: #334155; }
.site-header nav a:focus   { outline: 2px solid #94a3b8; outline-offset: 2px; }
.site-header nav a:hover   { background: #cbd5e1; }
.site-header nav a:active  { background: #94a3b8; }

/* The same goes for the site-footer */

.site-footer {
  margin-top: 2rem;
  padding: 1rem 1rem;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  text-align: center;
  font-size: 0.9rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-footer a:link    { color: #0ea5e9; } /* unvisited footer links use blue  */
.site-footer a:visited { color: #0369a1; } /* this uses dark blue */
.site-footer a:focus   { outline: 1px solid #94a3b8; outline-offset: 2px; }
.site-footer a:hover   { text-decoration: underline; }
.site-footer a:active  { color: #0284c7; }

.site-header,
.site-footer,
main {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
#top {
  margin: 0;
  letter-spacing: 0.2px;
}

/* ff with fallbacks */
body.site {
  font-family: "Arial", Helvetica, sans-serif;
}

/* The intro class in index.html */
/* Intro section */
.intro {
  padding: 1rem 1rem;
  margin-top: 1rem;
  border-bottom: 1px solid #e5e7eb;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.intro h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.intro p {
  color: #374151;
  line-height: 1.6;
  text-align: start;
}

/* Notable projects class */
.notable-projects {
  padding: 1rem 1rem;
  margin-top: 1rem;
  border-bottom: 1px solid #e5e7eb;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.notable-projects dl {
  margin: 0.75rem 0;
}

.notable-projects dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.notable-projects dd {
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}
.notable-projects h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.notable-projects p,
.notable-projects dd {
  color: #374151;
  line-height: 1.6;
}

/* styles for the main page heading */
.site-title {
  font-size: 2.25rem;
  line-height: 1.2;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Style back to the top link */
/* "Back to top" link container */
.back-to-top {
  text-align: center;  /* Center the link */
  margin-top: 2rem;    /* Add space above it */
}

/* Style the link itself */
.back-to-top a:link {
  color: #0ea5e9;       /* Use the same blue as your footer */
  font-size: 0.9rem;   /* Make it a bit smaller */
}

.back-to-top a:hover {
  text-decoration: underline; /* Add underline on hover */
}

/* Project “card” */
.project {
  padding: 1rem;
  margin: 1rem 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* Table inside each project */
.project table {
  width: 100%;
  border-collapse: collapse;
}
.project td {
  vertical-align: middle;
  padding: 0.5rem 0.75rem;
}

/* Image block */
.project figure {
  margin: 0;
  text-align: center;
}
.project figure img {
  max-width: 11rem;
  height: auto;
  border-radius: 0.5rem;
}
.project figure figcaption {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.25rem;
}

/* Project headings */
.project h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.project p {
  line-height: 1.6;
  margin: 0.5rem 0;
}
/* Projects page main heading */
section > h2 { /* the ">" symbole is the child combinator selector, this basicallt means that we're looking for the immediate child of the section element h2 and skips other descendents  */
  font-size: 1.75rem;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  text-transform: uppercase;
}
.site section > h2 {
  font-size: 1.75rem;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  text-transform: uppercase;
}
/* CV page styles */
article > header h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 1rem 0 .5rem;
  color: #0f172a;
  text-align: start;
}

/* blockquote style for quotes */
.quote {
  margin: .5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
  color: #374151;
  text-shadow: 0 0.25rem 0.35rem rgba(0,0,0,0.18), 0 0.6rem 1rem rgba(0,0,0,0.06);
}
.quote p { margin: 0 0 .25rem; line-height: 1.6; }
.quote cite { font-style: italic; color: #475569; }

/* sections inside the CV page */
.personal-statement,
.education,
.exp-proj,
.skills {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.personal-statement p,
.education p {
  color: #374151;
  line-height: 1.6;
}

.exp-proj dl { margin: .75rem 0; }
.exp-proj dt { font-weight: 600; margin-top: .5rem; }
.exp-proj dd { margin-left: 1rem; margin-bottom: .25rem; color: #374151; line-height: 1.6; }

/* skills section */
.skills table {
  width: 100%;
  border-collapse: collapse;
}
.skills td {
  vertical-align: top;
  padding: .5rem .75rem;
  width: 50%;
}
.skills h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
}
.skills ul { margin: .25rem 0 .5rem; padding-left: 1.25rem; }
.skills li { margin: .125rem 0; }

/* contant page styles */
.contact {
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.contact h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: #0f172a;
}

.contact p {
  color: #374151;
  line-height: 1.6;
  margin: .5rem 0;
}

.contact form table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
}

.contact form td {
  padding: .5rem .75rem;
  vertical-align: top;
}

.contact form td:first-child {
  width: 22ch;
  font-weight: 600;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  line-height: 1.4;
  color: #111827;
  background: #fff;
}

.contact textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact input[type="submit"] {
  border: 0;
  padding: .6rem .9rem;
  border-radius: .5rem;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.contact input[type="submit"]:hover { background: #0284c7; }
.contact input[type="submit"]:active { background: #0369a1; }