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

html {
    scroll-behavior: smooth
}

body {
    margin-top: 200px;
    color: #000;
    background-color: #fff;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

footer {
    background-color: #000;
    color: #fff
}

::-webkit-scrollbar {
    width: 12px
}

::-webkit-scrollbar-thumb {
    background: #6a0000;
    border-radius: 0
}

::-webkit-scrollbar-track {
    background-color: #9c00005c
}

#about {
    margin-bottom: 10px;
    padding-top: 30px;
    text-decoration: none;
}

#about p {
    font-size: 20px;
}

.btn-primary {
    background-color: red;
    border-color: #000
}

.btn-primary:hover {
    color: red;
    background-color: #000;
    border-color: red
}

#contact {
    background-color: #000;
    color: #fff
}

#int {
    font-size: 20px
}

#sobre {
    font-size: 23px;
}

.comic-button {
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background-color: red;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000;
    transition: all .3s ease;
    cursor: pointer;
    transition: transform .3s
}

.comic-button:hover {
    background-color: #fff;
    color: red;
    border: 2px solid red;
    box-shadow: 5px 5px 0 red;
    transform: scale(1.1)
}

.comic-button:active {
    background-color: #000;
    box-shadow: none;
    transform: translateY(4px)
}

#btn-cv {
    padding-bottom: 30px;
    text-align: center
}

#btn {
    margin-top: 80px;
    text-align: center;
    align-items: center
}

#categoria {
    margin-top: 60px;
    margin-bottom: 60px;
    text-decoration: none
}

#icones {
    width: 190px;
    transition: transform 0.3s ease;

}

#icones:hover {
    transform: scale(1.1);
}

#ico-ftr {
    width: 50px;
    margin-right: 10px
}

#ico-ftr:hover {
    transform: scale(1.1);
    transition: transform .3s ease
}

#resume-preview {
    display: none;
    width: 100%;
    height: 1000px
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem;
}

.img-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projeto-grid {
    padding: 2rem;
}

.projeto-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    min-height: 350px;
}

.projeto-card:hover {
    transform: translateY(-10px);
}

.projeto-link {
    text-decoration: none;
    color: inherit;
}

.projeto-link:focus,
.projeto-link:hover {
    text-decoration: none;
}

.projeto-card:hover .img-container img {
    transform: scale(1.1);
}

.projeto-info {
    padding: 1.5rem;
}

.projeto-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.projeto-info p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

#title {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.accordion-item {
    margin-bottom: 1rem;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.card-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-header:hover {
    background-color: #f00;
}

.card:hover {
    transform: scale(1.05);
}

