@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Condensed:ital,wght@0,1..1000;1,1..1000&family=Sofia+Sans+Extra+Condensed:ital,wght@0,1..1000;1,1..1000&display=swap');
* {
    margin: 0;
    padding: 0;    
    box-sizing: border-box;
}

main {
    margin-left: 9%;
    margin-right: 9%;
}

a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

.logo {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    font-weight: bold;
    background: rgba(52, 152, 219, 1);
    height: 8vh;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    letter-spacing: 3px;
    margin-right: 45px;
}

.titulo-principal {
   font-family: "Sofia Sans Extra Condensed", sans-serif;
   color: #202020;
   font-weight: bold;
   font-size: 5rem;
   line-height: 1.2;
   text-align: center;
   margin-top: 2%;
}

.legenda-principal {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
   color: #535353;
   font-size: 1.8rem;
   line-height: 1.2;
   text-align: center;
   margin-top: 2%;
}

h3, p {
  font-family: "Sofia Sans Condensed", sans-serif;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1.15rem;
  text-align: justify;
}

.timeline {
  position: relative;
  width: 80%;
  max-width: 900px;
  margin: 50px auto;
  padding: 10px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #555;
  z-index: 0; 
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 50px 0;
  opacity: 0;
  position: relative;
  z-index: 1; 
  transition: all 0.8s ease-out;
}


.timeline-item .image-container, .timeline-item .content {
  flex: 1;
  transition: order 0.3s ease;
}

.content {
  width: 40%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: left;
}

.image-container {
  width: 40%;
  position: relative;
  cursor: pointer;
}

.image-container img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
  display: block;
}

.image-container:hover img {
  transform: scale(1.05);
}

.overlay-text {
  position: absolute;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-size: 1.8rem;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  text-align: justify;
  padding: 10px;
  opacity: 0; 
  transition: opacity 0.3s;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-images img {
  min-width: 100%;
  border-radius: 8px; 
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: block;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .active {
  background: #ffffff; 
}

.image-container,
.image-container.carousel {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-container img,
.image-container.carousel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover img,
.image-container.carousel:hover img {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.image-container .overlay-text,
.image-container.carousel .overlay-text {
  border-radius: 12px;
  overflow: hidden;
}

footer {
    background: rgba(94, 94, 94, 1);
    padding: 20px 40px;
    color: white;
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    margin-top: -4px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 9%;
    margin-right: 9%;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    margin-right: 15px;
    background-image: url("../img/mariana\ sem\ fundo\ -\ Copia.png");
    background-size: cover;
    background-position: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-name {
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 50px;
}

.footer-links li a {
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links li a:hover {
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social.github i {
  color: #333; 
}

.social.instagram i {
  color: #E1306C; 
}

.social.linkedin i {
  color: #0077b5; 
}

.social.email i {
  color: #fbbc05; 
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    font-size: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social:hover {
    transform: scale(1.15);
    background: #d6d6d6;
}
