:root {
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray: #6b7280;
    --gray-dark: #1f2937;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.navbar-toggler {
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

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

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 5px;
    }

    .nav-link:hover {
        background-color: var(--gray-light);
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 25px;
        height: 25px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background-color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-download {
    background-color: var(--primary-dark);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download i {
    font-size: 1.1rem;
}

.btn-download:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cv-download {
    display: inline-block;
    margin: 0 0.5rem;
}

.cv-download .btn-download {
    margin: 0;
}

.cv-download .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.18);
    min-width: 230px;
    padding: 0.4rem;
}

.cv-download .dropdown-item {
    border-radius: 6px;
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.65rem 0.85rem;
}

.cv-download .dropdown-item:hover,
.cv-download .dropdown-item:focus {
    background-color: var(--gray-light);
    color: var(--primary-dark);
}

/* Sections */
section {
    padding: 5rem 10%;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--gray-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(37, 99, 235, 0.2),
        rgba(96, 165, 250, 0.4),
        rgba(37, 99, 235, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: shine 3s infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sobre */
.sobre {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.sobre-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.sobre-texto p {
    margin-bottom: 1.5rem;
}

.sobre-texto p:last-child {
    margin-bottom: 0;
}

.sobre-imagem img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Projetos */
.projetos-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projeto-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.projeto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.projeto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.projeto-header h3 {
    color: var(--gray-dark);
    font-size: 1.5rem;
    margin: 0;
}

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

.projeto-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.projeto-link:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

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

.projeto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.projeto-tecnologias span {
    background-color: var(--gray-light);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Habilidades */
.habilidades {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.habilidades h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.habilidade-categoria {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.habilidade-categoria h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.habilidade-categoria h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.habilidade-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.habilidade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.habilidade-item:hover {
    transform: translateY(-5px);
}

.habilidade-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.habilidade-item span {
    font-size: 0.9rem;
    color: var(--gray-dark);
    text-align: center;
}

/* Contato */
.contato-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contato-form {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contato-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contato-item:hover {
    background-color: var(--gray-light);
}

.contato-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contato-item a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-item a:hover {
    color: var(--primary-color);
}

.contato-info .social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.contato-info .social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contato-info .social-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--gray-light);
    color: var(--gray);
}

/* Animações */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-light);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Formação */
.formacao-content {
    max-width: 800px;
    margin: 0 auto;
}

.formacao-item {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.formacao-item:hover {
    transform: translateY(-5px);
}

.formacao-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 15px 0 0 15px;
}

.formacao-data {
    margin-bottom: 1rem;
}

.formacao-data .ano {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.formacao-data .instituicao {
    color: var(--gray);
    font-size: 1rem;
}

.formacao-detalhes h3 {
    color: var(--gray-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.formacao-detalhes p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.formacao-lista {
    list-style: none;
    padding-left: 1.5rem;
}

.formacao-lista li {
    color: var(--gray);
    margin-bottom: 0.5rem;
    position: relative;
}

.formacao-lista li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 80px 2rem 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

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

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links li:nth-child(6) { transition-delay: 0.6s; }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        color: var(--gray-dark);
        transition: color 0.3s ease;
        border-radius: 5px;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        background-color: var(--gray-light);
    }

    .hero {
        padding-top: 60px;
    }

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

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .sobre-content,
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 3rem 5%;
    }

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

    .habilidade-categoria {
        padding: 1rem;
    }

    .habilidade-icons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.8rem;
    }

    .habilidade-item i {
        font-size: 1.8rem;
    }

    .habilidade-item span {
        font-size: 0.8rem;
    }

    .formacao-item {
        padding: 1.5rem;
    }

    .formacao-detalhes h3 {
        font-size: 1.2rem;
    }

    .projeto-item {
        padding: 1.5rem;
    }

    .projeto-header h3 {
        font-size: 1.3rem;
    }

    .projeto-descricao {
        font-size: 0.95rem;
    }

    .projeto-tecnologias span {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .sobre-texto {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .sobre-content {
        padding: 0 1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .habilidade-categoria h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }

    .btn-download {
        justify-content: center;
    }

    .cv-download {
        margin: 0;
        width: 100%;
        max-width: 250px;
    }

    .cv-download .btn-download {
        width: 100%;
    }

    .cv-download .dropdown-menu {
        width: 100%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 5%;
    }

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

    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .habilidades-grid {
        padding: 0.5rem;
    }

    .habilidade-categoria {
        padding: 0.8rem;
    }

    .habilidade-icons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    .habilidade-item {
        padding: 0.8rem;
    }

    .habilidade-item i {
        font-size: 1.5rem;
    }

    .habilidade-item span {
        font-size: 0.75rem;
    }

    .formacao-data .ano {
        font-size: 1rem;
    }

    .formacao-data .instituicao {
        font-size: 0.9rem;
    }

    .formacao-detalhes p {
        font-size: 0.9rem;
    }

    .formacao-lista li {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .habilidade-categoria h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Projetos */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
}

.card .fa-lg {
    transition: transform 0.3s ease;
}

.card a:hover .fa-lg {
    transform: scale(1.2);
}

/* Carrossel de Projetos */
.carousel {
    padding: 2rem 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .carousel-indicators {
        bottom: -30px;
    }
}

.contato-form {
    margin: 2rem 0;
}

.form-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

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

/* Página de Agradecimento */
.obrigado-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 2rem;
}

.obrigado-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.obrigado-content i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.obrigado-content h1 {
    color: var(--gray-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.obrigado-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.obrigado-content .btn {
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Popup do Formulário */
.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.3s ease-out;
}

.popup-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.form-popup.success .popup-content i {
    color: var(--primary-color);
}

.form-popup.error .popup-content i {
    color: #dc3545;
}

.popup-content h3 {
    color: var(--gray-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.popup-content .btn {
    min-width: 120px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
