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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    color: var(--text-cream);
    background-color: var(--bg-dark);
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at top, rgba(90, 55, 10, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(40, 20, 0, 0.5) 0%, transparent 70%);
}

/* Navegação */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-bottom: 2px solid var(--border-gold);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Seletor de Idioma */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-gold);
    color: var(--text-cream);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', Georgia, serif;
}

.lang-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(200, 168, 75, 0.1);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-cream);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), rgba(138, 111, 46, 0.2));
    color: var(--text-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-bottom: 2px solid var(--border-gold);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease;
}

/* Sobre */
.about {
    padding: 5rem 2rem;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--border-gold);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-cream);
}

.about strong {
    color: var(--gold-light);
}

/* Projetos / Portfólio */
.projects {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-gold);
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-panel);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-gold);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(200, 168, 75, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: var(--gold);
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--gold-light);
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
}

.project-card p {
    padding: 0.5rem 1.5rem;
    color: var(--text-cream);
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    padding: 1rem 1.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--gold-light);
}

/* Habilidades */
.skills {
    padding: 5rem 2rem;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--border-gold);
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-gold);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(200, 168, 75, 0.2);
}

.skill-card h3 {
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
}

.skill-card p {
    color: var(--text-cream);
    line-height: 1.8;
}

/* Contato */
.contact {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-gold);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.contact-link {
    background: transparent;
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.contact-link:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(200, 168, 75, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-cream);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--border-gold);
}

/* Animações */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsividade - Tablet */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .language-selector {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-panel);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

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

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

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

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

    .contact-link {
        width: 100%;
        max-width: 300px;
    }

    .about h2,
    .skills h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Responsividade - Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .about h2,
    .skills h2,
    .projects h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    .contact-link {
        width: 100%;
        max-width: 300px;
    }

    .navbar-container {
        padding: 1rem;
    }
}
