/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', sans-serif;
  background: linear-gradient(to top, #c1f344, #7ae77f);
  padding: 2rem 2rem 2rem 0;  /* remove left padding */
  color: #000;
}
html, body {
  height: auto;
  overflow-x: hidden;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;   /* spread links across the nav */
  padding: 0 5%;                    /* some left/right padding so they don't hug edges */
  font-weight: bold;
  font-size: 2rem;                  /* larger font size */
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  flex: 0 0 12.5%;      /* fixed width ~1/8 = 12.5% */
  text-align: center;   /* center text inside each link block */
}

nav a:hover {
  text-decoration: underline;
  cursor: pointer;
}


/* Profile Photo */


.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
/* Add left margin to intro so text doesn't go under photo */
.content-wrapper {
  display: flex;
  align-items: flex-start;  /* align top of intro and images */
  gap: 3rem;                /* space between text and images */
  margin-left: 350px;       /* space from left, adjust as needed */
  margin-top: 90px;         /* match your current intro vertical spacing */
}

/* Make intro keep its width */
.profile-photo {
  flex-shrink: 0;     /* Prevent shrinking */
  width: 250px;       /* Fixed width */
  height: 300px;      /* Fixed height */
  border-radius: 50%;
  overflow: hidden;
  margin-top: 0px;
  margin-left: -130px;
  position: relative;
  left: -100px;
}

.intro {
  flex-grow: 1;       /* Allow growing */
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 70px;
  position: relative;
  left: -50px;
}
.intro p {
  margin-bottom: 1.5rem; /* or any spacing you prefer */
}



/* Side images stacked vertically and centered between intro and right edge */
.side-images {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* center vertically relative to intro */
  gap: 2rem;
  margin-left: auto;         /* push images to right side */
  max-width: 250px;          /* max width for images container */
}

/* Style each image */
.side-images img {
  width: 100%;       /* make images fill the container width */
  height: auto;
  display: block;
  border-radius: 12px;  /* optional rounded corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* optional subtle shadow */
}


.intro h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro ul {
  list-style-type: none; /* removes bullets */
  padding-left: 0;       /* remove left padding */
  margin-top: 1rem;
}

