:root {
    --primary: #3700da;
    --primary-dark: #e91e2c;
    --dark: #000000;
    --light: #f8fafc;
    --gray: #585858;
    --background: #f1f5f9;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
}

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

.badge {
    background: linear-gradient(90deg, #3700da, #e91e2c);
    color: #fff;
    font-size: 0.75em;
    border-radius: 5px;
    padding: 2px 10px;
    margin-left: 8px;
    letter-spacing: 1px;
    font-weight:bold;
    vertical-align: middle;
}


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

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3700da, #00000000);
    z-index: -1;
}

header .text--gradient {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(left, #3700da, #00000000); /*left para ser da esquerda para direita*/
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    animation: animate 100s linear infinite;
}

@keyframes animate {
    to {
        background-position-x: -1000px;
    }
}

/* Animação de flutuação */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 20px;
    object-fit: cover;     /* ✨ Garante proporção sem esticar */
    object-position: center; /* ✨ Centraliza o recorte */
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    color: #e91e2c;
    cursor: cell;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
    
}

.nav-links a i {
    margin-right: 6px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #e91e2c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
        transform: scaleX(1);
    }
    
.nav-links a:hover {
    color: var(--primary);
}

/* botão de menu escondido no desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #b0d8ff 0%, #1e3a8a 100%);
    
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--dark);
    animation: pulse-scale 2s infinite;

}
.hero h1 i {
    margin-right: 5px;
}
@keyframes pulse-scale {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.7; }
100% { transform: scale(1); opacity: 1; }
}


.anima-text {
background: linear-gradient(to right, #3700da, #e91e2c); 
background-clip: text;
-webkit-background-clip: text;
color: transparent;
font-size: 1.8rem;
font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    color: #383838;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

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

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

/* About Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem; 
    color: rgb(0, 0, 0);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
   background: linear-gradient(to right, #3700da, #e91e2c); 
   border-radius: 330px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.skills-container:hover {
    transform:translateY(3%);
    cursor:cell;
    transition:1s;
}

.skill-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.skill-card:hover {
    background-color: rgb(183, 183, 183);
}

.skill-card h3 {
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-card h3 i {
    color: var(--primary);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 8px;
    background-color: #8396ae;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3700da, #e91e2c);;
    border-radius: 5px;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto; 
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}
.timeline-content:hover {
      transform:translateY(3%);
    cursor:cell;
    transition:1s;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 20px;
    color: var(--gray);
}

.timeline-content ul li {
    margin-bottom: 5px;
}

.timeline-date {
    position: absolute;
    width: 120px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-weight: 500;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -150px;
    top: 20px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -150px;
    top: 20px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 30px;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.project-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    background-color: #e2e8f0;
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-text h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--gray);
    text-decoration: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
}

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

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* WhatsApp */
.whatsapp__content {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9;
}
.icon {
    transition: transform 0.5s ease;
}
.icon:active {
    transform: rotate(360deg); /* Rotação completa */
}

.pulsar {
    background-color: #25d366;
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.pulsar svg {
  fill: #fff; 
  width: 5rem;
}

.pulsar::before, .pulsar::after {
    content: "";
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 2px solid rgba(37, 211, 102);
    border-radius: 50%;
    animation: animar 1.5s linear infinite;
    opacity: 0;
    z-index: -1;
}

.pulsar::after {
    animation-delay: 0.75s;
}

@keyframes animar {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.notification {
    background-color: red;
    width: 1rem;
    height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    position: absolute;
    top: -5px;
    right: 0px;
}

.notification span {
    color: #fff;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 70px;
        right: auto;
        top: -25px;
    }
    
    .timeline-item::after {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
            position: absolute;
            top: 80px;
            right: 20px;
            background: white;
            flex-direction: column;
            align-items: flex-start;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            display: none;
        }
        .nav-links.active {
            display: flex;
        }    
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}


@media (max-width: 576px) {

    .nav-links {
        width: 90%;
        right:5%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    .section-title {
        padding-bottom: 50px;
    }
    .timeline-item {
        margin-top: 30px;
    }
}