/* Base Styles (Mobile first) */
/* header section */
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  /* font-family: "Playfair Display", serif; */
  font-family: "Roboto", sans-serif;
}
img {
  max-width: 100%;
}
header {
  background: #005fa3;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  padding: 1rem 0;
}
.container {
  /* border: 2px solid green; */
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__name {
  font-size: 1.5rem;
  font-weight: 700;
}
/*  */
/* Toggle (dark mode) button */
#themeToggle {
  cursor: pointer;
  background-color: #333;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  padding: 2px 9px;
  transition: opacity 0.3s ease;
}
#themeToggle:hover {
  opacity: 0.75;
}
/*  */
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: white;
  cursor: pointer;
}
.nav__link {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #005fa3;
  padding: 1.25rem 0;
  font-size: 1.125rem;
}
.nav__list {
  border: 2px solid #005fa3;
  padding: 0;
  margin: 0;
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  max-width: 250px;
  display: none;
  flex-direction: column;
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
  max-height: 60vh; /* if display height small e.g. landscape */
  overflow-y: auto;
}
.nav__list.nav--visible {
  display: flex;
  transform: scaleY(1);
}
.nav__item + .nav__item {
  margin-top: 0.15rem;
}
.nav__link:hover,
.nav__link:focus {
  /* background-color: #e4b363; */
  /* color: #464655; */
  opacity: 0.75;
  font-weight: 700;
}
/* hero section */
.hero {
  position: relative;
  overflow: hidden;
  /* border: 2px solid blueviolet; */
}
.background-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  clip-path: polygon(0 0, 100% 0, 100% 59%, 0% 100%);
  background: #00b4d2;
  z-index: 0;
}
.hero__image--content {
  position: relative;
  z-index: 1;
  width: 85%;
  margin: 0 auto;
}
.hero__image {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
}
.hero__title {
  font-family: "Playfair Display", serif;
  /* font-size: 2rem; */
  font-weight: 900;
  /* line-height: 2; */
  color: white;
  position: absolute;
  z-index: 2;
  bottom: 2%;
  right: 2%;
}
.hero__title span {
  display: block;
}
.about_me--heading {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-align: center;
  margin-top: 2rem;
}
.about_me__text {
  margin: 1rem 0;
}
.about_me__icons {
  /* border: 2px solid red; */
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.about_me__icons a {
  /* border: 2px solid blue; */
  cursor: pointer;
  width: 2rem;
}

/* Skills section */
.skills,
.projects,
.testimonials,
.resume,
.contact {
  margin-top: 5rem;
}
.section__title {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  /* border: 2px solid blue; */
}
:root {
  --shadow-color: 221deg 63% 42%;
  --shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
    0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
    1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
  --shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
    0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
    2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
    5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
  --shadow-elevation-high: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
    1.5px 2.9px 3.7px -0.4px hsl(var(--shadow-color) / 0.34),
    2.7px 5.4px 6.8px -0.7px hsl(var(--shadow-color) / 0.34),
    4.5px 8.9px 11.2px -1.1px hsl(var(--shadow-color) / 0.34),
    7.1px 14.3px 18px -1.4px hsl(var(--shadow-color) / 0.34),
    11.2px 22.3px 28.1px -1.8px hsl(var(--shadow-color) / 0.34),
    17px 33.9px 42.7px -2.1px hsl(var(--shadow-color) / 0.34),
    25px 50px 62.9px -2.5px hsl(var(--shadow-color) / 0.34);
}

.skills__card {
  width: 80%;
  margin: 0 auto;
  background: gainsboro;
  box-shadow: var(--shadow-elevation-high);
  padding: 2rem 0;
}
.skills__card + .skills__card {
  margin-top: 2rem;
}
.skills__card:hover,
.skills__card:focus {
  box-shadow: var(--shadow-elevation-low);
}
.skills__heading {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 1.5rem;
  color: rgb(73, 73, 243);
  /* border: 2px solid blanchedalmond; */
}
.skills__items--container {
  /* border: 2px solid blue; */
  margin-left: 3rem;
}
.skills__items {
  /* border: 2px solid red; */
  display: flex;
  gap: 1rem;
  align-items: center;
}
.skills__items + .skills__items {
  margin-top: 1rem;
}
.skills__items__icon {
  width: 2rem;
}

/* Projects section */
.project__name {
  font-family: "Playfair Display", serif;
}
.project__card--wrapper {
  /* border: 2px solid blue; */
}
.project__card {
  /* border: 2px solid blueviolet; */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.project__card + .project__card {
  margin-top: 5rem;
}
.project-image {
  width: 100%;
  height: 300px; /*       */
  overflow: hidden;
}

.project__screenshoot {
  border: 2px solid #005fa3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project__name_and_icons {
  /* border: 2px solid red; */
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  width: 80%;

  margin: 0 auto;
  padding: 1rem 0;
}
.project__icons {
  display: flex;
  gap: 1rem;
  /* border: 2px solid red; */
}
.project__icons a {
  width: 1.7rem;
  /* border: 2px solid green; */
}
.project__description {
  width: 85%;
  margin: 0 auto;
  font-size: 0.9rem;
  /* border: 2px solid green; */
}
.tech {
  /* font-size: 0.55rem; */
  width: 80%;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping */
  gap: 0.5rem;
}
.tech span {
  font-size: 0.65rem;
  background: #00b4d2;
  color: white;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap; /* Prevent breaking inside span */
}
.tech span:not(:first-of-type) {
  /* margin-left: 1rem; */
  /* background: red; */
}
/* Testimonials */
/* Testimonials, resume background-image */
.testimonials,
.resume {
  position: relative;
  z-index: 1;
}
.testimonials--content,
.resume--content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}
.testimonials__text--wrapper,
.resume__text--wrapper {
  width: 80%;
  margin: auto;
}
.background-image {
  background-image: url("./assets/images/fallen-angel_art-work.jpg");
  position: absolute;
  width: 100%;
  height: 900px;
  top: 15%;
  left: 0%;
  z-index: 0;
  transform: translateY(-25%);
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}

/*  */
.testimonials--content {
  /* transform: rotateZ(0deg); */
  box-shadow: 2px 5px 5px 2px;
  padding: 2rem 0;
}

.testimonials--content p {
  /* border: 2px solid red; */
}
.testimonials--content .quote {
  /* border: 2px solid red; */
  margin-top: 3rem;
  font-style: italic;
}
.quote--speaker {
  font-weight: 900;
  font-style: normal;
  margin-top: 1rem;
  text-align: end;
}
.coming-soon {
  text-align: center;
  color: #555;
  margin-top: 2rem;
  font-style: italic;
}
/* Resume section */
.resume--content {
  padding: 2rem 0;
  /* transform: scale(1.2) rotateZ(11deg); */
  box-shadow: 2px 5px 5px 2px;
}

.resume-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.resume-buttons a {
  text-decoration: none;
}
.resume__btn {
  display: inline-block;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 100px;
  background: #005fa3;
  color: white;
  font-weight: 900;
  margin-bottom: 1rem;
}
.resume__btn:hover,
.resume__btn:focus {
  opacity: 0.75;
}

/* Contact section */
.contact__info {
  /* border: 2px solid blue; */
}
.contact__container--wrapper {
  background: #00b4d2;

  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.contact__text {
  margin-bottom: 1.5rem;
}
.contact__map-maker__icon,
.contact__phone__icon,
.contact__email__icon {
  width: 2rem;
}
.contact__address--info,
.contact__num--info,
.contact__email--info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact__social--icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  /* border: 2px solid red; */
}
.contact__social--icons a {
  /* border: 2px solid blue; */
  width: 3rem;
}
.contact__num--info {
  margin: 1rem 0;
}

.contact-image-inside-container {
  display: none;
}

/* Back to top button */
#backToTopBtn {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 24px;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
#backToTopBtn:hover {
  opacity: 1;
}
/* Tablet view */
/* and (max-width: 768px) */
@media (min-width: 500px) and (max-width: 1024px) {
  .background-shape {
    height: 60%;
    /* clip-path: polygon(0 0, 100% 0, 100% 59%, 0% 100%); */
  }
  .hero__image--content {
    width: 100%;
  }
  .hero__image {
    width: 220px;
    float: left;
    position: relative;
    z-index: 1;
    margin-right: 1rem;
    /* border: 2px solid red; */
  }
  .about_me--content {
    position: relative;
    z-index: 0;
    background: white;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
  }
  /* .hero__title span {

    display: inline-block;
  } */
  /*  */
  /* .hero__title {

    position: relative;
    z-index: 2;
    right: 5%;
  } */
  .hero__title {
    display: none;
  }
  .about_me__icons {
    display: none;
  }
  /* Skills section */

  .skills__card--wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;
  }
  .skills__card + .skills__card {
    margin-top: 0;
  }
  /* Projects section */
  .project__card--wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
  }
  .project__card + .project__card {
    margin-top: 0;
  }
  .project__name_and_icons {
    width: 85%;
  }
}
@media (min-width: 700px) {
  /* Contact section */
  .contact-image-outside-container {
    display: none;
  }
  .contact-image-inside-container {
    /* border: 2px solid blue; */
    display: block;
  }
  .contact__row--wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
  .contact__info h2 {
    text-align: left;
    margin-bottom: 1rem;
  }
  .contact__social--icons {
    justify-content: left;
  }
}

