/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1050 !important;
}

.navbar__logo {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

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

.titulo_navbar {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.titulo_navbar::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.3s ease;
}

.titulo_navbar:hover::after {
  width: 100%;
}

/* Espaçamentos */
.espaçohome {
  height: 100px;
}

.espaçoproj {
  height: 100px;
}

.min_width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Títulos */
.titulo {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 3rem 0;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.texto1 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.texto1proj {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.rem;
}

.texto2 {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.texto_thin {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Home - Portfolio */
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  animation: fadeIn 1s ease-out;
}

/* Removido background, sombra e padding do card principal */
.page_content1 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: slideInUp 0.8s ease-out;
}

.minha_foto {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.minha_foto:hover {
  transform: scale(1.05) !important;
}

.redes {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.logo {
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  filter: grayscale(100%) brightness(0.8);
  border-radius: 12px;
}

.logo:hover {
  filter: grayscale(0%) brightness(1);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Projetos - Cards compactos em grid */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.proj_content {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out;
}

.proj_content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.5);
}

.img_proj {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.proj_content:hover .img_proj {
  transform: scale(1.02);
}

.proj_content ul {
  list-style: none;
  padding: 0;
}

.proj_content ul li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.proj_content ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}

.proj_content a {
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.proj_content a:hover {
  color: #6366f1;
  text-decoration: underline;
}

/* Sobre Mim - Cards */
.proj_content2 {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out;
}

.proj_content2:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

.proj_content2 ul {
  list-style: none;
  padding: 0;
}

.proj_content2 ul li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.proj_content2 ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Tecnologias - Grid organizado com cards */
.tecs_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tecs {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  filter: grayscale(80%) brightness(0.9);
}

.tecs:hover {
  transform: translateY(-8px) scale(1.05);
  filter: grayscale(0%) brightness(1);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
}

/* Hero section for Sobre Mim page */
.sobre-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.sobre-hero-foto {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.sobre-hero-content h1 {
  margin-bottom: 0.5rem;
}

.sobre-hero-content h2 {
  color: #06b6d4;
  margin-bottom: 1rem;
}

/* Compact preview cards for academic projects */
.projetos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.projeto-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
}

.projeto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.5);
}

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

.projeto-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.projeto-card-content {
  padding: 1.5rem;
}

.projeto-card-semestre {
  font-size: 0.9rem;
  color: #06b6d4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.projeto-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.projeto-card-cta {
  font-size: 0.95rem;
  color: #6366f1;
  font-weight: 600;
  margin: 0;
}

/* Modal styles */
.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.project-modal-content {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  margin: 3% auto;
  padding: 0;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.4s ease;
  position: relative;
}

.project-modal-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  font-size: 2.5rem;
  font-weight: 300;
  color: #f8fafc;
  cursor: pointer;
  z-index: 10;
  padding: 1rem 1.5rem;
  line-height: 1;
  transition: all 0.3s ease;
}

.project-modal-close:hover {
  color: #6366f1;
  transform: scale(1.1);
}

.project-modal-body {
  padding: 2rem;
  padding-top: 0;
}

.project-modal-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.project-modal-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.project-modal-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-modal-section h3 {
  color: #06b6d4;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-modal-section p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.05rem;
}

.project-modal-link {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.project-modal-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Responsividade */
@media (max-width: 968px) {
  .page_content1 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .minha_foto {
    order: -1;
    margin: 0 auto;
  }

  .redes {
    justify-content: center;
  }

  .titulo {
    font-size: 2.5rem;
  }

  .texto1 {
    font-size: 2rem;
  }

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

  .tecs_list {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
  }

  .tecs {
    height: 80px;
    padding: 0.75rem;
  }

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

  .sobre-hero-foto {
    margin: 0 auto;
  }

  .projetos-preview-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-content {
    width: 95%;
    margin: 5% auto;
  }
}

@media (max-width: 576px) {
  .min_width {
    padding: 0 1rem;
  }

  .titulo {
    font-size: 2rem;
  }

  .texto1 {
    font-size: 1.5rem;
  }

  .texto1proj {
    font-size: 1.4rem;
  }

  .texto2,
  .texto_thin {
    font-size: 1rem;
  }

  .page_content1,
  .proj_content,
  .proj_content2 {
    padding: 1.5rem;
  }

  .project-modal-body {
    padding: 1.5rem;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-close {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
}
