:root{
  --bg1:#0b0000;
  --bg2:#1a0000;
  --accent:#b00000;
  --accent2:#ff1a1a;
  --text:#c7cedb;
  --bg-light: #ffffff;
  --text-light: #1a1a1a;
}

body.dark-mode {
  --bg1: #0b0000;
  --bg2: #1a0000;
  --accent: #b00000;
  --accent2: #ff1a1a;
  --text: #c7cedb;
}

body.light-mode {
  --bg1: #f5f5f5;
  --bg2: #ffffff;
  --accent: #ff6b6b;
  --accent2: #ff1a1a;
  --text: #1a1a1a;
}

body.light-mode {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

body.light-mode::after {
  background: rgba(255,255,255,0.2);
}

body.light-mode nav {
  background: rgba(255,255,255,0.8) !important;
}

body.light-mode nav a {
  color: #1a1a1a;
}

body.light-mode nav a:hover {
  color: var(--accent2);
}

body.light-mode .section {
  background: rgba(255,255,255,0.8);
  color: #1a1a1a;
}

body.light-mode .section p {
  color: #333333;
}

body.light-mode .title {
  color: var(--accent2);
}

body.light-mode .skill {
  background: rgba(255,0,0,0.05);
  color: #1a1a1a;
}

/* ========== SEU CSS ORIGINAL ========== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background: url('assets/bg.jpg') no-repeat center center/cover;
  color:var(--text);
  overflow-x:hidden;
  position:relative;
}

body::after{
  content:"";
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  pointer-events:none;
  z-index:-1;
}

.topbar{
  height:6px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  position: relative;
  z-index: 100;
}

/* =====================================================
   PROGRESS BAR
===================================================== */

.progress-bar {
  position: fixed;
  top: 6px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 200%;
  width: 0%;
  z-index: 101;
  animation: glow-bar 2s ease infinite;
  box-shadow: 0 0 15px var(--accent2);
}

@keyframes glow-bar {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(.34,.1,.68,.55);
  z-index: 99;
  box-shadow: 0 10px 30px rgba(255,0,0,0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 45px rgba(255,0,0,0.5);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
  animation: bounce-up 2s ease-in-out infinite;
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

header nav{
  width:100%;
  padding:20px 6%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:fixed;
  top:6px;
  left:0;
  z-index:50;
  background:rgba(10,10,10,0.6);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,0,0,0.15);
  border-radius:0 0 14px 14px;
}

.logo-container{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-container img{
  height:50px;
  width:auto;
  filter:drop-shadow(0 0 4px rgba(255,0,0,0.4));
}

.logo-container h1{
  color:var(--accent);
  font-weight:800;
  font-size:28px;
}

nav .menu{
  display:flex;
  align-items:center;
  gap:24px;
}

nav .menu a{
  color:var(--text);
  text-decoration:none;
  font-size:15px;
  transition: all 0.3s cubic-bezier(.34,.1,.68,.55);
  position: relative;
  padding-bottom: 5px;
}

nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), transparent);
  transition: width 0.3s cubic-bezier(.34,.1,.68,.55);
}

/* THEME TOGGLE */
.theme-toggle {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(.34,.1,.68,.55);
  box-shadow: 0 5px 15px rgba(255,0,0,0.2);
  position: relative;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 10px 30px rgba(255,0,0,0.4);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
  position: absolute;
  transition: all 0.3s ease;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.theme-toggle.dark-mode .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.theme-toggle.dark-mode .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

nav .menu a:hover{
  color:white;
  text-shadow:0 0 10px var(--accent2);
  transform: translateY(-3px);
}

nav .menu a:hover::after {
  width: 100%;
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:var(--accent2);
  border-radius:3px;
  transition:0.3s;
}

.hamburger.active span:nth-child(1){
  transform:rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2){
  opacity:0;
}
.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translate(5px,-5px);
}

/* HERO */
.hero{
  min-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8%;
  position:relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,26,26,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,26,26,0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: gradient-shift 8s ease infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content{
  background:rgba(0,0,0,0.55);
  padding:40px;
  border-radius:18px;
  border:1px solid rgba(255,0,0,0.12);
  backdrop-filter:blur(4px);
  box-shadow:0 0 20px rgba(0,0,0,0.45), 0 0 40px rgba(255,0,0,0.1);
  text-align:center;
  position: relative;
  overflow: hidden;
  animation: glow-box 4s ease-in-out infinite;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255,26,26,0.1),
    transparent
  );
  animation: shine 3s infinite;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

