* {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-shadow: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  color: var(--clr-fg);
  background-color: var(--clr-bg);
}

.light {
  --clr-bg: #fcfcfc;
  --clr-bg-alt: #fff;
  --clr-fg: #555;
  --clr-fg-alt: #444;
  --clr-primary: #2978b5;
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.dark {
  --clr-bg: #23283e;
  --clr-bg-alt: #2a2f4c;
  --clr-fg: #bdbddd;
  --clr-fg-alt: #cdcdff;
  --clr-primary: #90a0d9;
  --shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

::-moz-selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

::-webkit-selection,
::selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
  color: var(--clr-fg-alt);
}

h1 {
  font-size: 4rem;
  margin-left: 40px;
  text-align: center;
  padding-top: 50px;
}

h2 {
  font-size: 2rem;
  margin-left: 30px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

.about_intro {
  padding: 200px;
  padding-top: 10px;
  margin-right: 1000px;
  text-align: center;
  color: var(--clr-primary);
  flex: 2; 
}

h5 {
  font-size: 4rem;
  margin-right: 10px;
  text-align: left;
  padding-top: 30px;
}

h4 {
  font-size: 1.3rem;
  margin-left: 10px;
  margin-top: 30px;
  text-align: center;
  color: var(--clr-primary);
  flex: 2; 
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.6rem;
  }
  .about__content-container {
        flex-direction: column; 
        gap: 1.5rem;
        width: 100%;
    }

.about__content-container .about__img {
        margin-bottom: 1rem; 
        width: 300px;
        height: 200px;
    }

.about__info-text {
        text-align: center; 
    }

.about__info-text .section__title {
        text-align: center; 
    }  

    @media (max-width: 600px) {
  /* ... your existing mobile styles ... */
  h1 {
    font-size: 2.6rem;
  }
  .about__content-container {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  /* ... rest of existing mobile styles ... */
  .about__header-container,
  .about__bio-container {
    flex-direction: column;
    align-items: center; /* Center items for a nicer mobile stack */
    gap: 0; /* Optional: adjust gap for stacked content */
  }

  /* You might also want to adjust the image size for mobile */
  .bio-photo__img {
    width: 100%; /* Example: make the photo smaller for mobile */
    height: auto;
    align-items: center;
  }
  .h1 {
    text-align: center;
  }
}
   
    .projects__grid {
        grid-template-columns: 1fr; 
        grid-gap: 3em;
    }
    
    .project {
        padding: 1.5em 1em; 
    }

 .h1 {
  text-align: center;
  padding-right: 0%;
 }
}

/*===================
  buttons and links
===================*/

.link {
  color: var(--clr-primary);
  padding: 0 0 0.3em 0;
  padding-top: 0%;
  padding-left: 0%;
  position: relative;
}

.link:hover {
  color: var(--clr-primary);
}

.link::before {
  content: "";
  display: inline;
  width: 0%;
  height: 0.2em;
  position: absolute;
  bottom: 0;
  background-color: var(--clr-primary);
  transition: width 0.2s ease-in;
}

.link:hover::before,
.link:focus::before {
  width: 100%;
}

.link--nav {
  color: var(--clr-fg);
  text-transform: lowercase;
  font-weight: 500;
}

.link--icon {
  color: var(--clr-fg);
  font-size: 2rem;
}

.btn {
  display: block;
  padding: 0.8em 1.4em;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: transform 0.2s ease-in-out;
}

.btn--outline {
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline:focus,
.btn--outline:hover {
  color: var(--clr-bg);
}

.btn--outline:before {
  content: "";
  position: absolute;
  background-color: var(--clr-primary);
  right: 100%;
  bottom: 0;
  left: 0;
  top: 0;
  z-index: -1;
  transition: right 0.2s ease-in-out;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
  right: 0;
}

.btn--plain {
  text-transform: initial;
  background-color: var(--clr-bg-alt);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border: 0;
}

.btn--plain:hover {
  transform: translateY(-4px);
}

.btn--icon {
  padding: 0;
  font-size: 1.2rem;
  align-items: center;
}

.btn--icon:hover,
.btn--icon:focus {
  color: var(--clr-primary);
}

.btn--icon:active {
  transform: translateY(-5px);
}

/*========
  layout
========*/

.center {
  display: flex;
  align-items: center;
}

.header {
  height: 8em;
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
}

main {
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
}

.section {
  margin-top: 5em;
}

.section__title {
  text-align: center;
  margin-bottom: 1em;
  text-transform: uppercase;
  margin-left: 0%;
}

.nav__list {
  margin-right: 1.5em;
  display: flex;
}

.nav__list-item {
  margin-left: 2em;
}

.nav__hamburger {
  display: none;
  width: 1em;
}

/* .about {
  flex-direction: column;
  margin-top: 3em;
} */

/* ===================
   New Side-by-Side Layout Styles
   =================== */

.about {
    /* Set the max-width and center the whole section content for the new layout */
    max-width: 1100px; 
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    /* Reset the old 'center' flex properties */
    display: block; 
}

.about__content-container {
    display: flex;
    align-items: center; /* Vertically align image and text */
    gap: 3rem; /* Space between the image and the text */
    margin-top: 3em;
    margin-bottom: 2em; /* Add space before contact links */
}

/* Ensure the image doesn't take up too much space and is fixed size */
.about__content-container .about__img {
    flex-shrink: 0; 
    width: 300px; 
    height: 600px;
    margin-bottom: 0; 
}

/* Allow the text block to take up the rest of the available space */
.about__info-text {
    flex-grow: 1;
    text-align: left; /* Align text to the left */
}

.about__info-text .section__title {
    /* Overwrite the centered title on the main content area */
    text-align: center;
    margin-top: 0;
}

.about__img {
  width: 330px;
  height: 450px;
  padding: 2px;
  border-radius: 50%; /* makes it round */
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 3px 5px 30px #2978b5;
}

.about__name {
  color: var(--clr-primary);
  flex: 2; 
  /* text-align: center; */
  margin-left: 100px;
}

.about__role {
  margin-top: 1.2em;
  flex: 2; 
  text-align: center;
}

.about__desc {
  font-size: 1.3rem;
  max-width: 400px;
}

.about__desc,
.about__contact {
  margin-top: 2.4em;
  align-items: center;
}

.about .link--icon {
  margin-right: 0.8em;
  padding: 4px 6px;
  border-radius: 50%;
}

.about .btn--outline {
  margin-right: 1em;
}


/* 1. Make the bio text and photo sit side-by-side */
.about__bio-container {
    display: flex;
    justify-content: space-between; /* Puts space between the text and the photo */
    align-items: flex-start; /* Aligns content to the top */
    margin-top: 30px; 
    gap: 40px; /* Add a nice gap between the two columns */
}

/* 2. Control the width of the text column (e.g., 70% of the container) */
.about__bio-text {
    flex: 2; /* This allows the text to take up about 2/3 of the space */
    /* Alternatively, you can use a fixed width: width: 70%; */
}

/* 3. Control the width of the image column (e.g., 30% of the container) */
.about__bio-photo {
    width: 30%; /* This allows the photo to take up about 1/3 of the space */
    /* Alternatively, you can use a fixed width: width: 30%; */
    text-align: right; /* Ensure the image is right-aligned in its space */
    border-radius: 40%; /* makes it round */
}

/* 4. Make sure the image inside the photo container scales correctly */
.bio-photo__img {
    max-width: 100%; /* Ensures the image doesn't overflow its container */
    height: 50%; /* Maintains the image's aspect ratio */
    border-radius: 100%; /* Optional: adds a nice soft edge to the image */
    box-shadow: 3px 5px 30px #2978b5;
}

/* Make sure you keep the CSS from the previous step for the header area: */
.about__header-container {
    display: flex;
    align-items: flex-start; 
    gap: 30px; 
}

.projects__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
  grid-gap: 3em;
}

.project {
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s linear;
}

.project:hover {
  transform: translateY(-7px);
}

.project__description {
  margin-top: 1em;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.2em 0;
}

.project__stack-item {
  margin: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-fg-alt);
}

.project .link--icon {
  margin-left: 0.5em;
}

.skills__list {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills__list-item {
    margin: 1em;
    padding: 1.3em 1em;
    background-color: #f5f3f3;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skills__list-item .fab {
    margin-right: 0.5em; 
    font-size: 4em;
    color: #8ac3ec;
}

.skills__list-item:hover {
    transform: translateY(-8px);
}
.contact {
  flex-direction: column;
}

.footer {
  padding: 3em 0;
  margin-top: 4em;
  text-align: center;
}

.footer__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-fg);
}

.scroll-top {
  display: none;
  position: fixed;
  bottom: 1em;
  right: 2em;
  background-color: transparent;
  font-size: 1.8rem;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 600px) {
  .header {
    height: 6em;
  }

.section {
    margin-top: 4em;
  }

main {
padding: 0 1em;
width: 100%;
 }

.nav__list {
    flex-direction: column;
    padding: 4em 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 5em;
    background-color: var(--clr-bg);
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
  }

  .display-nav-list {
    width: 100%;
  }

  .nav__list-item {
    margin: 0.5em 0;
  }

  .nav__hamburger {
    display: flex;
    margin-left: 0.8em;
  }

  .about {
    align-items: flex-start;
    margin-top: 2em;
  }

  .footer {
    padding: 2em;
    margin-top: 3em;
  }

  .scroll-container {
    display: none;
    }
  }