:root {
    --primary-color: #6B4BCC;
    --secondary-color: #9B6DFF;
    --accent-color: #FF6B9B;
    --text-color: #2A1B3D;
    --light-color: #F8F7FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

body {
    image-rendering: auto;
    min-height: 100vh;
    font-family: "motiva-sans", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Animated Background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

/* Header & Navigation */
.header {
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.7rem 0;
    box-shadow: 0 2px 15px rgba(107, 75, 204, 0.1);
}

.nav-container {
    max-width: 112.5rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: "motiva-sans", sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--accent-color);
    }
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 2rem;
    mix-blend-mode: difference;
}

.nav-links a {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.79);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero Section */



.hero {
    display: none;
    height: 100vh;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '漫画';
    position: absolute;
    font-size: 20rem;
    opacity: 0.03;
    right: -5rem;
    top: 50%;
    transform: translateY(-30%);
    font-family: "motiva-sans", sans-serif;
}

.hero-content {
    padding-right: 18.75rem;
    max-width: 75rem;
    position: relative;
    z-index: 1;
}


.hero h1 {
    font-family: "motiva-sans", sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 3px 3px 0px var(--accent-color);
    line-height: 1.2;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(+100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.5rem;
    color: white;
    max-width: 37.5rem;
    margin-bottom: 2rem;
    font-weight: 700;

}

/* About Section */

.container {
    max-width: 115rem;
    margin: 0 auto;
}

.about {
    padding: 2rem 2rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 5rem;
}

.about-content {
    max-width: 75rem;
    margin: 0 auto;
    display: co;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.paragrafo {
    text-align: center;
    color: white;
    font-size: 0.5rem;
    font-weight: 500;
}

.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 1753 / 2560; /* Ajuste para a proporção desejada */
    transition: height 0.3s ease;
}


.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta o enquadramento sem distorcer */
}


.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
}

.project-image.after {
    opacity: 0;
}

/* Troca de imagem no hover (modo padrão) */
.image-container:hover .project-image.after {
    opacity: 1;
}