@keyframes glow-box {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0,0,0,0.45), 0 0 30px rgba(255,0,0,0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0,0,0,0.45), 0 0 50px rgba(255,0,0,0.2);
  }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.hero-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
}

.perfil-img{
  width:120px;
  height:120px;
  border-radius:50%;
  border:3px solid var(--accent2);
  object-fit:cover;
  box-shadow:0 0 15px rgba(255,0,0,0.4);
}

.hero h2{
  font-size:48px;
  font-weight:800;
  color:#fff;
  text-shadow:0 0 25px rgba(255,0,0,0.25);
}

.hero p{
  color:#dfe6ee;
  margin-top:15px;
  font-size:18px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
}

/* SECTIONS */
.section{
  padding:90px 8%;
  background:rgba(0,0,0,0.55);
  border-radius:18px;
  border:1px solid rgba(255,0,0,0.12);
  backdrop-filter:blur(4px);
  margin:60px 5%;
  box-shadow:0 0 20px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,26,26,0.1), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: float-orb 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { 
    opacity: 0;
    transform: translate(0, 0);
  }
  50% { 
    opacity: 0.3;
    transform: translate(50px, 50px);
  }
}

/* SEÇÃO SOBRE MELHORADA */
.about-section {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(20,0,0,0.5) 100%);
}

.about-content {
  animation: fadeInUp 1s ease 0.2s both;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #dfe6ee;
  animation: fadeInUp 1.2s ease backwards;
}

.about-content p:nth-child(1) { animation-delay: 0.3s; }
.about-content p:nth-child(2) { animation-delay: 0.4s; }
.about-content p:nth-child(3) { animation-delay: 0.5s; }

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease 0.6s both;
}

.stat {
  text-align: center;
  padding: 20px 30px;
  background: rgba(255,26,26,0.05);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255,26,26,0.1);
  transform: translateY(-5px);
  border-color: rgba(255,26,26,0.5);
}

.stat h4 {
  font-size: 32px;
  color: var(--accent2);
  margin-bottom: 8px;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(255,26,26,0.4);
}

.stat span {
  color: #c7cedb;
  font-size: 14px;
  font-weight: 500;
}

.title{
  font-size:30px;
  font-weight:700;
  color:var(--accent2);
  margin-bottom:20px;
  text-shadow:0 0 12px rgba(255,0,0,0.5);
  position: relative;
  display: inline-block;
  animation: title-glow 2s ease-in-out infinite;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), transparent);
  animation: expand-line 0.8s cubic-bezier(.34,.1,.68,.55) forwards;
}

@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(255,0,0,0.5); }
  50% { text-shadow: 0 0 20px rgba(255,0,0,0.8), 0 0 30px rgba(255,0,0,0.3); }
}

@keyframes expand-line {
  from { width: 0; }
  to { width: 100%; }
}

/* SKILLS */
.skills{
  background:rgba(0,0,0,0.45);
  padding:20px;
  border-radius:12px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

/* =====================================================
   TECHNOLOGIAS FAVORITAS
===================================================== */

.tech-favorites {
  background: linear-gradient(135deg, rgba(20,0,0,0.5) 0%, rgba(0,0,0,0.6) 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tech-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(20,0,0,0.3) 100%);
  border: 1px solid rgba(255,26,26,0.15);
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(.34,.1,.68,.55);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,26,26,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent2);
  box-shadow: 0 20px 50px rgba(255,0,0,0.2);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card h4 {
  color: var(--accent2);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(255,26,26,0.3);
}

.tech-card p {
  color: #dfe6ee;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.skill{
  background:#121212;
  padding:20px;
  border-radius:12px;
  text-align:center;
  border:1px solid rgba(255,0,0,0.12);
  transition: transform 0.4s cubic-bezier(.34,.1,.68,.55), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,26,26,0.2), transparent 70%);
  animation: pulse-skill 3s ease-in-out infinite;
  opacity: 0;
}

