/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16173e 50%, #0b072e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /*background: rgba(26, 26, 46, 0.95);*/
    backdrop-filter: blur(10px);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
}

.logo-first {
    color: #ffffff;
}

.logo-last {
    color: #e74c3c;
}

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

.nav-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a:hover {
    color: #e74c3c;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    /*
    display:flex;
    justify-content: start;
    min-height: 100vh;
    align-items: center;
    position: relative;
    padding-top: 80px;
    */

    height: 100vh;
    display: block;
    align-items: center;
    justify-content: flex-start;
    padding: 42vh 4vw;

    text-align: left;
    position: relative;


}

.hero-content {

    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.highlight-name {
    position: relative;
    display: inline-block; 
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.highlight-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
    animation: drawLine 1.5s ease forwards;
    animation-delay: 1.5s;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.highlight-name2 {
    position: relative;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.hero-description {
    font-size: 2.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.highlight-problems {
    position: relative;
    color: #ffffff;
    font-weight: 600;
}

.highlight-problems::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 3px solid #9b59b6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: drawCircle 1.5s ease forwards;
    animation-delay: 2s;
}

.highlight-solutions {
    position: relative;
    color: #ffffff;
    font-weight: 600;
}

.highlight-solutions::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
    animation: drawLine 1.5s ease forwards;
    animation-delay: 2.5s;
}

/* Sections */
section {
    height:100%;
    padding: 6rem 0;
    position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  color: #ffffff;
}

/* Estado inicial da linha (sem animação) */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60px;
  height: 4px;
  background: #e74c3c;
  border-radius: 2px;
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

/* Ativa a animação quando a classe 'animate' for adicionada via JS */
.section-title.animate::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* About Section */
.about {
    background: rgba(3, 2, 24, 0.1);
    backdrop-filter: blur(10px);
    max-width: 8000px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.floating-image {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e74c3c;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #e74c3c;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 16/10;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 2, 24, 0.1);;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-category {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
}

.portfolio-actions {
    text-align: center;
    margin-top: 2rem;
}

.resume-actions {
    text-align: left;
    margin-top: 2rem;
}

/* Motion Reel Section */


.video-container {
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(3, 2, 24, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(231, 76, 60, 0.3));
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(231, 76, 60, 0.5));
}

.play-button {
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(16/9);
}

/* Contact Section */
.contact {
    background: rgba(3, 2, 24, 0.1);;
    backdrop-filter: blur(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #ffffff;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

#resume {
    display: inline-block; /* importante para seguir alinhamento do pai */
    margin: 0; /* remove margem automática */
    padding: 1rem 2rem;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

#resume:hover {
    background: #e74c3c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}


/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes drawCircle {
    from {
        width: 0;
        height: 0;
        border-width: 0;
    }
    to {
        width: calc(100% + 20px);
        height: calc(100% + 20px);
        border-width: 2px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
      .nav-list.show {
    display: flex; /* Aqui é onde o menu aparece! */
  }
}


/* Experience Section */
.experience {
    background: rgba(3, 2, 24, 0.2);
    backdrop-filter: blur(10px);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.experience-skills h3,
.experience-timeline h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #e74c3c;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e74c3c, #3c079e);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-date {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-content .company {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive para Experience */
@media (max-width: 768px) {
    .experience-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .resume-actions {
        text-align: center;
    }

    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

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

    #resume {
        display: inline-block;
        margin: 0 auto;
    }
}
/* Mostrar somente no desktop */
.desktop-only {
  display: inline;
}

/* Esconder no mobile */
.mobile-only {
  display: none;
}

/* Responsivo */
@media (max-width: 480px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .mobile-only::after {
    /* Animação mobile (pode ser diferente se quiser) */
    animation: drawLineMobile 1.5s ease forwards;
    animation-delay: 1.5s;
  }
}
/* Animações */
@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes drawLineMobile {
  0% { width: 0; }
  50% { width: 50%; }
  100% { width: 0; }
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
}

.logo-first {
    color: #ffffff;
}

.logo-last {
    color: #e74c3c;
}

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

/* Links padrão desktop */
.nav-list li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list li a:hover {
    color: #e74c3c;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

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

/* Menu Toggle (hamburger) - só aparece no mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001; /* acima do menu */
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Transformação para X quando ativado */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    /* Esconder menu normal */
    .nav-list {
        display: none;
    }
    
    /* Mostrar menu toggle */
    .menu-toggle {
        display: flex;
    }
    
    /* Quando menu estiver aberto */
    .nav-list.show {
        display: flex !important;
        position: fixed;
        inset: 0; /* top, right, bottom, left: 0 */
        width: 100vw;
        height: 100vh;
        backdrop-filter: blur(50px);
        background: rgba(9, 9, 24, 0.6);
        flex-direction: column;
        justify-content: center;  /* centraliza verticalmente */
        align-items: center;      /* centraliza horizontalmente */
        gap: 2rem;
        z-index: 10000;
        margin: 0;
        padding: 0;
    }
    /* Coloque o header atrás do menu quando o menu estiver aberto */
.nav-list.show ~ .header {
  z-index: 500; /* menor que o menu */
  opacity: 0;   /* ou display: none; se preferir */
  pointer-events: none; /* evita clique no header atrás */
  transition: opacity 0.3s ease;
}
    
    /* Itens do menu no mobile */
    .nav-list li {
        width: 80%;
        border-bottom: 1px solid rgba(255 255 255 / 0.3);
        text-align: center;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        color: white;
        font-size: 1.8rem;
        font-weight: 600;
        text-decoration: none;
        padding: 1rem 0;
        display: block;
        transition: color 0.3s;
    }

    .nav-list li a:hover {
        color: #ddd;
    }
}

/* DESKTOP - garantir que menu toggle está escondido */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

