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

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

html { font-size: 62.5%; }

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #330d21;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 80px; /* for fixed header */
}

/* Header & Nav */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 9%; z-index: 100; background: transparent;
}

.logo { font-size: 3rem; color: #b74b4b; font-weight: 800; transition: .3s; }
.logo:hover { transform: scale(1.05); }

nav a {
  font-size: 1.8rem; color: #fff; margin-left: 4rem;
  border-bottom: 3px solid transparent; transition: .3s;
}
nav a:hover { color: #b74b4b; border-bottom-color: #b74b4b; }

/* Section & Hero */
section { min-height: 100vh; padding: 5rem 9%; }

.home {
  display: flex; justify-content: center; align-items: center; gap: 8rem;
}

.home .home-content h1 { font-size: 6rem; line-height: 1.2; }
.home .home-content h3 { font-size: 4rem; margin-bottom: 1rem; }
.home .home-content p { font-size: 1.6rem; }

span { color: #b74b4b; }


/*------------------PROJECTS SECTION------------------*/
/* Projects layout */
.projects-container {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

/* Project card */
.box1 {
  background: rgba(122, 54, 92, 0.655);
  border: 1px solid rgba(169, 120, 120, 0.772);
  border-radius: 20px;
  padding: 3rem;
  width: 500px;
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
  transition: 0.3s ease;
}

.box1:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(183, 75, 75, 0.4);
}

/* Text styling */
.box1 h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.box1 h2 {
  font-size: 1.6rem;
  color: #b74b4b;
  margin-bottom: 1.5rem;
}

.box1 p {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* unfortunately the project cards would have to be duplicated for each project*/
/* Project card 2*/
.box2 {
  background: rgba(122, 54, 92, 0.655);
  border: 1px solid rgba(169, 120, 120, 0.772);
  border-radius: 20px;
  padding: 3rem;
  width: 500px;
  height: 420px;
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
  transition: 0.3s ease;
}

.box2:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(183, 75, 75, 0.4);
}

/* Text styling */
.box2 h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.box2 h2 {
  font-size: 1.6rem;
  color: #b74b4b;
  margin-bottom: 1.5rem;
}

.box2 p {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* github links*/
.github-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  color: #fff;
  background: #b74b4b;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.github-link:hover {
  background: transparent;
  border: 1px solid #b74b4b;
  color: #b74b4b;
  transform: scale(1.05);
}
