/*
Theme Name: Portfolio Theme
Theme URI: https://portfolio.anamariarangel.com.br
Description: Tema clean desenvolvido por Ana Maria Rangel.
Author: Ana Maria Rangel
Version: 1.0.5
Text Domain: portfolio-theme
*/

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('webfonts/fa-brands-400.woff2') format('woff2'),
         url('webfonts/fa-brands-400.woff') format('woff');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('webfonts/fa-solid-900.woff2') format('woff2'),
         url('webfonts/fa-solid-900.woff') format('woff');
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #f9f9f9; /* Off-White */
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333333; /* Cinza Escuro */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: transparent;
    z-index: 10;
}

.navbar {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-item, .separator {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 0.6;
}

/* ============================================
   HERO / MAIN CONTAINER
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 80px 20px 30px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 680px;
    gap: 30px;
}

/* ============================================
   PROFILE SECTION - FOTO À ESQUERDA
   ============================================ */
.profile-section {
    flex: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 24PX;
}

.profile-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
    flex-shrink: 0;
	justify-self: flex-start;
    align-self: flex-start;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.profile-role {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.portfolio-description {
    margin-bottom: 12px;
}

.portfolio-description p {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.4;
	padding-bottom: 0!importnt;
}

.profile-contacts {
    display: flex;
    gap: 8px;
}

.profile-contacts .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    color: #333333;
    background: #eeeeee;
    transition: all 0.25s ease;
}

.profile-contacts .icon:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   PROJECTS SECTION - LISTA COMPACTA
   ============================================ */
.projects-section {
    flex: none;
    display: flex;
    justify-content: center;
    width: 100%;
}

.projects-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid #e5e5e5;
}

.projects-list li {
    border-bottom: 1px solid #e5e5e5;
}

.project-btn {
    background: none;
    border: none;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #333333;
    transition: all 0.25s ease;
    width: 100%;
    text-decoration: none;
}

.project-btn i, .project-btn svg {
    font-size: 20px;
    width: 22px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.project-btn:hover {
    background: #fafafa;
    padding-left: 28px;
    color: #000;
}

.project-btn:hover i,
.project-btn:hover svg {
    opacity: 1;
}

.portfolio-list {
    letter-spacing: 0.2px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    color: #333;
    margin: auto;
    padding: 40px 80px;
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-content p,
.modal-content ul {
    text-align: justify;
    width: 80%;
}

/* Galeria Lado a Lado */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 180; 
    object-fit: cover; 
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: none;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #333;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .container {
        max-width: 100%;
        gap: 30px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .profile-wrapper {
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 110px;
        height: 110px;
        order: 0;
    }

    .profile-name {
        font-size: 23px;
    }

    .profile-role {
        font-size: 14px;
    }

    .portfolio-description p {
        font-size: 12px;
    }

    .profile-contacts {
        justify-content: center;
    }

    .project-btn {
        padding: 15px 16px;
        font-size: 14px;
        gap: 14px;
    }

    .project-btn:hover {
        padding-left: 24px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 15px;
    }

    .modal-content p,
    .modal-content ul {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-contacts .icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .profile-name {
        font-size: 21px;
    }
}