/* ============================================================
   DANIEL MACEDO PORTFOLIO — style.css
   Modern, Premium, Dark Theme with Red Accents
   Animated Glowing Laser Border Effects (CSS @property + conic-gradient border-box)
   Flawless Responsiveness for ALL Screen Sizes (Mobile, Tablet, Desktop)
   ============================================================ */

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

:root {
  --red:        #e63946;
  --red-dark:   #c1121f;
  --red-light:  #ff6b7a;
  --bg:         #0a0a0f;
  --bg-card:    #13131a;
  --bg-card-2:  #1a1a24;
  --border:     rgba(255,255,255,.07);
  --text:       #e8e8f0;
  --text-muted: #8888a4;
  --text-faint: #55556a;
  --white:      #ffffff;
  --glow:       rgba(230, 57, 70, .25);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --font-head:  'Space Grotesk', 'Inter', sans-serif;
  --radius:     16px;
  --radius-sm:  10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --shadow-red: 0 0 40px rgba(230,57,70,.25);
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ============================================================
   CSS @property & LASER BORDER ANIMATION
   ============================================================ */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes laser-border-spin {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section { padding: 100px 0; position: relative; overflow: hidden; }

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--red); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(230,57,70,.3);
  background: rgba(230,57,70,.08);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  border: 2px solid transparent;
  background: 
    linear-gradient(#14141e, #14141e) padding-box,
    conic-gradient(from var(--angle), transparent 45%, #ff758f 70%, #e63946 95%, transparent 100%) border-box;
  animation: laser-border-spin 3s linear infinite;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(230,57,70,.45);
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(230,57,70,.5); color: var(--red); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   NAVBAR & CREATIVE 3D LOGO
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: rgba(10,10,15,.75);
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background: rgba(10,10,15,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 4px 14px rgba(230,57,70,.4));
}
.nav-logo:hover .logo-mark-wrap {
  transform: translateY(-2px) rotate(4deg) scale(1.08);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-accent {
  background: linear-gradient(135deg, #ff758f 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-fill-color: transparent;
  -webkit-text-fill-color: transparent;
}
.logo-title  { color: var(--white); }

.logo-slogan {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.slogan-dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--red) !important; font-weight: 600; }

.nav-cta {
  color: var(--white) !important;
  padding: 8px 22px;
  margin-left: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1.5px solid transparent;
  background: 
    linear-gradient(#14141e, #14141e) padding-box,
    conic-gradient(from var(--angle), transparent 50%, #ff758f 75%, #e63946 95%, transparent 100%) border-box;
  animation: laser-border-spin 3s linear infinite;
}
.nav-cta:hover { transform: translateY(-2px) scale(1.03); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,57,70,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,.22) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(140,30,60,.18) 0%, transparent 70%);
  bottom: -60px; left: -100px;
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { opacity: .8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
}
.hero-name { display: block; }

.hero-role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-socials { display: flex; gap: 12px; }

.social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { color: var(--red); border-color: rgba(230,57,70,.4); transform: translateY(-2px); }

/* Hero Avatar & Rings */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  width: 100%;
}

.hero-image-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin-ring linear infinite;
  pointer-events: none;
}
.ring-1 {
  width: 460px; height: 460px;
  border-color: rgba(230,57,70,.22);
  animation-duration: 24s;
}
.ring-2 {
  width: 380px; height: 380px;
  border-color: rgba(230,57,70,.14);
  animation-duration: 18s;
  animation-direction: reverse;
}
.ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(230,57,70,.08);
  animation-duration: 14s;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.hero-avatar {
  width: 290px; height: 290px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--red);
  box-shadow: 0 0 50px rgba(230,57,70,.5), 0 0 100px rgba(230,57,70,.25);
  position: relative;
  z-index: 2;
  transition: transform .4s ease;
  background: #151520;
}
.hero-avatar:hover {
  transform: scale(1.03);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-avatar-fallback {
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-2);
  color: var(--text-muted);
}

/* Floating Cards com Borda Laser */
.hero-float-card {
  position: absolute;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow);
  z-index: 3;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: 
    linear-gradient(#14141e, #14141e) padding-box,
    conic-gradient(from var(--angle), transparent 50%, #ff758f 75%, #e63946 95%, transparent 100%) border-box;
  animation: float-card 3.2s ease-in-out infinite, laser-border-spin 3.5s linear infinite;
  white-space: nowrap;
}

.card-1 { bottom: 10px; left: 0px; animation-delay: 0s; }
.card-2 { top: 10px;    right: 0px; animation-delay: 1.6s; }
.float-icon { font-size: 1.15rem; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-faint);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--text-faint);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============================================================
   ATRIBUIÇÕES / SERVIÇOS
   ============================================================ */
.atribuicoes { background: var(--bg); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: 
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    conic-gradient(from var(--angle), transparent 60%, #ff758f 80%, #e63946 95%, transparent 100%) border-box;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  animation: laser-border-spin 3.5s linear infinite;
  box-shadow: 0 16px 45px rgba(0,0,0,.5), 0 0 25px rgba(230,57,70,.2);
}

.card-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
  transition: var(--transition);
}
.service-card:hover .card-icon-wrap { background: rgba(230,57,70,.2); transform: scale(1.05); }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.65; flex-grow: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .88rem;
  font-weight: 600;
  margin-top: 18px;
  transition: var(--transition);
}
.service-card:hover .card-link { gap: 10px; }

