:root {
  --primary: #EF43A2;
  --bg: #000000;
  --text: #ffffff;
  --card: #ffffff;
  --card-text: #000000;
  --border: #e5e5e5;
  --span: #aaaaaa;
}

body.light {
  --bg: #ffffff;
  --text: #000000;
  --card: #000000;
  --card-text: #ffffff;
  --border: #e5e5e5;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  background: var(--primary);
  color: white;
  padding: 10px;
  z-index: 9999;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.9);
}

body.light::-webkit-scrollbar-track {
  background-color: #ffffff !important;
}

body.light::-webkit-scrollbar-thumb {
  border-color: #ffffff !important;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

body.light::after {
  background: rgba(255, 255, 255, 0.3);
}

body:has(.menu.open)::after {
  opacity: 1;
  visibility: visible;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
}

.top-bar h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.search-container {
  position: relative;
  width: 250px;
  transition: width 0.3s ease;
}

.search-container:focus-within {
  width: 280px;
}

#searchInput {
  width: 100%;
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid var(--primary);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

#searchInput:focus {
  box-shadow: 0 0 10px rgba(239, 67, 162, 0.3);
}

.suggestions-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--primary);
  border-radius: 12px;
  z-index: 2000;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.suggestion-item {
  padding: 12px 15px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: var(--primary);
  color: #fff;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1101;
}

.menu {
  position: fixed;
  top: 20px;
  right: 0;
  width: 360px;
  height: calc(100vh - 40px);
  background: var(--bg);
  padding: 40px 30px;
  border-radius: 24px 0 0 24px;
  box-shadow: -20px 0 40px rgba(0, 0, 0, .5);
  transform: translateX(120%);
  transition: transform 0.35s ease;
  z-index: 1100;
}

.menu.open {
  transform: translateX(0);
}

.menu ul {
  list-style: none;
  margin-bottom: 40px;
}

.menu li {
  margin-bottom: 20px;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

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

#themeToggle {
  width: 56px;
  height: 30px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.toggle-circle {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
}

body.light .toggle-circle {
  left: 28px;
}

section h2,
.about h2,
.hero-content h1 {
  text-shadow: 0 0 20px rgba(239, 67, 162, 0.3);
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 60px;
}

.hero-content h2 {
  font-size: 1.2rem;
  color: var(--span);
  margin-bottom: 10px;
  text-align: left;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(to right, var(--primary), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h4 {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--span);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-content h3 {
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--span);
  margin-bottom: 5px;
  text-align: left;
  opacity: 0.8;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.active,
.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn:not(.active),
.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn:hover {
  background: var(--primary);
  color: #fff;
}

.about-content {
  border-left: 2px solid rgba(239, 67, 162, 0.2);
  padding-left: 25px;
  margin-left: 5px;
}

.about-content strong {
  color: var(--primary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(239, 67, 162, 0.2);
  border-bottom: 1px solid rgba(239, 67, 162, 0.3);
}

.about-content p {
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.about,
main {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

main,
.about,
section:not(.hero) {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}

section h2,
.about h2 {
  font-size: 3.5rem;
  text-align: left;
  color: var(--primary);
  margin-bottom: 40px;
  margin-top: 0;
  font-weight: 800;
  padding-left: 0;
}

section h2::after,
.about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 3px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
}

#about,
#projects {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-divider {
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg), rgba(239, 67, 162, 0.15));
  border-top-left-radius: 100% 60px;
  border-top-right-radius: 100% 60px;
  margin: 0 !important;
}

.section-divider-bottom {
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg), rgba(239, 67, 162, 0.15));
  border-bottom-left-radius: 100% 60px;
  border-bottom-right-radius: 100% 60px;
  margin: 0 !important;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(239, 67, 162, 0.1);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(239, 67, 162, 0.2);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(239, 67, 162, 0.2);
}

.preview {
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease;
}

.card:hover .preview {
  transform: scale(1.02);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--span);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
}

#gerenciador {
  color: var(--span);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 40px;
}

.project-category {
  background: rgba(239, 67, 162, 0.15);
  color: var(--primary);
  border: 1px solid rgba(239, 67, 162, 0.3);
  padding: 4px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 6px;
}

.video-preview {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.preview iframe {
  width: 100%;
  height: 180px;
  border: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.span {
  color: var(--span);
}

.button-group {
  display: flex;
  gap: 10px;
}

.button-group a {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

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

.actions a {
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.actions a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active,
.reveal-left.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.projects .card:nth-child(1) {
  transition-delay: 0.1s;
}

.projects .card:nth-child(2) {
  transition-delay: 0.2s;
}

.projects .card:nth-child(3) {
  transition-delay: 0.3s;
}

.marquee-divider {
  background: var(--primary);
  color: #fff;
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  transform: rotate(-1.5deg) scale(1.05);
  margin: 100px 0;
  box-shadow: 0 10px 30px rgba(239, 67, 162, 0.2);
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-card {
  background: #000000 !important;
  border: 1px solid rgba(239, 67, 162, 0.3) !important;
  padding: 30px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.contact-card .contact-info span {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 5px;
}

.contact-card .contact-info p {
  color: var(--span);
  font-size: 0.9rem;
}

.contact-card .contact-arrow {
  font-size: 1.5rem;
  color: var(--span);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  background: rgba(239, 67, 162, 0.08);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.contact-card:hover .contact-arrow {
  transform: translate(5px, -5px);
  color: var(--primary);
}

body.light .contact-card {
  background: rgba(0, 0, 0, 0.03);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-profile {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

footer {
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: linear-gradient(to top, rgba(239, 67, 162, 0.05), transparent);
}

.footer-card {
  background: #000000 !important;
  border: 1px solid rgba(239, 67, 162, 0.3) !important;
  border-radius: 20px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  backdrop-filter: blur(5px);
  max-width: 900px;
}

.footer-bio {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(239, 67, 162, 0.3);
}

.footer-text h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-text p,
.footer-text small {
  color: var(--span);
  font-size: 0.8rem;
  display: block;
}

.footer-separator {
  width: 1px;
  height: 50px;
  background: rgba(239, 67, 162, 0.2);
}

.footer-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 300px;
}

.skill-pill {
  font-size: 0.65rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.copyright {
  color: var(--span);
  font-size: 0.75rem;
  opacity: 0.7;
}

.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 15px rgba(239, 67, 162, 0.5);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px var(--primary);
}

.nav-shortcuts {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.nav-btn {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 10px 15px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  backdrop-filter: blur(5px);
}

.nav-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(-5px);
  box-shadow: 0 10px 20px rgba(239, 67, 162, 0.3);
}

.nav-btn:hover .nav-arrow {
  transform: scale(1.2);
}

body.light .nav-btn {
  backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
  .nav-shortcuts {
    bottom: 20px;
    right: 20px;
  }

  .nav-text {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
  }

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

@media (max-width: 768px) {

  .about,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  section h2,
  .about h2 {
    font-size: 2.5rem;
  }

  .top-bar h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .footer-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px;
  }

  .footer-bio {
    flex-direction: column;
  }

  .footer-separator {
    width: 50px;
    height: 1px;
  }

  .footer-skills {
    justify-content: center;
  }
}