/* styles.css */
:root {
  --bg-dark: #0b1624;
  --bg-light: #112240;
  --primary: #1e90ff;
  --secondary: #9b30ff;
  --accent: #64ffda;
  --text-default: #ccd6f6;
  --text-muted: #e0e6f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-default);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO */
#hero {
  height: 100vh;
  background: url('./assets/img/tech.png') center/cover no-repeat;
  position: relative;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.sobre,
.bars {
  padding-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  transition: all 0.3s;
}

.btn:hover {
  background: var(--secondary);
  color: var(--bg-dark);
}

/* Nav */
#nav {
  position: fixed;      /* fixa em relação à viewport */
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

#nav a.nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

#nav a.nav-link:hover,
#nav a.nav-link.active {
  color: var(--secondary);
}

/* Panels */
.panel {
  max-width: 900px;
  margin: 5rem auto;
  padding: 0 1rem 5rem;
  background: var(--bg-light);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s;
}

.panel h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

/* Skills */
.bars .bar {
  margin-bottom: 1rem;
}

.bars span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.progress {
  width: 0;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: var(--bg-dark);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--text-default);
}

.timeline-item.left {
  left: 0;
  margin-right: 55%;
}

.timeline-item.right {
  left: 55%;
}

.timeline-item .date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-list {
  list-style: disc;
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
}

.timeline-list li {
  margin-bottom: 0.5rem;
}

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: 8px;
  color: var(--text-default);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Footer */
#footer {
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 3rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  border-bottom: 1px solid var(--bg-dark);
  padding-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-list,
.footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li,
.footer-socials li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-list i,
.footer-socials i {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-right: 0.75rem;
  transition: color .3s;
}

.footer-list a,
.footer-socials a {
  color: var(--text-default);
  text-decoration: none;
}

.footer-list a:hover,
.footer-socials a:hover i {
  color: var(--primary);
}

/* Removed newsletter styles */
.footer-credits {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    margin: 0.5rem auto;
    width: 90%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

#lang-switcher {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}
#lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  margin-left: .6rem;
  cursor: pointer;
  font-weight: 600;
}
#lang-switcher button:hover {
  color: var(--accent);
}
