/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-logo {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  transition: transform 0.3s var(--ease-out-expo), letter-spacing 0.3s var(--ease-out-expo);
}

.navbar-logo:hover {
  transform: scale(1.02);
  letter-spacing: 0.01em;
}

.logo-image {
  height: auto;
  max-height: 28px;
  width: auto;
  display: block;
}

.logo-mark {
  color: var(--accent-neon);
  font-family: var(--font-mono);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  animation: logo-mark-pulse 2s infinite alternate ease-in-out;
}

.logo-accent {
  background: linear-gradient(135deg var(--in-oklch), var(--accent-blue-light) 0%, var(--accent-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.25));
  font-weight: 900;
}

@keyframes logo-mark-pulse {
  0% {
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.4);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.8), 0 0 20px rgba(37, 99, 235, 0.3);
    opacity: 1;
  }
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out-expo);
  position: relative;
  padding-block: 0.5rem;
}

.navbar-link:hover,
.navbar-link.active {
  color: #fff;
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-neon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Navbar actions (container for switcher + hamburger) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  order: 2;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.lang-arrow {
  transition: transform 0.3s var(--ease-out-expo);
  stroke-width: 3px;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 212, 255, 0.05);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-neon);
  font-weight: 600;
  border-left: 2px solid var(--accent-neon);
  padding-left: calc(0.75rem - 2px);
}

/* Hamburguer button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin-block: 5px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-neon);
  background-color: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw + 1.25rem, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

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

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: rotate-dashed 30s linear infinite;
  pointer-events: none;
}

.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-neon));
  border-radius: 50%;
  z-index: 0;
  padding: 3px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  position: relative;
  box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.4);
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}

@keyframes rotate-dashed {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sobre Mim Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-stats .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Projetos Section */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
}

@media (min-width: 992px) {
  .project-card {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 2;
}

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

.project-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.project-links {
  margin-top: 0.5rem;
}

.project-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16/10;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  width: 100%;
}

.project-preview-mockup {
  position: absolute;
  width: 90%;
  height: 90%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0d0d15, #040408);
  padding: 1.5rem;
}

/* Stack Section */
.stack-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s var(--ease-out-expo);
}

.stack-card svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
  transition: fill 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.stack-card span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out-expo);
}

.stack-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  background-color: var(--bg-card-hover);
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.15);
}

.stack-card:hover svg {
  fill: var(--accent-neon);
  transform: scale(1.1);
}

.stack-card:hover span {
  color: var(--text-primary);
}

/* Experiencia Section (Timeline layout) */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-neon), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-neon);
  box-shadow: 0 0 10px var(--accent-neon);
  z-index: 2;
  transition: transform 0.3s var(--ease-out-expo);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  background-color: var(--accent-neon);
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.15);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--accent-blue-light);
  font-weight: 500;
  margin-top: 0.25rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.timeline-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Serviços Section */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(18, 18, 30, 0.7) 0%, rgba(18, 18, 30, 0.9) 100%);
  backdrop-filter: blur(10px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contato Section */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease-out-expo);
}

.contact-card .contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  transition: all 0.3s var(--ease-out-expo);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-blue-light);
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-neon);
  box-shadow: 0 10px 25px -10px rgba(0, 212, 255, 0.2);
}

.contact-card:hover .contact-icon {
  background-color: var(--accent-neon);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-neon);
  transform: scale(1.05);
}

.contact-card:hover a {
  color: var(--accent-neon);
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  padding-block: 2.5rem;
  margin-top: 5rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-neon);
}
