/* ============================================================
   GLOBAL / BASE STYLES
   ============================================================ */

html {
  height: 100%;
}

body {
  background-color: #F9FAFF;
  font-family: 'Playfair Display', serif;
  margin: 0;
  position: relative;
  min-height: 100vh;
  flex-direction: column;
}

a { /* removes underline from links */
  text-decoration: none;
  color: inherit;
}

p {
  color: black;
  padding: 10px;
}

.green {
  color: #63AC7F;
}

/* ============================================================
   TYPOGRAPHY — headings used across pages
   ============================================================ */

h1 { /* logo */
  color: rgb(1, 96, 1);
  font-size: 20px;
  padding-top: 10px;
  padding-left: 30px;
}

h2 { /* section titles e.g. "ABOUT ME" */
  font-size: 45px;
  padding-left: 10px;
  padding-bottom: 0;
  margin: 0;
  text-align: center;
}

h3 { /* page hero headings */
  font-size: 60px;
  padding: 0;
  margin-top: 0;
  margin-bottom: 10px;
}

h4 { /* "contact me" heading */
  font-size: 30px;
  text-align: center;
  margin: 0;
} 

h5 { /* subtitle e.g. "STUDENT @ RPI" */
  font-size: 20px;
  padding: 0;
  margin-top: 0;
  margin-bottom: 5px;
}

h6 { /* "CONTACT" section label */
  font-size: 45px;
  padding-left: 10px;
  margin: 0;
  text-align: left;
  color: #63AC7F;
}

/* ============================================================
   NAVIGATION / BANNER — all pages
   ============================================================ */

.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  box-shadow: 0 0px 0px 0px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.nav-links {
  display: flex;
  gap: 10px;
  padding: 10px 15px 10px 10px;
  color: rgb(0, 70, 0);
}

/* ============================================================
   BUTTONS & CTAs — used across pages
   ============================================================ */

.button {
  background-color: #63AC7F;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: rgb(0, 70, 0);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.back {
  margin: -20px 0 0 20px;
}

.center-block { /* centers buttons or block elements */
  width: 50%;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 15px;
}

/* ============================================================
   SHARED COMPONENTS — cards, small paragraphs, images
   ============================================================ */

.paragraph-small { /* small text with border */
  border: 1px solid white;
  border-radius: 8px;
}

.paragraph-small.padded { /* used in About Me & Labs */
  padding: 10px;
  margin: 20px 10px;
  overflow-wrap: break-word;
  text-align: center;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

.home p {
  color: grey;
  padding-top: 10px;
  font-size: 25px;
}

.home-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.home-left {
  flex: 1;
  text-align: left;
  margin: 30px;
}

.home-left p {
  padding: 0;
  margin: 0 30px 10px 0;
}

.home-right {
  flex: 0 0 auto;
  margin-right: 20px;
}

.paragraph-home {
  font-size: 25px;
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
}

.paragraph-slogan {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 30px;
}

.img-headshot { /* headshot on Home Page */
  width: 500px;
  height: auto;
  border-radius: 20px;
}

/* ============================================================
   ABOUT ME PAGE
   ============================================================ */

.about-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px;
}

.about-left {
  flex: 0 0 auto;
}

.about-left .img-swim {
  width: 250px;
  border-radius: 12px;
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paragraph-aboutMe { /* first paragraph of About Me */
  font-size: 30px;
  padding-left: 10px;
  text-align: center;
}

.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: grey;
  margin: 24px 0 10px;
}

.about-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.about-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  padding: 16px 20px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.about-card-label {
  font-size: 12px;
  color: grey;
  margin: 0 0 5px;
}

.about-card-value {
  font-size: 15px;
  font-weight: bold;
  color: black;
  padding: 0;
  margin-left: 9px;
}

.about-tag {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 30px 0 5px;
  background: #e8f5ee;
  color: black;
}

.about-tag.blue {
  background: #63AC7F;
  color: black;
}

.about-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
}

.img-swim { /* swim photo in About Me */
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

/* ============================================================
   LABS PAGE
   ============================================================ */

/* LABS PAGE — full-width stacked cards */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 40px;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.08);
  padding: 20px 30px;
  text-align: left;           /* left-align for wide cards */
  transition: box-shadow 0.3s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.card:hover {
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
  transform: none;            /* no lift on wide cards — looks odd */
}

.card h3 {
  font-size: 22px;
  color: rgb(1, 96, 1);
  margin: 0 0 6px 0;
  padding: 0;
}

.card p {
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #555;
}

/* The expandable details section */
.card-details {
  display: none;
  margin-top: 16px;
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.card-details.open {
  display: block;
}

/* "Learn more" toggle button */
.card-toggle {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 13px;
  color: rgb(120, 177, 120);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  padding: 0;
}

.card-toggle:hover {
  color: rgb(1, 96, 1);
}

.search-bar {
  float: right;
  margin-right: 20px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px grey;
}

.labsImage-container {
  position: relative;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.img-lab {
  height: auto;
  padding: 20px;
}

/* Lab 1 specific images */
.img-ubuntu    { width: 315px; }
.img-helloworld { width: 500px; }
.img-github    { width: 500px; }
.img-resume    { width: 1200px; }

.img-group { width: 1000px; } /* Group Projects image */

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.timeline-section {
  width: 85%;
  margin: 40px auto 100px auto;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #63AC7F;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left  { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::before {
  content: "";
  position: absolute;
  top: 35px;
  width: 18px;
  height: 18px;
  background-color: rgb(1, 96, 1);
  border: 4px solid rgb(1, 96, 1);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left::before  { right: -13px; }
.timeline-item.right::before { left: -13px; }

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, max-height 0.35s ease;
  cursor: pointer;
}

.timeline-content:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
  z-index: 5;
  position: relative;
}

.timeline-content h3 {
  margin: 0 0 8px 0;
  color: rgb(1, 96, 1);
  font-size: 24px;
}

.timeline-date {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #444;
}

.short-desc {
  margin: 0;
  font-size: 16px;
}

.full-desc {
  opacity: 0;
  display: none;
  margin-top: 10px;
}

.timeline-content:hover .full-desc {
  opacity: 1;
  display: block;
}

@media screen and (max-width: 768px) {
  .timeline::before { left: 25px; }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .timeline-item.right,
  .timeline-item.left { left: 0; }

  .timeline-item::before { left: 16px; }

  .timeline-item.left::before { right: auto; }
}

/* ============================================================
   CLASSES PAGE
   ============================================================ */

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 40px;
}

