/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f8fafc;
    --white: #ffffff;
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.lang-btn:hover::before {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent 70%);
}

.lang-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.lang-btn {
    position: relative;
    z-index: 1;
}

.lang-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--gray);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.lang-btn:hover::after {
    opacity: 1;
}

.flag-emoji {
    display: none;
}

.flag-text {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Mostrar emojis em dispositivos que suportam bem */
@supports (font-family: "Apple Color Emoji") {
    .flag-emoji {
        display: block;
        font-size: 1.4rem;
    }
    .flag-text {
        display: none;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.btn-card {
    background: var(--primary);
    color: var(--white);
    width: 100%;
}

.btn-card:hover {
    background: var(--primary-dark);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Sobre */
.sobre {
    background: var(--light);
}

.sobre-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.sobre-text h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.7;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.skills span {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* FOTO - SEM ANIMAÇÕES */
.sobre-foto {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sobre-foto img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* SEM TRANSIÇÕES - IMAGEM SEMPRE ESTÁTICA */
}

.sobre-foto img:hover {
    /* Apenas um hover suave */
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Sistemas */
.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.card ul li {
    padding: 0.4rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.card ul li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Projetos */
.projetos {
    background: var(--light);
}

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

.processo-item {
    text-align: center;
    padding: 2rem;
}

.numero {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

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

.cta-box {
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta-box h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Contato */
.contato-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contato-info h3 {
    color: var(--dark);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

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

.contato-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contato-form input,
.contato-form select,
.contato-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
    box-sizing: border-box;
}

.contato-form input:focus,
.contato-form select:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contato-form textarea {
    resize: vertical;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

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

/* Responsive */
/* Tablets */
@media (max-width: 1024px) {
    .sobre-content {
        gap: 2rem;
    }

    .sobre-foto img {
        width: 280px;
        height: 280px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .language-switcher {
        gap: 0.3rem;
    }

    .lang-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    /* Forçar emojis no mobile */
    .flag-emoji {
        display: block !important;
        font-size: 1.2rem;
    }
    .flag-text {
        display: none !important;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

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

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .sobre-foto {
        order: -1;
    }

    .sobre-foto img {
        width: 200px;
        height: 200px;
        border-width: 3px;
    }

    .sobre-text h3 {
        font-size: 1.6rem;
    }

    .sobre-text h4 {
        font-size: 1.2rem;
    }

    .skills {
        justify-content: center;
    }

    .skills span {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .processo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 80px 0 50px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .sobre-foto img {
        width: 160px;
        height: 160px;
        border-width: 2px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .sobre-texto {
        padding: 0 10px;
    }

    .sobre-text h3 {
        font-size: 1.4rem;
    }

    .sobre-text h4 {
        font-size: 1.1rem;
    }

    .sobre-text p {
        font-size: 0.95rem;
    }

    .skills span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .contato-form {
        padding: 1.5rem;
    }

    .contato-form input,
    .contato-form select,
    .contato-form textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    section {
        padding: 50px 0;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 320px) {
    .hero h2 {
        font-size: 1.6rem;
    }

    .sobre-foto img {
        width: 140px;
        height: 140px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.2rem;
    }

    .modal-content {
        padding: 1.2rem;
    }
}