:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #00bdb0;
    --header-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
    scroll-behavior: smooth; 
}

[data-theme="light"] {
    --primary-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --text-color: #1a1a1a;
    --accent-color: #00bdb0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.lightbox-open header {
    padding-right: var(--scrollbar-width, 0px);
}

body {
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    font-variation-settings:
    "wdth" 100;

    background-color: var(--primary-bg);
    color: var(--text-color);
}

main h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;


}

.Whennew {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 10px;
}

body.lightbox-open {
    margin-right: var(--scrollbar-width, 0px) !important;
    overflow: hidden !important;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header:not(.scrolled) {
    background: linear-gradient(to bottom,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.2) 50%,
        rgba(26, 26, 26, 0.1) 100%
    );
    backdrop-filter: blur(4px);
}

[data-theme="light"] header:not(.scrolled) {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
}

header:not(.scrolled) .brand h1,
header:not(.scrolled) .nav-links a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] header:not(.scrolled) .brand h1,
[data-theme="light"] header:not(.scrolled) .nav-links a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    padding: .7rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.brand {
    justify-self: start;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.nav-controls {
    justify-self: end;
}

#theme-toggle {
    grid-column: 2;
    position: relative;
    left: 0;
    right: 0;
    margin: 0 auto;
    scale: 1.2;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav-links {
    justify-self: end;
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 1rem 2rem;
    }

    .brand {
        justify-self: start;
    }

    #theme-toggle {
        grid-column: 2;
        justify-self: center;
    }

    #menu-toggle {
        display: block;
        grid-column: 3;
        justify-self: end;
        margin-left: 1rem;
    }

    .nav-links {
        display: none;
    }
}

.brand h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.brand h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand h1 a:hover {
    color: var(--accent-color);
}

.mobile-nav {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-bg);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 1rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    margin-right: -0.5rem;
}

.close-sidebar:hover {
    color: var(--accent-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.sidebar-nav a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.sidebar-nav a:hover {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    transform: translateX(10px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#theme-toggle .sun {
    opacity: 0;
}

#theme-toggle .moon {
    opacity: 0;
}

[data-theme="dark"] #theme-toggle .sun,
:root:not([data-theme="light"]) #theme-toggle .sun {
    opacity: 1;
}

[data-theme="light"] #theme-toggle .moon {
    opacity: 1;
}

#theme-toggle:hover svg {
    transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
    transition: none !important; 
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center 30%; 
    background-repeat: no-repeat;
    margin-bottom: 20px;
}


.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}
#gallery {
    margin-top: 30px;
}

img {
    width: 100%;
    margin-bottom: 1em;
}
.mansonry-grid {
    margin-top: 50px;
    columns: 500px 4; 
}


.art-card {
    break-inside: avoid;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-preview {
    position: relative;
}

.art-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.art-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostrar art-info ao passar o mouse sobre o card */
/*.art-card:hover .art-info {
    opacity: 1;
}*/

.art-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.art-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.art-info p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.art-details {
    display: none;
}

.art-details.active {
    display: block;
}

.hidden {
    display: none;
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.pj {
    font-weight: bold
}
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-feature {
    margin-bottom: 2rem;
    
    border-radius: 15px;
    overflow: hidden;
}

.project-header {
    padding: 1.5rem 2rem;
}

.project-header h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-optical-sizing: auto;
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.1rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.project-content img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-description {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text-color);
}

.project-progress {
    font-size: 1rem;
    
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--secondary-bg);
}

.project-progress a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.project-progress a:hover {
    opacity: 0.8;
}

[data-theme="dark"] .project-progress a {
    color: var(--accent-color);
}

[data-theme="dark"] .project-description {
    color: var(--text-color);
}


@media (max-width: 768px) {
    nav {
        grid-template-columns: auto 1fr auto;
        padding: 1rem;
        justify-content: space-between;
    }
    .brand {
        justify-self: start;
    }
    #theme-toggle {
        grid-column: 2;
        margin: 0 auto;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .project-header {
        padding: 1.2rem 1.5rem;
    }

    .nav-links {
        display: none; 
    }

    #menu-toggle {
        display: block;
        margin-left: 1rem;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.about-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.bio {
    font-size: 1.3rem;
    line-height: 1.3;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
}

.contact-info a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-info i {
    font-size: 2rem; 
}

section {
    padding: 20px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

footer {
    background-color: var(--secondary-bg);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }

    section h2 {
        font-size:1.8rem;
    }

    .project-header h3 {
        font-size: 1.5rem;
    }

    #menu-toggle {
        display: block; 
    }

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(8px);
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bio {
        font-size: 1.1rem; 
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .mobile-nav .nav-links li {
        width: 100%;
        text-align: center;
    }

    .mobile-nav .nav-links a {
        display: block;
        padding: 0.8rem;
        width: 100%;
    }

    .brand h1 {
        font-size: 1.5rem; 
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .project-description {
        font-size: 1.1rem; 
    }

    .project-progress {
        font-size: .9rem; 
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

.sketch-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    padding: 2rem 0;
}

.sketch-divider i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .artwork-container img {
        max-height: 30vh;
    }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    overflow-y: auto; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
}

.lightbox.active {
    display: block;
}

.lightbox-container {
    position: relative;
    max-width: 1200px;
    width: 80%;
    margin: 3rem auto;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.lightbox-header {
    margin-bottom: 40px;
}

.lightbox-header h2 {
    color: var(--accent-color);
    font-size: 2rem;
    padding-left: 5px; 
    margin-bottom: 0.2rem;
    text-align: left;
}

.lightbox-header .description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-header .project-type {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.lightbox-header .project-description {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-color);
    line-height: 1.8;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lightbox-content img,
.main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    max-height: none; 
}

.process-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-btn, .close-btn {
    position: fixed;
    background:transparent;
    color: white;
    border: none;
    width: 5rem;
    height: 3rem;
    font-size: 2rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn {
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.close-btn {
    top: 2rem;
    right: 2rem;
}

.nav-btn:hover, .close-btn:hover {
    color: #00bdb0;
}

@media (max-width: 768px) {
    .lightbox.active {
        display: block;
        padding-top: 20%;
    }

    .lightbox-container {
        padding: 15px;
    }    

    .lightbox-header {
        margin-bottom: 20px;
    }
    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: .4rem;
    }

    .next-btn {
        right: .4rem;
    }

    .close-btn {
        top: 1rem;
        right: 1rem;
        width: 2rem;
    }

    .lightbox-header h2 {
        font-size: 1.3rem;
    }
    
    .lightbox-header .project-type {
        font-size: 1rem;
    }
    
    .lightbox-header .project-description {
        font-size: 0.9rem;
    }

    .lightbox-header .project-description {
        font-size: 0.65rem;
    }
}