.skill:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 50px rgba(255,0,0,0.3);
  border-color: var(--accent2);
}

.skill:hover::before {
  opacity: 1;
}

@keyframes pulse-skill {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
}

/* FERRAMENTAS */
.tools{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
}

.tool{
  display:flex;
  flex-direction:column;
  align-items:center;
  background:rgba(0,0,0,0.45);
  padding:15px;
  border-radius:12px;
  border:1px solid rgba(255,0,0,0.12);
  transition: transform 0.4s cubic-bezier(.34,.1,.68,.55), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,26,26,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateX(-100%);
}

.tool img{
  width:60px;
  height:60px;
  object-fit:contain;
  margin-bottom:8px;
  filter: drop-shadow(0 0 8px rgba(255,26,26,0.2));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.tool:hover img {
  filter: drop-shadow(0 0 15px rgba(255,26,26,0.5));
  transform: scale(1.1) rotateY(10deg);
}

.tool:hover{
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 45px rgba(255,0,0,0.3);
  border-color: var(--accent2);
}

.tool:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

/* TIMELINE */
.timeline{
  position: relative;
  margin-left: 10px;
  border-left:3px solid rgba(255,0,0,0.18);
  padding-left:30px;
}

.timeline-item{
  position: relative;
  margin-bottom:40px;
  background:rgba(0,0,0,0.45);
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(255,0,0,0.12);
  box-shadow:0 0 15px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(.34,.1,.68,.55), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.timeline-item::before {
  content:"";
  position:absolute;
  left:-39px;
  top:20px;
  width:14px;
  height:14px;
  background:var(--accent2);
  border-radius:50%;
  box-shadow: 0 0 15px rgba(255,0,0,0.8);
  animation: pulse-dot 2s ease-in-out infinite;
  z-index: 3;
}

.timeline-item::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, transparent, rgba(255,26,26,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-item:hover{
  transform: translateX(10px) translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255,0,0,0.3);
  border-color: var(--accent2);
}

.timeline-item:hover::after {
  opacity: 1;
}

@keyframes pulse-dot {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(255,0,0,0.8), 0 0 25px rgba(255,0,0,0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 25px rgba(255,0,0,1), 0 0 40px rgba(255,0,0,0.6);
    transform: scale(1.15);
  }
}

.timeline-item .period{
  display:block;
  font-weight:700;
  color:var(--accent2);
  margin-bottom:6px;
}

.timeline-item .company{
  font-weight:700;
  color:#fff;
  margin-bottom:8px;
}

/* PORTFÓLIO */
.project-video-insight{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  background:#111;
  border-radius:12px;
  border:1px solid rgba(255,0,0,0.12);
  padding:20px;
  box-shadow:0 0 15px rgba(0,0,0,0.3);
}

.video-column, .insight-column{
  flex:1;
  min-width:280px;
}

.video-wrapper{
  position:relative;
  width:100%;
  padding-bottom:56.25%;
  height:0;
}

.video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border-radius:12px;
}

.insight-column{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
}

.insight-img{
  width:100%;
  max-width:250px;
  border-radius:12px;
  border:1px solid rgba(255,0,0,0.15);
  box-shadow:0 0 15px rgba(255,0,0,0.3);
}

/* BOTÕES */
.btn{
  display:inline-block;
  background:linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 200%;
  padding:14px 28px;
  color:white;
  text-decoration:none;
  border-radius:10px;
  font-weight:700;
  transition: transform 0.3s cubic-bezier(.34,.1,.68,.55), box-shadow 0.3s ease, background-position 0.5s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  margin: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.5s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover{
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(255,0,0,0.4);
  background-position: 200% 0;
}

/* FOOTER */
footer{
  padding: 50px 8%;
  border-top: 1px solid rgba(255,26,26,0.2);
  margin-top: 100px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.footer-section h5 {
  color: var(--accent2);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255,26,26,0.3);
}

.footer-section p {
  color: #dfe6ee;
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #dfe6ee;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent2);
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 20px;
  font-size: 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255,26,26,0.1);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255,26,26,0.2);
  border-color: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,26,26,0.2);
}

/* =====================================================
   SEÇÃO DE CONTATO MELHORADA
===================================================== */

