/* GENERAL */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  background: rgb(74, 124, 252);

  background: linear-gradient(
    135deg,
    rgb(209, 214, 226) 0%,
    rgb(118, 150, 231) 100%
  );
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

p {
  color: rgb(65, 65, 65);
}

/* HEADER */

.header {
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
}

/* Sticky Nav */

.sticky {
  -webkit-backdrop-filter: blur(3px); /* For Safari */
  backdrop-filter: blur(3px); /* For Chrome, Edge, and newer Firefox versions */
  position: fixed;
  height: 80px;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  box-shadow: none;
  z-index: 1000;
  padding: 5px 0;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  gap: 2rem;
  width: 100%;
  list-style: none;
  font-size: 1.5rem;
}

nav {
  justify-content: space-around;
  align-items: center;
}

a {
  position: relative;
  color: rgb(0, 0, 0);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: rgb(133, 132, 132);
  transition: width 0.4s ease-in-out, left 0.4s ease-in-out;
}

a:hover {
  color: rgb(133, 132, 132);
}

a:hover::after {
  width: 100%;
  left: 0;
}

.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: rgb(238, 238, 238);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-links a {
  display: block;
  padding: 15px;
  text-align: center;
  font-size: 1.7rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 500px;
}

/* SECTIONS */

section {
  padding-top: 2.7rem;
  min-height: 16rem;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
  padding-bottom: 2.5rem;
}

.section-container {
  display: flex;
  gap: 4rem;
}

.section__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.section__pic-about {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  padding-bottom: 1rem;
}

/* ICONS */
.about-pic {
  border-radius: 50px;
}

.icon {
  cursor: pointer;
  height: 2rem;
}

.nav-lang {
  margin-left: auto;
}

.globe {
  height: 1.5rem;
  width: 1.5rem;
}

.hero {
  max-width: 100%;
  height: auto;
}

.text-container {
  text-align: left;
} /* 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-language {
  background: none;
  border: 2px solid #333;
  padding: 4px 10px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

.btn-language:hover {
  background: #333;
  color: white;
}

button {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53) 0.1rem solid;
  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 */

#about-project,
#about-me {
  position: relative;
}
#about-me,
#about-project,
#contact {
  scroll-margin-top: 60px;
}

.about-containers {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

/*SLIDER */

.slider {
  max-width: 100rem;
  height: 50rem;
  margin: 0 auto;
  position: relative;

  /* IN THE END */
  overflow: hidden;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5.5rem;
  width: 5.5rem;
  font-size: 3.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__btn--left {
  left: 6%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.slider__btn--right {
  right: 6%;
  transform: translate(50%, -50%);
}

.slider__btn,
.slider__btn:hover {
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50rem;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* CONTACT */

.container {
  background-color: rgb(255, 255, 255);
  border-radius: 30px;
  width: 90%;
  padding: 20px;
  margin: 0 auto;
}

.contact-form-template {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-image {
  max-width: 50%;
  border-radius: 30px;
}

.contact-form-container {
  display: flex;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
}

.contact-form label {
  margin-top: 10px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 16px;
  box-sizing: border-box;
}

.submit-btn {
  margin-top: 15px;
  padding: 10px;
  background-color: #498afe;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
}

.submit-btn:hover {
  background-color: #0056b3;
}

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 60rem;
}

.contact-info-upper-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: white;
}

.contact-info-container {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

::placeholder {
  color: rgb(165, 165, 165);
  font-family: "Noto Sans", sans-serif;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  border-radius: 50%;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease-in-out;
}

.contact-icon img {
  height: 28px;
  width: 28px;
}

/*  */

section {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
  transition-delay: 0.4s;
}

section.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animate paragraphs in ALL sections */
.text-container p {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 1s ease;
  transition-delay: calc(var(--i) * 0.4s);
}

section.slide-in .text-container p {
  opacity: 1;
  transform: translateX(0);
}

/* FOOTER SECTION */

footer {
  height: auto;
  padding: 20px 0;
  margin: 0;
}

footer p {
  padding-top: 1rem;
  text-align: center;
}