.card {
    transition: transform 0.3s ease;
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.skill-icon:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

.accordion-button {
    background-color: #333;
    color: #fff;
    border: 1px solid #ccc;
}

.accordion-button:hover {
    background-color: #f00;
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: #f9f9f9;
    color: #333;
}

.accordion-card {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.accordion-card-header {
    background-color: #333;
    color: #fff;
}

.accordion-card-header .btn-link {
    color: #fff;
}

.accordion-card-header .btn-link:hover {
    color: #f00;
}

.accordion .card {
    margin-bottom: 10px;
}

.accordion .card-header {
    background-color: #333;
    color: #fff;
}

.accordion .card-header button {
    color: #fff;
}

.accordion .card-header button:focus {
    color: #fff;
    box-shadow: none;
}

.accordion .card-body {
    background-color: #f9f9f9;
    color: #333;
}

.modal-content {
    background-color: #ffffff;
    color: #000000;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-body img {
    border-radius: 10px;
}

.modal-body p {
    font-size: 16px;
    color: #333;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

.close:hover {
    color: #b40000;
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode button {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.dark-mode input,
.dark-mode textarea {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
}

.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .modal-header {
    border-bottom: 1px solid #444;
}

.dark-mode .modal-body p {
    color: #dddddd;
}

.dark-mode .close {
    color: #ffffff;
}

.dark-mode .close:hover {
    color: #ff6b6b;
}


@media (max-width: 991px) {
    .row {
        justify-content: center !important;
        gap: 20px;

    }

    .col-12 {
        display: flex;
        justify-content: center;
    }
}

@media only screen and (max-width:768px) {
    #about {
        text-align: left;
        margin-bottom: 0
    }

    .col-lg {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 15px;
        margin-bottom: 20px
    }

    #icones {
        width: 170px
    }

    .col-lg h2 {
        text-align: center
    }
}

@media (max-width: 480px) {
    #sobre {
        font-size: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    #sobre {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #sobre {
        font-size: 23px;
    }
}

@media (min-width: 1025px) {
    #sobre {
        font-size: 21px;
        text-align: justify;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.projeto-grid {
    padding: 2.5rem 1.5rem;
    max-width: 1700px;
    margin: 0 auto;
}

.subcategoria-container {
    margin-bottom: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subcategoria-title {
    font-size: 2.1rem;
    margin-bottom: 1.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #000000;
    position: relative;
    display: inline-block;
}

.subcategoria-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2.5px;
    background: linear-gradient(90deg, #ff0000, #b30000);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.projeto-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.projeto-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    border-color: rgba(100, 108, 255, 0.3);
}

.projeto-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.img-container {
    height: 270px;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projeto-card:hover .img-container img {
    transform: scale(1.08);
}

.projeto-info {
    padding: 1.5rem;
}

.projeto-info h3 {
    margin: 0 0 0.7rem 0;
    color: #000000;
    font-size: 1.35rem;
}

.projeto-info p {
    margin: 0;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.projeto-card:hover .projeto-info h3 {
    color: rgb(173, 0, 0);
}

@media (max-width: 1200px) {
    .projeto-grid {
        max-width: 98vw;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .img-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .projeto-grid {
        padding: 1.2rem 0.5rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }

    .subcategoria-container {
        padding: 1rem;
    }

    .img-container {
        height: 150px;
    }

    .subcategoria-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .img-container {
        height: 110px;
    }
}

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

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

.subcategoria-container {
    animation: fadeIn 0.6s ease forwards;
}

.subcategoria-container:nth-child(2) {
    animation-delay: 0.1s;
}

.subcategoria-container:nth-child(3) {
    animation-delay: 0.2s;
}

.subcategoria-container:nth-child(4) {
    animation-delay: 0.3s;
}

.filtro-categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filtro-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover,
.filtro-btn.active {
    color: rgb(173, 0, 0);
    color: white;
}

.skills-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-block {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-block h3 {
    font-weight: 600;
    font-size: 1.4rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-icon-emoji {
    font-size: 1.2em;
}

.skill-block .line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e5bcbc, #ffffff);
    margin-bottom: 1rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.icon-tooltip {
    position: relative;
    display: inline-block;
    text-align: center;
}

.skill-icon {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.skill-icon:hover {
    transform: scale(1.15) rotate(5deg);
    filter: grayscale(0%);
}

.tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.icon-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        max-width: 98vw;
        gap: 1.5rem;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 1rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }
}

.hover-float {
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

.hover-float:hover {
    transform: translateY(-8px) scale(1.05);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ff000033 1px, transparent 1px);
    background-size: 20px 20px;
    animation: particlesMove 60s linear infinite;
    z-index: 1;
}

.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    animation: glowRotate 20s linear infinite;
    z-index: 1;
}

.pulse-hover {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.pulse-hover:hover {
    background-color: #ff0000;
    color: white;
    transform: scale(1.05);
    animation: none;
}

.cursor {
    display: inline-block;
    background-color: #ff0000;
    margin-left: 2px;
    width: 3px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes particlesMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
.floating-image {
    animation: float 6s ease-in-out infinite;
    transform: translateY(0px);
}
@keyframes float {
    0% {
        transform: translateY(0px);
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-20px);
        box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.3);
    }
}

.contact-section {
    position: relative;
    overflow: hidden;
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ff0000 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}
h2:hover .title-underline {
    transform: scaleX(1);
}

.input-glow {
    transition: all 0.3s ease;
}
.input-glow:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.15) !important;
}
.input-group {
    position: relative;
}
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.send-button {
    transition: all 0.4s ease;
    border: none;
}
.send-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}
.send-button:active {
    transform: translateY(0);
}
.button-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.send-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}
.pulse {
    animation: pulse 2s infinite;
    display: inline-block;
}
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    z-index: 0;
}
.decoration-circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}
.decoration-circle-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}
.decoration-line {
    position: absolute;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, #ff0000 10%, #ff0000 90%, transparent 100%);
    right: 10%;
    top: 0;
    opacity: 0.2;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}
@media (max-width: 768px) {
    .input-icon {
        font-size: 1rem;
        right: 10px;
    }
    .send-button {
        padding: 10px 20px !important;
    }
}