/* Portfolio Page Styles */

.portfolio-header {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted, #666);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text-color, #000);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.portfolio-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.portfolio-header .subtitle {
  color: var(--text-muted, #666);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.portfolio-header .description {
  color: var(--text-muted, #666);
  font-size: 0.95rem;
  max-width: 600px;
}

/* Side Navigation */
.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-nav-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.side-nav .nav-item {
  text-decoration: none;
  color: var(--text-muted, #999);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem;
}

.side-nav .nav-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted, #999);
  transition: all 0.3s ease;
}

.side-nav .nav-item.active {
  color: var(--text-color, #000);
}

.side-nav .nav-item.active::before {
  width: 8px;
  height: 8px;
  background: var(--text-color, #000);
}

.side-nav .nav-item:hover {
  color: var(--text-color, #000);
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Portfolio Main */
.portfolio-main {
  padding-right: 8rem;
}

/* Introduction Section */
.intro-section {
  padding: 2rem 0 4rem;
}

.intro-gallery {
  display: grid;
  gap: 2.5rem;
  max-width: 1400px;
}

.intro-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Project Sections */
.project-section {
  padding: 4rem 0;
  min-height: 100vh;
}

.project-section:first-of-type {
  padding-top: 2rem;
}

.project-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.project-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-header h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted, #666);
  margin-bottom: 1rem;
}

.project-header .meta {
  font-size: 0.95rem;
  color: var(--text-muted, #666);
  margin-bottom: 1rem;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tags li {
  background: var(--bg-secondary, #f5f5f5);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-color, #000);
}

.badge-individual {
  display: inline-block;
  background: var(--text-color, #000);
  color: var(--bg-color, #fff);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Project Gallery */
.project-gallery {
  display: grid;
  gap: 2.5rem;
  max-width: 1400px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 1024px) {
  .side-nav {
    right: 1rem;
  }
  
  .portfolio-main {
    padding-right: 5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: 1rem;
  }
  
  .header-avatar {
    width: 50px;
    height: 50px;
  }
  
  .portfolio-header h1 {
    font-size: 1.8rem;
  }
  
  .portfolio-header .subtitle {
    font-size: 1rem;
  }
  
  .portfolio-header .description {
    font-size: 0.9rem;
  }
  
  .side-nav {
    display: none;
  }
  
  .portfolio-main {
    padding-right: 0;
  }
  
  .intro-section {
    padding: 1.5rem 0 3rem;
  }
  
  .intro-gallery {
    gap: 1.5rem;
  }
  
  .project-section {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .project-header h2 {
    font-size: 1.8rem;
  }
  
  .project-gallery {
    gap: 1.5rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .tags li {
    background: #2a2a2a;
  }
  
  .project-gallery img {
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05);
  }
  
  .project-gallery img:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
  }
}


/* Image Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10000;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Make gallery images clickable */
.project-gallery img,
.intro-gallery img {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
  
  .lightbox-counter {
    bottom: 1rem;
    font-size: 1rem;
  }
}
