* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */

.navbar {
  position: fixed;
  width: 100%;
  background: #fff;
  color: #000;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
}

nav a {
  color: orange;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
}

nav a:hover {
  color: orange;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}


/* =========================
   PROJECTS SECTION
========================= */

.projects {
    padding: 110px 8%;
    background: #050505;
    color: white;
    overflow: hidden;
}

/* HEADING */

.projects-heading {
    margin-top: 30px;
    margin-bottom: 70px;
}

.projects-heading h2 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 18px;
    position: relative;
}

/* Accent line */

.projects-heading h2::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -12px;

    width: 80px;
    height: 4px;

    background: orange;
    border-radius: 20px;
}

.projects-heading p {
    color: #9d9d9d;
    max-width: 700px;
    line-height: 1.8;
    margin-top: 30px;
}

/* GRID */

.project-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* CARD */

.project {
    background: linear-gradient(
        145deg,
        #101010,
        #181818
    );

    border: 1px solid #1f1f1f;

    border-radius: 22px;

    overflow: hidden;

    transition: 0.4s ease;
}

/* Hover */

.project:hover {
    transform: translateY(-10px);
    border: 1px solid orange;
}

/* IMAGE WRAPPER */

.project-image {
    overflow: hidden;
}

/* IMAGE */

.project img {
    width: 100%;
    height: 320px;

    object-fit: cover;
    display: block;

    transition: 0.5s ease;
}

/* Image hover zoom */

.project:hover img {
    transform: scale(1.06);
}

/* CONTENT */

.project-content {
    padding: 25px;
}

/* CATEGORY */

.project-category {
    display: inline-block;

    color: orange;

    font-size: 0.85rem;
    font-weight: 600;

    margin-bottom: 12px;
}

/* TITLE */

.project h4 {
    font-size: 1.4rem;
    line-height: 1.4;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .projects-heading h2 {
        text-align: center;
        margin-top: 60px;
    }

    .projects-heading h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .projects-heading p {
        text-align: center;
        margin: 30px auto 0;
    }

    .project-box {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .projects {
        padding: 90px 5%;
    }

    .projects-heading h2 {
        font-size: 2.3rem;
    }

    .project img {
        height: 250px;
    }

    .project-content {
        padding: 22px;
    }

}



/* STATS */

.stats {
  background: #111;
  color: white;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 20px;
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: orange;
}


/* FOOTER */

.footer {
  background: #000;
  color: white;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px;
}

.footer-box h3,
.footer-box h4 {
  color: orange;
  margin-bottom: 15px;
}

.footer-box p {
  color: #ccc;
  line-height: 1.6;
}


/* LINKS */

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-box ul li a:hover {
  color: orange;
}



/* FOOTER BOTTOM */

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #888;
}


/* MOBILE */

@media(max-width:768px){

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    margin-top: 30px;
  }

}




/* CONTACT */

.contact {
  background: #111;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
}


/* FOOTER */

footer {
  background: black;
  color: white;
  text-align: center;
  padding: 20px;
}


/* MOBILE */

@media(max-width:768px){

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 15px;
    border-bottom: 1px solid #333;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
