html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: #00638b; 
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}
html {
    overflow-x: hidden;
}
body {
    line-height: 1;
    position: relative;
    background-color: #00648b18;
    /* box-shadow: rgba(50, 50, 93, 0.25) 15px 0px 18px 20px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset; */
    font-family: "Ysabeau SC", serif;
    color: #00638b;
    user-select: none;

}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
h1 {
    font-weight: 800;
    font-size: 9vw;
    text-shadow: 4px 4px 5px #888888;
}

h2{
    font-size: 3vw;
}
h3{
    text-shadow: 4px 4px 5px #888888;
    font-size: 2.5vw;
    font-weight: 700;
    
}
h4 {
    position: absolute;
    font-size: 2.5vw;
    top: 10%;
    font-weight: 700;
}
p {
    font-size: 1.4vw;
}
.box{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    justify-content: space-evenly;
}
.company-info{
    width: 50%;
    height: 20%;
    display: flex;
    align-items: center;
    align-items: center;
    flex-direction: column;
    gap: 5%;
}
.company-info img{
    height: 100%;
}
section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: 20%; */
    margin-bottom: 15%;
}


section:first-of-type .contact-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
    width: 80%;
}
.contact-info img{
    height: 5vw;
    max-height: 5rem;
}
.contact-info img:hover{
    cursor: pointer;
    transform: scale(1.1);

}
.footstep {
    position: absolute;
    transform-origin: center;
    max-height: 40px;
    transition: transform 0.3s ease, opacity 0.5s ease;
    color: #000;
    z-index: -1;
}
#interlocutor {
    position: sticky;
    top: 90%;
    left: 40%;
    text-align: center;
    font-size: 2.8vh;
    cursor: grab;
    z-index: 10;
    user-select: none;
    font-weight: 900;
    color: #d23434;
    padding: 1rem 5rem;
    /* background: linear-gradient(90deg, transparent 0%, #00638b9e 10%, #00638b9e 90%, transparent 100%); */
    background-color: white;
    box-shadow: -5px -5px 10px rgba(255, 255, 255, 0.5), 5px 5px 10px rgba(0, 0, 0, 0.3);
}
#interlocutor:hover{
    transform: scale(1.1);
}

.sub-title {
    position: relative;
    height: 3.5em;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#recent-stacks {
    position: relative;
    /* width: auto;
    height: auto; */
    /* max-width: 400px;
    max-height: 400px; */
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

#recent-stacks:hover {
    animation-play-state: paused;
}

#recent-stacks li {
    position: absolute;
    width: 10vh;
    height: 10vh;
    line-height: 10vh;
    color: #00638A;
    text-align: center;
    border: dashed 1px #00638b;
    border-radius: 50%;
    font-weight: 900;
    cursor: pointer;
    background-color: white;
    transition: transform 1s, background-color 0.3s;
    box-shadow: rgba(50, 50, 93, 0.25) 4px 10px 15px 5px;
    user-select: none;
    z-index: 3;
    display: flex;
    justify-content: center;
}

#recent-stacks li.active {
    background-color: #00648b5b;
    transform: scale(1.25);
    color: white;
    z-index: 10;
}

#recent-stacks-description{
    font-size: 3.1vh;
    max-width: 60%;
    text-align: center;
    position: absolute;
    background: #ffffffad;
    z-index: 1;
}

.card-container {
    width: 40%;
    height: 50%;
    perspective: 1000px; /* Para criar efeito 3D */
    user-select: none;

}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, z-index 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.5rem;
    border: solid 2px #00638b;
}

.card img.card-img {
    user-select: none;
    max-width: 100%;
    height: auto;
    border: solid 1px #00638b;
    margin-top: 1%;
}

.card-description{
    height: 30%;
    border: solid 1px #00638b;
    font-size: 1vw;
    margin-top: 5%;
    padding: .6rem;
    font-weight: 600;

}
.card-level{
    display: flex;
    width: 100%;
    flex-direction: row-reverse;
    gap: 2%;
}
.card:not(:first-child) {
    transform: scale(0.9) translateY(20px);
    z-index: 0;
}

.card:first-child {
    z-index: 1;
    transform: scale(1) translateY(0);
    cursor: grab;
}
#profile-picture{
    border-radius: 100%;
    position: absolute;
    width: 12vw;
}

.wave-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    font-size: 3.4vh;
    text-align: center; 
    padding: 5%;
    cursor: default;
    border-radius: 25%;
    width: 66%;
  }

