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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --main-black: #000;
  --main-white: #fff;
  --main-orange: #ff9800;
  --main-blue: #0044cc;
  --main-green: #228b22;
  --main-yellow: #ffeb3b;
}

body {
  font-family: "Raleway", sans-serif;
  line-height: 1.6;
}

#container {
  background-color: var(--main-black);
  color: var(--main-white);
  display: flex;
  flex-direction: column;
}

/* Navbar */
#navbar {
  display: flex;
  justify-content: flex-end;
  background-color: var(--main-blue);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 1rem;
}

.nav-list {
  display: flex;
  margin-right: 1rem;
  list-style: none;
}

.nav-list li {
  margin: 0 1rem;
}

.nav-list a {
  color: var(--main-white);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--main-orange);
}

@media (max-width: 600px) {
  #navbar {
    justify-content: center;
  }
  .nav-list {
    flex-wrap: wrap;
  }
  .nav-list a {
    font-size: 1rem;
  }
}

/* Welcome Section */
#welcome-section {
  background-color: var(--main-green);
  color: var(--main-white);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

#welcome-section h1 {
  font-size: 2.5rem;
}

#description {
  font-size: 1.5rem;
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  #welcome-section h1 {
    font-size: 1.8rem;
  }
  #description {
    font-size: 1.2rem;
  }
}

/* Projects */
#projects {
  background-color: var(--main-orange);
  padding: 4rem 2rem;
  text-align: center;
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--main-black);
  border-bottom: 5px solid var(--main-green);
  display: inline-block;
  padding-bottom: 0.5rem;
}

#projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-tile {
  background-color: var(--main-black);
  padding: 1rem;
  border-radius: 8px;
}

.image {
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 5px;
}

figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--main-white);
  transition: color 0.3s ease, transform 0.3s ease;
}

figcaption:hover {
  color: var(--main-yellow);
  transform: translateY(5px);
}

/* Contacts */
#contacts {
  background-color: var(--main-black);
  padding: 4rem 2rem;
  text-align: center;
}

#contacts h3 {
  font-size: 2rem;
  color: var(--main-orange);
}

#icons {
  margin-top: 2rem;
}

#icons a {
  margin: 0 1rem;
  font-size: 1.5rem;
  color: var(--main-white);
  transition: color 0.3s ease;
}

#icons a:hover {
  color: var(--main-orange);
}

footer p {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #ccc;
}

@media (max-width: 600px) {
  #icons a {
    margin: 0 0.5rem;
    font-size: 1.2rem;
  }
}
