@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Poppins:wght@400;600&display=swap');

/****************************************************************************************************/
:root {
    --bg-black-900: #f8fafc;     
    --bg-black-100: #ffffff;
    --bg-black-50: #e2e8f0;
    --text-black-900: #1e293b;   
    --text-black-700: #475569;
    --skin-color: #1e293b;      
    --accent-color: #6366f1;    
    --hover-color: #4f46e5;     
    --text-color: #ffffff;      
    --liquid-color1: var(--skin-color);
    --liquid-color2: var(--accent-color);
    --liquid-color3: var(--hover-color);
}

body.dark {
    --bg-black-900: #0f172a;     
    --bg-black-100: #1e293b;
    --bg-black-50: #334155;
    --text-black-900: #f1f5f9;
    --text-black-700: #cbd5e1;
    --skin-color: #1e293b;
    --accent-color: #818cf8;    
    --hover-color: #6366f1;
    --text-color: #0f172a;      
}





html,
body {

    line-height: 1.8;
    font-size: 18px;
    font-family: Poppins, sans-serif;
    background: var(--bg-black-900);
    color: var(--text-black-900);

    overflow-x: hidden;
    scroll-behavior: smooth;

}



* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;


}

body.dark .main-content {
    background: #151515;
    color: #ffffff;
}



ul {

    list-style: none;
}

.section {

    min-height: 100vh;
    display: block;
    padding: 60px 0;
    opacity: 1;
}



.main-content {
    padding-left: 270px;
    background: var(--bg-black-900);
    color: var(--text-black-900);
    width: 100%;
    box-sizing: border-box;
}


.container {
    width: 100%;
    max-width: 1200px;
    --container-paddong: 20px;
    padding: 0 10px;
    margin: 0 auto;



}

.section-title {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px;


}

.section-title h2 {
    font-size: 36px;
    color: var(--hover-color);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    height: 60px;
    align-items: center;
    text-decoration: underline;


}




.section-title h2::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--skin-color);
    top: 100%;
    left: 0;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 4px;
    background: var(--skin-color);
    top: 100%;
    left: 0;
    margin-top: 8px;
}

.section .container {
    padding-top: 15%;
    padding-bottom: 50px;
    justify-content: center;
    align-items: center;


}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    position: relative;
    gap: 20px;

}

.btn {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 35px;
    color: white;
    border-radius: 40px;
    display: inline-block;
    white-space: nowrap;
    border: none;
    background: var(--skin-color);
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background-color: var(--hover-color);
}

.shadow-dark {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.btn:focus,
.dashboard-btn:focus,
.relatorio-btn:focus,
.github-link:focus {
    outline: 2px solid var(--skin-color);
    outline-offset: 2px;
}

.random-color {
    color: var(--skin-color);
}

body,
.main-content,
.section-title h2,
.portfolio .portfolio-item-inner h2,
.about .about-text h3,
.about .personal-info .info-item p,
.about .skills .skills-item h5 {
    color: var(--text-black-900);
}
/**********************************/

/*********************************/
.home {
    background: linear-gradient(135deg, var(--bg-black-100), var(--skin-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/****************************************************************************************************/
/**Button GLOW**/
.btn {
    --glow-color: var(--accent-color);
    --glow-spread-color: var(--accent-color);
    --enhanced-glow-color: var(--skin-color);
    --btn-color: var(--skin-color);
    border: .25em solid var(--glow-color);
    padding: 1em 3em;
    color: var(--glow-color);
    font-size: 15px;
    font-weight: bold;
    background-color: var(--btn-color);
    border-radius: 1em;
    outline: none;
    box-shadow: 0 0 1em .15em var(--glow-color),
        0 0 4em 1em var(--glow-spread-color),
        inset 0 0 .15em .15em var(--glow-color);
    text-shadow: 0 0 .5em var(--glow-color);
    position: relative;
    transition: all 0.3s;
}

.btn::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 110%;
    left: 10%;
    height: 60%;
    width: 80%;
    background-color: var(--glow-spread-color);
    filter: blur(0.8em);
    opacity: 0.2;
    transform: perspective(1em) rotateX(25deg) scale(1, 0.5);
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 0.4;
}

.btn:hover {
    color: var(--btn-color);

    background-color: var(--glow-color);
    box-shadow: 0 0 0.5em 0.10em var(--glow-color),
        inset 0 0 0.5em 0.15em var(--glow-color);
}

.btn:active {
    box-shadow: 0 0 0.4em 0.1em var(--glow-color),
        inset 0 0 0.3em 0.1em var(--glow-color);
}

.btn,
.dashboard-btn,
.relatorio-btn,
.github-link {
    background: var(--skin-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/****************************************************************************************************/
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: auto;
    cursor: pointer;

}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}


.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 100%;

    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--bg-black-100);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    justify-content: center;
}

.flip-card-back .row {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.flip-card-back .relatorio-btn,
.flip-card-back .github-link,
.flip-card-back .dashboard-btn {
    position: relative;
    z-index: 10;

    margin: 5px;
    padding: 10px 20px;
}

/* ============================================= */
/* FLIP CARD BACK: 2 COLUMNS + BUTTONS AT BOTTOM */
/* ============================================= */

.flip-card-back {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--bg-black-100);
    border-radius: 10px;
}

.back-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    margin-bottom: 15px;

}

