/* Portfolio Page Styles */
:root {
  --primary-color: #00ffbf;
  --secondary-color: #000000;
  --text-color: #ffffff;
  --dark-bg: #0a0a0a;
  --card-bg: rgba(0, 35, 26, 0.7);
}

.goldman-regular {
  font-family: "Goldman", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.goldman-bold {
  font-family: "Goldman", sans-serif;
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Goldman', sans-serif;
  background-color: var(--secondary-color);
  background-image: url('image/carbono-01.svg');
  background-size: 30px;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-img {
  height: 40px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Main Content */
.portfolio-main {
  margin-top: 80px;
  padding: 2rem;
}

.portfolio-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  padding: 2rem 0;
}

.portfolio-header h1 {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.portfolio-header p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Container */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 191, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.project.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.project:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.project:nth-child(even) .project-image {
  order: 2;
}

.project:nth-child(even) .project-info {
  order: 1;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.project-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover .project-image img {
  transform: scale(1.05);
}

.project-info h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.project-category {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.project-details span {
  color: rgba(255, 255, 255, 0.7);
}

.project-details strong {
  color: var(--primary-color);
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 255, 191, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 255, 191, 0.3);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding: 4rem 2rem;
  margin: 4rem 0 2rem 0;
  background: linear-gradient(135deg, rgba(0, 255, 191, 0.1), rgba(0, 0, 0, 0.8));
  border-radius: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background: #00e6aa;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 191, 0.3);
}

/* Footer */
.portfolio-footer {
  background: var(--dark-bg);
  padding: 3rem 2rem 1rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 255, 191, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(0, 255, 191, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 191, 0.3);
}

.footer-links a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-main {
    padding: 1rem;
  }
  
  .portfolio-header h1 {
    font-size: 2.5rem;
  }
  
  .portfolio-header p {
    font-size: 1rem;
  }
  
  .project {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .project:nth-child(even) .project-image,
  .project:nth-child(even) .project-info {
    order: initial;
  }
  
  .project-image img {
    height: 250px;
  }
  
  .project-info h2 {
    font-size: 2rem;
  }
  
  .project-description {
    font-size: 1rem;
  }
  
  .contact-cta {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }
  
  .contact-cta h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .back-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .portfolio-header h1 {
    font-size: 2rem;
  }
  
  .project {
    padding: 1rem;
  }
  
  .project-info h2 {
    font-size: 1.5rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .contact-cta h2 {
    font-size: 1.5rem;
  }
  
  .cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
