* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Navegação */
nav {
    background: #4A6FA5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 18px clamp(20px, 5vw, 60px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.5px;
    cursor: pointer;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
    align-items: center;
}

nav li {
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
}

nav a:hover {
    opacity: 0.8;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item > a {
    display: inline-block;
}

/* Área invisível acima do dropdown para manter hover */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -30px;
    right: -30px;
    height: 15px;
    z-index: 100;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #4A6FA5;
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 8px;
    min-width: 200px;
    box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.2);
    z-index: 101;
    white-space: nowrap;
}

/* Área de hover estendida para o dropdown */
.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 14px 24px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: background 0.3s;
    text-align: center;
}

.dropdown-menu a:hover {
    background: #2d4463;
    opacity: 1;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
    padding-bottom: 20px;
}

/* Container Principal */
.container {
    width: 100%;
    height: calc(100vh - 70px);
    background: #fffcf2;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 70px;
}

/* Seção Central e Direita - Conteúdo */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px 150px 60px 40px;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
    position: relative;
}

.circle-top-right {
    position: absolute;
    width: clamp(110px, 30vw, 300px);
    height: clamp(110px, 30vw, 300px);
    background: #3B5998;
    border-radius: 50%;
    top: -80px;
    right: -100px;
    z-index: 1;
    pointer-events: none;
}

.circle-bottom-left {
    position: absolute;
    width: clamp(160px, 25vw, 300px);
    height: clamp(160px, 25vw, 300px);
    background: #3B5998;
    border-radius: 50%;
    bottom: -80px;
    left: -100px;
    z-index: 1;
    pointer-events: none;
}