/* MODAIS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(230,57,70,.3);
  border-radius: 20px;
  padding: 36px;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.96);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(230,57,70,.15);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover { background: rgba(230,57,70,.25); color: var(--red); border-color: rgba(230,57,70,.4); }

.modal-icon {
  width: 60px; height: 60px;
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}
.modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.modal-box > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: .95rem;
}
.modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.modal-list li {
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }

/* ============================================================
   PROJETOS
   ============================================================ */
.projetos { background: var(--bg-card-2); }

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.projeto-card {
  background: 
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    conic-gradient(from var(--angle), transparent 60%, #ff758f 80%, #e63946 95%, transparent 100%) border-box;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}

.projeto-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  animation: laser-border-spin 3.5s linear infinite;
  box-shadow: 0 16px 45px rgba(0,0,0,.5), 0 0 25px rgba(230,57,70,.2);
}

.projeto-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #101017;
}

.projeto-screenshot {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transform: translateY(0);
  transition: transform 1s ease-out;
}

.projeto-card:hover .projeto-screenshot {
  transform: translateY(calc(-100% + 240px));
  transition: transform 6.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projeto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 5;
}
.projeto-card:hover .projeto-overlay {
  opacity: 1;
  pointer-events: all;
}

.projeto-link {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  background: 
    linear-gradient(#14141e, #14141e) padding-box,
    conic-gradient(from var(--angle), transparent 50%, #ff758f 75%, #e63946 95%, transparent 100%) border-box;
  animation: laser-border-spin 2.8s linear infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.projeto-link:hover { transform: scale(1.05); }

.projeto-info { padding: 22px; flex-grow: 1; }

.projeto-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.projeto-info h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.projeto-info p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* Callout Nota abaixo dos projetos */
.projetos-footer-note {
  margin-top: 48px;
  border-radius: var(--radius);
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 12px 50px rgba(0,0,0,.45);
  border: 2px solid transparent;
  background: 
    linear-gradient(#13131c, #13131c) padding-box,
    conic-gradient(from var(--angle), transparent 55%, #ff758f 75%, #e63946 95%, transparent 100%) border-box;
  animation: laser-border-spin 4s linear infinite;
}

.footer-note-content { flex: 1; }

.footer-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 8px;
}
.footer-note-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.footer-note-desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 700px;
}
.footer-note-action { flex-shrink: 0; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section { background: var(--bg); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.skills-text h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.skills-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; font-size: 1rem; }

.skills-highlights {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skills-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.check {
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}

.skill-item { margin-bottom: 22px; }
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.skill-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}
.skill-bar {
  height: 9px;
  background: #1c1c28;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.skill-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e63946 0%, #ff758f 100%);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(230,57,70,.5);
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   SOBRE MIM
   ============================================================ */
.sobre { background: var(--bg-card-2); }

.sobre-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.sobre-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.sobre-img-bg {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(230,57,70,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.sobre-img-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  box-shadow: 0 14px 45px rgba(0,0,0,.45);
}
.sobre-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.sobre-img-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  color: var(--text-faint);
}

.sobre-stats {
  display: flex;
  gap: 0;
  background: #14141f;
  border: 1.5px solid rgba(230, 57, 70, 0.45);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 2;
  margin-top: -26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(230, 57, 70, 0.2);
}

.stat-item {
  padding: 16px 26px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ff4d6d;
  background: linear-gradient(135deg, #ff758f 0%, #e63946 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
  margin-bottom: 4px;
}
.stat-item span {
  font-size: .8rem;
  font-weight: 600;
  color: #f0f0fa;
  line-height: 1.35;
  display: block;
}

.sobre-text h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
}
.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}
.sobre-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* ============================================================
   APRENDIZADO & CERTIFICADOS
   ============================================================ */
.aprendizado { background: var(--bg); }

.ref-slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.ref-card {
  position: relative;
  min-height: 380px;
  width: 100%;
  max-width: 880px;
  border-radius: 24px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  border: 2px solid transparent;
  background: 
    linear-gradient(#13131c, #13131c) padding-box,
    conic-gradient(from var(--angle), transparent 50%, #ff758f 75%, #e63946 95%, transparent 100%) border-box;
  animation: laser-border-spin 4.5s linear infinite;
}

.ref-card input[type="radio"] {
  display: none;
}

.ref-inner_part {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 42px;
  width: 100%;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
  transform: translateX(30px);
}

#ref_slide_1:checked ~ .ref-part-1,
#ref_slide_2:checked ~ .ref-part-2,
#ref_slide_3:checked ~ .ref-part-3,
#ref_slide_4:checked ~ .ref-part-4,
#ref_slide_5:checked ~ .ref-part-5,
#ref_slide_6:checked ~ .ref-part-6 {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
  z-index: 10;
}

.ref-img {
  height: 230px;
  width: 230px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px solid rgba(230,57,70,.2);
}

.ref-img-tag {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.ref-content {
  padding-left: 36px;
  flex: 1;
}

.ref-badge-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.ref-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.ref-text {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.ref-footer-action {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ref-status-badge {
  font-size: .8rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  padding: 6px 14px;
  border-radius: 99px;
}

.ref-slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.ref-slide-dot {
  position: relative;
  height: 10px;
  width: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 5px;
  cursor: pointer;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.ref-slide-dot:hover { background: rgba(255,255,255,.3); }

#ref_slide_1:checked ~ .ref-slider-nav .ref-slide_1,
#ref_slide_2:checked ~ .ref-slider-nav .ref-slide_2,
#ref_slide_3:checked ~ .ref-slider-nav .ref-slide_3,
#ref_slide_4:checked ~ .ref-slider-nav .ref-slide_4,
#ref_slide_5:checked ~ .ref-slider-nav .ref-slide_5,
#ref_slide_6:checked ~ .ref-slider-nav .ref-slide_6 {
  background: var(--red);
  width: 52px;
  box-shadow: 0 0 12px rgba(230,57,70,.5);
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato { background: var(--bg-card-2); }

.contato-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: start;
}

.contato-info h3 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}
.contato-info > p { color: var(--text-muted); margin-bottom: 36px; font-size: .98rem; }

.contato-items { display: flex; flex-direction: column; gap: 20px; }

.contato-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contato-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.contato-label { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 2px; }
.contato-value { font-size: .95rem; font-weight: 500; color: var(--white); }
a.contato-value:hover { color: var(--red); }

/* Form */
.contato-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.form-group label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  transition: var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  color: #22c55e;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 500;
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { margin-top: 14px; font-size: .9rem; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

.footer-links-group h4 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  font-size: .95rem;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a { font-size: .9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links-group a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: .85rem; color: var(--text-faint); }

.footer-socials { display: flex; gap: 12px; }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(230,57,70,.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(230,57,70,.6); }

.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.wa-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  position: relative;
  z-index: 2;
}

.whatsapp-float:hover .wa-icon {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.6);
}

.wa-ping {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(37,211,102,.35);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: 1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .8; }
  70%  { transform: scale(1.6);  opacity: 0;  }
  100% { transform: scale(1.6);  opacity: 0;  }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #13131a;
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(37,211,102,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #13131a;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   DATA-AOS ANIMATION UTILITY
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-aos="fade-right"]  { transform: translateX(-28px); }
[data-aos="fade-left"]   { transform: translateX(28px); }
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE DESIGN (ALL SCREENS & MOBILE OPTIMIZATIONS)
   ============================================================ */

/* TABLETS (Max 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 30px 24px 60px;
  }
  .hero-content { order: 2; }
  .hero-image-wrap { 
    order: 1; 
    padding: 20px 0; 
    margin: 0 auto; 
    max-width: 420px; 
  }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-description { margin: 0 auto 32px; }

  .hero-avatar { width: 240px; height: 240px; }
  .ring-1 { width: 360px; height: 360px; }
  .ring-2 { width: 300px; height: 300px; }
  .ring-3 { width: 240px; height: 240px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .projetos-grid { grid-template-columns: repeat(2, 1fr); }
  .projetos-footer-note { flex-direction: column; text-align: center; gap: 20px; }
  .footer-note-desc { margin: 0 auto; }
  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .sobre-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .sobre-img-wrap { margin: 0 auto 10px; }
  .sobre-actions { justify-content: center; }
  .contato-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* MOBILE & SMALL TABLETS (Max 768px) */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .nav-container { padding: 0 18px; height: 70px; }

  /* Navbar Mobile Menu */
  .nav-links { 
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,15,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 14px 18px; font-size: 1rem; border-radius: 8px; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
  .hamburger { display: flex; }

  /* Hero Mobile Layout */
  .hero { padding-top: 76px; min-height: auto; }
  .hero-container { padding: 20px 18px 40px; gap: 24px; }
  .hero-title { font-size: 2.2rem; }
  .hero-role { font-size: 1.1rem; margin-bottom: 14px; }
  .hero-description { font-size: .95rem; line-height: 1.65; margin-bottom: 24px; }
  
  .hero-image-wrap { 
    padding: 10px 0; 
    max-width: 320px; 
    margin: 0 auto;
  }
  .hero-avatar { width: 200px; height: 200px; border-width: 3px; }
  .ring-1 { width: 290px; height: 290px; }
  .ring-2 { width: 240px; height: 240px; }
  .ring-3 { width: 190px; height: 190px; }

  /* Floating Cards Bem Encaixados no Mobile */
  .hero-float-card {
    padding: 8px 12px;
    font-size: .78rem;
    gap: 6px;
  }
  .card-1 { bottom: -8px; left: -10px; }
  .card-2 { top: -8px;   right: -10px; }
  .float-icon { font-size: 1rem; }

  .hero-scroll-indicator { display: none; }

  /* Grids & Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 26px 20px; }
  
  .projetos-grid { grid-template-columns: 1fr; gap: 22px; }
  .projeto-img { height: 220px; }
  .projetos-footer-note { padding: 24px 20px; }
  .footer-note-title { font-size: 1.15rem; }

  /* Ref Slide on Mobile */
  .ref-card { min-height: 480px; border-radius: 18px; }
  .ref-inner_part { 
    flex-direction: column; 
    text-align: center; 
    padding: 24px 18px 56px; 
    position: relative;
    opacity: 0;
    display: none;
    transform: none;
  }
  #ref_slide_1:checked ~ .ref-part-1,
  #ref_slide_2:checked ~ .ref-part-2,
  #ref_slide_3:checked ~ .ref-part-3,
  #ref_slide_4:checked ~ .ref-part-4,
  #ref_slide_5:checked ~ .ref-part-5,
  #ref_slide_6:checked ~ .ref-part-6 {
    display: flex;
    opacity: 1;
    position: relative;
  }
  .ref-img { height: 140px; width: 140px; padding: 14px; margin-bottom: 14px; border-radius: 14px; }
  .ref-content { padding-left: 0; }
  .ref-title { font-size: 1.25rem; margin-bottom: 8px; }
  .ref-text { font-size: .88rem; margin-bottom: 16px; line-height: 1.55; }
  .ref-footer-action { justify-content: center; }

  /* Formulário & Contato */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contato-form { padding: 24px 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* SMARTPHONES PEQUENOS (Max 480px) */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  .hero-title { font-size: 1.95rem; }
  
  .hero-avatar { width: 175px; height: 175px; }
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 210px; height: 210px; }
  .ring-3 { width: 170px; height: 170px; }

  .hero-float-card {
    font-size: .72rem;
    padding: 6px 10px;
  }
  .card-1 { bottom: -12px; left: -14px; }
  .card-2 { top: -12px;   right: -14px; }

  .sobre-stats { flex-direction: column; width: 100%; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px; }
  .stat-item:last-child { border-bottom: none; }
  
  .modal-box { padding: 26px 18px; border-radius: 16px; }
  .back-to-top { bottom: 18px; left: 16px; width: 40px; height: 40px; }
  .whatsapp-float { bottom: 18px; right: 16px; }
  .wa-icon { width: 48px; height: 48px; }
  .wa-ping { width: 48px; height: 48px; }
}