.intro ul li {
  margin-bottom: 1rem;   /* add spacing between each list item */
}
.content-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-left: 300px;  /* bigger number moves both right */
}
html, body {
  overflow-x: hidden;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  padding: 2rem 2rem 2rem 0;  /* or adjust */
  background: linear-gradient(to bottom, #d0ff59, #a8f3aa);
}
.connect-btn {
  margin-top: 0.2rem;
  padding: 0.4rem 1rem;        /* smaller padding */
  font-size: 1rem;             /* smaller font */
  font-weight: bold;
  background-color: white;     /* white background */
  color: #0d0d0e;              /* X/Twitter blue text */
  border: 2px solid #f4f6f7;  /* blue border */
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.connect-btn:hover {
  background-color: #ffffff;  /* blue background on hover */
  color: rgb(14, 13, 13);               /* white text on hover */
}
.latest-posts {
  max-width: 900px;
  margin: 3rem auto 4rem;  /* center horizontally and add vertical spacing */
  padding: 0 1rem;
  color: #000;
}

.latest-posts h2 {
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.latest-posts blockquote.twitter-tweet {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 550px;  /* Twitter default embed width */
}

.latest-posts {
  /* Align the title to the left */
  text-align: left;
  margin-top: 2rem;
  padding-left: -5%; /* optional: add some left padding */
}

.tweet-wrapper {
  /* Center the embedded tweet only */
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.project {
  max-width: 600px;
  margin-bottom: 3rem;
}

.project img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.project h2 {
  margin-top: 0;
}

.project .button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #4CAF50;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.project .button:hover {
  background-color: #45a049;

.project-image-link {
  flex-shrink: 0;
  width: 250px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.project-image-link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-image-link:hover img {
  transform: scale(1.05);
}

.project-description {
  flex: 1;
  font-size: 1.1rem;
  color: #333;
}

.project-description h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: #222;
}

.project-description p {
  line-height: 1.6;
}

.projects-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* center all children horizontally */
  gap: 30px;
}

/* Make project cards block-level so margin auto works */
.project-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 90%;           /* width of card */
  max-width: 900px;     /* constrain card width */
  align-items: center;
  text-decoration: none; /* remove link underline */
  margin: 0 auto;       /* this centers the card */
}



.project-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.project-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.project-image {
  width: 100%;
  min-width: 300px;
  cursor: pointer;
  height: 100%;      /* fill card height */
  overflow: hidden;
  border: 3px solid #000;
}
/* Main container */

/* Main container */
main {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center Projects & Research horizontally */
  gap: 60px;
  padding: 40px 20px;
}

/* Section styling */
.projects-section, .research-section {
  width: 100%;
  text-align: center
  max-width: 1000px;
  margin: 0 auto;
}

/* Section Titles */
.projects-section h2,
.research-section h2 {
  margin-bottom: 40px;
  font-size: 2.6rem;
  font-weight: bold;
}



.left-half, .right-half {
  flex: 1;
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Horizontal Research Cards */
.research-item {
  display: flex;
  flex-direction: row;    /* horizontal layout */
  gap: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1000px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;      /* keep horizontal on all screens */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.research-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Left and Right halves of research cards */
.research-left, .research-right {
  flex: 1;
}

.research-left {
  /* optional: placeholder for image/diagram */
}

.research-right h3 {
  margin-top: 0;
}

.research-right p {
  margin: 6px 0;
  line-height: 1.5;
}


.left-half, .right-half {
  flex: 1;
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}






.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  display: block;
}

.project-info {
  width: 55%;
  padding: 0.7rem 1rem;  /* slightly less padding to save space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;         /* fill card height */
  overflow-y: auto;     /* scroll text if needed */
}

.project-info h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  line-height: 1.1;
}

.project-info p {
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: break-word;
}



.projects-section {
  margin-top: 100px;  /* Increase this number to move everything down */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}


.projects-section h2 {
  font-size: 2.5rem;  /* smaller than before */
  font-weight: bold;
  margin-left: 10vw;  /* keep it 1/4 across the screen */
  margin-bottom: 2rem;
  text-align: left;
}

.github-link {
  margin-top: 1rem;
  font-weight: bold;
  color: #0366d6; /* GitHub blue */
  cursor: pointer;
  text-decoration: underline;
  font-size: 1rem;
  max-width: fit-content;  /* so it doesn't stretch across */
}

.github-link:hover {
  color: #023e8a;
}



.github-box {
  display: inline-block;         /* so it fits content and stays on its own "line" */
  margin-top: 1rem;              /* spacing above the box */
  padding: 0.4rem 1rem;          /* comfortable padding inside */
  background-color: #0366d6;     /* GitHub blue background */
  color: white;                  /* white text */
  font-weight: bold;
  border-radius: 6px;            /* rounded corners */
  cursor: pointer;
  user-select: none;             /* prevent text selection on click */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.github-box:hover {
  background-color: #023e8a;    /* darker blue on hover */
}

.latest-posts {
  margin-top: 120px;      /* push the whole section down */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.latest-posts h2 {
  font-size: 2.5rem;      /* smaller than before, adjust as needed */
  font-weight: bold;
  text-align: left;
  margin-bottom: 1.5rem;
  margin-left: 0;         /* align flush left within container */
}

.tweet-wrapper {
  display: flex;
  justify-content: center;  /* center tweet embed */
  width: 100%;
}
/* CONTACT SECTION */
.contact-section {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;       /* center content */
  gap: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1rem;           /* normal size */
}

.contact-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-section p,
.contact-description,
.contact-list,
.contact-item {
  font-size: 1rem;
  font-weight: 400;
  margin: 0.2rem 0;
  text-align: center;
  color: #000;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 20px;
  height: 20px;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: #333;
  background-color: transparent;
}

.site-footer h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}

.footer-contact-links img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
}

.footer-copyright {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-top: 0;
}


/* Make layout responsive on mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }
  html, body {
  height: 100% !important;      /* full viewport height */
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important; /* no horizontal scroll */
  background: linear-gradient(to bottom, #d0ff59, #a8f3aa) !important; /* your gradient */
}


 nav {
  display: flex;
  flex-direction: row;      /* keep links in a row */
  justify-content: center;  /* center the nav items */
  flex-wrap: wrap;          /* allow wrapping if needed */
  gap: 15px;                /* space between links */
  padding: 10px 0;
  font-size: 1.5rem;        /* slightly smaller font on mobile */
}
  nav a {
  flex: 0 1 auto;          /* allow links to size naturally */
  width: auto;             /* don't force fixed width */
  padding: 8px 12px;
  text-align: center;
}



  .content-wrapper {
  margin-left: 0 !important;   /* remove desktop margin */
  padding-left: 10vw !important;  /* add left padding of 10% viewport width */
  padding-right: 10px !important;
  width: 100% !important;      /* full width */
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important; /* stack vertically */
  align-items: flex-start !important; /* align content to left with padding */
}

.profile-photo {
  margin-left: 0 !important;
  position: static !important;
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  margin-bottom: 0rem !important;   /* remove space below the photo */
  margin-top: -10px !important;
}

.intro {
  margin-left: 0 !important;
  margin-top: -5px !important;
  position: static !important;
  padding-left: 0 !important;
  max-width: 100% !important;
  text-align: left !important;
}


/* Projects */
.projects-section {
  margin: 50px 0;
}

.project-item {
  margin-left: 20px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.project-item h3 {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.project-item a {
  color: #0077cc;
  text-decoration: none;
}

.project-item a:hover {
  text-decoration: underline;
}



  

  .intro ul {
    padding-left: 20px;
    text-align: left;
  }

  .side-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .side-images img {
    width: 80%;
  }

  .connect-btn {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
  }

  .tweet-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  footer {
    text-align: center;
    padding: 20px;
  }

  .footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-contact-links img {
    margin-right: 8px;
  }
  .contact-section {
  margin-left: 0 !important;
  padding: 20px 15px !important;  /* add comfy padding all around */
  width: 100% !important;
  box-sizing: border-box;
  background: transparent !important;  /* or your desired background */
}

.contact-section h2,
.contact-section p,
.contact-description,
.contact-list {
  margin-left: 0 !important;
  padding-left: 0 !important;
  max-width: 100% !important;
  text-align: left;
  overflow-wrap: break-word; /* prevent long words from breaking layout */
}
}








