@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  background-color: #171717;
  font-family: 'Raleway', sans-serif;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

section,
div[id] {
  max-width: 1100px;
  width: 100%;
  margin: 3rem auto;
  padding: 2rem;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  background-color: #5A67F2;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  display: block;
}

img {
  height: 320px;
  width: 320px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 40px;
}

h1 {
  font-size: 2.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #5A67F2;
}

p {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

a.underline {
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  color: #6b74f8;
}

li {
  list-style: none;
}

button {
  font-size: 1.1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background-color: #5A67F2;
  color: white;
  transition: all 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  background-color: #6b74f8;
}

/* FontAwesome brand icons */
.fa-brands {
  color: white;
  font-size: 2.2rem;
  margin: 0 0.6rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fa-brands:hover {
  transform: scale(1.2);
  color: white;
}

/* CONTACT FORM */

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

form input,
form textarea {
  width: 100%;
  max-width: 600px;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
  resize: vertical;
}

form textarea {
  min-height: 150px;
}

form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  width: 10rem;
  font-size: 1.1rem;
}

/* Projects grid container */
#projects .projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

/* Project card styling */
.project-card {
  background-color: #222;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 15px rgba(90, 103, 242, 0.3);
  color: #ddd;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(90, 103, 242, 0.6);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  color: #5A67F2;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #ddd;
}

.project-card a {
  font-weight: 600;
  color: #5A67F2;
  text-decoration: underline;
}

.project-card a:hover {
  color: #7c86ff;
}

/* MOBILE */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .navbar {
    display: none;
  }

  img {
    height: 240px;
    width: 240px;
  }

  #projects .projects-container {
    grid-template-columns: 1fr;
    padding: 0;
  }
}