.word {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.word:hover {
    color: #00638b;
    font-weight: bold;
}

.word::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 99, 139, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.word:hover::after {
    opacity: 1;
}

.word.neighbor {
    color: #007ba7;
    background: rgba(0, 99, 139, 0.1);
}

.layer{
    background: #ffffffad;
}

#book {
    position: relative;
    width: 40%;
    height: 60%;
    perspective: 1500px;
    background: #00638b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0px 10px 10px 0px;
    user-select: none;
    left: 20%;
}
.page.cover{
    font-family: inherit;
    border-radius: 0px 10px 10px 0px;
    background: #00638b;
    position: relative;
    min-width: 100%;
    min-height: 100%;
    /* margin-left: -10px; */
    position: absolute;
    border-left: none;
    color: #003a52;
    font-size: 4vw;
    font-weight: 900;
    box-shadow: none;
}
.shadow {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4), 10px 10px 15px rgba(0, 0, 0, 0.3); /* Sombra horizontal e vertical destacada */
    filter: drop-shadow(10px 15px 10px rgba(0, 0, 0, 0.4)); /* Sombra adicional com mais intensidade */
    transition: box-shadow 0.5s ease, filter 0.3s ease; /* Suaviza as transições */
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.4));
}
.page {
    font-family: "Caveat";
    padding-left: 10px;
    position: absolute;
    width: 90%;
    height: 94%;
    background: repeating-linear-gradient(
        to bottom,
        #f8f4e3,
        #f8f4e3 25px,
        #d6d6d6 26px
      );    
    
    border-left: 1px solid #ddd;
    box-shadow: 5px -4px 3px 1px rgba(175, 174, 166, 0.05), 5px 4px 3px 1px rgba(175, 174, 166, 0.05);
    transform-origin: left;
    transition: transform 0.6s ease, width 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: black;
}
.page  p{
    text-align: center;
    text-justify: distribute;
    padding: 5%;
}
.page  p em{
color: darkblue;
}
.page img{
    max-width: 100%;
}
.page h5{
    font-size: 2vw;
    text-decoration: underline;
    text-decoration-color: red;
}


.counter-sheet:first-of-type{
    background: none;
    
}
.counter-sheet{
    pointer-events: none;
}

.page:nth-child(even) {
    background: repeating-linear-gradient(
        to bottom,
        #f8f4e3,
        #f8f4e3 25px,
        #d6d6d6 26px
      );}

.page {
    z-index: calc(var(--index, 1));
}

.page.flipped {
    transform: rotateY(-180deg);
    z-index: 0;
}
.company-description{
    margin-top: 5%;
}

.caroussel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    width: 90%;
    height: 60%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.caroussel li {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-20%, -50%);
    opacity: 0.05;
    transition: transform 0.5s, opacity 0.5s;
    z-index: 1;
    background-color: #ffffff;
    color: black;
    max-width: 50%;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
}
.person{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
}
.person img{
    max-width: 20%;
    border-radius: 100%;
}
.person p{
    font-size: 2vh;
    font-weight: 700;
    max-width: 60%;
    text-align: center;
    color: #00638b;
}
.quote p{
    font-weight: 500;
    font-size: 2.1vh;
    text-align: justify;
}

.caroussel li.focus {
    top: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    z-index: 3;
}

.caroussel li.left {
    transform: translate(-120%, -50%) scale(0.5);
    z-index: 2;
}

.caroussel li.right {
    transform: translate(20%, -50%) scale(0.5);
    z-index: 2;
}
.caroussel li img {
    width: 60%;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 4;
    padding: 10px 15px;
    border-radius: 50%;
}

.left-arrow {
    left: 10%;
}

.right-arrow {
    right: 10%;
}
.arrow-container {
    display: flex;
    justify-content: space-between;
    width: 70%;
    /* position: relative; */
    top: 10px;
}

.arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.company-info p{
    text-align: center;
}


@media (max-width:1100px) {
    html, body {
        box-sizing: border-box; 
        width: 100vw;
    overflow-x: hidden;

    }
    h1 {
        font-size: 10vh;
    }
    h2 {
        font-size: 4vh;
    }
    h4{
        font-size: 6vh;
        position: static;
        text-align: center;
    }
    section{
        height: 100vh;
        margin-top: 20%;

        flex-direction: column;
    }
    .box{
        width: 100%;
        height: 80%;
    }
    .page h5{
        font-size: 2vh;
    }
    .contact-info img{
        height: 6vh;
        max-height: 5rem;
    }    
    #book {
        height: 75%;
        width: 60%;
    }
    .company-info p{
        font-size: 1.4vh;
    }
    .stack-list img {
        max-height: 50px ;   
    }
    .card-container{
        width: 60%;
        height: 70%;

    }
    #recent-stacks-description{
        max-width: 100%;
        width: 80%;    
        position: static;
    }
    .card-description{
        font-size: 1.4vh;
    }
    .card img.card-img {
        max-height: 50%;
    }
    .page p{
        font-size: 2.4vh;
    }
    .wave-text{
        font-size: 2.2vh;
        width: 85%;
    }
    .right-arrow {
        right: 0%;
    }
    .left-arrow{
        left: 0%;
    }
    .quote p{
        font-size: 1.4vh;
        /* background-color: red; */
    }
    .person p{
        font-size: 1.3vh;

    }
    .caroussel{
        width: 100%;
    }
    .caroussel li{
        max-width: 100%;
        width: 60%;
    }
    #profile-picture{
        width: 26vw;

    }
}

.stack-list{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 50px 10%;
    padding: 0%;
    justify-content: center;
    margin-top: 15%;
}
.stack-list img{
    height: 100px;
    filter: grayscale(100%);
    opacity: 60%;
    
}
.stack-list img:hover{
    transform: scale(1.3);
    filter: grayscale(0%);
    opacity: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10%;
}