* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;

  position: relative;
}

main.container {
  flex: 1;
}

body {
  display: flex;
  flex-direction: column;
}

.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

/* Canvas */
#backgroundCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

header {
  position: relative;
  padding: 120px 24px 60px;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1rem;
  color: white;
}

.header-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.header-content p {
  gap: 10;
  max-width: 700px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #f5f5f5;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  padding: 80px 40px;
  background-color: #121212;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  color: #eaeaea;
  font-family: 'Poppins', sans-serif;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #cccccc;
}

.hobbies-section {
  background-color: #0a0a0a;
  color: white;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.hobbies-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hobbies-section p {
  font-size: 16px;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hobby-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 2rem;
}

.hobby-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px; /* default size for smaller screens */
}

.hobby-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.hobby-image-plants {
background-image: url('/about/images/01.jpg');
}

.hobby-image-build {
  background-image: url('/about/images/02.jpg');
}

.hobby-image-travel {
  background-image: url('/about/images/03.jpg');
}

.hobby-image-bun {
  background-image: url('/about/images/04.jpg');
}

.hobby-image-draw {
  background-image: url('/about/images/05.jpg');
}

.contact-image {
  background-size: cover;
  background-position: center;
  background-image: url('/about/images/thanks.png');
}

.hobby-title {
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: white;
}
.contact {
  padding: 4rem 1rem;
  background-color: #111;
  color: #fff;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: center;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-left h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name-fields {
  display: flex;
  gap: 1rem;
}

.name-fields div {
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  font-family: inherit;
}

textarea {
  height: 120px;
  resize: vertical;
}

button {
  width: fit-content;
  padding: 0.5rem 1.5rem;
  background-color: #b9a3e3;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #000;
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #000;
}

.close-nav {
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #F5F5F5;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #98FF98;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.logo:hover {
  color: #bfa3e5;
}

.download-cv {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #F5F5F5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #F5F5F5;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.download-cv:hover {
  width: fit-content;
  height: auto;
  box-shadow: 3px 3px 0px #bfa3e5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid black;
  color: #111111 !important;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-cv:active {
  box-shadow: 3px 3px 0px black;
  background: #bfa3e5;
  border: 1px solid #7C57AD;
}

.footer {
  background-color: black;
  color: #666666;
  padding: 42px 24px 80px;
  display: flex;
  justify-content: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: white;
}

.footer-description {
  margin-top: 8px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #666666;
  line-height: 1.6;
  max-width: 250px;
}

.footer-links h4 {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.footer-links ul li a {
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #F5F5F5;
  text-decoration: none;
  transition: color 0.3s ease;
}


.footer-links a:hover {
  color: #98FF98;
}

.quick-links h4 {
  color: white;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links ul li {
  margin-bottom: 16px;
}

.quick-links ul li:last-child {
  margin-bottom: 0;
}

.quick-links ul li a {
  color: #666666;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links ul li a:hover {
  color: #98FF98;
}

.contact-info h4 {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-info a {
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: #666666;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.contact-info a:hover {
  color: #98FF98;
}

.contact-info .material-icons {
  font-size: 24px;
  color: #D9D9D9;
  display: inline-block;
  vertical-align: middle;
}

.email-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #666666;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.3s;
}

.email-link:hover {
  color: #98FF98;
}

.material-icons {
  font-size: 20px;
  margin-right: 8px;
  color: #ffffff;
}

#mobileNav {
  display: none;
}

#mobileNav.active {
  display: block;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* <- the dim */
  display: none;
  z-index: 2000;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.mobile-nav__list {
  
  padding: 2rem;
  list-style: none;
}


.mobile-nav__list li {
  margin-bottom: 1rem;
}

.mobile-nav__list li a {
  color: #f5f5f5;
  font-size: 1.2rem;
  text-decoration: none;
  display: block;
  padding: 0.75rem 0;
}

.mobile-nav__list li a:hover {
  color: #aaa;
}


.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  max-width: 300px;
  background: #1c1c1c;
  color: white;
  z-index: 1001;
  padding: 2rem;
  transition: left 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav {
  left: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .hobby-card {
    width: 300px;
  }
}

@media (max-width: 768px) {
  header {
    padding-top: 8vh;
    padding-bottom: 2vh;
  }

    .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 24px;
    overflow: visible;
  }

  .navbar {
    height: 56px;
    padding: 0 16px;
  }

  .logo-container {
    margin: 0 auto;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }

  .mobile-nav-overlay.active {
    display: block;
  }

  .mobile-nav {
    background: #1c1c1c;
    width: 80%;
    height: 100%;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideIn 0.3s ease forwards;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 1);
    color: white;
    transition: left 0.3s ease;
    z-index: 1001;
    display: none;
    flex-direction: column;
  }

  .hamburger {
    display: flex;
  }

  

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav.active~.hamburger {
    display: none;
  }

  .mobile-nav.active {
    left: 0;
  }

  .mobile-nav.active~.header__content .hamburger {
    display: none;
  }

  .mobile-nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
  }

  .logo--centered {
    margin: 0 auto;
    font-weight: bold;
    font-size: 1.5rem;
  }

  .mobile-nav__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }

  .header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

}