.class-card {
  background: white;
  border-radius: 16px;
  padding: 10px 25px;
  text-decoration: none;
  color: black;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center; /* add this */

}

.class-card-with-link {
  background: white;
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  color: black;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  position: relative;        /* needed for the link to position inside */
  padding-bottom: 2.5rem;    /* make room for the link at the bottom */
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center; /* add this */

}

.class-card h3 {
  color: rgb(1, 96, 1);
  margin-bottom: 10px;
  font-size: 22px;
}

.class-card h4,
.class-card-with-link h4 {
  font-size: 15px;
}

.class-card p,
.class-card-with-link p {
  font-size: 16px;
  padding: 0;
  text-align: center;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.class-card-with-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.class-section {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1rem;
  margin-left: 50px;
}

.view-labs {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  font-size: 12px;
  text-decoration: none;
  color: rgb(120, 177, 120)
}

.view-labs:hover {
  color: rgb(1, 96, 1);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-flex {
  display: flex;
  flex-direction: row;
  gap: 60px;
  padding: 60px 6px 60px 60px;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
}

.contact-left p {
  size: 25px;
}

.contact-right {
  flex: 2;
  min-width: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: inherit;
  text-decoration: none;
  size: 20px;
}

.contact-link:hover {
  color: rgb(1, 96, 1);
}

.contact-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-flex a {
  padding-left: 10px;
}

.img-contact { /* icons on Contact page */
  width: 50px;
  height: auto;
  padding: 10px;
}

/* ============================================================
   COMMENT FORM — Quiz 3 addition
   ============================================================ */

#commentBox {
  background-color: #fff;
  width: 700px;
  margin: 40px auto;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.comment-input {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
}

.comment-fields {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.comment-fields input {
  margin-top: 5px;
}

.comment-field {
  flex: 1;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
}

.comment-submit {
  background-color: #63AC7F;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  display: block;
  margin: 20px auto;
}

.comment-submit:hover {
  background-color: rgb(1, 96, 1);
}

.comment-field:focus,
.comment-input:focus {
  background-color: #fee;
  border-color: #f99;
  outline: none;
}

/* Approved comment display */
.commentApproved {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin: 15px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
  width: 400px;
}

.commentApproved strong { /* commenter name */
  font-size: 1.1em;
  color: #333;
}

.commentApproved em { /* timestamp */
  font-size: 0.85em;
  color: #777;
}

.commentApproved p { /* comment text */
  font-size: 1em;
  line-height: 1.5;
  margin-top: 5px;
}

.commentAccepted { /* submission confirmation page */
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 120px auto;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
  width: 600px;
  text-align: center;
  display: block;
}

.commentAccepted h4 {
  color: black;
}

/* ============================================================
   RSS FEED STYLING
   ============================================================ */

title {
  color: rgb(1, 96, 1);
  font-size: 18px;
  padding: 10px;
}

link {
  display: block;
  color: blue;
  padding: 10px;
}

guid        { padding: 10px; }
lastBuildDate { padding: 10px; }

item {
  display: block;
  padding: 10px;
}

pubDate {
  display: block;
  padding: 10px;
}

/* ============================================================
   FOOTER — all pages
   ============================================================ */

.footer {
  background-color: rgb(0, 70, 0);
  color: white;
  margin-top: auto;
  align-items: flex-align;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 20px 30px;
  padding-bottom: 10px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

.footer-section h4 {
  color: white;
  font-size: 20px;
  text-align: left;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.footer-section {
  text-align: left;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: white;
  display: block;
  margin: 0 0 8px 0;
  padding: 0;
}

.footer-section a h4:hover {
  color: rgb(120, 177, 120);
}

.footer-section .footer-link {
  font-size: 14px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section .footer-link:hover {
  color: rgb(120, 177, 120);
  text-decoration: none;
}

.footer-section .img-footer {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.img-gmail,
.img-linkedIn { /* icons in footer */
  width: 20px;
  height: auto;
}


/*LABS*/
.button-labs {
  display: inline-block;
  padding: 6px 12px;       /* smaller */
  font-size: 13px;         /* smaller text */
  font-weight: 500;        /* lighter than bold */
  border-radius: 6px;

  background-color: #63AC7F;
  color: white;

  margin-right: 10px;
  margin-top: 8px;

  transition: all 0.2s ease;
}

.button-labs:hover {
  background-color: rgb(1, 96, 1);
  transform: translateY(-1px);   /* subtle, not jumpy */
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.button-labs-container {
  display: flex;
  gap: 10px;          /* space BETWEEN buttons */
  margin-top: 12px;   /* space from text */
  flex-wrap: wrap;    /* prevents squishing on small screens */
}