/* World-Class Portfolio Page Design */
/* This should be included after your main styles.css */

/* === Portfolio Page Layout === */
.portfolio-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .portfolio-header {
    position: relative;
    margin-bottom: 60px;
    padding: 0 var(--spacing-lg);
  }
  
  .portfolio-header:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #000;
    bottom: -20px;
    left: var(--spacing-lg);
  }
  
  .portfolio-header h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1;
    background: linear-gradient(to right, #000, #555);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .portfolio-header .tagline {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin-top: 20px;
    color: #555;
    line-height: 1.6;
  }
  
  /* --- Collection Filter Navigation --- */
  .collection-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 60px 0 40px;
    padding: 0 var(--spacing-lg);
  }
  
  .collection-filter {
    border: 1px solid #ddd;
    background: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
  }
  
  .collection-filter:hover {
    border-color: #000;
  }
  
  .collection-filter.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
  }
  
  /* --- Gallery Layout --- */
  .gallery {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-bottom: 100px;
  }
  
  .gallery-section {
    position: relative;
    opacity: 1;
    transform: none;
    padding: 0 var(--spacing-lg);
  }
  
  .gallery-section-header {
    margin-bottom: 40px;
    position: relative;
  }
  
  .gallery-section-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  
  .gallery-section-header h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: #000;
    bottom: -10px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  .gallery-section.visible .gallery-section-header h3:after {
    transform: scaleX(1);
  }
  
  .gallery-section-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    line-height: 1.6;
  }
  
  /* --- Parallax Container --- */
  .parallax-container {
    height: 50vh;
    min-height: 400px;
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 40px 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .parallax-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
  }
  
  .parallax-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
  }
  
  .parallax-content p {
    font-size: 1rem;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.4s;
  }
  
  .gallery-section.visible .parallax-content h4,
  .gallery-section.visible .parallax-content p {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* --- Gallery Items Grid --- */
  .gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.3s;
  }
  
  .gallery-section.visible .gallery-items {
    opacity: 1;
    transform: translateY(0);
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
  }
  
  .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .gallery-item:hover img {
    transform: scale(1.08);
  }
  
  .gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
  }
  
  .gallery-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.1s;
  }
  
  .gallery-item-year {
    font-size: 0.9rem;
    opacity: 0.8;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.2s;
  }
  
  .gallery-item:hover .gallery-item-title,
  .gallery-item:hover .gallery-item-year {
    transform: translateY(0);
  }
  
  /* --- Artwork Modal --- */
  .artwork-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .artwork-modal.active {
    opacity: 1;
    pointer-events: all;
  }
  
  .modal-content {
    position: relative;
    max-width: 1200px;
    width: 90%;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .artwork-modal.active .modal-content {
    transform: scale(1);
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
  }
  
  .modal-title {
    font-size: 1.4rem;
    font-weight: 600;
  }
  
  .modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
  }
  
  .modal-close:hover {
    color: #000;
  }
  
  .modal-body {
    display: flex;
    flex-direction: column;
    height: 70vh;
  }
  
  .modal-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
  }
  
  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .modal-darkart-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .modal-darkart-toggle label {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin: 0;
  }
  
  .modal-darkart-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .modal-darkart-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }
  
  .modal-darkart-toggle .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  .modal-darkart-toggle input:checked + .slider {
    background-color: #000;
  }
  
  .modal-darkart-toggle input:checked + .slider:before {
    transform: translateX(16px);
  }
  
  .modal-info {
    padding: 30px;
    background-color: white;
    border-top: 1px solid #eee;
  }
  
  .modal-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .artwork-details h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .artwork-details p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .artwork-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .meta-item {
    margin-bottom: 10px;
  }
  
  .meta-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
  }
  
  .meta-value {
    font-size: 1rem;
  }
  
  .modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
  }
  
  .modal-action-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .modal-action-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
  }
  
  .modal-action-btn.secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
  }
  
  .modal-action-btn.secondary:hover {
    background-color: rgba(0,0,0,0.05);
  }
  
  /* --- Light/Dark Toggle for Darkart Demo --- */
  .darkmode-demo {
    padding: 40px 0;
    background-color: #f8f8f8;
    text-align: center;
    margin: 80px 0;
    border-radius: 4px;
  }
  
  .darkmode-demo h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .darkmode-demo p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
  }
  
  .darkmode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .darkmode-toggle span {
    font-weight: 600;
    font-size: 1rem;
  }
  
  .darkmode-toggle label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0;
  }
  
  .darkmode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .darkmode-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  .darkmode-toggle .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  .darkmode-toggle input:checked + .slider {
    background-color: #000;
  }
  
  .darkmode-toggle input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  .darkmode-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .darkmode-image-container {
    position: relative;
    width: 350px;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }
  
  .darkmode-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .darkmode-image.light {
    opacity: 1;
    z-index: 2;
  }
  
  .darkmode-image.dark {
    opacity: 0;
    z-index: 1;
  }
  
  .darkmode-preview.dark-mode .darkmode-image.light {
    opacity: 0;
  }
  
  .darkmode-preview.dark-mode .darkmode-image.dark {
    opacity: 1;
  }
  
  .darkmode-label {
    margin-top: 15px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
  }
  
  /* --- Call to Action --- */
  .portfolio-cta {
    background-color: #f8f8f8;
    padding: 80px 40px;
    text-align: center;
    margin: 100px 0 60px;
    border-radius: 4px;
  }
  
  .portfolio-cta h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  .portfolio-cta p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
  }
  
  .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #000;
    color: white;
    border: none;
  }
  
  .cta-button:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .cta-button.secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
  }
  
  .cta-button.secondary:hover {
    background-color: rgba(0,0,0,0.05);
  }
  
  /* --- Responsive Design --- */
  @media (min-width: 768px) {
    .gallery-items {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-body {
      flex-direction: row;
    }
    
    .modal-image-container {
      flex: 3;
    }
    
    .modal-info {
      flex: 2;
      border-top: none;
      border-left: 1px solid #eee;
      max-width: 400px;
      height: 100%;
      overflow-y: auto;
    }
  }
  
  @media (min-width: 1024px) {
    .gallery-items {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-info-grid {
      grid-template-columns: 3fr 2fr;
    }
    
    .artwork-meta {
      grid-template-columns: 1fr;
    }
  }
  
  /* --- Animations --- */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* --- Theme Toggle (Page Level) --- */
  .theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  .theme-toggle.dark {
    background-color: #222;
  }
  
  .theme-toggle .icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
  }
  
  .theme-toggle .sun-icon {
    opacity: 1;
  }
  
  .theme-toggle .moon-icon {
    opacity: 0;
    position: absolute;
    color: white;
  }
  
  .theme-toggle.dark .sun-icon {
    opacity: 0;
  }
  
  .theme-toggle.dark .moon-icon {
    opacity: 1;
  }
  
  /* --- Dark Mode Styles (if added) --- */
  body.dark-theme {
    background-color: #121212;
    color: #f8f8f8;
  }
  
  body.dark-theme header {
    background-color: rgba(18, 18, 18, 0.95);
  }
  
  body.dark-theme .portfolio-header h2 {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  body.dark-theme .portfolio-header .tagline,
  body.dark-theme .gallery-section-header p {
    color: #aaa;
  }
  
  body.dark-theme .collection-filter {
    border-color: #333;
    color: #ddd;
  }
  
  body.dark-theme .collection-filter:hover {
    border-color: #fff;
  }
  
  body.dark-theme .collection-filter.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
  }
  
  body.dark-theme .gallery-item {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  
  body.dark-theme .modal-content,
  body.dark-theme .modal-info,
  body.dark-theme .modal-header {
    background-color: #222;
    border-color: #333;
  }
  
  body.dark-theme .modal-title,
  body.dark-theme .artwork-details h3 {
    color: #fff;
  }
  
  body.dark-theme .modal-close {
    color: #aaa;
  }
  
  body.dark-theme .modal-close:hover {
    color: #fff;
  }
  
  body.dark-theme .artwork-details p,
  body.dark-theme .meta-value {
    color: #ddd;
  }
  
  body.dark-theme .meta-label {
    color: #aaa;
  }
  
  body.dark-theme .modal-action-btn.secondary {
    color: #fff;
    border-color: #fff;
  }
  
  body.dark-theme .darkmode-demo,
  body.dark-theme .portfolio-cta {
    background-color: #222;
  }
  
  body.dark-theme .darkmode-demo p,
  body.dark-theme .portfolio-cta p,
  body.dark-theme .darkmode-label {
    color: #aaa;
  }
  
  body.dark-theme .cta-button.secondary {
    color: #fff;
    border-color: #fff;
  }