.back-col {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 8px;
}

.back-col::-webkit-scrollbar {
    width: 5px;
}

.back-col::-webkit-scrollbar-track {
    background: var(--bg-black-50);
    border-radius: 10px;
}

.back-col::-webkit-scrollbar-thumb {
    background: var(--skin-color);
    border-radius: 10px;
}

.back-col::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

.back-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-black-900);
    font-size: 15px;
}

.back-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-black-900);
}

.back-list li {
    margin-bottom: 4px;
    word-wrap: break-word;
}

/* BUTTONS AT BOTTOM */
.card-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
}

.card-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 110px;
    max-width: 160px;
}

.card-buttons button,
.card-buttons a {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    min-width: 105px;
    max-width: 145px;
    flex: 1;
    text-align: center;
}

.relatorio-btn {
    background: #6c757d;
    color: white;
}

.relatorio-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.dashboard-btn {
    background: var(--skin-color);
    color: white;
}

.dashboard-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.portfolio .row,
#dashboards .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    padding: 0 12px;
}

/****************************************************************************************************/


.game-toggle {

    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-toggle:hover {
    background: var(--hover-color);
    transform: scale(1.1);
}

.game-toggle:active {
    transform: scale(0.95);
}

#game-modal iframe {
    display: block;
    margin: 0 auto;
}

.fixed-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 1000;
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* SIDEBAR */
.aside {
    position: fixed;
    top: 0;
    left: -270px;
    width: 270px;
    height: 100vh;
    padding: 30px;
    border-right: 1px solid var(--bg-black-50);
    background-color: var(--bg-black-100);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    scroll-behavior: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.aside.open {
    left: 0;

}

.aside .logo {
    position: absolute;
    font-size: 30px;
    top: 50px;
    text-transform: capitalize;
}

.aside .logo a {
    color: var(--text-black-900);
    font-size: 30px;
    letter-spacing: 5px;
    font-weight: 700;
    padding: 15px 20px;
    position: relative;
}

.aside .logo a span {
    font-family: 'Clicker Script', cursive;
    font-size: 40px;
}

.aside .logo a::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-bottom: 5px solid var(--skin-color);
    border-left: 5px solid var(--skin-color);
    bottom: 0;
    left: 0;
}

.aside .logo a::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 5px solid var(--skin-color);
    border-right: 5px solid var(--skin-color);
    top: 0;
    right: 0;
}

/****************************************************************************************************/
.nav-toggler {
    position: fixed;
    top: 15px;
    left: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bg-black-50);
    border-radius: 5px;
    background: var(--bg-black-100);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    padding: 8px;
    transition: background 0.3s ease;
}


.toggle2 {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition-duration: 0.5s;
}

.bars {
    width: 100%;
    height: 4px;
    background-color: rgb(92, 176, 255);
    border-radius: 4px;
}

#bar5 {
    transition-duration: 0.8s;
}

#bar4,
#bar6 {
    width: 80%;
}

.nav-toggler.active .toggle2 .bars {
    position: absolute;
    transition-duration: 0.5s;
}

.nav-toggler.active .toggle2 #bar5 {
    transform: scaleX(0);
    transition-duration: 0.5s;
}

.nav-toggler.active .toggle2 #bar4 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: 0.5s;
}

.nav-toggler.active .toggle2 #bar6 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: 0.5s;
}

.nav-toggler.active .toggle2 {
    transition-duration: 0.5s;
    transform: rotate(180deg);
}


.nav-toggler.clicked {
    animation: blink 0.3s ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        background: var(--bg-black-100);
    }

    50% {
        opacity: 0.5;
        background: var(--skin-color, var(--text-black-900));
    }
}

/****************************************************************************************************/
.aside .nav {
    margin-top: 50px;
}

