/* Reset */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 10%;
}

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

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: -40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;

  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
}

/* Hero */

.projects-hero {
  padding: 100px 10% 70px;
  text-align: center;
}

.projects-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.projects-hero p {
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
}

/* Projects Section */

.projects-section {
  padding: 0 10% 100px;
}

.projects-state {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.projects-section {
  padding: 0 10% 100px;

  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Each Project */

.project-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Alternate Layout */

.project-row.reverse {
  flex-direction: row-reverse;
}

/* Image Placeholder */

.project-image {
  flex: 1;

  height: 350px;

  background: var(--white);
  background-size: cover;
  background-position: center;

  border-radius: 24px;

  border: 2px dashed rgba(11, 109, 255, 0.15);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Content */

.project-content {
  flex: 1;
}

.project-content h2 {
  margin-bottom: 20px;

  font-size: 2rem;

  color: var(--branch-blue-dark);
}

.project-content p {
  line-height: 1.8;

  color: var(--text-light);
}

/* Hover */

.project-image:hover {
  transform: translateY(-6px);

  transition: 0.3s ease;

  border-color: rgba(11, 109, 255, 0.35);

  box-shadow: 0 18px 40px rgba(11, 109, 255, 0.15);
}

.project-image.has-image {
  border-style: solid;
}

.project-image.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 600;
}
/* Footer */

footer {
  padding: 40px 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 12px;
}

.footer-brand img {
    width: 150px;
}
/* Tablet */
@media (max-width: 900px) {

    .navbar{
        flex-direction:column;
        height:auto;
        padding:20px 5%;
        gap:18px;
    }

    .logo-wrapper{
        justify-content:center;
    }

    .brand-name{
        margin-left:0;
        font-size:24px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .projects-hero{
        padding:70px 5% 50px;
    }

    .projects-hero h1{
        font-size:clamp(36px,7vw,56px);
    }

    .projects-section{
        padding:0 5% 70px;
        gap:60px;
    }

    .project-row,
    .project-row.reverse{
        flex-direction:column;
        gap:35px;
    }

    .project-content{
        text-align:center;
    }

    .project-image{
        width:100%;
        max-width:650px;
        height:300px;
    }

}

/* Phone */
@media (max-width: 600px){

    .navbar{
        padding:18px 20px;
    }

    .nav-links{
        gap:15px;
    }

    .nav-links a{
        font-size:15px;
    }

    .projects-hero{
        padding:55px 20px 40px;
    }

    .projects-hero h1{
        font-size:clamp(30px,9vw,42px);
    }

    .projects-hero p{
        font-size:16px;
        line-height:1.7;
    }

    .projects-section{
        padding:0 20px 60px;
        gap:50px;
    }

    .project-image{
        height:220px;
    }

    .project-content h2{
        font-size:1.7rem;
    }

    .project-content p{
        font-size:16px;
        line-height:1.7;
    }

    .footer-brand{
        flex-direction:column;
        gap:10px;
    }

    .footer-brand img{
        width:120px;
    }

}

@media (max-width: 380px){

    .brand-name{
        font-size:20px;
    }

    .projects-hero h1{
        font-size:28px;
    }

    .project-content h2{
        font-size:1.5rem;
    }

    .project-image{
        height:180px;
    }

}
