/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

/* Profile section container */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
  align-items: center;
  padding: 20px;
  margin-bottom: 1rem;
}

/* Styling for the image container */
.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  margin-right: 2rem;
}

/* Styling for the profile image */
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

/* When the image is hovered, apply a slight zoom effect */
.profile-img:hover {
  transform: scale(1.05);
}

/* Styling for the text section */
.section__text {
  text-align: center;
  align-self: center;
}

/* Typing effect text */
#typing-text {
  font-weight: 3.0rem;
  font-size: 1.1rem;
  color: #333;
  display: inline-block; /* Ensures it stays inline with other elements */
}

/* Styling for the titles (below the main name) */
.section__text__p2 {
  font-size: 1.0rem; /* Adjust size for better distinction */
  color: #555; /* Use a subtle gray color to contrast */
  font-style: italic; /* Optional: Add an italic style for emphasis */
  text-transform: none; /* Ensure no unnecessary capitalization */
  margin-top: 1rem; /* Add space from the main title */
  margin-bottom: 1rem;
}

/* Title styling */
.title {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/* Social icons container */
#socials-container {
  display: flex;
  flex-direction: column; /* Stack items vertically instead of horizontally */
  align-items: center; /* Center items horizontally */
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* Added styling for social icons row to keep icons together */
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ICONS */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

/* ABOUT SECTION */ /* Reset some default styles */
/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall styling */
body {
  background-color: #f4f4f4;
  color: #333;
}

/* About Section Styling */
#about {
  padding: 50px;
  background-color: #fff;
  border-radius: 8px;
  max-width: 1200px;
  margin: 50px auto;
  margin-top: 0rem;
}

/* Introduction Text */
.about__intro-text {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

.about__title {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 10px;
  color: #333;
}

/* Section Container (for image and details) */
.about__section-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 30px;
}

/* Picture Container */
.about__pic-container {
  flex-basis: 30%;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.about__pic {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Details Container (Experience & Education) */
.about__details-container {
  flex-basis: 65%;
}

/* Info Containers for Experience and Education */
.about__info-containers {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Box Style for Experience and Education */
/* General Box Style */
.about__details-container-box,
.about__text-container {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  width: 48%;
  display: flex;
  flex: 1; /* Ensures both boxes take equal width */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%; /* Makes both sections equal in height */
  padding: 20px;
  background-color: white; /* Adjust background if necessary */
  border-radius: 10px; /* Optional: Gives rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

/* Hover effect for Experience, Education, and About Text Boxes */
.about__details-container-box:hover,
.about__text-container:hover {
  animation: none; /* Remove shake animation */
  transform: translateY(-5px); /* Move up slightly */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Optional: Hover effect for Experience and Education Titles */
.about__heading-with-icon:hover {
  cursor: pointer;
}

/* Optional: Adjust text container style */
.about__text-container {
  width: 100%; /* Ensure the text container spans full width */
}

/* Optional: Hover effect for the Passionate Section (Text Box) */
.about__text-container:hover {
  cursor: pointer; /* Add pointer cursor to indicate interactivity */
}

.about__heading-with-icon {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between icon and heading */
}

.about__icon {
  width: 30px;
  height: 30px;
}

.about__details-container-box h3 {
  font-size: 1.5rem;
  color: #333;
}

.about__experience-list,
.about__education-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about__experience-list li {
  margin-bottom: 15px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.about__education-list li {
  margin-bottom: 15px;
  line-height: 1.2;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.about__experience-list li strong {
  display: block; /* Job titles appear below the company name */
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 0.9rem;
}
.about__education-list li strong {
  font-size: 0.9rem;
}

.about__duration {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-top: 3px;
}

/* Text Container (About Text) */
.about__text-container {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.about__text-container p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about__section-container {
    flex-direction: column;
    align-items: center;
  }

  .about__pic-container {
    margin-bottom: 20px;
  }

  .about__details-container {
    width: 100%;
  }

  .about__info-containers {
    flex-direction: column;
    gap: 10px;
  }

  .about__details-container-box {
    width: 100%;
  }
}

/* EXPERIENCE SECTION */

/* Container for the skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusts to screen size */
  gap: 20px; /* Space between the boxes */
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1200px; /* Limits overall width */
}

/* Each skill box */
.skill-box {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Icon inside the skill box */
.skill-box .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* Heading and text inside box */
.skill-box h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.skill-box p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #777;
}

/* Hover effects */
.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr); /* Two boxes per row */
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: 1fr; /* Single column for small screens */
  }
}

/* PROJECTS SECTION */

/* General section styling */
#my-projects {
  padding: 40px 20px;
  text-align: center; /* Centering the heading */
}

.title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center; /* Keep the heading centered */
}

.section__text__p1 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
}