.aside .nav li {
    margin-bottom: 21px;
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.aside.open .nav li {
    opacity: 1;
    transform: translateX(0);
}

.aside.open .nav li:nth-child(1) {
    transition-delay: 0.1s;
}

.aside.open .nav li:nth-child(2) {
    transition-delay: 0.2s;
}

.aside.open .nav li:nth-child(3) {
    transition-delay: 0.3s;
}

.aside.open .nav li:nth-child(4) {
    transition-delay: 0.4s;
}

.aside.open .nav li:nth-child(5) {
    transition-delay: 0.5s;
}

.aside.open .nav li:nth-child(6) {
    transition-delay: 0.6s;
}

.aside.open .nav li:nth-child(7) {
    transition-delay: 0.7s;
}

.aside.open .nav li:nth-child(8) {
    transition-delay: 0.8s;
}

.aside.open .nav li:nth-child(9) {
    transition-delay: 0.9s;
}

.aside.open .nav li:nth-child(10) {
    transition-delay: 1.0s;
}

.aside .nav li a {
    color: var(--text-black-900);
    font-size: 16px;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid var(--bg-black-50);
    padding: 5px 15px;
}

.aside .nav li a.active {
    color: var(--accent-color);
}

.aside::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.aside {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/****************************************************************************************************/
.aside-img {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.aside-img img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--skin-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/****************************************************************************************************/
.aside .nav .nav-sub li a {
    font-size: 14px;
    padding-left: 30px;
    color: var(--text-black-700);
}

.nav-sub li a:hover {
    color: var(--skin-color);
}

.aside .nav li a i {
    margin-right: 15px;
}

.nav-sub {
    list-style: none;
    padding-left: 20px;
}

.nav>li>a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.nav>li>a:hover {
    background-color: #222;
}

.nav-sub li a {
    font-size: 14px;
    padding-left: 50px;
    color: var(--text-black-700);
}

.white-ball {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* HOME */

/* .home {
    min-height: 100vh;
    display: flex;
    color: var(--text-black-900);
    background: linear-gradient(135deg, var(--bg-black-100), var(--skin-color));
    padding: 80px 0;
    border-radius: 10px;
    align-items: center;
} */

.home {
    min-height: 100vh;
    display: flex;
    padding: 80px 0;
    border-radius: 10px;
    align-items: center;
    position: relative;
    background: transparent !important;
    overflow: hidden;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,

            var(--animated-base-color),
            var(--skin-variant-1),
            var(--skin-variant-2),
            var(--skin-variant-3),
            var(--skin-variant-4),
            var(--skin-variant-5),
            var(--skin-variant-4),
            var(--skin-variant-3),
            var(--skin-variant-2),
            var(--skin-variant-1),
            var(--animated-base-color));
    background-size: 600% 600%;
    animation: gradientMove 30s ease infinite;

}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.home .container,
.home .home-info,
.home .home-img {
    position: relative;
    z-index: 2;
}

.home .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.home .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
}

.home .home-info {
    flex: 0 0 60%;
    max-width: 60%;
    text-align: left;
    animation: fadeIn 1s ease-in-out;
    
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h3.hello {
    font-size: 32px;
    margin: 15px 0;
}

h3.hello span {
    font-family: 'Clicker Script', cursive;
    font-size: 50px;
    font-weight: 700;
    color: var(--skin-color);
}

h3.my-profession {
    font-size: 30px;
    margin: 15px 0;
}

.typing {
    color: var(--accent-color);
}

.home-info p {
    margin-bottom: 70px;
    font-size: 20px;
    color: var(--text-black-700);
}

/***********************************************************************************************************************/
.home .home-img {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.home .home-img img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;

    --glow-color: var(--accent-color);
    --glow-spread-color: var(--accent-color);
    --enhanced-glow-color: var(--skin-color);

    border: .25em solid var(--glow-color);
    border-radius: 50%;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 0 1em .15em var(--glow-color),
        0 0 4em 1em var(--glow-spread-color),
        inset 0 0 .15em .15em var(--glow-color);

    transform-style: preserve-3d;
    transition: transform 0.3s ease;

}

/************************************************************************************************************************/
.home .btn {
    background: var(--accent-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home .btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}


/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* SOBRE */
.about .about-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black-900);
    margin-bottom: 15px;
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.about .personal-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.about .about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-black-700);
}

.about .about-text h3 span {
    color: var(--skin-color);
}

.about .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.about .about-text {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.about .personal-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.about .personal-info .info-box {
    background-color: var(--bg-black-100);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about .personal-info .info-item {
    margin-bottom: 15px;
}

.about .personal-info .info-item p {
    font-size: 16px;
    color: var(--text-black-900);
    margin: 0;
}

.about .personal-info .info-item p strong {
    font-weight: 600;
}

.about .personal-info .info-item p span {
    font-weight: 400;
    color: var(--text-black-700);
    margin-left: 10px;
}

/* 
.about .skills {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
} */

.about .skills .skills-box {
    background-color: var(--bg-black-100);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about .skills .title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black-900);
    margin-bottom: 20px;
}

.about .skills .skills-item {
    margin-bottom: 20px;
}



.about .skills .skills-item .progress {
    background-color: var(--bg-black-50);
    height: 7px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;

}

.about .skills .skills-item.animated .progress-in {
    width: var(--progress-width);
}

.about .skills .skills-item .progress-in {
    background: var(--skin-color);
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;

}

.about .buttons {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-top: 20px;
}

.about .education {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 30px;
    padding: 0 10px;
}

.about .timeline-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 20px;
}

.about .timeline .timeline-item {
    position: relative;
    padding-left: 37px;
    padding-bottom: 50px;
}

.about .timeline {
    background-color: var(--bg-black-100);
    padding: 50px 25px;
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    width: 100%;
    position: relative;
}

.about .timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.about .timeline .timeline-item::before {
    content: '';
    width: 1px;
    position: absolute;
    height: 100%;
    left: 7px;
    top: 0;
    background-color: var(--accent-color);
}

.about .timeline .circle-dot {
    position: absolute;
    left: 0;
    top: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.about .timeline .timeline-date {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-black-700);
}

.about .timeline .timeline-date .fa {
    margin-right: 5px;
}

.about .timeline .timeline-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: var(--text-black-900);
}

