/* ================= VARIABLES & THEME ================= */
:root {
  /* Light Theme */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb; /* Azul Tech */
  --primary-hover: #1d4ed8;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.85);
  
  --radius: 12px;
  --nav-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --border: #334155;
  --card-bg: #1e293b;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(15, 23, 42, 0.85);
}

/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  /* Modificação solicitada: Compensação do scroll */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--nav-height);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.dot { color: var(--primary); }

.nav-menu ul { display: flex; gap: 32px; align-items: center; }

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav-link:hover { color: var(--primary); }

.btn-highlight {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.btn-highlight:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* Mobile Menu & Theme Toggle */
.nav-actions { display: flex; gap: 12px; align-items: center; }
.theme-btn, .menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}
.theme-btn:hover, .menu-toggle:hover { background: var(--bg-alt); }
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height); right: -100%;
    width: 100%; height: calc(100vh - var(--nav-height));
    background: var(--bg);
    flex-direction: column;
    padding: 40px;
    transition: right 0.4s ease;
    border-top: 1px solid var(--border);
  }
  .nav-menu.active { right: 0; }
  .nav-menu ul { flex-direction: column; gap: 24px; font-size: 1.2rem; }
}

/* ================= HERO SECTION ================= */
.hero {
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - var(--nav-height));
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-btns { display: flex; gap: 16px; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-alt); }

.tech-stack {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.tech-stack span { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tech-stack .icons { display: flex; gap: 12px; font-size: 1.5rem; color: var(--text-muted); }

/* Hero Image & Floating Card */
.img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: visible;
}
.img-wrapper img {
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--bg);
}
.status-card {
  position: absolute;
  bottom: 30px; left: -20px;
  background: var(--card-bg);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
.icon-box {
  width: 40px; height: 40px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.status-text strong { display: block; font-size: 1.1rem; color: var(--text); }
.status-text span { font-size: 0.8rem; color: var(--text-muted); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-btns, .tech-stack { justify-content: center; }
  .hero-title { font-size: 2.5rem; }
  .status-card { left: 50%; transform: translateX(-50%); bottom: -20px; width: max-content; }
}

/* ================= SECTIONS & CARDS ================= */
.section-pad { padding: 80px 24px; }
.bg-alt { background-color: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 48px; color: var(--text); }
.align-left { text-align: left; margin-bottom: 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 48px; }

.feature-card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.feature-card .icon-bg {
  width: 50px; height: 50px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline Experiencia */
.timeline { display: flex; flex-direction: column; gap: 32px; border-left: 2px solid var(--border); padding-left: 32px; position: relative; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -39px; top: 5px;
  width: 12px; height: 12px; background: var(--primary);
  border-radius: 50%; outline: 4px solid var(--bg-alt);
}
.timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); }

/* Listas e Certificações */
.check-list li {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; color: var(--text-muted); font-weight: 500;
}
.check-list i { color: var(--primary); font-size: 1.2rem; }

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.edu-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.edu-card span { font-size: 0.9rem; color: var(--text-muted); }

/* ================= CONTATO ================= */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
  background: var(--card-bg);
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.contact-info h2 { margin-bottom: 16px; font-size: 1.8rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item i { font-size: 1.5rem; color: var(--primary); margin-top: 3px; }
.info-item span { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.info-item a, .info-item p { margin: 0; font-weight: 500; color: var(--text); }
.info-item a:hover { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); ring: 2px solid rgba(37,99,235,0.1); }
.full-width { width: 100%; justify-content: center; }

@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; padding: 24px; } }

/* ================= FOOTER ================= */
.footer { background: var(--bg-alt); padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.social-links { display: flex; gap: 16px; }
.social-links a { font-size: 1.5rem; color: var(--text-muted); transition: color 0.3s; }
.social-links a:hover { color: var(--primary); }

/* ================= MODAL & TOAST ================= */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--card-bg); width: 90%; max-width: 900px;
  border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; max-height: 90vh;
}
.modal-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.modal-content iframe { flex: 1; border: none; background: #eee; min-height: 400px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #10b981; color: white; padding: 12px 24px; border-radius: 50px;
  font-weight: 600; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  opacity: 0; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); z-index: 300;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ================= ANIMATIONS ================= */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-200 { transition-delay: 0.2s; }