/* ===========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   =========================================== */
* {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===========================================
   HEADER E NAVEGAÇÃO
   =========================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  background-color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  position: fixed;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0, 189, 210, 0.1);
}

header .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00BDD2;
  margin: 0;
}

header nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 2rem;
}

header nav ul li a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

header nav ul li a:hover {
  color: #00BDD2;
  background: rgba(0, 189, 210, 0.05);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #00BDD2;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================================
   SIDEBAR E OVERLAY
   =========================================== */
#sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.open {
  right: 0;
}

#sidebar .sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 189, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sidebar .sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00BDD2;
  margin: 0;
}

#sidebar .sidebar-header button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 189, 210, 0.1);
  color: #00BDD2;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

#sidebar .sidebar-header button:hover {
  background: #00BDD2;
  color: white;
  transform: scale(1.05);
}

#sidebar ul {
  list-style: none;
  padding: 2rem;
  margin: 0;
  flex: 1;
}

#sidebar ul li {
  margin-bottom: 0;
}

#sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

#sidebar ul li a:hover {
  background: rgba(0, 189, 210, 0.05);
  color: #00BDD2;
  transform: translateX(8px);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: 2rem;
  border-top: 1px solid rgba(0, 189, 210, 0.1);
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 1500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#overlay.show {
  display: block;
}

/* ===========================================
   SEÇÕES GERAIS
   =========================================== */
section {
  padding: 2rem 3rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section:nth-child(2n) {
  padding: 2rem 3rem 2rem 3rem;
  background-color: rgba(229, 229, 229, 0.201);
}

section h2 {
  font-family: var(--font-family-semi-bold);
  margin-bottom: 20px;
  color: #00BDD2;
}

/* ===========================================
   SEÇÃO HOME
   =========================================== */
#home {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

#home .home-title {
  align-self: center;
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

#home .home-title h1,
#home .home-title h2 {
  margin: 0;
  display: block;
  font-family: var(--font-family-semi-bold);
  text-transform: uppercase;
  line-height: 1;
}

#home .home-title h1 {
  font-size: 60px;
}

#home .home-title h2 {
  font-size: 52px;
  color: #00BDD2;
}

#home figure {
  display: flex;
  align-self: flex-end;
  z-index: 2;
  width: 40%;
  height: 65vh;
}

#home figure img {
  display: flex;
  align-self: flex-end;
  width: 100%;
  height: auto;
}

#particles {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

/* ===========================================
   SEÇÃO ABOUT
   =========================================== */
#about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#about .about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#about .about-content figure {
  display: none;
}

#about .about-content h2 {
  font-size: 48px;
  color: #00BDD2;
}

#about .about-content .about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.2rem;
  color: #333;
}

#about figure {
  flex: 1;
  display: flex;
  justify-content: center;
}

#about figure img {
  max-width: 100%;
  height: auto;
}

/* ===========================================
   SEÇÕES DE CONTEÚDO (Experience, Education, Projects, Certifications)
   =========================================== */
#experience h2,
#education h2,
#projects h2,
#certifications h2 {
  font-size: 48px;
}

