:root {
  --main-pink: pink;
  --hover-pink: rgb(249, 158, 173);
  --main-white: #ffffff;
  --main-black: #000000;
  --main-gray: #777;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-color: #fdfdfd;
}

.nav {
  background-color: var(--main-pink);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.nav a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease-in-out;
}

.nav a:hover {
  background-color: var(--hover-pink);
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 130px;
  background-image: linear-gradient(0deg, rgb(231, 231, 231), rgb(240, 165, 178));
  color: white;
}

#welcome-section p {
  font-family: 'Courier New', Courier, monospace;
}

.project-section {
  text-align: center;
  padding: 10rem 1rem;
}

.project-section h2 {
  border-bottom: 3px solid #ccc;
  display: inline-block;
  padding-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  max-width: 1000px;
  margin: 3rem auto;
}

.project {
  text-decoration: none;
  background: linear-gradient(0deg, rgb(231, 231, 231), rgb(240, 165, 178));
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.project:hover {
  transform: scale(1.03);
}

.project-title {
  font-size: 1rem;
  padding: 1rem;
  color: black;
}

.code {
  color: black;
  transition: color 0.3s ease;
}

.project:hover .code {
  color: #ff7f50;
}

img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  display: block;
}

#contact {
  background-color: var(--main-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
}

.contact-link {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-details {
  text-decoration: none;
  font-size: 1.8rem;
  margin: 0.5rem;
  padding: 1rem 2rem;
  text-shadow: 2px 2px 1px #7e7e7e;
  color: black;
  transition: transform 0.3s ease;
}

.contact-details:hover {
  transform: translateY(-5px);
}

footer {
  background-color: var(--main-gray);
  padding: 2rem;
  text-align: center;
  color: white;
  border-top: 4px solid black;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
