* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fff6d1;
    --secondary-color: #ffffff;
    --accent-color: #ffe8a3;
    --text-color: #000000;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px; /* Compensa a navbar fixa */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Icon */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    min-height: calc(100vh - 70px - 200px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 60px;
    height: 60px;
}

/* Banner Section (substitui o carousel) */
.banner-section {
    padding: 0;
    background: var(--secondary-color);
}

.banner-container {
    max-width: 100%;
    margin: 0 auto;
}

.banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Section - 50% texto / 50% imagem */
.content-section {
    padding: 4rem 0;
    background: var(--primary-color);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.image-content {
    display: flex;
    justify-content: center;
}

.image-content :hover {
    transform:  translateY(-3px);
    
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* Gallery Pages */
.gallery-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.gallery-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Masonry Gallery */
.masonry-gallery {
    columns: 3 300px;
    gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}



/* Video Section */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
}

/* About Page */
.about-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
}

.circle-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-image:hover{
     transform:  translateY(-3px);
    
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about-text h1 {
    font-size: 3rem;
     margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .banner {
        height: 300px;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .text-content h1 {
        font-size: 2.5rem;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .circle-image {
        width: 300px;
        height: 300px;
    }
    
    .about-text h1 {
        font-size: 2.5rem;
    }

    .masonry-gallery {
        columns: 2 200px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Corrige o alinhamento dos contactos no mobile */
    .footer-section p {
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Corrige especificamente "Artista & Programador" */
    .footer-section:first-child p:not(.contact-icon) {
        text-align: center;
        justify-content: center;
        display: block;
    }
    
    /* Ajusta os ícones de contacto */
    .contact-icon {
        justify-content: center;
        margin-right: 0.5rem;
    }
    
    /* Garante que os links também ficam centrados */
    .footer-section ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section ul li {
        text-align: center;
    }
    
    /* Ajusta o logo no footer para mobile */
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .banner {
        height: 200px;
    }
    
    .text-content h1 {
        font-size: 2rem;
    }

    .about-main {
        padding: 2rem 1rem;
    }
    
    .circle-image {
        width: 250px;
        height: 250px;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: -50px;
        right: -10px;
    }

    .masonry-gallery {
        columns: 1 300px;
    }
    
    /* Responsive para CV Section */
    .cv-section {
        padding: 1rem;
    }
    
    .cv-section h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Responsive para Games Section */
    .games-section-full {
        padding: 2rem 0;
    }
    
    .games-section-full h2 {
        font-size: 1.8rem;
    }
    
    .games-section-full p {
        font-size: 1rem;
    }
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Navigation - Updated colors */
.nav-link:hover,
.nav-link.active {
    color: #d4a017; /* Amarelo torrado mais escuro */
    
}

/* CV Section Styles - Updated for new layout */
.cv-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.cv-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cv-section p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.cv-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color:#ffffff ;
    color: black;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: #ffdd80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* About page layout adjustments */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Responsive Design for CV Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .cv-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .cv-section {
        padding: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cv-section {
        padding: 1rem;
    }
    
    .cv-section h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}


/* Games Section Full Width */
.games-section-full {
    width: 100%;
    
    padding: 4rem 0;
    margin-top: 4rem;
   
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.games-section-full h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.games-section-full p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.games-section-full .games-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.games-section-full .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 180px;
}

/* Responsive Design for Full Width Games Section */
@media (max-width: 768px) {
    .games-section-full {
        padding: 3rem 0;
        margin-top: 3rem;
    }
    
    .games-section-full h2 {
        font-size: 2rem;
    }
    
    .games-section-full p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .games-section-full .games-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .games-section-full .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .games-section-full {
        padding: 2rem 0;
    }
    
    .games-section-full h2 {
        font-size: 1.8rem;
    }
    
    .games-section-full p {
        font-size: 1rem;
    }
}





/* Contact Icons */
.contact-icon {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-color); /* Garante que os ícones são pretos */
}

.contact-icon svg {
    color: var(--text-color); /* Ícones pretos */
}

.footer-section p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}




/* Ajuste para o link do LinkedIn manter o alinhamento */
.footer-section p a {
    display: flex;
    align-items: center;
}





.footer-section a:hover {
color:#d4a017; 
}





/* Download Icon */
.download-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.download-icon svg {
    color: var(--text-color); /* Ícone preto */
}

/* Garante que o botão mantém o alinhamento */
.btn-secondary {
    display: inline-flex;
    align-items: center;
}