/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  background-attachment: fixed;
  color: #e4e4e7;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #34d399;
}

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

.nav-link {
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
  color: #10b981;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  top: 20%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
  filter: blur(40px);
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  bottom: -10%;
  left: 5%;
  animation: float 10s ease-in-out infinite reverse;
  filter: blur(50px);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out, gradientShift 6s ease-in-out infinite;
  letter-spacing: -0.02em;
  position: relative;
  filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.1));
}

.hero h1::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
  filter: blur(20px);
  z-index: -1;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #d4d4d8 50%, #a1a1aa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.2s both, gradientShift 8s ease-in-out infinite;
  letter-spacing: 0.5px;
}

.impact {
  font-size: 1.2rem;
  color: #a1a1aa;
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  line-height: 1.8;
  position: relative;
  padding: 1.5rem;
  border-left: 3px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.impact:hover {
  border-left-color: #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
  transform: translateX(10px);
  color: #e4e4e7;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  flex-wrap: wrap;
}

.hero-links::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 80%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  z-index: -1;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #10b981;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: visible;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(8px);
  z-index: -1;
}

.social-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover::after {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-6px) scale(1.15);
  border-color: #10b981;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Sections */
.section {
  padding: 5rem 0;
  background: #0a0a0a;
}

.section-alt {
  background: #0f0f0f;
}

.section h2 {
  font-size: 2.5rem;
  color: #10b981;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
#about {
  position: relative;
  z-index: 10;
}

#about p {
  font-size: 1.1rem;
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  transition: color 0.3s ease;
}

#about p:hover {
  color: #d4d4d8;
}

/* Animações de entrada */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #10b981, rgba(16, 185, 129, 0.1));
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: #e4e4e7;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: #10b981;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-date {
  color: #71717a;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}

.timeline-content p {
  color: #a1a1aa;
  line-height: 1.7;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.6s;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.project-card h3 {
  font-size: 1.3rem;
  color: #e4e4e7;
  margin-bottom: 1rem;
}

.project-card > p {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s;
  cursor: default;
}

.project-card:hover .tag {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.project-link {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 0.8rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.skill-category h3 {
  color: #10b981;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
  transition: all 0.3s;
}

.skill-category:hover h3 {
  color: #34d399;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  color: #a1a1aa;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.3s;
}

.skill-category li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #10b981;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.skill-category:hover li {
  color: #e4e4e7;
}

.skill-category:hover li::before {
  transform: scale(1.3);
}

/* Certifications */
.certifications {
  max-width: 900px;
  margin: 0 auto;
}

.certifications h3 {
  color: #10b981;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-item:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-4px) translateX(4px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.cert-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-item span {
  color: #a1a1aa;
  font-size: 0.95rem;
}

/* Contact */
.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #a1a1aa;
  margin-bottom: 3rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.6s;
}

.contact-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: #71717a;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  .impact {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .projects-grid,
  .skills-grid,
  .cert-list {
    grid-template-columns: 1fr;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .contact-btn {
    justify-content: center;
  }
  
  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }
  
  .hero-content::before {
    width: 400px;
    height: 400px;
  }
}
