/* Portfolio Individual Page Styles */
.portfolio-page {
  background: linear-gradient(135deg, #020b32 0%, #020b32 100%);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Reset específico para páginas de portfolio */
.portfolio-page * {
  box-sizing: border-box;
}

.portfolio-page body {
  margin: 0;
  padding: 0;
}

/* Portfolio Main Container */
.portfolio-main {
  padding-top: 80px;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Portfolio Hero Image */
.portfolio-hero-image {
  width: 100%;
  max-width: 1200px;
  height: 700px;
  margin: 0 auto 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
  position: relative;
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
  transform: scale(1);
}

/* Portfolio Gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto 40px;
  max-width: 1200px;
}

.gallery-item {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 217, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 217, 255, 0.25);
}

.gallery-item.active {
  border: 2px solid #00d9ff;
  box-shadow: 0 15px 30px rgba(0, 217, 255, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Portfolio Secondary Image */
.portfolio-secondary-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
  position: relative;
}

.portfolio-secondary-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Portfolio Info Section */
.portfolio-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Portfolio Description */
.portfolio-description h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.2;
  color: #ffffff;
}

.portfolio-description p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Portfolio Details */
.portfolio-details {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.detail-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-item h5 {
  color: #00d9ff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.detail-item p {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
}

.detail-link {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-link:hover {
  color: #00ff88;
}

/* Next Project Section */
.next-project {
  margin-top: 60px;
  text-align: center;
}

.next-project-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.next-project-link:hover {
  transform: translateY(-5px);
}

.next-project-image {
  width: 300px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 217, 255, 0.2);
}

.next-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-project-text h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.next-project-text h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.next-project-text p {
  color: #b8b8b8;
  margin-bottom: 20px;
}

.next-project-button {
  color: var(--text-white);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 25px;
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
             var(--gradient-accent) border-box;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.next-project-button:hover {
  background: var(--accent-cyan);
  color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .portfolio-hero-image {
    height: auto;
    aspect-ratio: 1200/700;
  }
  
  .portfolio-hero-image img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .portfolio-container {
    padding: 20px 15px;
  }
  
  .portfolio-hero-image {
    height: auto;
    aspect-ratio: 1200/700;
  }

  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    height: 120px;
  }

  .portfolio-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-description h2 {
    font-size: 2rem;
  }

  .portfolio-description p {
    font-size: 15px;
  }

  .portfolio-details {
    padding: 20px;
  }

  .next-project-image {
    width: 250px;
    height: 150px;
  }

  .next-project-text h2 {
    font-size: 1.3rem;
  }

  .next-project-text h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .portfolio-container {
    padding: 15px 10px;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item {
    height: 100px;
  }

  .portfolio-description h2 {
    font-size: 1.8rem;
  }

  .portfolio-description p {
    font-size: 14px;
  }

  .portfolio-details {
    padding: 15px;
  }

  .detail-item h5 {
    font-size: 13px;
  }

  .detail-item p {
    font-size: 15px;
  }

  .next-project-image {
    width: 200px;
    height: 120px;
  }

  .next-project-text h2 {
    font-size: 1.2rem;
  }

  .next-project-text h3 {
    font-size: 1.2rem;
  }

  .next-project-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Navegación de Proyectos */
.project-navigation {
  border-radius: 20px;
  padding: 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.project-navigation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.project-navigation::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.navigation-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  min-width: 1000px;
}

.container-1, .container-2, .container-3, .container-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.container-1, .container-4 {
  min-width: 250px;
  flex: 0 0 400px;
}

.container-2, .container-3 {
  width: 200px;
  flex: 0 0 200px;
}

.nav-button {
  color: var(--text-white);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 25px;
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
             var(--gradient-accent) border-box;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.nav-button:hover {
  background: var(--accent-cyan);
  color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.arrow {
  width: 16px;
  height: 16px;
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.project-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.project-image:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .project-navigation {
    padding: 30px 40px;
    max-width: 95vw;
  }

  .project-navigation::before,
  .project-navigation::after {
    left: 40px;
    right: 40px;
  }
  
  .navigation-content {
    min-width: auto;
    gap: 30px;
  }

  .container-1, .container-4 {
    min-width: 200px;
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .navigation-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .container-1, .container-4 {
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }

  .container-2, .container-3 {
    display: none;
  }

  .container-1 {
    order: 1;
  }

  .container-4 {
    order: 3;
  }

  .project-title {
    font-size: 18px;
  }

  .project-subtitle {
    font-size: 14px;
  }

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

  .nav-button {
    font-size: 14px;
    padding: 10px 20px;
    width: auto;
    text-align: center;
  }
}