@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --grey: #334155;
  --grey-light: #64748b;
  --white: #f8fafc;
  --card-bg: #1e293b;
  --shadow: rgba(0, 0, 0, 0.3);
  --glow: rgba(99, 102, 241, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ===================== ANIMATED BACKGROUND ===================== */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(50px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* ===================== CONTAINER ===================== */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  max-width: 900px;
  width: 100%;
  padding: 50px;
  box-shadow: 0 20px 60px var(--shadow);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== PROFILE SECTION ===================== */
.profile__header {
  text-align: center;
  margin-bottom: 40px;
}

.profile__picture-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile__picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px var(--glow);
  position: relative;
  overflow: hidden;
  animation: pulse 3s infinite;
}

.profile__picture::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px var(--glow);
  }

  50% {
    box-shadow: 0 10px 50px rgba(99, 102, 241, 0.6);
  }
}

@keyframes shine {
  0% {
    top: -50%;
    left: -50%;
  }

  100% {
    top: 150%;
    left: 150%;
  }
}

.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border: 3px solid var(--card-bg);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.profile__name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile__job {
  font-size: 16px;
  color: var(--grey-light);
  margin-bottom: 10px;
  font-weight: 400;
}

.profile__location {
  font-size: 14px;
  color: var(--grey-light);
  margin-bottom: 25px;
}

.profile__location i {
  color: var(--primary);
  margin-right: 5px;
}

/* ===================== SOCIAL LINKS ===================== */
.profile__links {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin-bottom: 30px;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
}

.social-btn:hover::before {
  width: 100%;
  height: 100%;
}

.social-btn i {
  font-size: 20px;
  color: var(--white);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--glow);
}

/* ===================== STATS ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================== TABS NAVIGATION ===================== */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 10px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--grey-light);
  padding: 15px 20px;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tab-btn i {
  font-size: 20px;
}

.tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 5px 20px var(--glow);
}

/* ===================== CONTENT SECTIONS ===================== */
.content {
  position: relative;
  min-height: 500px;
}

.section-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
}

.section-title i {
  color: var(--primary);
  font-size: 32px;
}

/* ===================== ABOUT SECTION ===================== */
.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--grey-light);
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary-light);
  font-weight: 600;
}

.subsection-title {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 20px;
  color: var(--white);
}

.interests {
  margin-top: 30px;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.tag i {
  font-size: 16px;
}

.philosophy {
  margin-top: 30px;
}

blockquote {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  padding: 25px;
  border-radius: 10px;
  font-style: italic;
  color: var(--grey-light);
  line-height: 1.8;
  position: relative;
}

blockquote .fa-quote-left {
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0.3;
  font-size: 24px;
}

blockquote .fa-quote-right {
  position: absolute;
  bottom: 15px;
  right: 15px;
  opacity: 0.3;
  font-size: 24px;
}

/* ===================== SKILLS SECTION ===================== */
.skills-category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title i {
  color: var(--primary);
  font-size: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--glow);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  background: var(--primary);
  transform: rotateY(360deg);
}

.skill-icon i {
  font-size: 28px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
  color: var(--white);
}

.skill-card h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--white);
}

.skill-level {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.level-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 1s ease;
}

.skill-label {
  font-size: 12px;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================== PROJECTS SECTION ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--glow);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon i {
  font-size: 24px;
  color: var(--white);
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-light);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.project-date {
  font-size: 13px;
  color: var(--grey-light);
}

.view-project {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.project-card:hover .view-project {
  gap: 10px;
}

/* ===================== INFO SECTION ===================== */
.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary);
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-title i {
  color: var(--primary);
  font-size: 24px;
}

.info-content {
  color: var(--grey-light);
}

.education-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.edu-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-icon i {
  font-size: 28px;
  color: var(--primary);
}

.edu-details h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.institution {
  font-size: 15px;
  color: var(--grey-light);
  margin-bottom: 5px;
}

.location {
  font-size: 14px;
  color: var(--grey-light);
}

.location i {
  color: var(--primary);
  margin-right: 5px;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-item:last-child {
  border-bottom: none;
}

.language-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-name i {
  color: var(--primary);
}

.language-level {
  display: flex;
  align-items: center;
  gap: 15px;
}

.level-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.filled {
  background: var(--primary);
}

.level-text {
  font-size: 14px;
  color: var(--grey-light);
}

.cert-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-item:last-child {
  border-bottom: none;
}

.cert-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon i {
  font-size: 24px;
  color: var(--accent);
}

.cert-details h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
}

.cert-details p {
  font-size: 14px;
  color: var(--grey-light);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--glow);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--glow);
}

.download-btn i {
  font-size: 20px;
}

/* ===================== FOOTER ===================== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
}

.footer-text {
  font-size: 14px;
  color: var(--grey-light);
}

.footer-text i {
  color: #ef4444;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .card {
    padding: 30px 25px;
  }

  .profile__name {
    font-size: 28px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-btn {
    font-size: 13px;
    padding: 12px 15px;
  }

  .tab-btn i {
    font-size: 18px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  .education-item {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 10px;
  }

  .card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .profile__picture {
    width: 120px;
    height: 120px;
  }

  .profile__name {
    font-size: 24px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .interest-tags {
    gap: 8px;
  }

  .tag {
    font-size: 12px;
    padding: 8px 15px;
  }
}

.profile__picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  /* Add this line: */
  background-image: url("imgs/perfil.jpg");
  background-size: cover;
  background-position: center;
  /* ... rest of the code */
}