.about .timeline .timeline-text {
    line-height: 25px;
    font-size: 16px;
    text-align: justify;
    color: var(--text-black-700);
}



.about .buttons .btn:hover {
    background: var(--hover-color);
}

.about .buttons .btn:focus {
    outline: 2px solid var(--skin-color);
    outline-offset: 2px;
}

.skills .skills-item.animated .progress-in {
    width: var(--progress-width);
}


.about .skills .skills-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black-900);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about .skills .skills-item h5 i {
    margin-right: 10px;
    color: var(--skin-color);
}

.about .skills {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 10px;
}



.about .about-content .education {
    flex: 0 0 50%;
    max-width: 100%;
    padding: 0 10px;

}

.about .about-content .experience {
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 30px;

}

.about .about-content h3.title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-black-900);
}

.about .about-content .timeline-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 20px;

}

.about .about-content .timeline {
    background-color: var(--bg-black-100);
    padding: 50px 25px;
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    width: 100%;
    position: relative;
}

.about .about-content .timeline .timeline-item {
    position: relative;
    padding-left: 37px;
    padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.about .about-content .timeline .timeline-item::before {
    content: '';
    width: 1px;
    position: absolute;
    height: 100%;
    left: 7px;
    top: 0;
    background-color: var(--skin-color);
}


.about .about-content .timeline .timeline-date {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-black-700);
}

.about .about-content .timeline .timeline-date .fa {
    margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: var(--text-black-900);
}



.about .about-content .timeline .timeline-text {
    line-height: 25px;
    font-size: 16px;
    text-align: justify;
    color: var(--text-black-700);
}

.about .timeline .circle-dot {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.about .timeline .circle-dot,
.about .timeline .timeline-item::before {
    background-color: var(--accent-color);
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* PORTFOLIO */
.portfolio .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.portfolio .section-title h2{
    color: var(--hover-color);
}
.portfolio .container {
    padding: 0 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio .flip-card {
    min-height: 350px;
}

.portfolio .flip-card-back .row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.portfolio .flip-card-back .column {
    width: 48%;

}

.portfolio .portfolio-heading {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 20px;
    margin-bottom: 40px;
    text-align: left;
}

.portfolio .portfolio-heading h2 {
    color: var(--text-black-900);
    font-weight: 500;
}

.portfolio .portfolio-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.portfolio .portfolio-item {
    padding: 15px;
    box-sizing: border-box;
}

.portfolio .portfolio-item-inner,
.dashboard .portfolio-item-inner {
    border-radius: 10px;
    background-color: var(--bg-black-100);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/***********************************************************************************************/

.portfolio .portfolio-item-inner,
.dashboard .portfolio-item-inner {
    position: relative;
    overflow: hidden;
    border: none;

}


@keyframes glowBorder {
    0% {
        box-shadow: 0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 15px var(--accent-color);
    }

    50% {
        box-shadow: 0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 30px var(--accent-color);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 15px var(--accent-color);
    }
}


.portfolio .flip-card,
.dashboard .flip-card {
    position: relative;
    animation: glowBorder 3s ease-in-out infinite;
}


.portfolio .portfolio-item-inner:hover,
.dashboard .portfolio-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2),
        0 0 10px var(--skin-color),
        0 0 20px var(--accent-color);
}

/****************************************************************************************************/
.portfolio .portfolio-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.portfolio .portfolio-item-inner h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-black-900);
}

