/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0f;
  --surface:   #1a1a26;
  --surface2:  #22223a;
  --accent1:   #9b6fff;
  --accent2:   #6b3fd4;
  --text:      #f0eeff;
  --muted:     #b8afdd;
  --border:    rgba(155,111,255,0.18);
  --glow:      rgba(155,111,255,0.35);
  --radius:    14px;
  --shadow:    0 8px 32px rgba(0,0,0,0.45);
}

[data-theme="light"] {
  --bg:        #f4f2ff;
  --surface:   #ffffff;
  --surface2:  #ede9ff;
  --accent1:   #6b3fd4;
  --accent2:   #4a22b0;
  --text:      #1a1530;
  --muted:     #5a5280;
  --border:    rgba(107,63,212,0.18);
  --glow:      rgba(107,63,212,0.22);
  --shadow:    0 8px 32px rgba(107,63,212,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background .35s, color .35s;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 64px;
  background: rgba(13,13,15,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .35s, border-color .35s;
}

[data-theme="light"] .navbar {
  background: rgba(244,242,255,0.88);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent1), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent1); }

.nav-controls {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text) !important;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.btn-ctrl:hover {
  border-color: var(--accent1);
  background: var(--surface2);
}

/* ── SECTIONS ── */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3rem); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.section-desc {
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

/* Orb animado */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 7s ease-in-out infinite;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(155,111,255,.22) 0%, transparent 70%);
  top: -80px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(107,63,212,.18) 0%, transparent 70%);
  bottom: 40px; left: -60px;
  animation-delay: -3.5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(155,111,255,.35);
  background: rgba(155,111,255,.1);
  color: var(--accent1);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent1), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  padding: .72rem 1.6rem !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--accent1), var(--accent2)) !important;
  color: #fff !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: opacity .2s, transform .15s !important;
  box-shadow: 0 4px 20px var(--glow) !important;
}

.btn-primary:hover {
  opacity: .88 !important;
  transform: translateY(-2px) !important;
}

.btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  padding: .72rem 1.6rem !important;
  border-radius: 10px !important;
  border: 2px solid var(--border) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: border-color .2s, background .2s, transform .15s !important;
}

.btn-outline:hover {
  border-color: var(--accent1) !important;
  background: rgba(155,111,255,.08) !important;
  transform: translateY(-2px) !important;
}

/* ── SKILLS ── */
#skills { background: var(--surface); }
[data-theme="light"] #skills { background: var(--surface2); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

[data-theme="light"] .skill-card { background: var(--surface); }

.skill-card:hover {
  border-color: var(--accent1);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--glow);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.tag {
  padding: .22rem .65rem;
  border-radius: 6px;
  background: rgba(155,111,255,.13);
  color: var(--accent1);
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid rgba(155,111,255,.2);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.project-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

a.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--accent1);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--glow);
}

.project-card.empty {
  border-style: dashed;
  border-color: var(--border);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  cursor: default;
}

.project-card.empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.project-status {
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: rgba(74,222,128,.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.25);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  color: var(--muted);
  font-size: .9rem;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.empty-icon {
  font-size: 2.5rem;
  opacity: .3;
  margin-bottom: .5rem;
}

.empty-text {
  color: var(--muted);
  font-weight: 600;
}

/* ── CTA ── */
#cta {
  background: linear-gradient(135deg, rgba(155,111,255,.08), rgba(107,63,212,.12));
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .8rem;
}

.cta-desc {
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
#contact { background: var(--surface); }
[data-theme="light"] #contact { background: var(--surface2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.profile-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

[data-theme="light"] .profile-card { background: var(--surface); }

.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(155,111,255,.2), 0 0 20px var(--glow);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-role {
  color: var(--accent1);
  font-size: .9rem;
  font-weight: 600;
}

.profile-location {
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.contact-data-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

[data-theme="light"] .contact-data-card { background: var(--surface); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(155,111,255,.12);
  border: 1.5px solid rgba(155,111,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-item-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.contact-item-value:hover { color: var(--accent1); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  margin-bottom: 1.5rem;
}
