* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00d8ff;
  --primary-dark: #0098b8;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --card-bg: #111827;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
}

html {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
  background-color: var(--bg-dark);
  background: transparent;
  position: relative;
  z-index: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
  background-color: var(--bg-dark);
  transform: translateZ(0);
}
/* Animações globais */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 216, 255, 0.5);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Classes de animação */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.scroll-reveal {
  animation: fadeInUp 0.8s ease-out both;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1f3a 100%);
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(0, 216, 255, 0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: shimmer 2s infinite;
}

.header-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 216, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-content {
  animation: slideInDown 0.8s ease-out;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 1px;
}

header p.subtitle {
  color: var(--text-muted);
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

/* Seções */
section {
  padding: 60px 0;
  position: relative;
}

section:nth-child(even) {
  background: rgba(0, 216, 255, 0.02);
}

.section-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* Sobre */
.sobre {
  animation-delay: 0.2s;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05em;
  margin-bottom: 30px;
}

.skills-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.skill-tag {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(0, 216, 255, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border: 1px solid rgba(0, 216, 255, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 216, 255, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 216, 255, 0.2);
}

/* Projetos */
.projetos {
  animation-delay: 0.4s;
}

.projetos .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(
    135deg,
    var(--card-bg) 0%,
    rgba(26, 31, 58, 0.8) 100%
  );
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(0, 216, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out both;
}

.card[data-index="0"] {
  animation-delay: 0.2s;
}
.card[data-index="1"] {
  animation-delay: 0.3s;
}
.card[data-index="2"] {
  animation-delay: 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 216, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.card-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: inline-block;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.4em;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.7;
}

.btn-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.btn-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.btn-link:hover {
  color: var(--accent-light);
}

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

.card:hover {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(0, 216, 255, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 216, 255, 0.2);
}

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

.card:hover h3 {
  color: var(--primary);
}

/* Contato */
.contato {
  animation-delay: 0.6s;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.05em;
  margin-bottom: 30px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(0, 216, 255, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(0, 216, 255, 0.15);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out both;
  cursor: pointer;
}

.contact-card:nth-of-type(1) {
  animation-delay: 0.3s;
}
.contact-card:nth-of-type(2) {
  animation-delay: 0.4s;
}
.contact-card:nth-of-type(3) {
  animation-delay: 0.5s;
}

.contact-card .icon {
  font-size: 1.8em;
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

.contact-card:nth-of-type(2) .icon {
  animation-delay: 0.5s;
}

.contact-card:nth-of-type(3) .icon {
  animation-delay: 1s;
}

.contact-card strong {
  display: block;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.05em;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95em;
}

.contact-card:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 216, 255, 0.15),
    rgba(124, 58, 237, 0.15)
  );
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 216, 255, 0.2);
}

.contact-card:hover strong {
  color: var(--accent-light);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 216, 255, 0.1);
  background: var(--bg-darker);
  color: var(--text-muted);
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.footer-accent {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 216, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

footer p {
  position: relative;
  z-index: 1;
}

/* Classe para efeitos de hover com elevação */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
}

/* Responsivo */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  .section-title {
    font-size: 1.5em;
  }

  .projetos .grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 0;
  }

  header {
    padding: 30px 0 25px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  header p.subtitle {
    font-size: 0.95em;
  }

  .section-title {
    font-size: 1.3em;
  }

  .card {
    padding: 20px;
  }

  .contact-card {
    padding: 18px;
  }

  .skills-mini {
    gap: 8px;
  }

  .skill-tag {
    padding: 5px 12px;
    font-size: 0.85em;
  }
}
