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

:root {
    --primary-color: #00d4ff;
    --primary-hover: #00b8e6;
    --secondary-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: #1a1a1a;
    --border-color: #333;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================
   ANIMAÇÕES
============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ============================================================
   HEADER
============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-title:hover {
    transform: scale(1.05);
}

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

.nav-links ul li a {
    cursor: pointer;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.nav-links ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links ul li a:hover {
    color: var(--primary-color);
}

.nav-links ul li a:hover::after {
    width: 100%;
}

/* Menu Hamburguer */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

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

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Sidebar Mobile */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 2rem;
}

.mobile-sidebar.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar ul {
    list-style: none;
    margin-top: 4rem;
}

.mobile-sidebar ul li {
    margin-bottom: 2rem;
}

.mobile-sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.mobile-sidebar ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   MAIN SECTION
============================================================ */
.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 80px;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    background: linear-gradient(135deg, var(--text-color), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    font-weight: 600;
}

.description {
    max-width: 700px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.buttons-container {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about {
    padding: 5rem 5%;
    animation: fadeInUp 0.8s ease;
}

.about h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.about > div {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--primary-color);
    animation: scaleIn 0.8s ease;
}

.about h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* ============================================================
   EXPERIENCE SECTION
============================================================ */
.experience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
    background: var(--card-bg);
}

.experience > div {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.experience > div:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.experience h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================================
   FORMATION AND TECHNICAL SKILLS
============================================================ */
.formation-technical-skills {
    padding: 5rem 5%;
}

.formation-technical-skills > h3 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease;
}

.formation-technical-skills > div {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Formation */
.formation {
    animation: slideInLeft 0.8s ease;
}

.formation h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.formation > div {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.formation > div:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.formation > div > div:first-child {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.formation h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.formation p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Technologies */
.tecnologies {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    animation: slideInRight 0.8s ease;
    max-width: 600px;
    margin: 0 auto;
}

.tecnologies > div {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.6rem;
}

.tecnologies > div i {
    font-size: 3rem;
    color: var(--primary-color);
}

.tecnologies > div:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
.projects {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.projects h3 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease;
}

.projects > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects > div > div {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: scaleIn 0.8s ease;
    display: flex;
    flex-direction: column;
}

.projects > div > div:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.projects img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.project-icon-container {
    width: 100%;
    height: 230px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-container i,
.project-icon-container svg {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
}

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

.projects h5 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.projects p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.projects a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.projects a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.contact h3 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.contact textarea {
    min-height: 150px;
    resize: vertical;
}

.contact button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background: var(--card-bg);
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 1s ease;
}

footer > div:first-child {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

footer h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

footer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

.footer-social a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-social a i,
.footer-social a svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    display: block;
}

.footer-social a {
    color: var(--text-secondary);
}

.footer-social a svg {
    stroke: var(--text-secondary);
    fill: none;
}

.footer-social a svg * {
    stroke: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i,
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.whatsapp-float {
    animation:
        fadeIn 1s ease,
        pulse 2s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .tecnologies {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .formation-technical-skills > div {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tecnologies {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .buttons-container {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .projects > div {
        grid-template-columns: repeat(2, 1fr);
    }

    .tecnologies {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 580px) {
    .projects > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tecnologies {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        padding: 1rem 4%;
    }

    .logo-title {
        font-size: 1.2rem;
    }
}
