/* ========================================
   Renata Marchese — Site Pessoal
   Paleta: Mauve & Cream
   ======================================== */

/* --- Variáveis --- */
:root {
    --bg:          #FAF7F5;
    --bg-alt:      #F3EDED;
    --accent:      #A0616A;
    --accent-light:#C08B93;
    --accent-pale: #E8D5D5;
    --text:        #2D2424;
    --text-muted:  #7A6565;
    --white:       #FFFFFF;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;

    --max-width:   1100px;
    --nav-height:  72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

strong {
    font-weight: 600;
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navegação --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--accent-pale);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: var(--accent-light);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 213, 213, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(192, 139, 147, 0.15) 0%, transparent 50%),
        var(--bg);
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 24px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Botões */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 1.5px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(160, 97, 106, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent-pale);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(160, 97, 106, 0.05);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2.5s ease-in-out infinite;
}

.hero-scroll a {
    color: var(--accent-pale);
    transition: color 0.3s ease;
}

.hero-scroll a:hover {
    color: var(--accent);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Seções --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 16px auto 0;
}

/* --- Sobre --- */
.about-photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.about-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(160, 97, 106, 0.15);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text);
}

.about-lead {
    font-size: 1.15rem !important;
    font-weight: 400;
    line-height: 1.8;
}

.about-closing {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem !important;
    color: var(--accent);
    margin-top: 8px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-alt);
    padding: 24px 16px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(160, 97, 106, 0.1);
}

.highlight-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.highlight-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* --- Timeline --- */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: var(--accent-pale);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--accent-pale);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(160, 97, 106, 0.15);
}

.timeline-content {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid rgba(160, 97, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(160, 97, 106, 0.08);
}

.timeline-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.timeline-badge.current {
    background: var(--accent-pale);
    color: var(--accent);
}

.timeline-badge.education {
    background: #E8D5E8;
    color: #7A5080;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--accent-pale);
}

/* --- Formação --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.education-card {
    background: var(--bg-alt);
    padding: 28px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--accent-pale);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(160, 97, 106, 0.08);
}

.education-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    background: var(--accent-pale);
    padding: 2px 10px;
    border-radius: 20px;
}

.education-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.education-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Certificações */
.certifications {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--accent-pale);
}

.certifications-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.cert-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--accent-pale);
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cert-tag:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Projetos --- */
.projects-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(160, 97, 106, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-pale);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(160, 97, 106, 0.1);
}

.project-card-link {
    cursor: pointer;
    color: var(--text);
}

.project-card-link:hover {
    border-color: var(--accent);
    color: var(--text);
}

.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-pale);
    color: var(--accent);
    margin-bottom: 16px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
}

.project-status.coming-soon {
    background: var(--bg);
    color: var(--text-muted);
}

.project-status.active {
    background: var(--accent-pale);
    color: var(--accent);
}

/* --- Contato --- */
.contact-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    border: 1px solid rgba(160, 97, 106, 0.08);
    transition: all 0.3s ease;
    color: var(--text);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(160, 97, 106, 0.12);
    color: var(--text);
}

.contact-card svg {
    color: var(--accent);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.contact-card:hover svg {
    transform: scale(1.1);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 32px 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--accent-pale);
}

/* --- Animações --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsivo --- */
@media (max-width: 768px) {

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 247, 245, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-photo-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .contact-links {
        grid-template-columns: 1fr;
    }

    .hero-tagline br {
        display: none;
    }

    .hero-name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
}

@media (max-width: 480px) {

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

    .cert-tags {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Selection color --- */
::selection {
    background: var(--accent-pale);
    color: var(--text);
}
