/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bacasime+Antique&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* variables */
:root {
  /* Colors */
  /* #94de9a green */
  --primary-color: #ff91b6;
  --secondary-color: #8dd799;
  --bg-primary: #fff2ef;
  --text-color: #53504c;
  --text-color-two: #ffffff;
  --bg-secondary: #8dd799;
  --card-background: #f4f4f4;
  --bg-secondary-two: #ff91b6;

  --shadow: 0 10px 40px rgba(255, 143, 219, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling use body for paragraph text*/
body {
  background: var(--bg-primary);
  /* color: #8dd799; */
  color: #8cfa9e;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  cursor: url("../assets/favicon/favicon2.ico") 2 1, auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Home Heading 1 */
h1 {
  font-family: "Poppins", serif;
  color: #5a4d43eb;
  letter-spacing: 1px;
  font-weight: 500;
}
/* Home Heading 2 */
h2 {
  font-family: "Poppins", serif;
  color: #5a4d43eb;
  letter-spacing: 1px;
  font-weight: 400;
}
/* All my page headings, About, Projects, Photography */
h3 {
  font-family: "Poppins" serif;
  color: #5a4d43eb;
  font-weight: 300;
}

h4 {
  font-family: "Poppins", serif;
  color: #5a4d43eb;
  letter-spacing: 1px;
  font-weight: 400;
}

h5 {
  color: #5a4d43eb;
  font-family: "Poppins", serif;
  color: #5a4d43eb;
  letter-spacing: 1px;
  font-weight: 400;
}

/* For projects page tbc */
.gallery-container {
  text-align: left;
  display: flex;
  align-items: flex-start;
  max-width: 200%;
  width: 800px;
  margin: 140px auto;
  gap: 20px;
}

.gallery {
  padding: 0 5px;
  width: 33.3333%;
}

.gallery img {
  border-radius: 5%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery img:hover {
  opacity: 0.9;
  color: #ff91b6;
}

/* Image Description */
.img-desc {
  padding: 10px;
  text-align: center;
  font-size: 0.7rem;
  color: #53504c;
}

/* Responsive Design */
@media only screen and (max-width: 700px) {
  .gallery {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .gallery {
    width: 100%;
  }
}

/* Ensures Gallery Layout is Properly Cleared */
.image-gallery::after {
  content: "";
  display: table;
  clear: both;
}

/* Avatar image */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  outline: 4px solid #ffa7c5;
  align-self: flex-start;
  margin-top: 47px;
  margin-left: 45px;
}

.avatar-container {
  text-align: left;
  display: flex;
  align-items: flex-start;
  max-width: 90%;
  width: 800px;
  margin: 140px auto;
  gap: 60px;
}

.avatar-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 500px;
  text-align: left;
  justify-content: flex-start;
  margin-top: 45px;
}

.avatar-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff91b5;
}

.avatar-text h2 {
  font-weight: 500;
  color: #ffaac6;
}

.avatar-text h3 {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8ce799;
}

/* .outlined-word {
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 20px;
  color: #9de1a8;
  word-spacing: 40px;
  outline: 2px solid #feb0ca;
  border-radius: 13px;
  padding: 6px;
} */

.avatar-text p {
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 9px;
  color: #5a4d43eb;
  font-weight: 300;
}

@media (max-width: 768px) {
  .avatar-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .avatar {
    width: 155px;
    height: 155px;
    align-self: center;
    margin-right: 40px;
  }

  .avatar-text {
    max-width: 90%;
    text-align: left;
  }
}

/* Social links container */
.social-links {
  display: flex;
  justify-content: left;
  gap: 15px;
  stroke: #ff91b6;
}

.social-links i {
  display: inline-block;
  width: 30px;
  height: 30px;
  stroke: #ff91b6;
}

.social-links i svg {
  width: 30px;
  height: 30px;
  stroke: #ff91b6;
  transition: stroke 0.3s ease;
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
    margin-left: 0;
    stroke: #ff91b6;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff2ef;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: #fff2ef;
  letter-spacing: 1px;
  align-self: flex-end;
  padding-bottom: 3.21px;
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: "Poppins";
  color: #8dd799;
  padding: 8px 9px;
  border-radius: 20px;
  padding: 8px 12px;
}

.navbar .nav-link:hover {
  outline: 2px solid #ffd4e1; /* outlines the link */
}

.navbar #logo img {
  display: block;
  width: 110px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.profile-image {
  width: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-6px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}
/* grid display of projects */
.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}

#footer {
  margin-top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  padding-left: -1px;
}

#footer a {
  font-size: 0.8rem;
}

#footer a:hover {
  opacity: 0.6;
}

#footer p {
  font-size: 0.6rem;
  color: #8dd799;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    color: #8dd799;
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
  /* change position of burger menu */
  .hamburger {
    color: #8dd799;
    margin-top: 16px;
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}
