:root {
  --hover-blue: #c1bfae;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}

header {
  background-color: #fff;
  position: fixed;
  width: 100vw;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  z-index: 1000;
}

.logo {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 1100;
}

.logo img {
  height: 60px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  font-family: 'Courier New', Courier, monospace;
}

nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.15rem;
  font-weight: normal;
  transition: all 0.3s ease;
}

nav a:hover {
  font-size: 1.4rem;
  text-decoration: underline;
  font-weight: bold;
  color: var(--hover-blue);
}

.hero {
  padding: 8rem 2rem 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100vw;
}

.hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
  margin-bottom: 10rem;
  position: relative;
}

.hero-left img {
  width: 380px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-left .hero-text {
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  text-align: left;
  user-select: none;
  cursor: default;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.hover-grow {
  display: inline-block;
  transition: transform 0.3s ease, font-weight 0.3s ease;
  font-weight: 600;
}

.hover-grow:hover {
  transform: scale(1.3);
  font-weight: 700;
}

.highlight {
  font-weight: 700;
  color: #222;
  transition: color 0.3s ease;
}

.highlight:hover {
  color: var(--hover-blue);
}

.about-text.centered {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 5rem;
}

.about-text.centered p {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  font-size: 1.1rem;
}

.projects {
  padding: 4rem 2rem;
  text-align: center;
  width: 100vw;
}

.projects h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.project-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.project-card {
  max-width: 300px;
  background-color: transparent;
  padding: 1.5rem;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.image-placeholder {
  height: 200px;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3 {
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Courier New', Courier, monospace;
}

.project-link {
  display: inline-block;
  background-color: transparent;
  color: #c1bfae;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  transition: color 0.2s ease-in-out;
}

.project-link:hover {
  color: #555;
  font-weight: 700;
  text-decoration: underline;
}

.contact {
  padding: 8rem 1rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f7f5e9;
  color: #000;
  text-decoration: none;
  padding: 0.1rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

#scrollTopBtn:hover {
  background-color: #e0ddce;
}

.email-link {
  color: #c1bfae;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .logo {
    top: 5px;
    left: 10px;
  }

  .logo img {
    height: 40px;
  }

  nav {
    top: 10px;
    right: 10px;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  nav a:hover {
    font-size: 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero-left {
    flex-direction: column;
    margin-bottom: 3rem;
    gap: 1rem;
  }

  .hero-left img {
    width: 250px;
  }

  .hero-text {
    font-size: 3rem !important;
    text-align: center !important;
  }

  .about-text.centered {
    padding-bottom: 3rem;
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .project-card {
    max-width: 80%;
  }

  .contact {
    padding: 4rem 1rem;
  }

  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    padding: 0.1rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-left .hero-text {
    font-size: 2.5rem !important;
  }

  .project-card {
    max-width: 100%;
  }

  nav ul {
    gap: 0.7rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 3rem 1rem 4rem;
  }

  .page-title {
    font-size: 3rem;
    margin-top: 6rem;
  }

  .page-subtitle {
    margin-bottom: 4rem;
  }

  .post {
    margin-bottom: 5rem;
  }

  .post h2 {
    font-size: 1.2rem;
  }

  .logo img {
    height: 40px;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2.2rem;
  }

  .post h2 {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 0.7rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}
