*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Stop horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font: normal 75% Arial, Helvetica, sans-serif;
  overflow: auto;
  background: linear-gradient(-45deg, #000000, #222222, #444444);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* particles.js container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

/* NAVBAR */

.nav-bar {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.nav-logo img {
  filter: drop-shadow(0 0 5px #000000);
  width: 3rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo img:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 0 15px #000000) drop-shadow(0 0 10px #000000);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  font-family: 'Outfit';
  font-size: 1rem;
  color: #cccccc;
  filter: drop-shadow(0 0 5px #000000);
}

.nav-links a {
  text-decoration: none;
  color: #cccccc;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* hamburger icon (shown only on mobile or smaller screen sizes) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* LAYOUT / SECTIONS */

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  top: 0;
  pointer-events: none;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

#home {
  height: 100vh;
  padding: 2.75rem 1.5rem 3rem; 
  justify-content: center;
}

section:not(#home) {
  height: auto;
  padding: 2.75rem 1.5rem 3rem; 
  justify-content: flex-start;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  pointer-events: auto;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes FadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.text h1 {
  font-size: 7em;
  margin: 0;
  font-family: 'Michroma';
  font-weight: bold;
  color: #ffffff;
  filter: drop-shadow(0 0 10px #000000);
  animation: 2s ease-out 0s 1 FadeIn;
}

.text p {
  font-size: 2em;
  color: #aaaaaa;
  font-family: 'Michroma';
  filter: drop-shadow(0 0 10px #222222);
  animation: 2s ease-out 0s 1 FadeIn;
}

.icons {
  padding-top: 10px;
  display: flex;
  justify-content: center;
  gap: 35px;
  align-items: center;
  pointer-events: auto;
  animation: 1s ease-out 0s 1 slideInFromLeft;
}

.icon {
  width: 50px;
  height: auto;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  filter: drop-shadow(0 0 5px #ffffff);
}

.icon:hover {
  transform: translateY(-10px) scale(1.2);
  filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 10px #cccccc);
}

/* SECTION TITLES */

.about-title,
.experience-title,
.projects-title,
.get-in-touch-title {
  margin: 0 0 2rem;
  padding-top: 0;
  font-family: 'Michroma';
  font-weight: bold;
  color: #ffffff;
  filter: drop-shadow(0 0 10px #000000);
  pointer-events: auto;
  animation: 2s ease-out 0s 1 FadeIn;
}

.about-title {
  font-size: 3em;
}
.experience-title,
.projects-title,
.get-in-touch-title {
  font-size: 2em;
}

/* ABOUT SECTION */

#about {
  
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.about-text {
  background: radial-gradient(circle at top left, rgba(200, 200, 200, 0.2), rgba(40, 40, 40, 0.97));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  max-width: 500px;
  align-items: center;
  pointer-events: auto;
  font-size: 20px;
  font-family: 'Outfit';
  animation: 1s ease-out 0s 1 slideInFromLeft;
}

.profile-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  pointer-events: auto;
  animation: 1s ease-out 0s 1 slideInFromLeft;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* EXPERIENCE SECTION */

.experience-button {
  background: radial-gradient(circle at top left, rgba(200, 200, 200, 0.2), rgba(40, 40, 40, 0.97));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  width: 18rem;
  height: 13.5rem;
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
  font-family: 'Michroma';
  color: #c9c9c9;
  margin-bottom: 2rem;
  pointer-events: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.experience-button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.company-logos {
  border-radius: 10px;
  pointer-events: auto;
}

.company-logos-circle {
  border-radius: 30px;
  pointer-events: auto;
}

.boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.type-headers {
  font-family: 'Michroma';
  text-align: center;
  pointer-events: auto;
}

/* POPUPS */

.overlay {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  border-radius: 15px;
  overflow-y: auto;                 
  -webkit-overflow-scrolling: touch;
}

.overlay .popup {
  background: #111;
  padding: 2.5rem 2rem 2rem;        
  border-radius: 10px;
  max-width: 575px;
  max-height: 90vh;                 
  overflow-y: auto;                 
  color: #fff;
  text-align: center;
  position: relative;
}

.popup-title {
  display: flex;
  gap: 10px;
  text-align: left;
  font-family: 'Michroma';
  font-size: 2rem;
  margin: 0;
}

.popup-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-image:hover {
  transform: scale(1.1);
}

.popup-text {
  font-family: 'Outfit';
  font-size: 1rem;
}

.popup-role {
  text-align: left;
  font-family: 'Michroma';
  font-size: 0.75rem;
  padding-bottom: 5px;
  font-weight: bold;
}

li {
  margin: 5px 0;
}

ul {
  padding-left: 0;
  margin: 10px 0;
  padding-bottom: 10px;
  list-style-position: inside;
  text-align: left;
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border-radius: 999px;
  background-color: #959595;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

.close:hover {
  transform: scale(1.1);
}

/* PROJECTS SECTION */

.project-images {
  border-radius: 10px;
  width: 100%;
  height: 150px;
}

.project-button {
  width: 19rem;
  height: 15rem;
  background: radial-gradient(circle at top left, rgba(200, 200, 200, 0.2), rgba(40, 40, 40, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 1.4rem 1.2rem;
  text-align: left;
  font-family: 'Michroma';
  color: #c9c9c9;
  margin-bottom: 2rem;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #ffffff, #c9c9c9);
  opacity: 0.8;
}

.project-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top left, rgba(220, 220, 220, 0.23), rgba(30, 30, 30, 0.98));
}

.more-projects {
  font-family: 'Michroma';
  gap: 1rem;
  pointer-events: auto;
  font-size: 1rem;
}

/* CONTACT SECTION */

.contact-content {
  max-width: 400px;
  width: 100%;
  margin-top: 1.5rem;
  pointer-events: auto;
  padding: 1.5rem;
}

.contact-subtitle {
  font-family: 'Outfit';
  font-size: 1rem;
  color: #c9c9c9;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  background: radial-gradient(circle at top left, rgba(200, 200, 200, 0.2), rgba(40, 40, 40, 0.97));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.field-group label {
  font-family: 'Michroma';
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dcdcdc;
}

.field-group input,
.field-group textarea {
  font-family: 'Outfit';
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.9);
  color: #f5f5f5;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #808080;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.95);
}

.contact-btn {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top left, #ffffff, #b3b3b3);
  color: #000;
  font-family: 'Michroma';
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at top left, #ffffff, #dcdcdc);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.form-status {
  margin-top: 0.8rem;
  font-family: 'Outfit';
  font-size: 0.9rem;
  text-align: left;
  color: #c9c9c9;
  min-height: 1.2rem;
}

.form-status.sending {
  color: #dcdcdc;
}

.form-status.success {
  color: #8dffb2;
}

.form-status.error {
  color: #ff8d8d;
}

/* RESPONSIVENESS */

@media (max-width: 900px) {
  .text h1 {
    font-size: 4rem;
  }

  .text p {
    font-size: 1.5rem;
  }

  section {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 768px) {
  #home {
    padding: 2.75rem 1.5rem 3rem;
  }

  section:not(#home) {
    padding: 2.75rem 1.5rem 3rem;
  }

  .wrapper {
    padding-inline: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 3.1rem;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.2rem;
    background: rgba(0, 0, 0, 0.96);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .text {
    height: auto;
    margin-top: 0;
  }

  .text h1 {
    font-size: 3rem;
  }

  .text p {
    font-size: 1.3rem;
  }

  .icons {
    gap: 24px;
  }

  .about-title {
    font-size: 2.2rem;
  }

  .about-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .profile-container {
    margin-top: 1rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .about-text {
    max-width: 100%;
    font-size: 1rem;
    text-align: left;
  }

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

  .experience-button,
  .project-button {
    width: 100%;
    max-width: 20rem;
  }

  .type-headers {
    width: 100%;
    padding-left: 0.5rem;
  }

  .overlay .popup {
    margin-inline: 1rem;
    max-width: 100%;
  }

  .contact-content {
    padding-inline: 1rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    padding-inline: 0.8rem;
  }

  .text h1 {
    font-size: 2.5rem;
  }

  .text p {
    font-size: 1.1rem;
  }

  .about-title,
  .experience-title,
  .projects-title,
  .get-in-touch-title {
    font-size: 1.7rem;
  }
}
