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

:root {
    --primary: #1a1a1a;
    --accent: #c9a961;
    --light: #f5f5f5;
    --gray: #666;
}

html {
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1.5rem 4rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:visited {
    color: var(--primary);
}

.logo a:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f5f5f5" width="1200" height="800"/><g stroke="%23d0d0d0" stroke-width="0.5" fill="none"><line x1="100" y1="200" x2="400" y2="200"/><line x1="100" y1="300" x2="400" y2="300"/><line x1="100" y1="400" x2="400" y2="400"/><rect x="100" y="200" width="300" height="200"/><line x1="250" y1="200" x2="250" y2="400"/><circle cx="700" cy="300" r="100" stroke-dasharray="5,5"/><line x1="900" y1="250" x2="1100" y2="250"/><line x1="900" y1="350" x2="1100" y2="350"/><rect x="900" y="250" width="200" height="100"/><text x="150" y="180" font-family="Arial" font-size="12" fill="%23999">35.4 m²</text><text x="650" y="450" font-family="Arial" font-size="12" fill="%23999">BRA 71.4 m²</text></g></svg>');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

#cityscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6; /* Subtle */
}

.hero-contact {
    font-size: 0.95rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.hero-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-contact a:hover {
    color: var(--primary);
}

/* Section Styles */
section {
    position: relative;
    padding: 8rem 4rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><g stroke="%23000" stroke-width="0.3" fill="none"><line x1="0" y1="0" x2="1200" y2="800"/><line x1="0" y1="800" x2="1200" y2="0"/><circle cx="600" cy="400" r="200"/><rect x="200" y="200" width="800" height="400"/></g></svg>');
    pointer-events: none;
    will-change: transform;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 4rem;
    margin-top: 2rem;
    color: var(--primary);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

/* Experience Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 4rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-item h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.timeline-role {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.timeline-item ul {
    color: var(--gray);
    padding-left: 1.5rem;
}

.timeline-item li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Projects Grid with Parallax */
.projects {
    background: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.project-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.project-card:hover {
    text-decoration: none;
}

.project-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    transform: translateY(45%);
    transition: transform 0.3s ease;
    min-height: 100px;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    opacity: 1;
}

.project-description {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.85;
    display: none;
}

/* Footer Content Section - Combined Education, Languages, Contact */
#footer-content {
    position: relative;
    padding: 0;
    background: white;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer-content > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content-block .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-content-block .section-title::after {
    width: 40px;
    bottom: -0.8rem;
}

/* Education */
.education-card {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    width: 100%;
}

.education-card h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.education-card .degree {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.education-card .date {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.languages-grid.footer-languages {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.language-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.language-item:hover {
    border-color: var(--accent);
}

.language-item h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.language-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact */
.contact {
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    flex-direction: column;
}

#footer-content .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    background: #1A1A1A;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    padding: 0;
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-section h3::after {
    display: none;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #999;
    font-size: 0.9rem;
    display: block;
}

.footer-section .contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-direction: row;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.footer-section .contact-info a {
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-section .contact-info a:hover {
    color: var(--accent);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.75rem;
}



/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .languages-grid.footer-languages {
        grid-template-columns: repeat(2, 1fr);
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .languages-grid.footer-languages {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Styles (iPhone 15, 15 Pro, 15 Pro Max) */
@media screen and (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.98); 
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    /* General Layout */
    .hero-content h1 {
        font-size: 2rem; /* Adjusted for smaller screens */
        letter-spacing: 2px;
    }
    
    section {
        padding: 4rem 1.5rem !important;
    }

    /* Footer adjustments if needed */
    footer {
        padding: 1.5rem 1.5rem;
    }

    /* Timeline Adjustments */
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 3rem;
    }
}



