@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins',sans-serif;
}

body{
    height: 100vh;
    background: linear-gradient(45deg, #020b3d 0%, #0aa4af 100%);
}

.center,.front-face,
.contents,.back-face{
    position: absolute;
}

.center{
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 400px;
    width: 290px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.front-face,.back-face{
    height: 100%;
    width: 100%;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7)), 
                url(images/image1.png);   
    background-size: cover;
    background-position: center;
    border-radius: 10px; 
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4,0.2,0.2,0.1);
}

.contents{
    left: 0;
    top: 50%;
    width: 100%;
    perspective: 100px;
    transform: translateY(-50%) translateZ(60px);
}

.front p {
    color: white;
    font-size: 35px;
    margin-bottom: 15px;
}

.front p::after{
    content: '';
    display: block;
    left: 0;
    right: 0;
    height: 2px;
    width: 100px;
    background: white;
    margin: 0 auto;
    margin-top: 10px;
}

.front span{
    color: white;
    font-size: 23px;
}

.back-face{
    transform: rotateY(180deg);
    background: linear-gradient(45deg, #043348 0%, #032535 100%);
}

.back{
    color: white;
}

.back h2{
    font-size: 25px;
    padding-bottom: 5px;
}

.back span{
    font-size: 25px;
}

.icons{
    margin: 10px 0;
}

.icons .fa{
    color: #042f4b;
    height: 40px;
    font-size: 20px;
    width: 40px;
    background: white;
    border-radius: 50%;
    line-height: 40px;
    margin: 0 5px;
    cursor: pointer;

}

.center:hover > .back-face{
    transform: rotateY(0deg);
}

.center:hover > .front-face{
    transform: rotateY(-180deg);
}

/* Botão voltar */
.back-btn {
position: fixed;
top: 20px;
left: 20px;
background: #38bdf8;
color: #0f172a;
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Hover */
.back-btn:hover {
background: #0ea5e9;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}