.experience-grid,
.education-grid,
.projects-grid,
.certification-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* Items Base */
.experience-item,
.education-item,
.projects-item,
.certification-item {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact Cards */
.experience-compact,
.education-compact,
.project-compact,
.certification-compact {
  background: white;
  border-radius: 12px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-compact:hover,
.education-compact:hover,
.project-compact:hover,
.certification-compact:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.experience-compact.expanded,
.education-compact.expanded,
.project-compact.expanded,
.certification-compact.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Compact Content */
.compact-content {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.compact-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

/* Info Components */
.company-info,
.institution-info,
.project-info,
.certification-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-icon,
.institution-icon,
.project-icon,
.certification-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.company-details h3,
.institution-details h3,
.project-details h3,
.certification-details h3 {
  font-family: var(--font-family-semi-bold);
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.company-details .role,
.institution-details .role,
.project-details .role,
.certification-details .role {
  font-size: 0.9rem;
  font-weight: 500;
  color: #00BDD2;
}

.period-info,
.location-info,
.hiperlink-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
}

/* Expand Icon */
.expand-icon {
  width: 20px;
  height: 20px;
  color: #00BDD2;
  transition: transform 0.3s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-icon.rotated {
  transform: rotate(90deg);
}

/* Expanded Content */
.experience-expanded,
.education-expanded,
.project-expanded,
.certification-expanded {
  background: white;
  border: 2px solid;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.experience-expanded.open,
.education-expanded.open,
.project-expanded.open,
.certification-expanded.open {
  max-height: 2250px;
  opacity: 1;
}

.expanded-content {
  padding: 0 24px 24px;
}

.experience-image,
.education-image,
.project-image,
.certification-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.description-section h4,
.skills-section h4 {
  font-family: var(--font-family-semi-bold);
  font-size: 1.25rem;
  color: #00BDD2;
  margin-bottom: 16px;
}

.description-text {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid;
}

.duration-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.duration-info p:first-child {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.duration-info p:last-child {
  font-size: 1.1rem;
  font-weight: bold;
}

.duration-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.close-button-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.close-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #00BDD2;
  background: white;
  color: #00BDD2;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: #00BDD2;
  color: white;
}

/* ===========================================
   CLASSES DE CORES
   =========================================== */

/* Color Red */
.color-red {
  border-color: #ef4444;
}

.color-red .duration-icon {
  background-color: #ef4444;
}

.color-red .skill-tag {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: #ef4444;
}

.color-red .duration-card {
  background-color: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
}

.color-red .duration-info p:last-child {
  color: #ef4444;
}

/* Color Yellow */
.color-yellow {
  border-color: #eab308;
}

.color-yellow .duration-icon {
  background-color: #eab308;
}

.color-yellow .skill-tag {
  background-color: rgba(234, 179, 8, 0.1);
  color: #a16207;
  border-color: #eab308;
}

.color-yellow .duration-card {
  background-color: rgba(234, 179, 8, 0.05);
  border-color: #eab308;
}

.color-yellow .duration-info p:last-child {
  color: #eab308;
}

/* Color Dark Blue */
.color-darkblue {
  border-color: #1e3a8a;
}

.color-darkblue .duration-icon {
  background-color: #1e3a8a;
}

.color-darkblue .skill-tag {
  background-color: rgba(30, 58, 138, 0.1);
  color: #1e40af;
  border-color: #1e3a8a;
}

.color-darkblue .duration-card {
  background-color: rgba(30, 58, 138, 0.05);
  border-color: #1e3a8a;
}

.color-darkblue .duration-info p:last-child {
  color: #1e3a8a;
}

/* Color Blue */
.color-blue {
  border-color: #00BDD2;
}

.color-blue .duration-icon {
  background-color: #00BDD2;
}

.color-blue .skill-tag {
  background-color: rgba(0, 189, 210, 0.1);
  color: #007B8C;
  border-color: #00BDD2;
}

.color-blue .duration-card {
  background-color: rgba(0, 189, 210, 0.05);
  border-color: #00BDD2;
}

.color-blue .duration-info p:last-child {
  color: #00BDD2;
}

/* Color Green */
.color-green {
  border-color: #22c55e;
}

.color-green .duration-icon {
  background-color: #22c55e;
}

.color-green .skill-tag {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: #22c55e;
}

.color-green .duration-card {
  background-color: rgba(34, 197, 94, 0.05);
  border-color: #22c55e;
}

.color-green .duration-info p:last-child {
  color: #22c55e;
}

/* Color Purple */
.color-purple {
  border-color: #a855f7;
}

.color-purple .duration-icon {
  background-color: #a855f7;
}

.color-purple .skill-tag {
  background-color: rgba(168, 85, 247, 0.1);
  color: #9333ea;
  border-color: #a855f7;
}

.color-purple .duration-card {
  background-color: rgba(168, 85, 247, 0.05);
  border-color: #a855f7;
}

.color-purple .duration-info p:last-child {
  color: #a855f7;
}

/* Color Orange */
.color-orange {
  border-color: #f97316;
}

.color-orange .duration-icon {
  background-color: #f97316;
}

.color-orange .skill-tag {
  background-color: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border-color: #f97316;
}

.color-orange .duration-card {
  background-color: rgba(249, 115, 22, 0.05);
  border-color: #f97316;
}

.color-orange .duration-info p:last-child {
  color: #f97316;
}

/* Color Gradient France */
.color-gradient-france {
  border-color: #1e3a8a;
}

.color-gradient-france .duration-icon {
  background: linear-gradient(to right, #1e3a8a, #ffffff, #ef4444);
}

.color-gradient-france .skill-tag {
  background: linear-gradient(to right, rgba(30, 58, 138, 0.1), rgba(255, 255, 255, 0.4), rgba(239, 68, 68, 0.1));
  color: #1e3a8a;
  border-color: #ef4444;
}

.color-gradient-france .duration-card {
  background: linear-gradient(to right, rgba(30, 58, 138, 0.05), rgba(255, 255, 255, 0.5), rgba(239, 68, 68, 0.05));
  border-color: #1e3a8a;
}

.color-gradient-france .duration-info p:last-child {
  background: linear-gradient(to right, #1e3a8a, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Color Pink Red */
.color-pinkred {
  border-color: #f31656;
}

.color-pinkred .duration-icon,
.color-pinkred .project-icon {
  background-color: #f31656;
}

.color-pinkred .skill-tag {
  background-color: rgba(243, 22, 86, 0.1);
  color: #b31240;
  border-color: #f31656;
}

.color-pinkred .duration-card {
  background-color: rgba(243, 22, 86, 0.05);
  border-color: #f31656;
}

.color-pinkred .duration-info p:last-child {
  color: #f31656;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background: #f9f9f9;
  border-top: 2px solid #00BDD2;
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s, filter 0.3s;
}

.social-links a img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(0, 189, 210, 0.5));
}

.footer-copy {
  color: #666;
  font-size: 13px;
}

.back-to-top {
  color: #00BDD2;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #00BDD2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #00BDD2;
  color: #fff;
  border-color: #007B8C;
}