/* this is a reset */
* {
  margin: 0;
  box-sizing: border-box;
}

@import "https://unpkg.com/open-props";
@import "https://unpkg.com/open-props/normalize.min.css";

.scrollport {
  -webkit-mask-image: linear-gradient(
    to right,
    #000000,
    #000000,
    #000000,
    #000000
  );
  overflow-x: scroll;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  display: flex;
  gap: var(--size-10);
  align-items: flex-start;
  padding: var(--size-10);
  white-space: nowrap; /* Prevents wrapping to the next line */
}

.scrollport > div {
  display: inline-block; /* Ensure divs stay on one line */
  min-height: 250px;
  background-color: var(--surface-2);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-4);
  margin-right: 30px; /* Add space between cards */
  border: 2px solid #39ff14;
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;
  flex-shrink: 0;
  /*   overflow: auto; */
}

/* Changed background color to light baby blue */
body {
  font-family: sans-serif;
  font-size: 18px;
  background-color: #e6f3ff;
  padding-bottom: 2rem;
  overflow-x: hidden;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  transition: transform 0.2s;
  border: 2px solid white;
  border-radius: 10%;
}

img:hover {
  transform: scale(1.1);
}

h1 {
  font-size: 3.5rem;
  text-align: left;
}

/* Added shadow and underline to section titles */
h2.section-title {
  font-size: 2.7rem;
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #0056b3;
  display: inline-block;
}

h3 {
  font-size: 1.4rem;
  text-align: left;
  padding-bottom: 1.2rem;
}

p,
ul,
ol {
  font-size: 1.2rem;
}

