/* This is the CSS file which turns your plain HTML into a styled, more modern and minimalistic look.
Throughout this file, you will see a variety of CSS selectors, classes, pseudo-classes, and many properties.
One thing you may notice is that display: flex, is used a lot. Flexbox is very useful and common in the modern
day, so this is one of the most important things to learn out of everything in CSS: https://www.w3schools.com/css/css3_flexbox.asp */

/* GENERAL */

/* Using google fonts link to use Poppins fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Zero margin and padding for all elements */
* {
  margin: 0;
  padding: 0;
}

/* Set the font to poppins for the entire body*/
body {
  font-family: "Poppins", sans-serif;
}

/* Makes each button navigate smoothly to the next section of the website */
html {
  scroll-behavior: smooth;
}

/* Setting default text color for paragraphs */
p {
  color: rgb(85, 85, 85);
}

/* DESKTOP NAV */

/* Styling for the desktop navigation bar */
nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh; /* vh and vw are like percentages */
}

section{
  margin: 0 10rem; /* 1 rem is 16 px by default */
  padding-top: 4vh;
  box-sizing: border-box;
  min-height: 96vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

/* Example of a CSS pseudo class (:hover) which changes the <a> tag on hover */
a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

/* Pseudo class (:hover) which changes the logo class on hover */
.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

/* Styling for the hamburger menu */
/* Using the Id selector instead of class */
#hamburger-nav {
  display: none;
}

/* Styling for the menu links in the hamburger menu */
.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

/* Selecting the class "hamburger-icon" and then only the span tags */
.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;
}

/* Selecting a tags with classname "menu-links" */
.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;
}

/* More examples of pseudo classes. The first-child pseudo class selects the first element, nth-child selects the nth element, and last-child selects the last element */
/* Animations for opening and closing the hamburger menu */
.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;
}

/* PROFILE SECTION */

/* Styling for the profile section */
#profile {
  display: flex; /* Use flexbox to align items horizontally */
  justify-content: center; /* Center content horizontally within the flex container */
  gap: 5rem; /* Set the gap between child elements in the flex container */
  height: 80vh; /* Set the height of the profile section to 80% of the viewport height */
}

/* Container for the profile picture */
.section__pic-container {
  display: flex; /* Use flexbox for positioning child elements */
  height: 400px; 
  width: 400px; 
  margin: auto 0; /* Center the container horizontally */
}

/* Text container in the profile section */
.section__text {
  align-self: center; /* Center the text vertically within the flex container */
  text-align: center; /* Center the text horizontally within the container */
}

/* Styling for text in the profile section */
.section__text p {
  font-weight: 600; /* Set the font weight for paragraph text */
}

/* Additional styling for the first paragraph in the profile section */
.section__text__p1 {
  text-align: center; /* Center the text horizontally within the container */
}

/* Styling for the second paragraph in the profile section */
.section__text__p2 {
  font-size: 1.75rem; /* Set the font size for the second paragraph */
  margin-bottom: 1rem; /* Set margin at the bottom of the second paragraph */
}

/* Title styling in the profile section */
.title {
  font-size: 3rem; 
  text-align: center; /* Center the title horizontally within the container */
}

/* Container for social icons in the profile section */
#socials-container {
  display: flex; /* Use flexbox for positioning social icons horizontally */
  justify-content: center; /* Center social icons horizontally within the container */
  margin-top: 1rem; /* Set margin at the top of the social icons container */
  gap: 1rem; /* Set the gap between social icons */
}

/* ICONS */

/* Styling for icons used in the webpage */
.icon {
  cursor: pointer; /* Set the cursor to a pointer on hover for interactive icons */
  height: 2rem; 
}

/* BUTTONS */

/* Container for buttons in the webpage */
.btn-container {
  display: flex; /* Use flexbox for positioning buttons horizontally */
  justify-content: center; /* Center buttons horizontally within the container */
  gap: 1rem; /* Set the gap between buttons */
}

/* Styling for general buttons in the webpage */
.btn {
  font-weight: 600; /* Set the font weight for buttons */
  transition: all 300ms ease; /* Apply a smooth transition effect on all properties over 300 milliseconds */
  padding: 1rem; /* Set padding for buttons */
  width: 8rem; 
  border-radius: 2rem; /* Set the border radius for rounded corners */
}

/* Styling for buttons with color variation 1 */
.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid; /* Set border for button color variations */
}

/* Hover effect for buttons with color variation 1 and 2 */
.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer; /* Set the cursor to a pointer on hover for interactive buttons */
}

/* Additional styling for button color variation 1 and hover effect */
.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53); /* Set background color on hover for color variations */
  color: white; /* Set text color on hover for color variations */
}

/* Hover effect for button color variation 1 */
.btn-color-1:hover {
  background: rgb(0, 0, 0); /* Set a different background color on hover for color variation 1 */
}

/* ABOUT SECTION */

#about{
  position: relative;
}

.section-container{
  gap: 4rem;
  height: 80%;
  display: flex;
}

.section__pic-container{
  width: 400px;
  height: 400px;
  margin: auto 0;
}

.about-pic{
  border-radius: 2rem;
}

.about-details-container{
  justify-content: center;
  flex-direction: column;
}

.about-container,
.about-details-container{
  display: flex;
  flex-wrap: wrap;
}

.about-container{
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.details-container{
  flex: 1 0 calc(33.333% - 4rem);
  padding: 1.5rem;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163,163,163);
  text-align: center;
}

/* EXPERIENCE SECTION */
#experience {
    position: relative;
}
.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.about-containers {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-container {
    display: flex;
    text-align: initial;
    gap: 2.5rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* CONTACT SECTION */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-radius: 2rem;
    margin: 2rem auto;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

/* PROJECT SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: gray;
  background: white;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: gray;
}