/* Seção Esquerda - Foto com Círculo */
.left-section {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.photo-wrapper {
    position: relative;
    width: 380px;
    height: 520px;
}

.circle-behind {
    position: absolute;
    width: 580px;
    height: 580px;
    background: #3B5998;
    border-radius: 50%;
    top: 80%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.photo-container {
    position: relative;
    width: 400px;
    height: 600px;
    z-index: 2;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Seção Central e Direita - Conteúdo */
.main-wrapper {
    display: flex;
    position: relative;
    z-index: 2;
    height: 100%;
    gap: 0;
}

.content-wrapper.full-width {
    padding: 60px 150px;
}

.name-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-style: normal;
    color: #2C3E50;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.topics-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.topics-container.project-page {
    max-width: 800px;
    margin: 0 auto;
}

.topic {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    max-width: 700px;
}

.topic.project-topic {
    max-width: 800px;
}

.topic-title {
    font-size: 40px;
    font-family: 'Lora', serif;
    font-weight: bold;
    letter-spacing: 2px;
    color: #2C3E50;
    text-transform: uppercase;
}

.topic-title.project-title {
    font-size: 35px;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'Courier Prime', monospace;
    text-align: left;
}

.topic-text {
    font-size: 20px;
    line-height: 1.7;
    color: #555;
    text-align: center;
    font-family: 'Lora', serif;
    letter-spacing: 2px;
    font-style: italic;
}

.topic-text.project-text {
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-align: justify;
    line-height: 1.8;
}

/* Seção Direita - Fotos */
.right-section {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25px;
}

.photo-card {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

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

/* Galeria Horizontal */
.gallery-container {
    display: flex;
    gap: 60px;
    margin-top: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    width: 200px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.read-more-btn {
    display: inline-block;
    background: #4A6FA5;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #3a5582;
    transform: translateY(-2px);
}

.read-more-btn::after {
    content: " →";
    margin-left: 8px;
}

/* Rodapé */
footer {
    background: #4A6FA5;
    color: white;
    padding: 12px 60px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

.footer-content {
    font-size: 14px;
    line-height: 1.6;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Modal para ampliar fotos */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content img {
    width: 100%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Responsivo */
@media (max-width: 1200px) {
    nav {
        padding-left: 35px;
        padding-right: 35px;
    }

    nav ul {
        gap: 28px;
    }

    .left-section {
        padding-left: 25px;
        padding-right: 25px;
    }

    .photo-wrapper {
        width: 320px;
        height: 460px;
    }

    .photo-container {
        width: 340px;
        height: 455px;
    }

    .circle-behind {
        width: 500px;
        height: 500px;
    }

    .content-wrapper {
        padding-right: 60px;
    }

    .right-section {
        flex-basis: 170px;
    }

    .photo-card {
        width: 135px;
        height: 135px;
    }

    .content-wrapper.full-width {
        padding-left: 70px;
        padding-right: 70px;
    }

    .topics-container.project-page {
        max-width: 800px;
    }

    .gallery-container {
        gap: 30px;
    }

    .dropdown-menu {
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 16px 25px;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    nav ul {
        gap: 22px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .container {
        padding-top: 78px;
        height: calc(100vh - 78px);
    }

    .main-wrapper {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 78px);
    }

    .left-section {
        padding: 35px 20px 20px;
    }

    .photo-wrapper {
        width: min(300px, 75vw);
        height: min(400px, 105vw);
    }

    .photo-container {
        width: min(320px, 80vw);
        height: min(425px, 110vw);
    }

    .circle-behind {
        width: min(460px, 115vw);
        height: min(460px, 115vw);
    }

    .content-wrapper {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        padding: 30px 35px 80px;
    }

    .content-wrapper.full-width {
        padding: 45px 35px 100px;
    }

    .right-section {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 20px 100px;
    }

    .photo-card {
        width: 130px;
        height: 130px;
    }

    .topics-container.project-page {
        width: 100%;
        max-width: 800px;
    }

    .gallery-container {
        gap: 20px;
    }

    .gallery-item {
        width: 180px;
        height: 165px;
    }

    .circle-top-right {
        width: 260px;
        height: 260px;
        top: -70px;
        right: -100px;
    }

    .circle-bottom-left {
        width: 230px;
        height: 230px;
        bottom: -70px;
        left: -90px;
    }

    .dropdown-menu {
        min-width: 200px;
    }

    .dropdown-menu a {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 13px 16px;
        gap: 10px;
    }

    .logo {
        font-size: 16px;
    }

    nav ul {
        width: 100%;
        justify-content: space-between;
        gap: 8px 14px;
    }

    nav a {
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 170px;
        margin-top: 8px;
    }

    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 13px;
    }

    .container {
        padding-top: 105px;
        height: calc(100vh - 105px);
    }

    .main-wrapper {
        min-height: calc(100vh - 105px);
    }

    .left-section {
        padding: 30px 15px 10px;
    }

    .photo-wrapper {
        width: 250px;
        height: 340px;
    }

    .photo-container {
        width: 270px;
        height: 360px;
    }

    .circle-behind {
        width: 380px;
        height: 380px;
    }

    .content-wrapper {
        padding: 25px 18px 90px;
    }

    .content-wrapper.full-width {
        padding: 35px 18px 100px;
    }

    .name-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 25px;
        letter-spacing: 2px;
    }

    .topic {
        max-width: 100%;
    }

    .topic-title {
        font-size: clamp(30px, 9vw, 45px);
        letter-spacing: 1px;
    }

    .topic-title.project-title {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.25;
        text-align: left;
    }

    .topic-text {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.5;
        letter-spacing: 1px;
    }

    .topic-text.project-text {
        font-size: 15px;
        line-height: 1.7;
        text-align: justify;
    }

    .right-section {
        padding: 10px 15px 100px;
    }

    .photo-card {
        width: 105px;
        height: 105px;
    }

    .gallery-container {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 20px;
    }

    .gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.9;
    }

    .read-more-btn {
        padding: 10px 22px;
        font-size: 13px;
    }

    footer {
        padding: 10px 16px;
    }

    .footer-content {
        font-size: 12px;
    }

    .circle-top-right {
        width: 190px;
        height: 190px;
        top: -55px;
        right: -75px;
    }

    .circle-bottom-left {
        width: 170px;
        height: 170px;
        bottom: -55px;
        left: -65px;
    }

    .modal-content {
        width: calc(100% - 24px);
        max-height: 85vh;
        padding: 12px;
    }
}

@media (max-width: 380px) {
    nav ul {
        gap: 7px 10px;
    }

    nav a {
        font-size: 12px;
    }

    .container {
        padding-top: 100px;
        height: calc(100vh - 100px);
    }

    .main-wrapper {
        min-height: calc(100vh - 100px);
    }

    .photo-wrapper {
        width: 220px;
        height: 300px;
    }

    .photo-container {
        width: 235px;
        height: 315px;
    }

    .circle-behind {
        width: 330px;
        height: 330px;
    }

    .gallery-container {
        gap: 10px;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .photo-card {
        width: 90px;
        height: 90px;
    }

    .dropdown-menu {
        min-width: 150px;
    }

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 12px;
    }
}