.container {
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero {
  /*   background: linear-gradient(to right, rgba(0, 56, 139, 0.8), rgba(0, 138, 225, 0.8)), */
  background: url("https://cdn.glitch.global/e80f9c72-29dc-466f-9524-b0fcb6d7e356/background.png?v=1727670566673");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 70vh;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero-content {
  flex-grow: 1;
}

.name-underline {
  width: 100px;
  height: 3px;
  background-color: #00a8ff;
  margin: 10px 0 20px;
}

.website-explanation {
  font-size: 1rem;
  margin-bottom: 20px;
  /*   opacity: 0.8; */
  color: white;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background-color: #0056b3;
  padding: 0.7rem 1.5rem;
  color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 3px solid white;
  margin-right: 10px;
}

.btn:hover {
  background-color: #003d82;
  border-color: white;
}

/* Styled LinkedIn button */
.linkedin-btn {
  background-color: #0077b5;
}

.linkedin-btn:hover {
  background-color: #005983;
}

/* Section styles */
.about,
.resume,
.projects {
  padding: 4rem 0;
  text-align: center;
}
.projects {
  background-color: lightblue;
}

.about {
  /*   background-color: #f0f8ff; */
  background: rgb(131, 58, 180);
  background: linear-gradient(
    90deg,
    rgba(131, 58, 180, 1) 0%,
    rgba(253, 29, 29, 1) 50%,
    rgba(252, 176, 69, 1) 100%
  );
  color: white;
}

/* shadow effect in About Me cards */
.card {
  background-color: #007bff;
  color: white;
  margin: 1rem;
  border-radius: 10px;
  box-shadow: 10px 10px 49px 0px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease;
  flex: 1 1 300px;
  max-width: 350px;
  padding-bottom: 0;
  border: 2px solid white;
}

.image-card {
  width: 100%;
  height: auto;
  border-radius: 0px 0px 10px 10px;
  border-color: transparent;
  border-width: 0px;
  transform: none;
  transition: none;
}

.card .content {
  text-align: left;
  padding: 2rem;
  padding-left: 4rem;
  padding-bottom: 1rem;
}

.card h3 {
  padding: 2rem;
  padding-bottom: 0rem;
}

.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 0 1.5rem gray;
}

/* Resume section styles */
.resume .container > div {
  text-align: left;
  margin-bottom: 2rem;
}

/* Projects section styles */
.projects .card {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text */
  text-align: left; /* Align text to the left */
  border-radius: 10px; /* Rounded corners */
  padding: 20px; /* Padding inside the card */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  height: auto; /* Allow card to expand with content */
  display: inline-block;
}

.projects .card h3 {
  color: #0056b3;
  margin: 1rem;
  white-space: normal;
  padding-top: 0rem;
  padding-left: 0rem;
  padding-right: 0rem;
}

.projects .card p {
  padding: 6px;
  margin: 0; /* Ensure paragraphs have no margin to avoid overflow */
  white-space: normal;
}

.video-card {
  width: 100%; /* Make video take up full width of the card */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Match the card's rounded corners */
  margin-top: 1rem; /* Add margin at the top to space out from text */
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 2rem 3%;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .card {
    flex: 1 1 100%;
  }
}

/* Improve table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  border: 1px solid #dddddd;
  padding: 8px;
  text-align: left;
  background-color: white;
}

th {
  background-color: darkblue;
  color: white;
}

/* Adjust Projects section */
.projects .flex {
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .projects .card {
    flex: 0 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .projects .card {
    flex: 0 1 100%;
  }
}

/* styling for bio */
.bio-paragraph {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: white;
}

/* Mentor section styles */
.mentor {
  /*   background: rgb(128,108,117);
  background: radial-gradient(circle, rgba(128,108,117,1) 0%, rgba(67,95,130,1) 33%, rgba(148,187,233,1) 100%); */
  background: url("https://cdn.glitch.global/e80f9c72-29dc-466f-9524-b0fcb6d7e356/wednesdaypic.jpg?v=1728100157003");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  padding: 4rem 0;
  text-align: center;
  color: white;
}

.mentor .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mentor-quote,
.mentor-quote a {
  flex: 1;
  padding: 2rem;
  font-style: italic;
  font-size: 1.2rem;
  color: white;
}

.mentor-info {
  flex: 1;
  text-align: center;
  align-items: center;
  flex-direction: column;
  display: flex;
  color: white;
}

.mentor-info img {
  width: 200px;
  height: 200px;
  border-radius: 20%;
  margin: 1rem auto;
}

/* .hero2 {
/*   background: linear-gradient(to right, rgba(0, 56, 139, 0.8), rgba(0, 138, 225, 0.8)), */
/*   background:
    url("https://cdn.glitch.global/e80f9c72-29dc-466f-9524-b0fcb6d7e356/wednesdaypic.jpg?v=1728100157003");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 70vh;
  color: #ffffff;
  display: flex;
  align-items: center; */
/* } */

@media (max-width: 768px) {
  .mentor .container {
    flex-direction: column;
  }
}

/* 
span{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size:120px;
	letter-spacing:0.1em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: white;
  text-shadow: 
						8px 8px #ff1f8f,
						20px 20px #000000;
}
 */

@import url("https://fonts.googleapis.com/css2?family=Jost:wght@200;300;400&display=swap");
.design-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  min-height: 100vh;
  padding: 100px 0;
  font-family: Jost;
}

.design {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
  padding: 20px;
  background: #1f1f1f;
  -webkit-box-shadow: 5px 5px 10px #1a1a1a, -5px -5px 10px #242424;
  box-shadow: 5px 5px 10px #1a1a1a, -5px -5px 10px #242424;
  border-radius: 5px;
  color: white;
  padding: 1.75rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  border-radius: 6px;
}

.timeline-component {
  margin: 0px 20px 20px 20px;
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
  }
  .timeline-middle {
    position: relative;
    background-image: linear-gradient(45deg, #f27121, #e94057, #8a2387);
    width: 3px;
    height: 100%;
  }
  .main-middle {
    opacity: 0;
  }
  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #f27121, #e94057, #8a2387);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}



.cd-projects-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.cd-projects-container .single-project {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  transition: transform 0.4s;
}
.cd-projects-container .single-project:nth-of-type(2) {
  transform: translateY(33.3333333333%);
}
.cd-projects-container .single-project:nth-of-type(3) {
  transform: translateY(66.6666666667%);
}
.cd-title {
  height: 33.3333333333%;
}
.cd-title::before {
  /* background image */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 300%;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.single-project:nth-of-type(1) .cd-title::before {
  background-image: url(../img/img-1.jpg);
}
.cd-projects-container .single-project.selected {
  /* selected project */
  transform: translateY(0);
}
.cd-projects-container .single-project.selected ~ li {
  /* hide siblings projects */
  transform: translateY(100%);
}
.cd-project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.cd-project-info::before {
  /* use to push the .content-wrapper below the intro project image */
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.cd-project-info .content-wrapper {
  position: relative;
  z-index: 2;
  padding: 2em 0 3em;
  background-color: #ffffff;
}
.selected .cd-project-info {
  opacity: 1;
  visibility: visible;
  transition: opacity 0s, visibility 0s;
}
.cd-primary-nav {
  position: absolute;
  top: 0;
  left: 0;
  /* height = (100% - 9%) - 9% is the space taken by the projects when the navigation is open */
  height: 91%;
  width: 100%;
  overflow: auto;
  opacity: 0;
}
.cd-primary-nav ul {
  transform: translateY(50px);
  transition: transform 0.4s;
}
.cd-primary-nav.nav-open {
  opacity: 1;
}
.cd-primary-nav.nav-open ul {
  transform: translateY(0);
}

.cd-projects-container.nav-open .single-project {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: translateY(91%);
}
.cd-projects-container.nav-open .single-project:nth-of-type(2) {
  transform: translateY(94%);
}
.cd-projects-container.nav-open .single-project:nth-of-type(3) {
  transform: translateY(97%);
}