#contato {
  text-align: center;
  animation: fadeInUp 1s ease 0.2s both;
}

#contato p {
  animation: fadeInUp 1.2s ease 0.3s both;
  font-weight: 400;
}

#contato .btn {
  margin-top: 20px;
  font-size: 16px;
  padding: 16px 32px;
  animation: slideUp 0.8s cubic-bezier(.34,.1,.68,.55);
}

/* RESPONSIVO */
@media(max-width:768px){
  nav .menu{
    position:fixed;
    top:70px;
    right:-100%;
    background:rgba(10,10,10,0.95);
    flex-direction:column;
    gap:20px;
    padding:20px;
    height:calc(100vh - 70px);
    transition:0.3s;
    z-index:49;
  }

  nav .menu.active{
    right:0;
  }

  .hamburger{
    display:flex;
  }
}

/* ========== NOVOS ESTILOS PARA PROJETOS + BOTÃO ANIMADO ========== */

/* layout dos projetos (espaçamento aumentado) */
.projects-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px; /* distância maior entre os projetos */
  margin-top: 30px;
  padding: 10px 8%;
}

/* card do projeto (com hover 3D) */
.project-card{
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,0,0,0.12);
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 6px 30px rgba(0,0,0,0.45);
  transition: transform .4s cubic-bezier(.34,.1,.68,.55), box-shadow .4s ease, border-color .4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,26,26,0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover{
  transform: translateY(-12px) rotateX(5deg);
  border-color: var(--accent2);
  box-shadow: 0 25px 60px rgba(255,0,0,0.25);
}

.project-card > * {
  position: relative;
  z-index: 2;
}

/* imagem do projeto */
.project-image{
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,0,0,0.12);
  object-fit: cover;
  height: 190px;
  transition: transform 0.4s cubic-bezier(.34,.1,.68,.55), filter 0.4s ease;
  filter: brightness(0.95) contrast(1.05);
}

.project-card:hover .project-image {
  transform: scale(1.08) rotateY(5deg);
  filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

/* titulo e paragrafo */
.project-card h4{
  margin: 8px 0 10px 0;
  color: #fff;
  font-size: 20px;
}

.project-card p{
  color: #e3e9ef;
  line-height: 1.5;
  flex: 1;
}

/* ========== CATALOGO ========== */
.catalog-section .title {
  margin-bottom: 28px;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  background: linear-gradient(135deg, rgba(255,26,26,0.18), rgba(0,0,0,0.65));
  border: 1px solid rgba(255,26,26,0.25);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
}

.promo-main h4 {
  font-size: 24px;
  margin: 10px 0 8px;
  color: #fff;
}

.promo-main p {
  color: #e6edf5;
}

.promo-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,26,26,0.18);
  border: 1px solid rgba(255,26,26,0.35);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.promo-note {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 14px;
  padding: 16px;
}

.promo-note h5 {
  color: var(--accent2);
  margin-bottom: 8px;
  font-size: 16px;
}

.promo-note p {
  color: #e6edf5;
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.catalog-card {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,0,0,0.12);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.catalog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent2);
  box-shadow: 0 20px 45px rgba(255,0,0,0.2);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.catalog-header h4 {
  font-size: 18px;
  color: #fff;
}

.catalog-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,26,26,0.2);
  border: 1px solid rgba(255,26,26,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-card p {
  color: #e3e9ef;
  line-height: 1.5;
}

.catalog-card.is-clickable {
  cursor: pointer;
}

.catalog-card.is-clickable:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 12px;
}

.catalog-gallery img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  border: 1px solid rgba(255,0,0,0.12);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.catalog-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.catalog-modal.active {
  display: flex;
}

