/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme colors */
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #f8fafc;
  --card-foreground: #1e293b;
  --primary: #0061fd;
  --primary-foreground: #ffffff;
  --secondary: #f59e0b;
  --secondary-foreground: #ffffff;
  --terciary: #1cc41c;
  --terciary-foreground: #ffffff;
  --quaternary: #e11d48;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f59e0b;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #ffffff;
  --ring: rgba(59, 130, 246, 0.3);

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 4rem 0;
  --border-radius: 0.5rem;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dark {
  --background: #0f172a;
  --foreground: #f1f5f9;
  --card: #1e293b;
  --card-foreground: #e2e8f0;
  --primary: #0061fd;
  --primary-foreground: #ffffff;
  --secondary: #fbbf24;
  --secondary-foreground: #0f172a;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #fbbf24;
  --accent-foreground: #0f172a;
  --border: #334155;
  --input: #1e293b;
  --ring: rgba(96, 165, 250, 0.3);
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

button {
  font-family: var(--font-family);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.dark .header {
  background-color: rgba(15, 23, 42, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.125rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--muted);
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background-color: var(--muted);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

.nav-link-mobile {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: var(--primary);
  background-color: var(--muted);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accent-line {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.1;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 500;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 32rem;
}

.social-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-label {
  font-weight: 600;
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary-foreground);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  opacity: 0.8;
}

.btn-terciary {
  background-color: var(--terciary);
  color: var(--primary-foreground);
}

.btn-terciary:hover {
  background-color: var(--terciary);
  opacity: 0.8;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.brand-section {
  padding-top: 2rem;
}

.brand-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.brand-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: bold;
  font-size: 1.125rem;
}

.brand-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.brand-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  max-width: 31rem;
  margin: 0 auto;
}

.image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.2));
  border-radius: 1.5rem;
  transform: rotate(6deg);
}

.image-card {
  position: relative;
  background-color: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-text {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-icons {
  display: flex;
  gap: 1rem;
  color: var(--primary);
}

/* Skills Section */
.skills {
  padding: var(--section-padding);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.875rem;
}

.skill-icon.html {
  background-color: #e34f26;
}

.skill-icon.css {
  background-color: #1572b6;
}

.skill-icon.js {
  background-color: #f7df1e;
  color: #000;
}

.skill-icon.bootstrap {
  background-color: #7952b3;
}

.skill-icon.typescript {
  background-color: #3178c6;
}

.skill-icon.vue {
  background-color: #4fc08d;
}

.skill-icon.nodejs {
  background-color: #339933;
}

.skill-icon.express {
  background-color: #000000;
}

.skill-icon.nestjs {
  background-color: #e0234e;
}

.skill-icon.python {
  background-color: #3776ab;
}

.skill-icon.django {
  background-color: #092e20;
}

.skill-icon.php {
  background-color: #777bb4;
}

.skill-icon.postgres {
  background-color: #336791;
}

.skill-icon.mysql {
  background-color: #4479a1;
}

.skill-icon.git {
  background-color: #f05032;
}

.skill-icon.github {
  background-color: #181717;
}

.skill-icon.vscode {
  background-color: #007acc;
}

.skill-icon.docker {
  background-color: #2496ed;
}

.skill-icon.trello {
  background-color: #0079bf;
}

.skill-icon.canva {
  background-color: #00c4cc;
}

.skill-icon.instagram {
  background-color: #e4405f;
}

.skill-icon.figma {
  background-color: #f24e1e;
}

.skill-icon.thunder {
  background-color: #ff6c37;
}

.skill-icon.redhat {
  background-color: #ee0000;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--foreground);
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
  background-color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card .tag {
  position: absolute;
  overflow: hidden;
  width: 150px;
  height: 150px;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .tag::before {
  content: 'En Progreso';
  position: absolute;
  width: 150%;
  height: 40px;
  background-image: linear-gradient(45deg, #ff6547 0%, #ffb144  51%, #ff7053  100%);
  transform: rotate(-45deg) translateY(-20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 5px 10px rgba(0,0,0,0.23);
}

.project-card .tag::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: 0;
  left: 0;
  z-index: -1;
  box-shadow: 140px -140px #cc3f47;
  background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
}


.project-card:nth-child(2) .tag {
  position: absolute;
  overflow: hidden;
  width: 150px;
  height: 150px;
  top: -10px;
  left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:nth-child(2) .tag::before {
  content: "Completado";
  position: absolute;
  width: 150%;
  height: 40px;
  background-image: linear-gradient(45deg, #22c55e 0%, #4ade80 51%, #16a34a 100%);
  transform: rotate(-45deg) translateY(-20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.23);
}

.project-card:nth-child(2) .tag::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: 0;
  left: 0;
  z-index: -1;
  box-shadow: 140px -140px #15803d;
  background-image: linear-gradient(45deg, #22c55e 0%, #4ade80 51%, #22c55e 100%);
}



.project-image {
  width: 100%;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.project-category {
  width: fit-content;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.75rem 0 1rem 0;
}

.project-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 1.5rem; */

}

.tech-tag img {
  width: 100%;
  height: 100%;
}

.project-button button {
  width: 100%;
}



/* .tech-tag.vue{
  background: #32b682;
  color: #fff;
}
.tech-tag.nest{
  background: #e61853;
  color: #fff;
}
.tech-tag.postgres{
  background: #2596be;
  color: #fff;
}
.tech-tag.bootstrap{
  background: #721cf1;
  color: #fff;
}
.tech-tag.html{
  background: #f8603a;
  color: #fff;
}
.tech-tag.css{
  background: #00aad9;
  color: #fff;
}
.tech-tag.js{
  background: #fbdd3f;
  color: #fff;
} */






/* Contact Section */
.contact {
  padding: var(--section-padding);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.contact-item i {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background-color: var(--input);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-controls {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-intro {
    display: flex;
    justify-content: center;
  }

  .accent-line {
    margin: 0 auto;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .brand-info {

    text-align: left;
  }

  .social-links {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}