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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --dark-color: #0f172a;
    --darker-color: #0a0f1c;
    --light-color: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.navegation {
    position: fixed;
    background-color: rgba(15, 23, 42, 0.8);
    width: 100%;
    z-index: 100;
    top: 0;
    padding: 0.8rem;
}

.menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
}


.menu-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.menu-link:hover::after {
    width: 100%;
    transition: width 0.5s ease;
}

.photo-profile {
    width: 330px;
    height: 330px;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    border: 4px solid var(--glass);
    border-radius: 50%;
    animation: flow 5s ease-in-out infinite;
    object-fit: cover;
}

.header {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.myname {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 10px;
}

.header-sub-title {
    font-size: 1.5rem;
    color: var(--light-color);
}

.about {
    padding: 6rem 2rem;
}

.about-title {
    font-size: 3rem;
    color: var(--light-color);
    text-align: center;
    margin-bottom: 20px;
}

.about-box {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--glass);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.about-text {
    text-align: center;
    font-size: 1.2rem;
}

.project {
    padding: 6rem 2rem;
}

.project-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.project-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap : 2rem;
    max-width: 1200px;
    margin: 0 auto;

}

.info-project {
    margin-bottom: 5px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.box-text-project {
    padding: 1.5rem;
}

.project-card:hover {
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    transform: translateY(-10px) scale(1.03);
}
.project-description {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25rem;
}

.contact {
    padding: 6rem 2rem;
}

.forms-contact {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--glass);
    border-radius: 16px;
}

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

.btn-submit {
    color: var(--light-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.5s ease;
}



.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.text-form{
    padding: 1rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--light-color);
    border: 1px solid var(--glass);
    outline: none;
}

.text-form:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--light-color);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background: radial-gradient(circle at 10% 20%, var(--primary-color) 0%, transparent 20%), radial-gradient(circle at 90% 80%, var(--secondary-color) 0%, transparent 20%), var(--darker-color);
}

@keyframes flow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(226, 232, 240, 0.8); 
  margin-top: -30px;
  margin-bottom: 30px;
  font-weight: 400;          
}

.social-links {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  color: var(--light-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.social-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s ease;
}

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

.social-link:hover::after {
  width: 100%;
}
.social-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-social {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  color: white;
}

.btn-social.linkedin {
  background: #0a66c2;
}

.btn-social.github {
  background: #24292f;
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.skills { padding: 6rem 2rem; }

.skills-box{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); /* aumentei o min */
  gap: 1.5rem;
  max-width: 1100px; /* um pouco mais largo */
  margin: 0 auto;
}

.skill-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* deixa o conteúdo alinhado em cima */
  padding: 1.6rem;
  min-height: 200px;          /* altura mínima maior */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
  cursor: default;
}

.skill-card:hover{
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.2);
}

.skill-icon{
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.skill-name{
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-color);
  text-align: center;
}
.skill-desc {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.2rem;
}
