/* ================================
   RESET
================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;

  color: #cfcfcf;
  background: #0d0d0d;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}


/* ================================
   GLOBAL LAYOUT
================================ */

section {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  margin-bottom: 50px;

  color: #ffffff;

  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}


/* ================================
   HERO
================================ */

.hero {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  padding: 40px 24px 130px;

  overflow: hidden;
  text-align: center;

  background:
    url("images/Leurocarve.jpg")
    center center / cover
    no-repeat;
}


/* HERO OVERLAY */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.75) 55%,
      rgba(0, 0, 0, 0.88) 100%
    );

  animation: fadeIn 1.2s ease-out forwards;
}


/* HERO CONTENT */

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 850px;

  padding: 20px;
}

.hero-content h1 {
  margin-bottom: 18px;

  color: #ffffff;

  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;

  opacity: 0;

  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-content h2 {
  margin-bottom: 24px;

  color: #d5d5d5;

  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;

  opacity: 0;

  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.45s;
}

.hero-content p {
  max-width: 700px;

  margin: 0 auto;

  color: #b8b8b8;

  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;

  opacity: 0;

  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.7s;
}


/* HERO BUTTONS */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 14px;

  margin-top: 34px;

  opacity: 0;

  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.95s;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 140px;

  padding: 13px 28px;

  border-radius: 999px;

  font-weight: 700;
  line-height: 1.2;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.cta-button {
  color: #0d0d0d;
  background: #8fc7ff;
  border: 1px solid #8fc7ff;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: #acd6ff;

  transform: translateY(-2px);

  box-shadow: 0 10px 24px rgba(143, 199, 255, 0.2);
}

.secondary-button {
  color: #dedede;
  background: rgba(13, 13, 13, 0.35);
  border: 1px solid #777777;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: #8fc7ff;

  border-color: #8fc7ff;
  background: rgba(143, 199, 255, 0.08);

  transform: translateY(-2px);
}


/* HERO NAVIGATION */

.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 2;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  width: calc(100% - 40px);
  max-width: 900px;

  gap: 12px;

  opacity: 0;

  transform: translateX(-50%);

  animation: heroNavFade 1s ease-out forwards;
  animation-delay: 1.2s;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 17px;

  color: #d3d3d3;
  background: rgba(13, 13, 13, 0.25);
  border: 1px solid #666666;
  border-radius: 999px;

  font-size: 0.95rem;

  backdrop-filter: blur(5px);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: #8fc7ff;

  border-color: #8fc7ff;
  background: rgba(143, 199, 255, 0.08);

  transform: translateY(-2px);
}


/* ================================
   ABOUT
================================ */

.about {
  padding-top: 110px;
  padding-bottom: 110px;
}

.about-container {
  width: 100%;
  max-width: 820px;

  margin: 0 auto;
}

.about-text {
  width: 100%;
}

.about-text .section-title {
  margin-bottom: 38px;
}

.about-text p {
  margin-bottom: 24px;

  color: #bcbcbc;

  font-size: 1.05rem;
  line-height: 1.85;
}

.about-text p:first-of-type {
  color: #d0d0d0;
  font-size: 1.1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}


/* ================================
   PROJECTS SECTION
================================ */

.projects-section {
  max-width: 1200px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 30px;
}

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 24px;

  overflow: hidden;

  background: #171717;
  border: 1px solid #2d2d2d;
  border-radius: 20px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: rgba(143, 199, 255, 0.75);

  transform: translateY(-6px);

  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 280px;

  margin-bottom: 22px;

  object-fit: cover;
  object-position: top center;

  border: 1px solid #2b2b2b;
  border-radius: 14px;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.project-card:hover img {
  border-color: rgba(143, 199, 255, 0.4);

  transform: scale(1.015);
}

.project-card h3 {
  margin-bottom: 14px;

  color: #ffffff;

  font-size: 1.5rem;
  line-height: 1.3;
}

.project-card p {
  color: #b5b5b5;

  line-height: 1.75;
}


/* TECH STACK */

.tech-stack {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;

  margin: 18px 0 20px;
}

.tech-stack span {
  display: inline-flex;
  align-items: center;

  padding: 6px 12px;

  color: #8fc7ff;
  background: rgba(143, 199, 255, 0.1);
  border: 1px solid rgba(143, 199, 255, 0.23);
  border-radius: 999px;

  font-size: 0.82rem;
  line-height: 1.2;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.tech-stack span:hover {
  background: rgba(143, 199, 255, 0.18);
  border-color: rgba(143, 199, 255, 0.4);

  transform: translateY(-2px);
}


/* PROJECT FEATURES */

.feature-list {
  margin-top: 20px;
  padding-left: 22px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 3px;

  color: #c7c7c7;

  line-height: 1.6;
}

.feature-list li::marker {
  color: #8fc7ff;
}


/* PROJECT LINKS */

.project-links {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: auto;
  padding-top: 26px;
}

.project-link,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;

  min-width: 130px;

  padding: 11px 17px;

  color: #d3d3d3;
  border: 1px solid #444444;
  border-radius: 10px;

  font-weight: 600;
  text-align: center;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.project-link:hover,
.project-link:focus-visible,
.github-link:hover,
.github-link:focus-visible {
  color: #8fc7ff;

  border-color: #8fc7ff;
  background: rgba(143, 199, 255, 0.08);

  transform: translateY(-2px);
}


/* ================================
   SKILLS
================================ */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  max-width: 900px;

  margin: 0 auto;
  gap: 14px;
}