/* Container for projects */
.projects__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centering the items */
  gap: 20px;
}

/* Each project item */
.projects__item {
  width: calc(50% - 10px); /* Two items per row, 10px gap between */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures the button stays at the bottom */
  height: 450px; /* <-- Set a consistent height for all project items */
  overflow: hidden; /* To handle content overflow */
}

/* Hover effect for the project items */
.projects__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.projects__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Changed from center left to center to show middle part of video */
  border-radius: 1rem;
  transition: transform 0.3s ease;
  display: block;
  background: #000;
  min-width: 100%; /* Ensure minimum width fills container */
  min-height: 100%; /* Ensure minimum height fills container */
}

.projects__video:hover {
  transform: scale(1.05);
}

.projects__subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: rgb(53, 53, 53);
}

.projects__row {
  display: contents; /* This makes the row wrapper invisible to the grid */
}

/* Image container */

.projects__image-container {
  position: relative;
  width: 100%; /* Full width */
  height: 100%; /* Full height relative to the parent */
  max-width: 100%; /* Ensure it doesn't stretch beyond parent width */
  overflow: hidden; /* Hide anything out of view */
  border-radius: 8px; /* Optional: rounded corners */
}

/* Slider container should take full width */
.slider {
  display: flex;
  transition: transform 0.5s ease; /* Smooth transition for shifting slides */
  width: 50%; /* Full width of the parent container */
  height: 100%; /* Full height of the parent container */
  overflow: show;
}

/* Each slide should occupy full width and height */
.slide {
  width: 100%; /* Ensure each slide takes full width of the slider */
  height: 100%; /* Make slides take the full height of the container */
  object-fit: contain; /* Preserve image aspect ratio */
  flex-shrink: 0; /* Prevent images from shrinking */
  display: flex;
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically */
}

/* Previous and Next button positioning */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
  font-size: 20px;
  user-select: none;
  transition: background-color 0.3s ease;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Making the project images responsive */
.projects__image {
  width: 100%; /* Stretch image to fill the width of the container */
  height: 100%; /* Stretch image to fill the height of the container */
  object-fit: contain;
}

.projects__image-1 {
  max-width: 100%;
  height: 350px;
  border-radius: 8px;
  cursor: pointer;
}

/* Subtitle */
.projects__subtitle {
  font-size: 1.1rem;
  margin: 15px 0;
  text-align: center;
}

/* Button container */
.projects__button-container {
  display: flex;
  justify-content: center;
  margin-top: auto; /* Push the button to the bottom of the container */
  margin-bottom: 10px;
}

/* Styling for the Github button */
.projects__button {
  background-color: #000000; /* Set the button background color to black */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block; /* Ensure it remains on a new line */
  width: 100%; /* Button spans full width */
  max-width: 200px; /* Limit width */
  margin: 0 auto; /* Centers the button horizontally */
}

/* Button hover effect */
.projects__button:hover {
  background-color: #333333; /* Darker shade of black for hover effect */
}

/* Ensure all button containers have consistent alignment */
.projects__button-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* Container for all the skills */
.article-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 20px; /* Space between items */
  justify-items: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  text-align: center; /* Align text in the center */
}

/* Each skill article */
.article-container article {
  background-color: #f9f9f9; /* Optional background color */
  padding: 20px;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease; /* Hover effect */
  max-width: 200px; /* Limit the width of each box */
  width: 100%; /* Allow responsiveness */
}

.article-container article:hover {
  transform: translateY(-5px); /* Slight hover effect */
}

/* Icon styles */
.icon {
  width: 40px; /* Adjust size */
  height: 40px;
  margin-bottom: 10px; /* Space between the icon and text */
}

/* Responsive design */
@media (max-width: 992px) {
  .article-container {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row on medium screens */
  }
}

@media (max-width: 576px) {
  .article-container {
    grid-template-columns: 1fr; /* 1 item per row on small screens */
  }
}