/* Desktop view */
@media (min-width: 1024px) {
  .container {
    /* border: 2px solid yellow; */
    width: 80%;
  }
  .row {
    gap: 1rem;
    align-items: center;
  }
  .nav-toggle {
    display: none;
  }
  .nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    max-width: none;
    width: auto;
    gap: 2rem;
    border: none;
  }
  .nav__link {
    padding: 0;
    margin: 0;

    /* border: 2px solid red; */
  }
  .nav__item + .nav__item {
    margin: 0;
  }
  .nav__link:hover,
  .nav__link:focus {
    font-weight: normal;
  }
  /* Hero section */
  .background-shape {
    height: 70%;
  }
  .hero__row--wrapper {
    display: flex;

    position: relative;
    margin-top: 2rem;
  }
  .about_me--content {
    background: white;
    padding: 0 2rem 0rem 2rem;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
  }

  .about_me__icons {
    justify-content: right;
    margin-top: 2rem;
  }
  .hero__title span {
    /* display: inline-block; */
  }

  .hero__title {
    display: none;
  }
  .skills__card--wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  .skills__card + .skills__card {
    margin-top: 0;
  }
  /* Projects section */
  .project__card--wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
  }
  .project__card + .project__card {
    margin-top: 0;
  }
  .project__name_and_icons {
    width: 85%;
  }
  .testimonials--content:hover {
    /* transform: rotate(11deg); */
    /* transition: transform 0.2s ease-out; */
    box-shadow: none;
  }
  .resume--content:hover {
    /* object-fit: cover; */
    /* display: block; */
    /* transform: scale(1.2) rotateZ(11deg); */
    transform: scale(1.2) rotateZ(0deg);
    transition: transform 0.2s ease-out;
    /* box-shadow: none; */
    box-shadow: 2px 5px 5px 2px;
  }
}
@media (min-width: 1200px) {
  .contact__info {
    align-self: flex-start;
  }
}

