/* GENERAL */

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

body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

p {
    color: #555555;
}

.section_text_p1 {
    margin: 1rem;
}

.title {
    margin: 1rem;
}

/* NAVBAR */

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-size: 1.5rem;   
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: gray;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #b5b5b5;
}

#socials-container a:hover {
    text-decoration: none;
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* LANGUAGE SWITCHER */

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: transparent;
}

.lang-btn:hover {
    border-color: #b5b5b5;
    transform: scale(1.1);
    text-decoration: none;
}

.lang-btn.active {
    border-color: #555555;
    background-color: #f0f0f0;
}

/* IMAGE CONTAINERS */

.image-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.code-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Reduzir tamanho das imagens específicas para 30% */
.code-image[src*="toggle_2.png"],
.code-image[src*="passcode.png"],
.code-image[src*="faceid.png"] {
    max-width: 30%;
    height: auto;
}

/* Tamanho especial para keychain - 60% (dobro do tamanho das outras) */
.code-image[src*="keychain.png"] {
    max-width: 60%;
    height: auto;
}

/* Reduzir tamanho das imagens de código para 90% */
.code-image[src*="authenticate.png"],
.code-image[src*="authorize.png"] {
    max-width: 90%;
    height: auto;
}

@media (max-width: 768px) {
    .code-image {
        max-width: 90%;
    }
    
    .code-image[src*="toggle_2.png"],
    .code-image[src*="passcode.png"],
    .code-image[src*="faceid.png"] {
        max-width: 40%;
    }
    
    .code-image[src*="keychain.png"] {
        max-width: 70%;
    }
    
    .code-image[src*="authenticate.png"],
    .code-image[src*="authorize.png"] {
        max-width: 95%;
    }
}

/* SECTIONS */

section {
    padding-top: 4vh;
    /* height: 96vh; */
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* HERO SECTION */

#hero {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.hero-text {
    align-self: center;
    text-align: center;
}

.hero-text p {
    font-weight: 600;
}

.hero-text:hover {
    cursor: default;
}

.hero-text .title {
    font-size: 3rem;
    text-align: center;
}

.hero-text .p1 {
    text-align: center;
}

.hero-text .p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ABOUT ME SECTION */

#about {
    display: flex;
    justify-content: center;
    gap: 5rem;
    min-height: 80vh;
    align-items: center;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* CONTACT SECTION */

#contact {
    padding: 4rem 0;
    background-color: transparent;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    color: #666;
    font-size: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}



/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

a, button {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: fit-content;
    min-width: fit-content;
    border-radius: 2rem;
}
 
.btn-1, .btn-2, .btn-3, a.btn-1, a.btn-2, a.btn-3 {
    border: #555555 0.1rem solid;    
    background: none;
}

.btn-1:hover, .btn-2:hover, .btn-3:hover, a.btn-1:hover, a.btn-2:hover, a.btn-3:hover {
    cursor: pointer;
    background: #555555;
    color: white;
}

.btn-container {
    gap: 1rem;
}

/* PROJECTS SECTION*/

#projects {
    position: relative;
    text-align: center;
}

.projects-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-item {
    display: flex;
    justify-content: center;
    margin: 2rem;
}

.project-item .pic-container img {
    margin-right: 2rem;
    border: white 0.01rem solid;
    border-radius: 0.5rem;
}

.project-text {
    text-align: left;
    margin: 2rem;
}

.project-text-right {
    text-align: right;
    margin: 2rem;
}

.project-text h3 {
    font-size: 1.5rem;
}

.project-text p {
    margin-bottom: 1rem;
}

.project-text-right h3 {
    font-size: 1.5rem;
}

.project-text-right p {
    margin-bottom: 1rem;
}

.section_title {
    font-size: 1.75rem;
}

/* EXPERIENCE SECTION */

#experience {
    position: relative;
    text-align: center;
}

.experience-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-item {
    display: flex;
    justify-content: center;
    margin: 2rem;
}

.experience-item .pic-container img {
    margin-right: 2rem;
    border: white 0.01rem solid;
    border-radius: 0.5rem;
}

.experience-text {
    text-align: left;
    margin: 2rem;
}

.experience-text h3 {
    font-size: 1.5rem;
}

.experience-text p {
    margin-bottom: 1rem;
}


/* Contact

.contact {
    padding: 50px 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact input, .contact textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}
*/

/* PROJECT HEADER SECTION */

#project-header {
    position: relative;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.header-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.header-text {
    text-align: left;
    flex: 1;
}

.project-category {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.meta-item i {
    font-size: 1.1rem;
    color: #555;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #555;
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 300ms ease;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: #333;
    transform: translateY(-2px);
}

/* PROJECT LINKS SECTION */

#project-links {
    position: relative;
    text-align: center;
    padding: 2rem 0;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.links-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px;
}

.links-content {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: none;
    color: #555;
    text-decoration: none;
    border: 2px solid #555;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 300ms ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: #555;
    color: white;
    transform: translateY(-2px);
}

.project-link i {
    font-size: 1.1rem;
}

/* ARTICLE CONTENT SECTION */

#article-content {
    position: relative;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.article-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 900px;
}

.article-body {
    text-align: left;
    line-height: 1.7;
    width: 100%;
}

.article-body h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #555;
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.article-body p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-body code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-body pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-body pre code {
    background-color: transparent;
    padding: 0;
}

.article-body blockquote {
    border-left: 4px solid #555;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.article-body a {
    color: #007bff;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 5px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-body th, .article-body td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.article-body th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* RESPONSIVE DESIGN */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .links-content {
        flex-direction: column;
        align-items: center;
    }
    
    .project-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .article-body h1 {
        font-size: 2rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body p {
        font-size: 1rem;
    }
    
    section {
        margin: 0 2rem;
    }
    
    /* Language switcher mobile */
    .lang-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    /* About section mobile */
    #about {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 0;
    }
    
    .about-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .about-image img {
        width: 300px;
        height: 300px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    section {
        margin: 0 1rem;
    }
}

/* FOOTER */

.footer {
    padding: 20px 0;
    text-align: center;
}