/* Hei näin kommentoit css:sää */
/* Laita tänne omat tyylittelyt :D */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-bg: #000000;
  --text-color: #ffffff;
  --accent-color: rgb(73, 73, 73);
  --font-size-large: 32px;
  --font-size-nav: 18px;
}

body {
  min-height: 100vh;
  background-color: var(--primary-bg);
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding-top: 84px;
  line-height: 1.6;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 20px 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: black;
}

nav a {
  color: var(--text-color);
  font-size: var(--font-size-nav);
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
  text-decoration-color: white;
  background-color: var(--accent-color);
}

header {
  text-align: center;
  margin: 40px auto;
}

h1 {
  font-size: var(--font-size-large);
  margin: 0;
  font-weight: 500;
}

.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.projects-section > p {
  text-align: center;
  margin-bottom: 40px;
}

.project-container {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.project-content h2 {
  font-size: 20px;
  margin: 0;
}

.project-content p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.project-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.project-bottom .image-container {
  margin: 0;
}

.project-bottom a {
  margin-top: 8px;
}

.image-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.image-container img {
  max-width: 100%;
  border-radius: 8px;
  width: auto;
  height: 300px;
}

@media screen and (max-width: 400px) {
  .image-container img {
    height: 200px;
  }
}

.check_out {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: underline;
}

.check_out:hover {
  opacity: 0.8;
}

@media screen and (min-width: 768px) {
  .projects-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .projects-section > p {
    grid-column: 1 / -1;
  }

  .project-bottom {
    gap: 24px;
  }
}

@media screen and (min-width: 1200px) {
  .projects-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info {
  text-align: center;
  padding: 40px 0;
  margin-top: 40px;
}

.contact-info h3 {
  margin-bottom: 4px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 14px;
}


