/* General Styles */
body {
  background-color: #0B132B;
  color: white;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

/* Navigation Bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5rem;
  font-weight: 700;
  font-size: 28px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 1.5rem;
}

.nav-left {
  gap: 8rem;
}

.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background-color: #4E3DEB;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right-cv {
  border: 1px solid #4E3DEB;
  width: 297px;
  height: 48px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.6s ease, color 0.6s ease, border 0.6s ease;
}

.nav-right-cv:hover {
  background-color: #4E3DEB;
  border-color: #0B132B;
}

.nav-right-cv,
.nav-right-cv:visited,
.nav-right-cv:hover,
.nav-right-cv:active {
  text-decoration: none;
  color: white;
}

/* Hero Section */
.hero-container {
  min-height: 70vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  gap: 4rem;
}

.monitor-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.monitor-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 200px rgba(164, 115, 255, 1));
}

.contact-container {
  margin-top: 2rem;
}

.contact-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  border: 1px solid #4E3DEB;
  border-radius: 50px;
  padding: 1rem 2rem;
  background-color: #4E3DEB;
  color: white;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.contact-btn:hover {
  color: #57BDFF;
  background-color: #0B132B;
}

.hero-aboutme {
  text-align: left;
  margin-top: -5rem;
}

.hero-name {
  font-weight: 700;
  font-family: 'Outfit';
}

.hero-name h1 {
  margin: 0;
  font-size: 85px;
}

.hero-lastname {
  margin-top: -1.5rem;
  margin-left: 5rem;
}

.hero-title {
  margin-left: 5rem;
  font-weight: 700;
  font-family: 'Roboto';
}

.hero-title h2 {
  margin-top: 0.5rem;
  color: #57BDFF;
  font-size: 28px;
}

/* Skills section */

.skills-container {
  margin-top: 10rem;
}

.skills-title { 
  text-align: center;
  font-weight: 700;
  font-family: 'Outfit';
  font-size: 40px;
}

.skills-first-row {
  margin-bottom: 4rem;
}

.skills-first-row,
.skills-second-row {
  transform: scale(0.9);
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.skills-badge {
  transition: transform 0.4s ease;
}

.skills-badge:hover {
  transform: scale(1.15);
  transition: transform 0.4s ease;
}

/* Projects section */

#projects {
  position: relative;
  z-index: 1;
}

.project-orb {
  position: absolute;
  pointer-events: none;
  width: 450px;
  z-index: 0;
}

.project-orb.glow {
  filter: blur(160px) brightness(2);
  opacity: 1;
  z-index: 0;
}

.project-orb.shape {
  filter: none;
  opacity: 1;
  z-index: 1;
}

.red-orb {
  top: -14rem;
  left: 0;
}

.green-orb {
  top: 15rem;
  right: 0;
}

.projects-title {
  margin-top: 12rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Outfit';
  font-size: 40px;
}

.projects-card-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.project-first-card h3,
.project-second-card h3{
  font-weight: 400;
  padding-top: 1.8rem;
  font-family: 'Roboto';
  font-size: 35px;
  text-align: left;
  margin: 0;
}

.project-card-description {
  font-weight: 400;
  font-family: 'Roboto Flex';
  font-size: 19px;
  text-align: left;
}

.project-first-card,
.project-second-card {
  background-color: rgb(28, 37, 65, 0.4);
  border-radius: 38px;
  padding: 2rem 2rem;
  width: 380px;
  display: flex;
  flex-direction: column;
}

.projects-card-badges {
  padding-top: 1.3rem;
  padding-bottom: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #57BDFF;
  gap: 1.5rem;
}

.projects-card-badges p {
  background-color: #0B132B;
  margin: 0;
  padding: 0.7rem 0.3rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
}