.skill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 21px;

  color: #d0d0d0;
  background: #1b1b1b;
  border: 1px solid #333333;
  border-radius: 999px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.skill:hover {
  color: #8fc7ff;

  background: rgba(143, 199, 255, 0.07);
  border-color: #8fc7ff;

  transform: translateY(-2px);
}


/* ================================
   BACKEND EXPERIENCE
================================ */

.backend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.backend-item {
  padding: 24px 20px;

  text-align: center;

  background: #171717;
  border: 1px solid #303030;
  border-radius: 16px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.backend-item:hover {
  border-color: rgba(143, 199, 255, 0.75);

  transform: translateY(-4px);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.backend-item h3 {
  margin-bottom: 10px;

  color: #ffffff;

  font-size: 1.2rem;
}

.backend-item p {
  color: #b5b5b5;

  line-height: 1.7;
}


/* ================================
   LEARNING
================================ */

#learning {
  text-align: center;
}

#learning p {
  max-width: 760px;

  margin: 0 auto 20px;

  color: #bcbcbc;

  font-size: 1.05rem;
  line-height: 1.8;
}


/* ================================
   CONTACT
================================ */

#contact {
  max-width: 850px;

  text-align: center;
}

#contact p {
  max-width: 680px;

  margin: 0 auto 28px;

  color: #bcbcbc;

  font-size: 1.08rem;
  line-height: 1.75;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 32px;

  color: #0d0d0d;
  background: #8fc7ff;
  border: 1px solid #8fc7ff;
  border-radius: 999px;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.email-button:hover,
.email-button:focus-visible {
  background: #acd6ff;

  transform: translateY(-2px);

  box-shadow: 0 10px 24px rgba(143, 199, 255, 0.2);
}


/* ================================
   FOOTER
================================ */

footer {
  padding: 38px 20px;

  color: #888888;
  border-top: 1px solid #222222;

  font-size: 0.95rem;
  text-align: center;
}


/* ================================
   ACCESSIBILITY
================================ */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(143, 199, 255, 0.65);
  outline-offset: 4px;
}

::selection {
  color: #0d0d0d;
  background: #8fc7ff;
}


/* ================================
   ANIMATIONS
================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroNavFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* ================================
   TABLET
================================ */

@media (max-width: 900px) {
  section {
    padding: 85px 22px;
  }

  .projects {
    grid-template-columns: 1fr;
    max-width: 720px;

    margin: 0 auto;
  }

  .project-card img {
    height: auto;
    max-height: 430px;
  }

  .backend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {
  section {
    padding: 72px 18px;
  }

  .section-title {
    margin-bottom: 36px;

    font-size: 1.9rem;
  }

  .hero {
    min-height: 100svh;

    padding: 45px 18px 100px;
  }

  .hero-content {
    padding: 10px;
  }

  .hero-content h1 {
    margin-bottom: 16px;

    letter-spacing: 1.3px;
  }

  .hero-content h2 {
    margin-bottom: 20px;
  }

  .hero-buttons {
    margin-top: 28px;
  }

  .hero-nav {
    bottom: 20px;

    gap: 8px;
  }

  .hero-nav a {
    padding: 8px 13px;

    font-size: 0.85rem;
  }

  .about {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about-container {
    max-width: 650px;
  }

  .about-text .section-title {
    margin-bottom: 30px;
  }

  .about-text p,
  .about-text p:first-of-type {
    font-size: 1rem;
    line-height: 1.75;
  }

  .project-card {
    padding: 20px;
  }

  .project-card img {
    margin-bottom: 20px;

    border-radius: 12px;
  }

  .project-card h3 {
    font-size: 1.35rem;
  }
}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 560px) {
  .hero {
    padding-bottom: 50px;
  }

  .hero-content h1 {
    font-size: 2.45rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    max-width: 320px;

    margin-right: auto;
    margin-left: auto;
  }

  .cta-button,
  .secondary-button {
    width: 100%;
  }

  .hero-nav {
    display: none;
  }

  .projects {
    gap: 22px;
  }

  .project-card {
    padding: 18px;

    border-radius: 16px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link,
  .github-link {
    width: 100%;
  }

  .backend-grid {
    grid-template-columns: 1fr;
  }

  .skill {
    padding: 11px 17px;

    font-size: 0.92rem;
  }
}


/* ================================
   EXTRA-SMALL MOBILE
================================ */

@media (max-width: 380px) {
  section {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content h2 {
    font-size: 1.08rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .project-card {
    padding: 15px;
  }
}


/* ================================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content h1,
  .hero-content h2,
  .hero-content p,
  .hero-buttons,
  .hero-nav {
    opacity: 1;
  }
}