@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  width: 100%;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: 0.3s ease;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

.menu-icon {
  display: none;
  font-size: 3rem;
  color: #b74b4b;
  cursor: pointer;
}

/* Sections padding */
section {
  padding: 10rem 9%;
  min-height: 100vh;
}

/* Section headings */
section h2 {
  font-size: 3.6rem;
  color: #b74b4b;
  margin-bottom: 2rem;
  text-align: center;
}

/* Paragraphs & lists */
section p,
section ul li {
  font-size: 1.8rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 1rem;
}

/* Home section */
.home {
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 3rem;
}

/* Home image */
.home-img img {
  width: 22vw;
  max-width: 250px;
  border-radius: 30%;
  box-shadow: 0 0 25px #b74b4b;
  object-fit: cover;
}

/* Home content */
.home-content {
  max-width: 600px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text {
  font-size: 5rem;
  font-weight: 700;
  color: #b74b4b;
  margin-bottom: 0.5rem;
}

.typing-text {
  font-size: 3.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: white;
}

/* Social icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  color: #b74b4b;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

/* Button style */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
  max-width: max-content;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #b74b4b;
  color: black;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

/* Project card */
.project-card {
  background-color: #111;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 0 15px #b74b4b30;
  text-align: center;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px #b74b4b40;
}

.project-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #b74b4b;
}

.project-card:hover {
  transform: translateY(-8px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section */
.contact-box {
  background-color: #111;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 0 25px #b74b4b50;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.contact-item {
  font-size: 1.8rem;
  color: #fff;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-item i {
  color: #b74b4b;
  font-size: 2.2rem;
}

.contact-item span {
  color: white;
}

/* Contact links buttons */
.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-btn {
  background-color: #000;
  border: 2px solid #b74b4b;
  color: #b74b4b;
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: 0.3s ease;
}

.contact-btn:hover {
  background-color: #b74b4b;
  color: #000;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000;
    text-align: center;
    padding: 2rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 2rem 0;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding-left: 0;
  }

  .home-img img {
    width: 40vw;
    margin-bottom: 2rem;
  }

  .home-content {
    max-width: 100%;
    text-align: center;
  }
}