/* Dark mode set to page*/
/*  DARK MODE GLOBAL  */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global transition for all elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Dark toggle button */
body.dark-mode #themeToggle {
  background-color: #fff;
  color: #333;
  border: 1px solid #444;
}
/* Header and Navigation */
body.dark-mode header,
body.dark-mode .nav__list,
body.dark-mode .nav__link {
  /* background-color: #1e1e1e; */
  background-color: #444;
  border: none;
}

body.dark-mode .nav__link {
  background-color: #555;
  color: #f1f1f1;
}

body.dark-mode .nav__link:hover {
  color: #ffd369;
}

/* Hero Section */
body.dark-mode .hero {
  background-color: #1a1a1a;
}

/* About Me Section */
body.dark-mode .about_me--content {
  background-color: transparent;
  color: #f1f1f1;
}

body.dark-mode .about_me__github__icon,
body.dark-mode .about_me__linkedin__icon,
body.dark-mode .project__github__icon,
body.dark-mode .project__open-in-new__icon {
  background: #279df1;
}

/* Skills Section */
body.dark-mode .skills__items__icon {
  background: #00b4d2;
}
body.dark-mode .skills__card {
  background-color: #1f1f1f;
  border: 1px solid #333;
}

body.dark-mode .skills__title {
  color: #fafafa;
}

/* Projects Section */
body.dark-mode .project__card {
  background-color: #242424;
  border-color: #333;
}

body.dark-mode .project__description {
  color: #ccc;
}

/* Testimonials Section */
body.dark-mode .testimonials {
  background-color: #1b1b1b;
  color: #eee;
}

/* Resume Section */
body.dark-mode .resume {
  background-color: #181818;
  color: #eee;
}

body.dark-mode .resume__btn {
  background-color: #279df1;
  color: #fff;
  border: 1px solid #555;
}

/* Contact Section */
body.dark-mode .contact {
  background-color: #151515;
  color: #f1f1f1;
}

/* Back to Top Button */
body.dark-mode #backToTopBtn {
  background-color: #fff;
  color: #333;
}
/*  */
@media (min-width: 1024px) {
  body.dark-mode .nav__link {
    background-color: #444;
  }
}
