@import url("https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap");

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

:root {
  --secondary-color: #f5e0a7;
  --amarelo-claro: #ece9e5;
  --roxo-claro: #c6c2cd;
  --btn: #edb7b3;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #2d2d2d;
  --text-color: #1e2130;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Alan Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ece9e5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 2rem 0;
  border-bottom: 1px solid var(--text-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Lobster Two", sans-serif;
  /* text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.42); */
  background-clip: text;
}

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

.nav-link {
  font-family: "Lobster Two", sans-serif;
  text-decoration: none;
  color: var(--text-color);
  /* text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.42); */
  font-weight: 500;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--btn);
  transition: var(--transition);
}

/* .nav-link:hover { */
/* color: var(--btn); */
/* } */

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 80px 0;
  background: #c6c2cd;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  /* border-radius: 50%;
  border: 2px solid var(--text-color); */
  transition: var(--transition);
}

.hero-image img:hover {
  transform: translateY(-10px);
}

.hero-title {
  font-family: "Lobster Two", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-color);
  /* text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.42); */
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(250, 167, 181, 0.4);
}

.btn-secondary {
  background: var(--amarelo-claro);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

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

/* Sections */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border-bottom: 1px solid var(--text-color);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-family: "Lobster Two", sans-serif;
}

/* About Section */
.about {
  background: var(--amarelo-claro);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Projects Section */
.projects {
  background-color: var(--roxo-claro);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--amarelo-claro);
  border-radius: 15px;
  border: 1px solid var(--text-color);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(250, 167, 181, 0.3);
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-info p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.project-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.btn-code {
  background: var(--btn);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-code:hover {
  background: #eaa49f;
  transform: translateY(-2px);
}

.btn-demo {
  background: var(--white);
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-demo:hover {
  background: var(--roxo-claro);
  /* color: var(--white); */
  transform: translateY(-2px);
}

/* Skills Section */
.skills {
  background: var(--amarelo-claro);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  border: 1px dashed var(--text-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(80, 80, 166, 0.3);
}

.skill-icon {
  width: 60px;
  height: 60px;
  color: var(--btn);
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

.skill-item span {
  font-weight: 600;
  color: var(--dark-gray);
}

/* Contact Section */
.contact {
  text-align: center;
  background-color: var(--roxo-claro);
}

.contact-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

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

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--btn), var(--amarelo-claro));
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(250, 167, 181, 0.4);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  background: var(--amarelo-claro);
  color: var(--text-color);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255, 255, 255, 0.1); */
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition);
}

.footer-social a:hover {
  background: #1e21305b;
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--amarelo-claro);
  padding: 3rem;
  border-radius: 20px;
  border: 2px solid var(--text-color);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-content h3 {
  font-size: 2rem;
  font-family: "Lobster Two", sans-serif;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-info {
  text-align: left;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-email {
  display: block;
  font-size: 1.1rem;
  color: var(--text-color);
  text-decoration: none;
  text-shadow: 1px 1px 2px #fff;
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.contact-email:hover {
  text-shadow: 1px 1px 2px #1e213076;

  /* font-weight: bold; */
}

.contact-whatsapp-label {
  margin-top: 1.5rem;
}

.contact-whatsapp {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--btn);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid var(--text-color);
  margin-top: 0.5rem;
  transition: var(--transition);
}

.contact-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(250, 167, 181, 0.4);
  background-color: #e38d86;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-list.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .modal-content {
    padding: 2rem;
  }
}
