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

u,
a {
  text-decoration: none;
}

.social-link i {
  font-size: 1.5rem;   /* aumenta o ícone */
  color: white;        /* garante que fique visível */
}

/* === Color Variables === */
:root {
  --primary: #EA0465;
  --secondary: #092B79;
  --bg-light: #FEF1F9;
  --white: #ffffff;
  /* escurecemos o cinza para melhor contraste */
  --gray: #444444;
  --light-gray: #f5f5f5;
  --dark: #222222;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(234, 4, 101, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

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

.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Content */
main {
  margin-top: 20px;
}

.section {
  display: none;
  min-height: calc(100vh - 80px);
  padding: 4rem 2rem;
}

.section.active {
  display: block;
}

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

/* Hero Section */
.hero {
  padding: 1rem 0 1rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.1;
}

.hero .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-photo {
  width: 280px;
  height: 350px;
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo::before,
.hero-photo::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.hero-photo::before {
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary);
}

.hero-photo::after {
  bottom: -15px;
  left: -15px;
  width: 60px;
  height: 60px;
  background: var(--secondary);
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.248);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-8px);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1);
  box-shadow: 4px 4px 24px rgba(0, 0, 0, 0.15);
}

 .project-image {
 background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.2rem;
  font-weight: 600;          
   width: 100%;
   height: 250px;
   display: flex;
   align-items: center;
   justify-content: center;
overflow: hidden;          
}
.project-image img {
  width: 100%;         /* cobre toda a largura do container */
  height: 100%;        /* cobre toda a altura do container */
  object-fit: cover;   /* mantém o recorte proporcional, sem distorcer */
}


.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

.tag {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tag.secondary {
  background: var(--secondary);
}

/* Work Section */
.work-header {
  text-align: center;
  margin-bottom: 3rem;
}

.work-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}

/* Project Detail */
.project-detail {
  display: none;
  padding: 4rem 0;
}

.project-detail.active {
  display: block;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-detail-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Project Info */
.project-info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.project-info-row:last-child {
  border-bottom: none;
}

.project-info-label {
  font-weight: 600;
  color: var(--secondary);
}

/* Project Description Text */
.project-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--dark);
  margin: 2rem 0;
}

.project-description h3 {
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.section h2 {
  color: var(--secondary);
   margin-top: 2rem;
  margin-bottom: 1rem;
}


/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.about-image {
  width: 200px;      /* controla o crop */
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
}

.about-image img {
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark);
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

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

.social-link {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Resume Section */
.resume-content {
  text-align: center;
  padding: 6rem 0;
}

.resume-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark);
}

.resume-content p {
  font-size: 1.125rem;
  color: var(--dark);
  margin-bottom: 3rem;
}

.download-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

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

  .mobile-toggle {
    display: flex;
  }

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

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

  .hero-text {
    order: 2;
  }

  .hero-photo {
    width: 200px;
    height: 250px;
    margin: 0 auto;
    order: 1;
  }

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

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

  .project-info-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Seções coloridas === */
.colored-section {
  padding: 4rem 0;
}
.colored-section.primary {
  background: var(--primary);
  color: white;
}
.colored-section.secondary {
  background: var(--secondary);
  color: white;
}
.colored-section.light {
  background: var(--bg-light);
  color: var(--dark);
}

/* Tipografia interna para seções coloridas */
.colored-section h2,
.colored-section h3 {
  margin-bottom: 1rem;
}
.colored-section p.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Grid para imagem + texto */
.image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .image-text {
    grid-template-columns: 1fr;
  }
}

/* Caixa de destaque para algumas frases*/
.highlight-box {
  background: var(--secondary);    /* azul escuro */
  color: var(--white);             /* fonte branca */
  padding: 1rem 1.5rem;            /* espaço interno */
  border-radius: 8px;              /* cantos arredondados */
  margin: 2rem 0;                  /* afasta do restante do texto */
  font-size: 1.125rem;             /* ligeiramente maior */
  line-height: 1.6;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--primary);
  background: rgba(234, 4, 101, 0.15);  /* rosa clarinho */
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;                 /* bem redondo */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.back-btn:hover {
  background-color: var(--primary);     /* rosa forte */
  color: white;
}

.back-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