.portfolio .portfolio-img img {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.github-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--skin-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.github-link:hover {
    background-color: var(--hover-color);
}

.highlight {
    padding: 10px 5px;
    border-radius: 3px;
    font-weight: bold;
    text-decoration: underline;

}



.portfolio .portfolio-item-inner .portfolio-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.portfolio-description {
    font-size: 16px;
    color: var(--text-black-900);
    margin-bottom: 15px;
    padding: 0;
    text-align: justify;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.portfolio-tools {
    font-size: 14px;
    color: var(--text-black-900);
    margin-bottom: 15px;

}

.portfolio-tools ul {
    list-style: disc;
    padding-left: 20px;
}

/****************************************************************************************************/

.flip-card {
    height: 500px; 
    perspective: 1000px;
}


.flip-card-front.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 0 !important;
    background: transparent !important;
    height: 100%;
}


.project-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center top !important; 
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
    z-index: 1;
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px); 
    color: white;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.7s ease;
}


.project-content h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color:  var(--bg-black-900);
}

.project-content .portfolio-description {
    color: white;
    font-size: 16px;
    line-height: 1.6;
}


.hover-indicator-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 14px;
    color: white;
    backdrop-filter: blur(6px);
    z-index: 20 !important;
    cursor: default;
}


.flip-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; 
    cursor: pointer;
}


.flip-card.flipped .flip-trigger {
    pointer-events: none !important;
}

.flip-card.flipped .flip-card-front {
    pointer-events: none;
}


.flip-card-back {
    padding: 30px !important;
    background-color: var(--bg-black-100) !important;
    pointer-events: auto !important;
    overflow: hidden;
}


.flip-card-back .scrollable-content {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
    width: 100%;
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* DASHBOARDS */
.dashboard {
    padding: 15px;
}

.dashboard-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: var(--skin-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.relatorio-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: var(--skin-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dashboard-btn:hover {
    background-color: var(--hover-color);
}

.relatorio-btn:hover {
    background-color: var(--hover-color);
}

.dashboard-container {
    width: 100%;
    max-width: 100%;
    height: 600px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.dashboard-container iframe {
    width: 100% !important;
    max-width: 100%;
    height: 600px;
    border: none;
    display: block;
    box-sizing: border-box;
}

.dashboard-container.active {
    display: block;
}

.dashboard .flip-card {
    perspective: 1000px;
    width: 100%;
    min-height: 400px;
    height: auto;
}

.dashboard .flip-card-back .row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.dashboard .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.dashboard .flip-card-back .column {
    width: 100%;
    margin-bottom: 10px;
}

.dashboard .flip-card-back .portfolio-tools {
    font-size: 14px;
    color: var(--text-black-900);
}

.dashboard .flip-card-back .portfolio-tools ul {
    padding-left: 20px;
    list-style: disc;
}


.dashboard .flip-card-back .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.dashboard .flip-card-back .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

#dashboards .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.dashboard .flip-card-front,
.dashboard .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--bg-black-100);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.dashboard .flip-card-front h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-black-900);
}

.dashboard .flip-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    justify-content: space-between;
}

.dashboard .flip-card-back .scrollable-content {
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    padding-right: 10px;
}

.dashboard .flip-card-back .scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard .flip-card-back .scrollable-content::-webkit-scrollbar-track {
    background: var(--bg-black-50);
    border-radius: 3px;
}

.dashboard .flip-card-back .scrollable-content::-webkit-scrollbar-thumb {
    background: var(--skin-color);
    border-radius: 3px;
}

.dashboard .flip-card-back .relatorio-btn,
.dashboard .flip-card-back .dashboard-btn,
.dashboard .flip-card-back .github-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--skin-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    flex: 1 1 auto;
    min-width: 120px;
}

.dashboard .flip-card-back .relatorio-btn:hover,
.dashboard .flip-card-back .dashboard-btn:hover,
.dashboard .flip-card-back .github-link:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.tech-badges {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    row-gap: 10px;
}

.badge {
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* FOOTER */
.footer {
    background: var(--bg-black-50);
    color: var(--text-black-900);
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.social-links a {
    color: var(--accent-color);
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.social-links a:hover {
    color: var(--skin-color);
    transform: translateY(-5px) scale(1.2);
}

/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* contato*/
/* ==================== HIRE MODAL ==================== */
.hire-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s ease;
}

.hire-modal.show {
    display: flex;
}

.hire-modal-content {
    background: var(--bg-black-100);
    padding: 2rem;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
    animation: slideUp .4s ease;
}

.hire-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-black-700);
}

.hire-close:hover {
    color: var(--accent-color);
}

.hire-modal h3 {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    color: var(--text-black-900);
}

/* Buttons side‑by‑side */
.hire-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hire-btn {
    flex: 1;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all .3s ease;
}

.hire-linkedin {
    background: #0077b5;
    color: #fff;
}

.hire-linkedin:hover {
    background: #005582;
    transform: translateY(-2px);
}

.hire-email {
    background: var(--skin-color);
    color: #fff;
}

.hire-email:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* EMAIL FORM */
.hire-email-form {
    display: none;
    
    flex-direction: column;
    gap: .8rem;
    margin-top: .5rem;
}

.hire-email-form.show {
    display: flex;
}