.image-container:hover .project-image.before {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

/* Botão escondido por padrão */
.toggle-button {
    display: none;
    position: absolute;
    bottom: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
}


.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 10px 10px 0px var(--accent-color);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.skills {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 3px 3px 0px var(--accent-color);
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    padding: 6rem 0rem 0rem 0rem;
    position: relative;
    z-index: 1;
}

.info {
    font-size: 1.2rem;
    font-family: "motiva-sans", sans-serif;
    font-weight: 400;
    color: white;
    letter-spacing: 0.1cap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    text-align: center;
}

.swipe {
    opacity: 50%;
    display: none;
    font-size: 1.2rem;
    font-family: "motiva-sans", sans-serif;
    font-weight: 400;
    letter-spacing: 0.2cap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 1rem;
}


.section-title {
    font-family: "motiva-sans", sans-serif;
    text-align: center;
    font-size: 4rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}


.projects p {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.projects-grid {
    margin-top: -40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(18.75rem, 1fr));
    gap: 2rem;
    max-width: 112.5rem;
    margin: 0 auto;
}

.project-card {
    transform: translateZ(0);
    will-change: transform;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.35s ease-in-out;
}

.project-image.after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .project-image.after {
    opacity: 1;
}

.image-container:hover .project-image.before {
    opacity: 1;
}

.project-info {
    min-height: 9rem;
    justify-content: center;
    display: grid;
    padding: 0.5rem;
    color: white;
}

.project-info h3 {
    line-height: 1.9rem;
    text-align: center;
    font-family: "motiva-sans", sans-serif;
    margin-bottom: -0.6rem;
    font-size: 1.5rem;
}

.project-info h6 {
    text-align: center;
    font-family: "motiva-sans", sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.project-tags {
    justify-content: center;
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}


.tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.contact-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

:root {
    /* Cores existentes */
    --primary-color: #6B4BCC;
    --secondary-color: #9B6DFF;
    --accent-color: #FF6B9B;
    --text-color: #2A1B3D;
    --light-color: #F8F7FF;
    
    /* Novas variáveis para modo escuro */
    --bg-dark: linear-gradient(-45deg, #1a1a1a, #2d142c, #1a3d47, #1a472d);
    --bg-light: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    --current-bg: var(--bg-light);
}

/* Adicione uma classe para modo escuro */
body.dark-mode {
    color: white;
    --current-bg: var(--bg-dark);
    background: var(--bg-dark);
}

.dark-mode-toggle {
    position: relative;
    width: 3.75rem;
    height: 1.875rem;
    border-radius: 15px;
    background: rgba(91, 91, 91, 0.202); /* Mesmo efeito do menu */
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
}

.dark-mode-toggle i {
    font-size: .875rem;

    transition: all 0.3s ease;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    left: 2px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.dark-mode-toggle.active::before {
    transform: translateX(30px);
}

.dark-mode-toggle .fa-sun {
    opacity: 1;
}

.dark-mode-toggle .fa-moon {
    opacity: 0.3;
}

.dark-mode-toggle.active .fa-sun {
    opacity: 0.3;
}

.dark-mode-toggle.active .fa-moon {
    opacity: 1;
}

/* Ajuste o layout do nav-container para acomodar o botão */
.nav-container {
    max-width: 117.5rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}

.project-image.active {
    display: block;
}

.toggle-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.toggle-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 2rem 0rem 4rem 0rem;
}

.slideshow-container {

    width: 100%;
    max-width: 30rem;
    height: 45rem;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 10px 10px 0px var(--accent-color);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.7s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem 0.8rem;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* MENU HAMBURGUER */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0); /* Mesmo efeito de vidro do header */
    backdrop-filter: blur(0.02rem);
    border: 1px solid rgba(255, 255, 255, 0);
    font-size: 1.5rem;
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    position: absolute;
    z-index: 1200;
    right: 15px;
    top: 10px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Mudança de cor padrão no hover */

/* Responsive Design */

@media (max-width: 1920px) and (min-width: 1100px) {
    .header {
        padding: 0.5rem;
        transition: padding 0.3s ease-in-out;
    }

    .nav-container {
        max-width: 103rem;
    }

    .projects {
        padding: 0 0;
    }

    .section-title {
        margin-top: 5rem;
        margin-bottom: -0.5rem;
    }

    .hero::before {
        content: "";
    }

    .nav-links,
    .logo {
        transform: scale(0.85);
    }

    
    .hero,
    .section-title,
    .projects-grid,
    .paragrafo,
    .contact {
        transform: scale(0.85);
        transform-origin: center top;
        transition: transform 0.3s ease-in-out;
    }

    .about {
        padding: 1.4rem;
        margin-top: -18rem;
        transition: padding 0.3s ease-in-out, margin-top 0.3s ease-in-out;
    }
}




/* Aplica transição global para evitar mudanças abruptas */
.header,
.hero-content,
.hero,
.hero h1,
.slideshow-container,
.about-content,
.nav-links,
.hero::before,
.section-title,
.projects-grid,
.project-info h3,
.project-card,
.project-card img {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1100px) {
    .hero-content {
        padding-right: 0%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .hero { 
        flex-direction: column; 
    }

    .hero h1 {
        margin-top: 3rem;
        margin-bottom: 2rem;
        font-size: 2rem;
        text-align: center;
    }

    .slideshow-container {
        max-width: 20rem;
        height: 30rem;
    }

    .info {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-content p {
        margin-bottom: -2.8rem;
    }
    
    .nav-links {
        display: none;
    }

    .hero::before {
        font-size: 10rem;
    }

    .image-container:hover .project-image.after,
    .image-container:hover .project-image.before {
        opacity: 1;
    }

    .toggle-button {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .swipe {
        display: block;
    }

    .projects-grid {
        display: flex;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        margin: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

   

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        overflow: hidden;
        border-radius: 10px;
        transform: scale(0.9);
        min-height: 100px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
        position: relative;
        flex: 0 0 100vw;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: auto;
        flex-grow: 1;
    }

    .project-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .projects-grid {
        
        scroll-behavior: smooth;
    }

    .projects {
        position: relative;
        margin: 0;
        overflow: hidden;
        
    }

    .logo {
        display: grid;
        margin-right: 0rem;
        justify-content: center;
        scale: 0.7;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 4rem;
        right: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s;
    }

    .nav-links a {
        display: block;
        width: 102%; /* Faz com que todos os links ocupem toda a largura */
        border-radius: 15px;
        text-align: center;
        background: rgba(91, 91, 91, 0.202); /* Mesmo efeito do menu */
    }

    /* Quando o menu estiver ativo */
    .nav-links.active {
        border-radius: 15px;
        max-height: 300px; /* Ajustável conforme o número de links */
        padding: 20px 0;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .logo {
        order: -1; /* Garante que o logo fique acima do menu */
    }

    .skills {
        transform: scale(0.8);
        margin-top: -4rem;
    }

    .about {
        padding: 0%;
    }

    .section-title {
        transform: scale(0.88);
        transform-origin: center top;
        transition: transform 0.3s ease-in-out;
    }
    .paragrafo {
        transform: scale(0.80);
        transform-origin: center top;
        transition: transform 0.3s ease-in-out;
        margin-bottom: -600px;
    }

    
}

@media (max-width: 402px) {
    .projects-grid {
        transition: all 0.3s ease-in-out;
        max-height: 44rem;
    }
 }

@media (max-width: 600px) {
    .skills {
        transform: scale(0.8);
        margin-top: -6rem;
        transition: all 0.3s ease-in-out;
    }
 }
    
 @media (max-width: 424px) {
    .skills {
        transform: scale(0.8);
        margin-top: -8rem;
        transition: all 0.3s ease-in-out;
    }
 }