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

/*===== CSS VARIABLES =====*/
:root {
  --header-height: 3rem;
  --nav-width: 250px;

  /*== favorite color ==*/
  --hue: 230; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

  --background: hsl(var(--hue), 28%, 12%);
  --background-dark: hsl(var(--hue), 28%, 8%);
  --background-light: hsl(var(--hue), 28%, 16%);

  --text: hsl(var(--hue), 8%, 95%);
  --text-muted: hsl(var(--hue), 8%, 70%);

  --primary: hsl(var(--hue), 69%, 53%);
  --secondary: hsl(var(--hue), 69%, 61%);

  --accent: hsl(var(--hue), 100%, 38%);

  /*== Font and Typography ==*/
  --body-font: "Poppins", sans-serif;

  --font-xl: 1.75rem;
  --font-lg: 1.25rem;
  --font-norm: 1rem;
  --font-sm: 0.875rem;

  /*== Margin Bottom ==*/
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
}

/*== Variables Light Mode ==*/
body.light {
  --background: hsl(var(--hue), 28%, 88%);
  --background-dark: hsl(var(--hue), 28%, 84%);
  --background-light: hsl(var(--hue), 28%, 92%);

  --text: hsl(var(--hue), 8%, 20%);
  --text-muted: hsl(var(--hue), 8%, 30%);

  --primary: hsl(var(--hue), 69%, 53%);
  --secondary: hsl(var(--hue), 69%, 61%);

  --accent: hsl(var(--hue), 100%, 62%);
}

/*== Font Size for Large Devices */
@media screen and (min-width: 968px) {
  :root {
    --font-xl: 2.25rem;
    --font-lg: 1.5rem;
    --font-norm: 1.25rem;
    --font-sm: 1.125rem;
  }
}

/*===== BASIC RESET =====*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  /* scroll-snap-type: y mandatory; */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: var(--font-norm);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/*===== REUSABLE CSS CLASSES =====*/

/* Mobile First Layout */
.section {
  padding: 4rem 0 2rem;
  text-align: center;
}

.section_title {
  font-size: var(--font-xl);
  font-weight: 700;
}

.section_subtitle {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-bottom: var(--mb-1-5);
}

.section_description {
  font-size: var(--font-norm);
  color: var(--text);
  margin-bottom: var(--mb-2-5);
  text-align: left;
}

.container {
  margin: 0 auto;
  max-width: 968px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  /* scroll-snap-align: start; */
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--text);
  font-size: var(--font-norm);
  cursor: pointer;
  transition: 0.3s;
}

.btn_icon {
  font-size: var(--font-lg);
  margin-left: 0.5rem;
}

.btn:hover {
  background: var(--secondary);
  color: var(--background);
}

/*===== HEADER =====*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: var(--background-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  padding-left: 0.5rem;
}

.header-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle {
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
  transition: 0.3s;
}

.nav-toggle:hover,
.theme-toggle:hover {
  color: var(--primary);
}

/*===== NAVBAR =====*/
.navbar {
  position: fixed;
  top: var(--header-height);
  left: -100%;
  width: var(--nav-width);
  height: 100vh;
  background: var(--background-dark);
  padding: 1.5rem 1rem;
  transition: 0.5s;
}

.nav_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--header-height);
}

.nav_item {
  margin-bottom: var(--mb-1-5);
}

.nav_link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-transform: uppercase;
  font-size: var(--font-norm);
  font-weight: 600;
  transition: 0.3s;
}

.nav_link:hover {
  color: var(--primary);
}

.nav_icon {
  font-size: var(--font-norm);
}

.navbar.show {
  left: 0;
}

.nav_link.active {
  color: var(--primary);
}

/*===== HOME =====*/
.home_img {
  width: 250px;
  border-radius: 0.5rem;
  background: var(--secondary);
  margin-bottom: var(--mb-2);
  overflow: hidden;
}

.home_img:hover img {
  scale: 1.05;
  transition: 0.5s;
}

