@font-face {
    font-family: 'Helonik Extended';
    src: url('../fonts/ckhans-fonts-helonik-extended-bold-demo.otf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ocean Sans Std';
    src: url('../fonts/Ocean\ Sans\ Std\ Book\ Extended.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body, html {
    width: 100%;
    height: 100%;
    font-family: sans-serif; 
}

.background-container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    background: linear-gradient(135deg, #FFB900 0%, #FFFD32 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    z-index: 5;
}

.pattern {
    position: absolute;
    background-image: url('../media/vetor/pattern.svg'); 
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.pattern-top-right {
    top: 0;
    right: 0;
    background-position: top right;
    background-size: 700px;
    width: 50%;
    height: 50%;
}

.pattern-bottom-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: 750px; 
    transform: scaleY(-1);
    background-position: top left;
}

.content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    cursor: pointer;
}

.about-section {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 0px;
}

.about-title {
    font-family: 'Helonik Extended', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: -10px;
    color: white;
}

.title-underline {
    width: 100%; 
    height: 6px;
    background-color: white;
   
}

.content-block {
    background-color: #212121e3;
    width: 100%;
    margin-bottom: 0px; 
    min-height: 8px;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-text {
    overflow: hidden;
    padding: 0 70px;
    opacity: 0;
    transition: padding 0.6s ease, opacity 0.4s ease;
}

.about-text p {
    font-family: 'Ocean Sans Std', sans-serif;
    font-size: 23px;
    line-height: 1.6;
    color: white;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.back-btn img {
    width: 35px;
    height: auto;
    display: block;
}

.back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding-bottom: 15px;
}

.keyboard-hint {
    
    margin-top: 30px;
    display: flex;       
    align-items: center;    
    z-index: 100;
}

.keyboard-hint img {
    width: 115px;      
    height: auto;
}

.highlight {
    color: #FFFD32;
    font-weight: 500;
}

.content.open .content-block {
    grid-template-rows: 1fr;
    margin-bottom: 5px;
    margin-top: 5px;
}

.content.open .about-text {
    padding: 50px 50px; 
    opacity: 1;
    transition-delay: 0s, 0.1s; 
}

/* ==========================================================================
   RESPONSIVIDADE - MOBILE (ABOUT ME)
   ========================================================================== */

@media (max-width: 768px) {
    .background-container {
        min-height: 100dvh;
        height: auto; /* deixa crescer se necessário */
    }

    .content {
        padding: 15px;
        height: 96dvh;
    }

    .content.open .content-block {
        max-height: calc(80dvh - env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .content.open .about-text {
        padding: 30px 20px; 
        overflow-y: auto; /* <-- ADICIONE ESTA LINHA */
    }

    .about-section {
        max-width: 100%; 
    }

    .about-title {
        font-size: 2rem; 
        margin-bottom: -5px;
    }

    .title-underline {
        height: 4px; 
    }

    .about-text p {
        font-size: 18px;
        line-height: 32px;
    }

    .pattern-top-right,
    .pattern-bottom-left {
        background-size: 400px;
    }

    .keyboard-hint {
        display: none; 
    }

    .back-btn img {
        width: 35px;
    }
}