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

:root {
  --main-white: #f0f0f0;
  --main-red: #fc4100;
  --main-yellow: #ffc55a;
  --main-blue: #2c4e80;
  --main-navy: #00215e;
}

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: black;
}

h1 {
  font-size: 4rem;
  color: var(--main-white);
}

h2 {
  font-size: 3rem;
  margin-bottom: 40px;
}

.navbar {
  position: fixed;
  top: 0px;
  margin-right: 5rem;
  width: 100%;
  text-align: right;
  align-items: center;
  padding: 10px 15px;
  background: var(--main-red);
  height: 50px;
}

.contact-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--main-white);
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  font-family: "Raleway", sans-serif;
}

.welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(
    180deg,
    var(--main-red) 15%,
    var(--main-blue) 85%
  );
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 4px solid var(--main-white);
}

.welcome-section p {
  font-size: 2rem;
  color: #00beef;
  margin-top: 1rem;
}

.project-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(
    180deg,
    var(--main-blue) 15%,
    var(--main-navy) 85%
  );
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: transparent;
  grid-gap: 2rem;
  padding: 2rem;
  max-width: 2200px;
}
/* Media query for screens smaller than 1200px */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

/* Media query for screens smaller than 768px */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* 1 column */
  }
}

.project-header-title {
  color: var(--main-white);
}

.project-card {
  width: 400px;
  height: 300px;
  background-color: var(--main-white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
  margin-bottom: 5px;
  border-radius: 10px;
}

img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: center;
}

.project-title {
  text-align: center;
  padding: 10px 10px;
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(
    180deg,
    var(--main-navy) 15%,
    var(--main-yellow) 85%
  );
}

.contact-section-header {
  color: var(--main-white);
  font-size: larger;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: var(--main-yellow);
  color: var(--main-navy);
  padding: 1rem;
}
