/* Global Styles */
:root {
    --primary-color: #0f172a;
    --secondary-color: #2563eb;
    --accent-color: #f97316;
    --light-color: #ecf0f1;
    --dark-color: #020617;
    --text-color: #1f2933;
    --text-light: #6b7280;
    --white: #fff;
    --box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Layout base */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0F172A, #1D4ED8, #F97316);
    margin: 10px auto 0;
    border-radius: 999px;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Botões */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #1d4ed8);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

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

/* Navbar */
#navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0.8rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 75px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

/* Navegação */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    color: #111827;
}

/* Botão para o site profissional na navbar */
.nav-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #f97316);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-cta-link i {
    font-size: 0.9rem;
}

.nav-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.32);
    opacity: 0.95;
}

/* No mobile, deixa o botão ocupar um pouco mais de largura */
@media (max-width: 768px) {
    .nav-cta-link {
        padding: 0.6rem 1.4rem;
    }
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0F172A, #1D4ED8, #F97316);
    border-radius: 999px;
}

/* Toggle de idioma */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1.5rem;
    font-size: 0.8rem;
}

.language-toggle .lang {
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.language-toggle .active-lang {
    color: var(--secondary-color);
}

.language-toggle .lang:hover {
    color: var(--secondary-color);
}

.language-toggle .lang-separator {
    color: #9ca3af;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
#hero {
    padding: 7.5rem 0 4.5rem;
    background: radial-gradient(circle at top left, #1d4ed8 0, #0f172a 45%, #020617 100%);
    color: var(--white);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1.2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #a5f3fc;
    margin-bottom: 0.8rem;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.4rem;
    color: #bfdbfe;
    margin-bottom: 1.4rem;
    text-align: left;
}

.hero-text h2::after {
    display: none;
}

.hero-text p {
    font-size: 1.05rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.hero-highlights i {
    color: #4ade80;
}

.social-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

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

/* Hero image */
.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-card {
    position: relative;
    padding: 0.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.5), rgba(15, 23, 42, 0.95));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.75);
}

.profile-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 999px;
    border: 3px solid rgba(191, 219, 254, 0.9);
    background: transparent;
    display: block;
}

.hero-image-card::before,
.hero-image-card::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    inset: -10px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    opacity: 0.7;
}

.hero-image-card::after {
    inset: -20px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.4);
    opacity: 0.5;
}

.hero-tagline {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-tagline i {
    color: #22c55e;
}

/* About Section */
#about {
    padding: 4.5rem 0;
    background-color: var(--white);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.2rem;
    text-align: left;
    color: var(--text-light);
    font-size: 0.98rem;
}

/* Skills Section */
#skills {
    padding: 4.5rem 0;
    background-color: #f9fafb;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.skill-item {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

.skill-item i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.9rem;
}

.skill-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Projects Section */
#projects {
    padding: 4.5rem 0;
    background-color: var(--white);
}

.projects-intro {
    max-width: 750px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.98rem;
}

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

.project-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    border-color: rgba(37, 99, 235, 0.4);
}

.project-image {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-content {
    padding: 1.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Contact Section */
/* Espaço extra para compensar o menu fixo */
#contact,
#projects,
#about,
#skills {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
}

#contact {
    background-color: #f9fafb;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 3rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 1.8rem;
}

.contact-info li {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-light);
}

.contact-info i {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-social h3 {
    margin-bottom: 0.9rem;
}

.contact-social .social-icons {
    display: flex;
    gap: 0.7rem;
}

/* Formulário */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

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

/* Feedback formulário */
.form-feedback {
    margin-bottom: 0.6rem;
    font-weight: 600;
    min-height: 1.2em;
    font-size: 0.9rem;
}

.form-feedback.success {
    color: #15803d;
}

.form-feedback.error {
    color: #b91c1c;
}

.form-helper-text {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Footer */
#footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-logo .logo-img {
    height: 80px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #e5e7eb;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #bfdbfe;
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: #93c5fd;
}

.footer-social {
    display: flex;
    gap: 0.7rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

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

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

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-highlights {
        justify-content: center;
    }

    .social-cta {
        justify-content: center;
    }

    .hero-image-card::before,
    .hero-image-card::after {
        display: none;
    }

    .hero-tagline {
        position: static;
        transform: none;
        margin-top: 0.6rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: #111827;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        gap: 1.6rem;
    }

    .nav-links.active {
        left: 0;
    }

    .language-toggle {
        display: flex;
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .profile-photo {
        width: 230px;
        height: 230px;
    }

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

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

    .contact-form {
        order: -1;
        margin-bottom: 2rem;
    }

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

    .footer-contact ul {
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    #hero {
        padding-top: 7rem;
    }
}

/* Cover image style for project cards (garantia) */
.project-image .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
