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


body {
  font-family: Helvetica, Arial, sans-serif;
  background: #0e0e0e;
  color: #cfcfcf;
}


/* HEADER */

.header {
  padding: 50px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}


.header h1 {
  font-size: 26px;
  font-weight: 400;
}


.header p {
  margin-top: 4px;
  opacity: 0.7;
}


.contact {
  margin-top: 18px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
}


.contact a {
  color: #cfcfcf;
  text-decoration: none;
}


.contact a:hover {
  opacity: 0.7;
}


/* Instagram */

.instagram {
  color: #E1306C;
}


/* PROJECTS */

.projects {
  width: 100%;
}


/* ONE PROJECT */

.project {
  position: relative;
  min-height: 90vh;
  width: 100%;
  margin-bottom: 120px;

  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}


/* când devine vizibil */

.project.show {
  opacity: 1;
  transform: translateY(0);
}



/* STAGGER */

.project:nth-child(1) { animation-delay: 0.2s; }
.project:nth-child(2) { animation-delay: 0.5s; }
.project:nth-child(3) { animation-delay: 0.8s; }
.project:nth-child(4) { animation-delay: 1.1s; }


/* IMAGE */

.project img {
  width: 100%;
  height: auto;
  display: block;
}


/* TEXT */

.info {
  position: absolute;
  bottom: 30px;
  left: 30px;

  background: rgba(0,0,0,0.45);
  padding: 16px 20px;

  max-width: 420px;
}


.info h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}


.info p {
  font-size: 14px;
  opacity: 0.9;
}


/* FADE */

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* FOOTER */

footer {
  padding: 35px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
}


/* MOBILE */

@media (max-width: 700px) {

  .header {
    padding: 35px 25px;
  }

  .info {
    left: 20px;
    right: 20px;
  }

}