.catalog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.catalog-modal-content {
  position: relative;
  width: min(900px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(255,0,0,0.2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.catalog-modal-title {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.catalog-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,26,26,0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.catalog-modal-body {
  display: grid;
  gap: 16px;
}

.catalog-modal-body img,
.catalog-modal-body video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,0,0,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

.catalog-list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.catalog-list li {
  color: #dfe6ee;
  line-height: 1.4;
  font-size: 14px;
}

.catalog-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.catalog-cta {
  margin-top: 24px;
  text-align: center;
  font-weight: 600;
  color: #fff;
}

.catalog-cta-link {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 800;
}

.catalog-cta-link:hover {
  text-shadow: 0 0 10px rgba(255,26,26,0.4);
}

@media (max-width: 900px) {
  .promo-banner {
    grid-template-columns: 1fr;
  }
}

/* botão transformado em card/cta animado */
.project-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #0b0b0b;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(255,0,0,0.18);
  transition: transform .35s cubic-bezier(.34,.1,.68,.55), box-shadow .35s ease, background-position 0.5s ease;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}

.project-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.project-btn:hover::before {
  opacity: 1;
  animation: pulse-btn 0.6s ease;
}

@keyframes pulse-btn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* internal spans for button layout */
.project-btn .btn-left{
  width: 26px;
  height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.project-btn:hover .btn-left {
  transform: scale(1.2);
}

.project-btn .btn-text{
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.project-btn .btn-right{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  color: rgba(11,11,11,0.95);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(.34,.1,.68,.55);
}

.project-btn:hover .btn-right {
  transform: translateX(5px);
}

/* hover effect */
.project-btn:hover{
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 50px rgba(255,0,0,0.35);
  background-position: 200% 0;
}

/* small screens - ajusta padding e altura da imagem */
@media(max-width:900px){
  .project-card{ min-height: auto; padding: 18px; }
  .project-image{ height: 160px; }
  .projects-container{ gap: 28px; padding: 10px 5%; }
}

/* acessibilidade: foco no botão */
.project-btn:focus{
  outline: 3px solid rgba(255,26,26,0.18);
  outline-offset: 4px;
}

.edicao-scroll{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
}

.edicao-scroll img{
  min-width:260px;
  height:260px;
  object-fit:cover;
  border-radius:14px;
}


/* =====================================================
   ANIMAÇÕES DE SCROLL — PROFISSIONAL
===================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(.22,.61,.36,1),
    filter 1s ease;
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Direções */
[data-animate="left"] { transform: translateX(-80px); }
[data-animate="right"] { transform: translateX(80px); }
[data-animate="up"] { transform: translateY(80px); }

/* Zoom */
[data-animate="zoom"] { transform: scale(.85); }
[data-animate="zoom"].active { transform: scale(1); }

/* Delay automático */
[data-delay="1"] { transition-delay: .15s; }
[data-delay="2"] { transition-delay: .3s; }
[data-delay="3"] { transition-delay: .45s; }
[data-delay="4"] { transition-delay: .6s; }

/* =====================================================
   POR QUE TRABALHAR COMIGO - SEÇÃO CRIATIVA
===================================================== */

.why-work-section {
  background: linear-gradient(135deg, rgba(30,0,0,0.6) 0%, rgba(0,0,0,0.6) 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-card {
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,26,26,0.2);
  border-radius: 18px;
  padding: 35px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.34,.1,.68,.55);
  cursor: pointer;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,26,26,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-card:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: var(--accent2);
  background: rgba(0,0,0,0.7);
  box-shadow: 0 25px 60px rgba(255,0,0,0.25);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  font-size: 48px;
  margin-bottom: 15px;
  animation: float-icon 3s ease-in-out infinite;
}

.why-card:hover .why-icon {
  animation: bounce-icon 0.6s ease;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.why-card h4 {
  color: var(--accent2);
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.why-card p {
  color: #dfe6ee;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =====================================================
   CERTIFICADOS & CONQUISTAS
===================================================== */

.achievements-section {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(30,0,0,0.5) 100%);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.achievement-badge {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(20,0,0,0.4) 100%);
  border: 2px solid rgba(255,26,26,0.25);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.34,.1,.68,.55);
  transform-style: preserve-3d;
}

.achievement-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,26,26,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.achievement-badge:hover {
  transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
  border-color: var(--accent2);
  box-shadow: 0 20px 60px rgba(255,0,0,0.3);
}

.achievement-badge:hover::before {
  opacity: 1;
}

.badge-icon {
  font-size: 56px;
  margin-bottom: 15px;
  display: block;
  animation: pulse-badge 2s ease-in-out infinite;
}

.achievement-badge:hover .badge-icon {
  animation: spin-badge 0.6s ease;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes spin-badge {
  0% { transform: rotateZ(0deg) scale(1); }
  50% { transform: rotateZ(10deg) scale(1.15); }
  100% { transform: rotateZ(0deg) scale(1); }
}

.achievement-badge h4 {
  color: var(--accent2);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.achievement-badge p {
  color: #b8c1ce;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* =====================================================
   TYPED TEXT ANIMATION - MODERNO
===================================================== */

.typed-container {
  min-height: 40px;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent2);
  margin-top: 15px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 20px rgba(255,26,26,0.4);
}

.typed-text {
  position: relative;
  animation: fadeInOut 0.3s ease-in-out;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent2), transparent);
  margin-left: 6px;
  animation: cursor-blink 0.7s infinite;
  vertical-align: text-bottom;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,26,26,0.6);
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* =====================================================
   GRADIENT & GLOW ANIMATIONS - INCRÍVEL
===================================================== */

.title-gradient {
  background: linear-gradient(135deg, #ff1a1a 0%, #ff6b6b 50%, #ff1a1a 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  filter: drop-shadow(0 0 15px rgba(255,26,26,0.3));
  font-size: 48px;
  font-weight: 800;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Float Animation - suave */
.animate-float {
  animation: float-smooth 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(255,26,26,0.2));
}

@keyframes float-smooth {
  0%, 100% { 
    transform: translateY(0px) scale(1) rotateZ(0deg);
  }
  25% {
    transform: translateY(-15px) scale(1.01) rotateZ(1deg);
  }
  50% { 
    transform: translateY(-25px) scale(1.02) rotateZ(-1deg);
  }
  75% {
    transform: translateY(-15px) scale(1.01) rotateZ(1deg);
  }
}

.hero-description {
  animation: fadeInUp 1.3s cubic-bezier(.34,.1,.68,.55) 0.4s both;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.hero-description:hover {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =====================================================
   CALL TO ACTION - SEÇÃO CRIATIVA
===================================================== */

.cta-section {
  background: linear-gradient(135deg, rgba(255,26,26,0.15) 0%, rgba(0,0,0,0.7) 50%, rgba(30,0,0,0.4) 100%);
  border: 2px solid rgba(255,26,26,0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,26,26,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,26,26,0.05) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.cta-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: 15px;
  text-shadow: 0 0 30px rgba(255,26,26,0.4);
  animation: gradient-shift 3s ease infinite;
}

.cta-subtitle {
  font-size: 18px;
  color: #dfe6ee;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1.2s ease 0.3s both;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease 0.4s both;
}

.cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float-smooth 4s ease-in-out infinite;
}

.cta-stat:nth-child(2) {
  animation-delay: 0.2s;
}

.cta-stat:nth-child(3) {
  animation-delay: 0.4s;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent2);
  text-shadow: 0 0 20px rgba(255,26,26,0.5);
}

.stat-label {
  font-size: 14px;
  color: #b8c1ce;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 200%;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid var(--accent2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.34,.1,.68,.55);
  box-shadow: 0 15px 45px rgba(255,0,0,0.3);
  animation: fadeInUp 1.6s ease 0.5s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 25px 60px rgba(255,0,0,0.5);
  background-position: 200% 0;
  border-color: white;
}

.cta-button:hover::before {
  opacity: 1;
  animation: pulse-btn 0.6s ease;
}

/* =====================================================
   MICROINTERAÇÕES PREMIUM (GLOW)
===================================================== */

.skill,
.tool,
.project-card,
.timeline-item {
  position: relative;
  overflow: hidden;
}

.skill::after,
.tool::after,
.project-card::after,
.timeline-item::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at top,
    rgba(255,26,26,0.18),
    transparent 65%);
  opacity:0;
  transition:.4s;
  pointer-events:none;
}

.skill:hover::after,
.tool:hover::after,
.project-card:hover::after,
.timeline-item:hover::after {
  opacity:1;
}

/* =====================================================
   NAVBAR DINÂMICA
===================================================== */

header.scrolled nav {
  background: rgba(5,5,5,.95);
  box-shadow: 0 15px 40px rgba(255,0,0,.25);
}

/* =====================================================
   WAVE ANIMATION
===================================================== */

.wave-container {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin: 60px 0 0 0;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  animation: wave 10s linear infinite;
}

.wave-2 {
  animation: wave 8s linear infinite reverse;
  opacity: 0.5;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(1200px); }
}

/* =====================================================
   CONTACT FORM - INTERATIVO
===================================================== */

.contact-form-container {
  max-width: 600px;
  margin: 0 auto 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 50px 15px 15px;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,26,26,0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(.34,.1,.68,.55);
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(199,206,219,0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(0,0,0,0.6);
  border-color: var(--accent2);
  box-shadow: 0 0 20px rgba(255,26,26,0.3);
  transform: translateY(-2px);
}

.form-icon {
  position: absolute;
  right: 15px;
  font-size: 20px;
  pointer-events: none;
  animation: bounce-icon 2s ease-in-out infinite;
}

.form-group input:focus ~ .form-icon,
.form-group textarea:focus ~ .form-icon {
  animation: bounce-focused 0.4s ease;
}

@keyframes bounce-focused {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.form-submit-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: white;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(.34,.1,.68,.55);
  box-shadow: 0 10px 30px rgba(255,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.form-submit-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-submit-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 50px rgba(255,0,0,0.4);
}

.form-submit-btn:active {
  transform: translateY(-1px);
}

.form-feedback {
  text-align: center;
  height: 25px;
  font-size: 14px;
  animation: fadeInUp 0.4s ease;
}

.form-feedback.success {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74,222,128,0.3);
}

.form-feedback.error {
  color: var(--accent2);
  text-shadow: 0 0 10px rgba(255,26,26,0.3);
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE FIRST
===================================================== */

/* TABLETS (768px - 1024px) */
@media (max-width: 1024px) {
  .section {
    padding: 70px 5%;
    margin: 50px 2%;
  }

  .title {
    font-size: 28px;
  }

  .cta-stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 28px;
  }
}

/* MOBILE LANDSCAPE (768px) */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  /* Header Mobile */
  header nav {
    padding: 15px 4%;
  }

  .logo-container h1 {
    font-size: 22px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  /* Hero Mobile */
  .hero {
    min-height: 75vh;
    padding: 0 5%;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
  }

  .title-gradient {
    font-size: 32px;
  }

  .typed-container {
    font-size: 16px;
  }

  /* Sections Mobile */
  .section {
    padding: 60px 5%;
    margin: 40px 2%;
    border-radius: 14px;
  }

  .title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  /* Skills Grid Mobile */
  .skills {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px;
  }

  .skill {
    padding: 15px;
    font-size: 12px;
  }

  /* Tools Grid Mobile */
  .tools {
    justify-content: center;
    gap: 15px;
  }

  .tool {
    padding: 12px;
  }

  .tool img {
    width: 50px;
    height: 50px;
  }

  .tool span {
    font-size: 12px;
  }

  /* Cards Mobile */
  .project-card {
    padding: 18px;
    min-height: auto;
  }

  .project-image {
    height: 150px;
  }

  .project-card h4 {
    font-size: 16px;
  }

  .project-card p {
    font-size: 12px;
  }

  .project-btn {
    padding: 10px 14px;
    font-size: 12px;
    gap: 8px;
  }

  .project-btn .btn-left {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  /* Why Work Section Mobile */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-card {
    padding: 25px 15px;
  }

  .why-icon {
    font-size: 36px;
  }

  .why-card h4 {
    font-size: 16px;
  }

  .why-card p {
    font-size: 12px;
  }

  /* Achievements Mobile */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .achievement-badge {
    padding: 20px 12px;
  }

  .badge-icon {
    font-size: 40px;
  }

  .achievement-badge h4 {
    font-size: 13px;
  }

  .achievement-badge p {
    font-size: 10px;
  }

  /* Tech Favorites Mobile */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tech-card {
    padding: 20px;
  }

  .tech-card h4 {
    font-size: 15px;
  }

  .tech-card p {
    font-size: 12px;
  }

  /* Timeline Mobile */
  .timeline {
    margin-left: 5px;
    padding-left: 20px;
  }

  .timeline-item {
    margin-bottom: 30px;
    padding: 15px;
  }

  .timeline-item::before {
    left: -28px;
    top: 15px;
    width: 10px;
    height: 10px;
  }

  .timeline-item .period {
    font-size: 12px;
  }

  .timeline-item .company {
    font-size: 14px;
  }

  .timeline-item p {
    font-size: 12px;
  }

  /* CTA Mobile */
  .cta-title {
    font-size: 28px;
  }

  .cta-subtitle {
    font-size: 14px;
  }

  .cta-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .cta-button {
    padding: 14px 30px;
    font-size: 14px;
  }

  /* Buttons Mobile */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    margin: 5px;
  }

  /* Form Mobile */
  .contact-form-container {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 40px 12px 12px;
    font-size: 14px;
  }

  .form-icon {
    right: 12px;
    font-size: 18px;
  }

  .form-submit-btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h5 {
    font-size: 16px;
  }

  .social-links {
    justify-content: center;
    gap: 15px;
  }

  .social-links a {
    font-size: 24px;
  }

  /* Back to Top Mobile */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }

  /* Stats Mobile */
  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    padding: 15px 20px;
  }

  .stat h4 {
    font-size: 24px;
  }

  .stat span {
    font-size: 12px;
  }

  /* About Mobile */
  .about-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* MOBILE PEQUENO (480px) */
@media (max-width: 480px) {
  :root {
    font-size: 12px;
  }

  /* Header Mobile Pequeno */
  header nav {
    padding: 12px 3%;
    top: 3px;
  }

  .logo-container img {
    height: 40px;
  }

  .logo-container h1 {
    font-size: 18px;
  }

  /* Hero Mobile Pequeno */
  .hero {
    min-height: 70vh;
    padding: 0 3%;
  }

  .hero-content {
    padding: 20px 15px;
  }

  .perfil-img {
    width: 100px;
    height: 100px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero-description {
    font-size: 12px;
  }

  .title-gradient {
    font-size: 24px;
  }

  .typed-container {
    font-size: 14px;
    min-height: 30px;
  }

  /* Sections Mobile Pequeno */
  .section {
    padding: 40px 3%;
    margin: 30px 1%;
  }

  .title {
    font-size: 20px;
  }

  /* Skills Mobile Pequeno */
  .skills {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .skill {
    padding: 12px 8px;
    font-size: 11px;
  }

  /* Tools Mobile Pequeno */
  .tool {
    padding: 10px;
  }

  .tool img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
  }

  .tool span {
    font-size: 10px;
  }

  /* Cards Mobile Pequeno */
  .project-card {
    padding: 15px;
  }

  .project-image {
    height: 120px;
    margin-bottom: 12px;
  }

  .project-card h4 {
    font-size: 14px;
    margin: 6px 0 8px 0;
  }

  .project-card p {
    font-size: 11px;
  }

  .project-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .project-btn .btn-left {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  /* Why Work Mobile Pequeno */
  .why-card {
    padding: 20px 12px;
  }

  .why-icon {
    font-size: 28px;
  }

  .why-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .why-card p {
    font-size: 11px;
  }

  /* Achievements Mobile Pequeno */
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .achievement-badge {
    padding: 15px 10px;
  }

  .badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .achievement-badge h4 {
    font-size: 12px;
  }

  .achievement-badge p {
    font-size: 9px;
  }

  /* Buttons Mobile Pequeno */
  .btn {
    padding: 10px 16px;
    font-size: 12px;
    margin: 4px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 13px;
  }

  /* Form Mobile Pequeno */
  .form-group input,
  .form-group textarea {
    padding: 10px 35px 10px 10px;
    font-size: 12px;
  }

  .form-icon {
    right: 10px;
    font-size: 16px;
  }

  .form-submit-btn {
    padding: 12px 20px;
    font-size: 12px;
  }

  .form-feedback {
    font-size: 12px;
  }

  /* Back to Top Mobile Pequeno */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }

  /* Footer Mobile Pequeno */
  .footer-section h5 {
    font-size: 14px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 12px;
  }

  .social-links a {
    font-size: 20px;
  }

  /* Tech Grid Mobile Pequeno */
  .tech-grid {
    gap: 10px;
  }

  .tech-card {
    padding: 15px;
  }

  .tech-card h4 {
    font-size: 13px;
  }

  .tech-card p {
    font-size: 11px;
  }

  /* Wave Mobile Pequeno */
  .wave-container {
    height: 100px;
  }
}