.hire-email-form input,
.hire-email-form textarea {
    width: 100%;
    padding: .7rem;
    border: 1px solid var(--bg-black-50);
    border-radius: 6px;
    font-size: .95rem;
    background: var(--bg-black-100);
    color: var(--text-black-900);
}

.hire-email-form input:focus,
.hire-email-form textarea:focus {
    outline: none;
    border-color: var(--skin-color);
    box-shadow: 0 0 0 2px rgba(92, 176, 255, .2);
}

.hire-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: .8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.hire-submit:hover {
    background: var(--hover-color);
}

.hire-cancel {
    background: #aaa;
    color: #fff;
    border: none;
    padding: .6rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: .4rem;
}

.hire-cancel:hover {
    background: #888;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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


/*************************************************************************************/
/* Ajustes de textos - garantir legibilidade sobre fundos variados */
/*************************************************************************************/
.home .home-info h3,
.home .home-info h2,
.home .home-info p {
    color: #f8fafc !important; 
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 4px 12px rgba(0, 0, 0, 0.85),
        0 8px 20px rgba(0, 0, 0, 0.75);  
}

/* Nome e typing */
.home .random-color,
.home .typing {
    color: var(--accent-color) !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.95),
        0 0 15px rgba(0, 0, 0, 0.8); 
}

/* Parágrafo um pouco mais suave */
.home-info p {
    opacity: 0.92;
    font-size: 19px; 
}

/* Botão */
.home .btn,
.about .btn{
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
/* Front dos cards*/
.project-overlay .project-content h2,
.project-overlay .project-content .portfolio-description {
    color: #ffffff !important; 
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.7); 
}

.project-overlay .project-content h2 {
    font-weight: 700;
    font-size: 26px;  
}

