/* --- CSS Variables --- */
:root {
    --primary-color: #1B263B;
    --primary-light: #2A3B5C;
    --accent-color: #D4A373;
    --accent-hover: #c4915f;
    --bg-light: #FAFAFA;
    --bg-sand: #F8EDEB;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky nav */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-sand);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-dark h2, .bg-dark p {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--accent-color);
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Account for navbar */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.1;
    bottom: -30px;
    right: -30px;
    z-index: -1;
}

/* --- Sobre Section --- */
.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--accent-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Podcast Player */
.podcast-player {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.podcast-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--bg-sand);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.player-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.podcast-subtitle {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-left: 40px;
}

.btn-play {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-play:hover {
    color: var(--accent-hover);
    transform: scale(1.05);
}

.progress-container {
    flex: 1;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 80px;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--white);
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.date {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-sand);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content h3 {
    margin-bottom: 4px;
}

.company {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.infographic-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.banner-content h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Projetos Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 200px;
    background-color: var(--primary-light);
    background-size: cover;
    background-position: center;
}

/* Placeholders for project images */
.bg-1 { background-image: linear-gradient(rgba(27, 38, 59, 0.5), rgba(27, 38, 59, 0.5)), url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }
.bg-2 { background-image: linear-gradient(rgba(27, 38, 59, 0.5), rgba(27, 38, 59, 0.5)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }
.bg-3 { background-image: linear-gradient(rgba(27, 38, 59, 0.5), rgba(27, 38, 59, 0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Formação Section --- */
.education-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-sand);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.edu-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateX(10px);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.edu-details h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.edu-details p {
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Contato Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-methods li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-methods i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-methods a {
    color: var(--white);
}

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

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

/* --- Footer --- */
footer {
    background: #111827; /* Darker than primary */
    padding: 40px 0;
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media screen and (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .infographic-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, you'd toggle a mobile menu class */
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .podcast-player {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .player-controls {
        width: 100%;
        margin-left: 0;
    }
    
    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .right {
        left: 0%;
    }
}
