/* =============================== */
/* General Settings */
/* =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

:root {
    --black-color: black;
    --grey-color: rgba(0, 0, 0, 0.8);
    --white-color: white;
    --blue-color: rgb(0, 110, 255);
    --gradient-btn: linear-gradient(#ff0000, #ff4dd2);
    --scrollbar-color: rgb(219, 219, 219);
}

/* =============================== */
/* Header */
/* =============================== */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5rem;
    background-color: var(--grey-color);
    backdrop-filter: blur(8px);
    color: var(--white-color);
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo {
    color: var(--white-color);
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

li a {
    position: relative;
    color: var(--white-color);
    font-weight: 400;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, #ff4dd2, #ff0000);
}

li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: var(--white-color);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
    background: var(--gradient-btn);
}

.visit-btn:hover {  
    background: linear-gradient(to right, #ff4dd2, #ff0000);
    transform: scale(1.1);
}

#menu-icon {
    font-size: 2rem;
    display: none;
}
@media (max-width: 1024px) {
  header {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 5rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  #menu-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--white-color);
  }

  .visit-btn {
    display: none;
  }
}

@media (min-width: 769px) {
  #menu-icon {
    display: none;
  }
}


/* =============================== */
/* Section About */
/* =============================== */
section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.about img {
    width: 25vw;
    border-radius: 50%;
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.info-box h3 {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1 {
    font-size: 3rem;
    font-weight: 600;
}

.info-box span {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    color: black;
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--black-color);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s ease-in-out;
}

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

.socials {
    display: flex;
    gap: 2rem;
}

.socials i {
    color: var(--black-color);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials i:hover {
    transform: scale(1.1);
}
@media (max-width: 1024px) {
  .about .about-container {
    flex-direction: column;
    gap: 2.5rem;
  }
  .about img {
    width: 40vw;
    max-width: 420px;
  }
  @media (max-width: 768px) {
  .about .about-container {
    gap: 2rem;
    padding: 0 1rem;
  }
  .about img {
    width: 55vw;
    max-width: 360px;
  }
}
}

/* =============================== */
/* Section Experience */
/* =============================== */
.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.experience-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.experience img {
    width: 24vw;
    border-radius: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-card {
    border: 2px solid var(--black-color);
    border-radius: 3rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.grid-card:hover{
    transform: scale(1.02);
    background-color: var(--black-color);
    color: white;
}

.grid-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 500;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .experience-info { 
    gap: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .experience-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .experience img {
    width: 60vw;
    max-width: 520px;
  }
}


/* =============================== */
/* Scrollbar */
/* =============================== */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-btn);
}

/* =============================== */
/* Projects Section */
/* =============================== */
.projects {
  padding: 6rem 2rem;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--white-color);
  border: 2px solid var(--black-color);
  border-radius: 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 1rem;
  height: 550px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}

.project-card:hover {
  background-color: var(--black-color);
  color: var(--white-color);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.project-card p {
  flex-grow: 1; 
  font-size: 0.95rem;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.project-card:hover p{
  color: white;
}

.project-card .btn-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.project-card .btn {
  border: 2px solid var(--black-color);
  color: var(--black-color);
  padding: 0.5rem 1.2rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.2s;
  background: var(--white-color);
}

.project-card:hover .btn {
  border-color: var(--white-color);
  color: var(--black-color);
}

.project-card .btn:hover {
  background-color: var(--black-color);
  color: var(--white-color);
}

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

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    height: auto; 
    padding: 1.5rem;
  }

  .project-card img {
    height: 200px; 
  }
}



/* =============================== */
/* Section Contact */
/* =============================== */
.contact {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  width: 100%;
  max-width: 600px;
  background: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(1, 1, 1, 1);
  padding: 3rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #333;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff4dd2;
  margin: 0.5rem auto;
  border-radius: 10px;
}

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

/* =============================== */
/* Input Fields */
/* =============================== */
.input-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 12px 16px;
  transition: 0.3s ease;
  background: var(--white-color);
}

.input-box i {
  color: #666;
  font-size: 1.1rem;
  margin-right: 10px;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.input-box input,
.input-box textarea {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  background: transparent;
  resize: none;
}

.input-box.textarea {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.input-box.textarea i {
  margin-top: 6px;
}

.input-box input::placeholder,
.input-box textarea::placeholder {
  color: #999;
  font-size: 0.95rem;
}

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

/* =============================== */
/* Feedback Message Form */
/* =============================== */
.form-message {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
}

.form-message.success {
  background: rgba(108, 43, 217, 0.1);
  color: #6c2bd9;
  border: 2px solid #6c2bd9;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: #d93025;
  border: 2px solid #d93025;
}

@media (max-width: 1024px) {
  .contact {
    padding: 5rem 1.5rem;
  }
  .contact-container {
    padding: 2.4rem 1.8rem;
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 1rem;
  }
  .contact-container {
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
    width: 100%;
  }
  .input-box {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 1.2rem;
    max-width: 420px;
  }
  .input-box i {
    margin-right: 8px;
  }
  .btn {
    width: 100%;
  }
}