.home_socials {
  margin-bottom: var(--mb-2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social_icon {
  font-size: var(--font-lg);
  background-color: var(--primary);
  padding: 0.75rem;
  border-radius: 50%;
  transition: 0.3s;
}

.social_icon:hover {
  background-color: var(--secondary);
  color: var(--background);
  scale: 1.1;
}

/*===== ABOUT =====*/
.about_info-data {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: var(--mb-1);
  color: var(--primary);
}

.about_info-icon {
  font-size: var(--font-lg);
  color: var(--primary);
}

.about_info .btn {
  margin-top: var(--mb-2);
}

/*===== SKILLS =====*/
.skills_container {
  align-items: initial;
}

.skills_content {
  margin-bottom: var(--mb-2-5);
  text-align: left;
}

.skills_title {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: var(--mb-1-5);
}

.skills_data {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 var(--mb-1) var(--mb-2);
}

.skills_bar {
  position: absolute;
  height: 0.25rem;
  bottom: -0.75rem;
  background: var(--primary);
}

.skills_name {
  text-transform: uppercase;
}

.bar_html {
  width: 90%;
}
.bar_css {
  width: 80%;
}
.bar_js {
  width: 55%;
}
.bar_tailwind {
  width: 30%;
}
.bar_react {
  width: 20%;
}
.bar_node {
  width: 10%;
}
.bar_mongo {
  width: 10%;
}
.bar_express {
  width: 10%;
}
.bar_git {
  width: 60%;
}
.bar_figma {
  width: 40%;
}
.bar_seo {
  width: 20%;
}

/*===== PORTFOLIO =====*/
.portfolio_container {
  gap: 2rem;
}

.portfolio_content {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.portfolio_data {
  position: absolute;
  bottom: -100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  background: rgba(44, 75, 204, 0.5);
  transition: 0.3s;
}

.portfolio_title {
  font-size: var(--font-norm);
  font-weight: 600;
  color: #091839;
  padding-top: 0.5rem;
}

.portfolio_description {
  margin: var(--mb-1) 0;
  color: #091839;
  padding: 0 1rem;
  font-size: var(--font-sm);
}

.portfolio_icon {
  font-size: var(--font-xl);
  color: #fff;
  transition: 0.3s;
}

.portfolio_icon:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.portfolio_content:hover .portfolio_data {
  bottom: 0;
}

/*== PROJECT ==*/
.project {
  padding: 2rem 0;
  background: var(--secondary);
}

.project_container {
  margin: 2rem 0;
  padding: 1rem;
  gap: 2rem;
}

.project_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project_img {
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.project_title {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: var(--mb-1);
}

.project_description {
  text-align: center;
  margin-bottom: var(--mb-1);
}

.project .btn:hover {
  background: var(--primary);
  color: var(--text);
}

/* CONTACT */
.contact_container {
  gap: 2rem;
}

.contact_info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
}

.contact_card {
  flex: 1 1 30%;
  background: var(--background-light);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: initial;
}

.contact_icon {
  font-size: var(--font-lg);
  color: var(--primary);
}

.contact_title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: var(--font-norm);
  font-weight: 600;
  margin-bottom: var(--mb-1);
}

.contact_data {
  color: var(--text);
}

/* CONTACT FORM */
.contact_form-tag {
  display: none;
}

.contact_form-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  outline: none;
  font: inherit;
  border-radius: 0.5rem;
  margin-bottom: var(--mb-1-5);
  background: var(--background-light);
  color: var(--text);
}

.contact_button {
  align-self: flex-start;
}

.thankyou_modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.thankyou_container {
  position: relative;
  max-width: 600px;
  margin: 0 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.thankyou_container h1 {
  color: #2c3e50;
}

.thankyou_container h3 {
  margin-bottom: var(--mb-0-25);
  color: #0674f7;
}

.thankyou_container p {
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: var(--mb-0-25);
}

.close_icon {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #0674f7;
  font-size: 1.5rem;
  cursor: pointer;
}

.show-modal {
  opacity: 1;
  visibility: visible;
}

/*===== FOOTER =====*/
.footer {
  margin-top: 5rem;
  padding: 2rem 0.5rem 1rem;
  background: #091839;
}

.footer_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer_socials {
  margin-bottom: var(--mb-3);
}

.footer_link {
  position: relative;
}

.footer_icon {
  font-size: var(--font-xl);
  color: var(--text);
  padding: 0.75rem;
  background: #0674f7;
  border-radius: 50%;
  margin: 0 1rem;
  transition: 0.3s;
}

.footer_text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  padding-top: 0.5rem;
  font-size: var(--font-sm);
  color: var(--text);
}

.footer_copy,
.quote {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer_copy {
  margin-top: var(--mb-3);
}

/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 0.5rem;
  bottom: -20%;
  background-color: var(--secondary);
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}

.scrollup:hover {
  background-color: var(--accent);
}

.scrollup_icon {
  font-size: 1.5rem;
  color: #fff;
}
/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .theme-toggle {
    font-size: 1.5rem;
    padding-right: 0.5rem;
  }

  .navbar {
    left: 0;
  }

  .main,
  .footer {
    margin-left: var(--nav-width);
  }

  .contact_card,
  .contact_form-container {
    width: 450px;
  }
}

@media screen and (min-width: 1024px) {
  .header {
    padding: 0.5rem 0;
  }

  .container {
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    max-width: 100%;
  }

  .home_content,
  .home_data,
  .about_data,
  .about_info {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
    padding: 0 2rem;
    align-self: flex-start;
  }

  .home_content {
    flex: 0 1 30%;
  }

  .home_data {
    padding-right: 5rem;
  }

  .home_socials {
    justify-content: flex-start;
  }

  .skills_content {
    width: 100%;
    background: var(--background-light);
    border-radius: 0.5rem;
  }

  .skills_title {
    padding-left: 0.5rem;
  }

  .project {
    background: none;
  }

  .project_container {
    background: var(--secondary);
    padding: 1rem;
    margin: 0 1rem;
    border-radius: 0.5rem;
  }

  .contact_form-container {
    align-self: flex-start;
  }
}