/* Hover indicator */
.hover-indicator-btn {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
/* Botões no back dos cards*/
body.dark .flip-card-back .dashboard-btn,
body.dark .flip-card-back .relatorio-btn,
body.dark .flip-card-back .github-link {
    color: #ffffff !important;           
    background: var(--accent-color);     
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark .flip-card-back .dashboard-btn:hover,
body.dark .flip-card-back .relatorio-btn:hover,
body.dark .flip-card-back .github-link:hover {
    background: var(--hover-color);      
    transform: translateY(-3px);
}

/* Skills bars */
body.dark .about .skills .progress-in {
    background: var(--accent-color) !important;  
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.6); 
}

/* skills*/
body.dark .about .skills .progress {
    background-color: #1e293b;  
}
/* Botões nos cards */
.flip-card-back .dashboard-btn,
.flip-card-back .relatorio-btn,
.flip-card-back .github-link,
.card-buttons button {
    color: #ffffff !important;           
    background: var(--skin-color);      
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flip-card-back .dashboard-btn:hover,
.flip-card-back .relatorio-btn:hover,
.flip-card-back .github-link:hover {
    background: var(--hover-color) !important;  
    transform: translateY(-3px);
}

/* Texto nos Cards */
.flip-card-back .dashboard-btn,
.flip-card-back .github-link {
    background: var(--accent-color);     
}

body:not(.dark) .flip-card-back .dashboard-btn,
body:not(.dark) .flip-card-back .github-link {
    background: var(--accent-color);     
}

/**************************************************************/
/* ===== TOAST DE CARREGAMENTO (OBRIGATÓRIO) ===== */
.project-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e2937;
    color: #e2e8f0;
    padding: 18px 26px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    display: none;
    gap: 16px;
    max-width: 410px;
    z-index: 99999;
    align-items: flex-start;
    border: 2px solid #60a5fa;
}

.project-toast.show {
    display: flex;
    animation: toastPop 0.4s ease forwards;
}

@keyframes toastPop {
    from { transform: translate(-50%, 80px); opacity: 0; }
    to   { transform: translate(-50%, 0);   opacity: 1; }
}

.toast-icon { font-size: 36px; flex-shrink: 0; }


/****************************************************************************************************/
/****************************************************************************************************/
/****************************************************************************************************/
/* RESPONSIVE */
@media (min-width: 1300px) {
    .project-background {
        background-size: cover !important;     
        background-repeat: no-repeat !important;
        background-position: center top !important;
        background-color: #000000;              
    }

    
    .project-background {
        transition: transform 0.8s ease;
    }


 }

@media (max-width: 1199px) {
    .main-content {
        background: var(--bg-black-900);
        color: var(--text-black-900);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
    }

    .row {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .container {
        max-width: 1100px;
        padding: 0 10px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .aside {
        left: -270px;
        display: flex;
        transition: left 0.3s ease;
    }

    .aside.open {
        left: 0;
        z-index: 2000;
    }

    .nav-toggler {
        display: flex;
    }

    .aside .nav li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .aside.open .nav li {
        opacity: 1;
        transform: translateX(0);
    }

    .aside.open .nav li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .aside.open .nav li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .aside.open .nav li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .aside.open .nav li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .aside.open .nav li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .aside.open .nav li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .aside.open .nav li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .aside.open .nav li:nth-child(8) {
        transition-delay: 0.8s;
    }

    .aside.open .nav li:nth-child(9) {
        transition-delay: 0.9s;
    }

    .aside.open .nav li:nth-child(10) {
        transition-delay: 1.0s;
    }

    .home {
        min-height: 100vh;
        display: flex;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .home .home-info {
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
        margin-left: 10px !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        text-overflow: clip !important;
    }

    .home .home-img {
        flex: 0 0 30%;
        max-width: 30%;
        justify-content: center;
    }

    .home .home-img img {
        max-width: 100%;
        width: 200px;
        height: auto;
        object-fit: contain;
    }

    .home .row {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .about .row {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .about .personal-info,
    .about .skills {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
    }

    .about .about-content {
        flex-direction: column;
    }

    .about .personal-info .info-item p {
        font-weight: 600;
        font-size: 16px;
        color: var(--text-black-900);
        border-bottom: 1px solid var(--bg-black-50);
        padding-bottom: 5px;
    }
}

@media (min-width: 1200px) {
    .aside {
        left: 0;
        display: flex;
    }

    .nav-toggler {
        display: none;
    }

    .main-content {
        padding-left: 270px;
    }

    .aside .nav li {
        opacity: 1;
        transform: translateX(0);
        transition: none;
    }
    
}


@media (max-width: 767px) {
    .main-content {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    .row {
        width: 100%;
    }

    .padd-15 {
        padding: 10px !important;
    }

    .row>* {
        padding-left: 5px;
        padding-right: 5px;
    }

    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .flip-card {
        min-height: 400px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 15px;
        font-size: 14px;
    }

    .flip-card-back .row {
        flex-direction: column;
        align-items: center;
    }

    .back-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .back-col {
        max-height: 180px;
    }

    .game-toggle.s-icon {
        top: 15px;
        right: 70px;
        width: 45px;
        height: 45px;
        font-size: 20px;
        line-height: 45px;
    }

    .aside {
        left: -270px;
        display: flex;
        transition: left 0.3s ease;
        flex-direction: column;
    }

    .aside.open {
        left: 0;
    }

    .aside-img {
        display: block;
        margin: 60px 0 20px;
        width: fit-content;
    }

    .aside .nav {
        margin-top: 20px;
    }

    .home .home-info {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 5px;
        margin-left: 10px;
        text-align: center;
        order: 1;
    }

    .home .home-img {
        display: none;
    }

    .home .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portfolio .row,
    #dashboards .row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard .flip-card {
        height: 450px;
    }

    .dashboard .flip-card-back .row {
        flex-direction: column;
        align-items: center;
    }

    .dashboard .flip-card-back .column {
        width: 100%;
    }

    .dashboard .flip-card-back .scrollable-content {
        max-height: 200px;
    }
}

@media (max-width: 707px) {
    .tech-badges {
        gap: 6px;
        row-gap: 8px;
    }

    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .card-buttons button,
    .card-buttons a {
        padding: 8px 14px;
        font-size: 12.5px;
        min-width: 98px;
    }
}

@media (max-width: 560px) {
    .dashboard .portfolio-description {
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .back-col {
        max-height: 150px;
    }

    .back-list {
        font-size: 13px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .dashboard .portfolio-description {
        padding: 5px;
        font-size: 12px;
    }

    .badge {
        font-size: 10.5px;
        padding: 4px 9px;
    }

    .card-buttons button,
    .card-buttons a {
        font-size: 12px;
        padding: 7px 12px;
        min-width: 92px;
    }

    .portfolio .portfolio-item-inner h2 {
        font-size: 18px;
    }
}

@media (max-width: 420px) {

    .dashboard .portfolio-description {
        padding: 5px;
        font-size: 10px;
    }


}

@media (max-width: 399px) {

    .portfolio .row,
    #dashboards .row {
        gap: 14px;
        padding: 0 8px;
    }

    .tech-badges {
        gap: 5px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .card-buttons {
        gap: 8px;
    }

    .card-buttons button,
    .card-buttons a {
        font-size: 11.5px;
        padding: 6px 10px;
        min-width: 88px;
    }

    .dashboard .portfolio-description {
        padding: 5px;
        font-size: 10px;
    }
}

@media (max-width: 340px) {
    .portfolio .container {
        padding: 0 2px;
    }

    .section-title h2 {
        font-size: 25px;
        word-break: break-all;
    }

    .badge {
        font-size: 9.5px;
        padding: 3px 7px;
    }

    .card-buttons button,
    .card-buttons a {
        font-size: 11px;
        padding: 5px 9px;
        min-width: 82px;
    }
}

@media (min-width: 768px) {
    .dashboard .flip-card-back .buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .portfolio .portfolio-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio .portfolio-item {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    #game-toggle {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 370px) {
    .main-content {
        padding-left: 0;
    }

    .container {
        padding: 0 5px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .row {
        margin: 0;
        gap: 5px;
    }

    .padd-15 {
        padding: 5px !important;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 10px;
        font-size: 12px;
    }

    .aside {
        left: -270px;
        width: 200px;
    }

    .aside.open {
        left: 0;
        z-index: 2000;
    }

    .portfolio .portfolio-items {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .portfolio .portfolio-item {
        padding: 5px;
    }

    .portfolio .portfolio-item-inner {
        padding: 10px;
    }

    .portfolio-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .portfolio-tools {
        font-size: 11px;
    }

    .github-link,
    .relatorio-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin: 5px 5px 0 0;
    }

    .portfolio .portfolio-heading h2 {
        font-size: 20px;
    }

    .dashboard .flip-card {
        min-height: 400px;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .dashboard .flip-card-back .scrollable-content {
        max-height: 180px;
    }

    .dashboard .flip-card-back .relatorio-btn,
    .dashboard .flip-card-back .dashboard-btn,
    .dashboard .flip-card-back .github-link {
        font-size: 11px;
        padding: 6px 12px;
    }
}
/* ============================================= */
/* RESPONSIVE - APENAS PARA OS NOVOS CARDS  */
/* ============================================= */

/* Mobile geral (até 767px) */
@media (max-width: 767px) {
    
    .flip-card {
        height: 480px !important;
    }

    
    .project-background {
        background-position: center 12% !important; 
        background-size: cover !important;
    }

    /* Texto menor e mais legível */
    .project-content h2 {
        font-size: 20px !important;
    }
    .project-content .portfolio-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Botão de preview menor e mais centralizado */
    .hover-indicator-btn {
        bottom: 12px !important;
        right: 12px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* Badges menores */
    .tech-badges .badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .flip-card {
        height: 460px !important;
    }

    .project-content h2 {
        font-size: 18px !important;
    }
    .project-content .portfolio-description {
        font-size: 13px !important;
    }

    .hover-indicator-btn {
        padding: 9px 14px !important;
        font-size: 12.5px !important;
    }
}

/* Mobile muito pequeno */
@media (max-width: 370px) {
    .flip-card {
        height: 440px !important;
    }

    .project-content h2 {
        font-size: 17px !important;
    }
    .project-content .portfolio-description {
        font-size: 12.5px !important;
    }

    .hover-indicator-btn {
        bottom: 10px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}
/* ============================================= */
/* BOTÃO DE PREVIEW REDUZIDO EM MOBILE  */
/* ============================================= */

@media (max-width: 767px) {
    .hover-indicator-btn {
        padding: 8px 14px !important;    
        font-size: 12.5px !important;    
        bottom: 15px !important;
        right: 15px !important;
        border-radius: 8px !important;   
    }
}

@media (max-width: 480px) {
    .hover-indicator-btn {
        padding: 7px 12px !important;   
        font-size: 12px !important;
    }
    
    
}

@media (max-width: 370px) {
    .hover-indicator-btn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}
/* ============================================= */
/* RESPONSIVIDADE DO TOAST - MOBILE              */
/* ============================================= */

@media (max-width: 767px) {
    .project-toast {
        max-width: 92%;
        padding: 16px 22px;
        bottom: 24px;
        border-radius: 16px;
        gap: 14px;
    }
    
    .toast-icon {
        font-size: 32px;
    }
    
    .toast-info strong {
        font-size: 1.05rem;
    }
    
    .toast-info p {
        font-size: 0.92rem;
        line-height: 1.35;
    }
    
    .toast-info small {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .project-toast {
        max-width: 96%;
        padding: 14px 18px;
        bottom: 20px;
        border-radius: 14px;
        gap: 12px;
    }
    
    .toast-icon {
        font-size: 30px;
    }
    
    .toast-info strong {
        font-size: 1rem;
    }
    
    .toast-info p {
        font-size: 0.88rem;
    }
    
    .toast-info small {
        font-size: 0.8rem;
    }
}

@media (max-width: 370px) {
    .project-toast {
        max-width: 98%;
        padding: 12px 16px;
        bottom: 16px;
        border-radius: 12px;
        gap: 10px;
    }
    
    .toast-icon {
        font-size: 28px;
    }
    
    .toast-info strong {
        font-size: 0.95rem;
    }
    
    .toast-info p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .toast-info small {
        font-size: 0.78rem;
    }
}

/* Ajuste extra para telas muito pequenas (evita corte) */
@media (max-width: 370px) {
    .project-toast .toast-info {
        max-width: calc(100% - 42px);
    }
}