.projects-card-badges p:hover {
  background: linear-gradient(to bottom, #0B132B 60%, #005C97 100%);
}

.project-card-spacer {
  flex-grow: 1;
}

/* Contact section */

.contact-title {
  margin-top: 22rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Outfit';
  font-size: 40px;
}

.contact-title h1 {
  margin-bottom: 0;
}

.contact-form-section {
  width: 526px;
  margin: auto;
  padding-top: 1.5rem;
}

.form-label {
  font-family: 'Roboto Flex';
  font-size: 25px;
  font-weight: normal;
  padding-bottom: 1rem;
  padding-top: 4rem;
}

.form-input input {
  height: 2rem;
}

.form-input textarea {
  height: 10rem;
}

.form-input input,
.form-input textarea {
  width: 93.16%;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  background-color: #0B132B;
  border: 2px solid #65DBDF;
  box-shadow: 0 0 10px #65DBDF;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-submit {
  text-align: center;
}

.form-submit input:hover {
  transform: scale(1.1);
  background-color: rgb(1, 47, 77);
  border: 1px solid rgb(1, 47, 77);
  transition: transform 0.4s ease;
}

.form-submit input{
  margin: 2rem 0;
  padding: 1rem 5rem;
  border-radius: 20px;
  background-color: #063470;
  color: white;
  font-weight: 700;
  font-family: 'Outfit';
  font-size: 20px;
  border: 1px solid #063470;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

input,
textarea {
  color: white;
  font-size: 18px;
  font-family: 'Roboto Flex';
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #0B132B inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.message-status-container {
  display: none;
  background-color: rgb(40, 121, 175);
  border-radius: 15px;
  margin: auto;
  margin-top: 2rem;
  padding: 0.2rem 4rem;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.message-status-container.show {
  opacity: 1;
}

.message-status-container p {
  font-family: 'Roboto Flex';
  font-size: 20px;
  color: white;
}

.recaptcha-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Footer section */

.footer-section {
  background-color: black;
  height: fit-content;
  padding: 0.5rem;
  margin-top: 8rem;
  display: flex;
  justify-content: space-between;
}

.footer-logo {
  padding-left: 1rem;
}

.footer-copyright {
  font-family: 'Outfit';
  font-size: 14px;
  padding-left: 8rem;
}

.footer-socials-container {
  background-color: linear-gradient(to right, #0B132B 21%, #005C97 100%);
  display: flex;
  gap: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .monitor-container {
    margin: 4rem 0 0 0;
  }

  .monitor-img {
    transform: scale(1);
  }

  .contact-container {
    margin-top: 2rem;
  }

  .hero-name {
    font-size: 36px;
    margin-top: 5rem;
    text-align: center;
  }

  .hero-name h1 {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }

  .hero-firstname,
  .hero-lastname {
    margin: 0;
  }

  .hero-title {
    margin: 0;
    text-align: center;
  }

  .hero-title h2 {
    margin-top: 1rem;
  }

  .contact-btn {
    font-size: 18px;
    padding: 0.8rem 1.5rem;
  }

  .nav-bar {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    font-size: 22px;
  }

  .nav-left {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
  }

  .nav-right {
    margin-top: 1rem;
  }

  .nav-right-cv {
    width: auto;
    padding: 0.75rem 2rem;
    font-size: 20px;
  }

  .skills-container {
    margin-top: 6rem;
    padding: 0 1rem;
  }

  .skills-title h1 {
    font-size: 32px;
  }

  .skills-first-row,
  .skills-second-row {
    flex-wrap: wrap;
    gap: 2rem;
    transform: scale(1);
  }

  .skills-badge {
    width: 80px;
    height: 80px;
  }

  .projects-title {
    margin-top: 8rem;
    font-size: 32px;
  }

  .projects-card-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .project-first-card,
  .project-second-card {
    width: 100%;
    max-width: 360px;
    padding: 1.5rem;
  }

  .project-first-card h3,
  .project-second-card h3 {
    font-size: 28px;
    padding-top: 1rem;
    text-align: center;
  }

  .project-card-description {
    font-size: 16px;
    text-align: center;
  }

  .projects-card-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .projects-card-badges p {
    font-size: 14px;
    padding: 0.6rem 0.2rem;
  }

  .project-orb {
    width: 300px;
  }

  .red-orb {
    top: -8rem;
    left: -4rem;
  }

  .green-orb {
    top: 20rem;
    right: 0;
    max-width: 100%;
  }

  .contact-title {
    margin-top: 10rem;
    font-size: 32px;
  }

  .contact-form-section {
    padding-top: 1rem;
  }

  .form-label {
    font-size: 18px;
    padding: 2rem 0 0.5rem;
  }

  .form-input input,
  .form-input textarea {
    width: 95%;
    font-size: 16px;
    padding: 0.7rem 0.9rem;
  }

  .form-submit input {
    padding: 0.9rem 3.5rem;
    font-size: 18px;
    border-radius: 16px;
  }

  .message-status-container {
      transform: scale(0.9);
    }

  .footer-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .footer-logo,
  .footer-copyright {
    padding-left: 0;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-socials-container {
    justify-content: center;
    gap: 1rem;
  }

  .footer-socials-container img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  .project-orb {
    display: none;
  }

  .nav-bar {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    font-size: 20px;
  }

  .nav-left {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-right-cv {
    font-size: 18px;
    padding: 0.6rem 1.2rem;
    width: auto;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0rem 1rem;
    gap: 2rem;
  }

  .monitor-img {
    transform: scale(1);
    width: 100%;
    max-width: 320px;
    filter: none;
  }

  .hero-aboutme {
    margin-top: 0;
    margin-bottom: 3rem;
  }

  .hero-name {
    font-size: 32px;
  }

  .hero-name h1 {
    flex-direction: column;
    align-items: center;
  }

  .hero-firstname,
  .hero-lastname {
    margin: 0;
  }

  .hero-title {
    margin: 0;
    font-size: 18px;
  }

  .skills-container {
    margin-top: 4rem;
    padding: 0 1rem;
  }

  .skills-title h1 {
    font-size: 28px;
  }

  .skills-first-row,
  .skills-second-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    transform: scale(1);
  }

  .skills-first-row {
    margin-bottom: 1.2rem;
  }

  .skills-badge {
    width: 70px;
    height: 70px;
  }

  .projects-title {
    margin-top: 4rem;
    font-size: 28px;
  }

  .projects-container {
    padding-top: 4rem;
  }

  .projects-card-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .project-first-card,
  .project-second-card {
    width: 100%;
    padding: 1rem;
    max-width: 360px;
  }

  .project-first-card h3,
  .project-second-card h3 {
    font-size: 22px;
    text-align: center;
  }

  .project-card-description {
    font-size: 15px;
    text-align: center;
  }

  .projects-card-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .projects-card-badges p {
    font-size: 13px;
    padding: 0.4rem 0.2rem;
  }

  .contact-title {
    margin-top: 6rem;
    font-size: 28px;
  }

  .contact-form-section {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  .form-label {
    font-size: 16px;
    padding: 1.5rem 0 0.5rem;
  }

  .form-input input,
  .form-input textarea {
    font-size: 15px;
    padding: 0.6rem 0.8rem;
    width: 100%;
  }

  .form-submit input {
    font-size: 16px;
    padding: 0.8rem 2.5rem;
  }

  .message-status-container {
    transform: scale(0.8);
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-socials-container {
    justify-content: center;
    gap: 1rem;
  }

  .footer-socials-container img {
    width: 28px;
    height: 28px;
  }
}