/* ==========================================
   FADDIERATION — Portfolio Page
   ========================================== */

.port-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
}
.port-hero canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.port-hero .container {
  position: relative;
  z-index: 2;
}
.port-hero-inner {
  padding-left: var(--side-w);
  max-width: 700px;
}
.port-hero-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--black);
}
.port-hero-inner p {
  color: var(--dark-gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Filter Section */
.port-filter-section {
  background: var(--white);
  padding-top: 60px;
}
.port-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: center;
}
.port-tab {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: transparent;
  color: var(--dark-gray);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.port-tab.active,
.port-tab:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Grid */
.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 1200px) {
  .port-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .port-hero-inner {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .port-grid {
    grid-template-columns: 1fr;
  }
}
.port-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.port-item.hiding {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
.port-item.is-hidden {
  display: none;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
.port-item .thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--white));
}
.port-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.port-item .thumb-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}
.port-item .thumb-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-gray);
}
.port-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.port-item:hover .overlay {
  opacity: 1;
}
.port-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}
.port-item .overlay h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--white);
}
.port-item .overlay .cat-tag {
  font-size: 0.75rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.port-item .overlay p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Show More Button */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
  transition: opacity 0.4s, transform 0.4s;
}
.show-more-wrap.hidden {
}
.show-more-btn {
  padding: 14px 32px;
  font-size: 0.9rem;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.show-more-btn i {
  transition: transform 0.3s;
}
.show-more-btn:hover i {
  transform: rotate(90deg);
}

/* More Projects Section (initially hidden) */
.more-projects-section {
  background: var(--light);
  padding: 40px 0 1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.more-projects-section.visible {
  opacity: 1;
}
.port-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.port-modal.open {
  opacity: 1;
  visibility: visible;
}
.port-modal-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.port-modal.open .port-modal-bg {
  transform: scale(1);
}
.port-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.port-modal-icon {
  font-size: 12rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.4));
  animation: modalIconIn 0.5s ease;
}
@keyframes modalIconIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 0.9; }
}
.port-modal-label {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  opacity: 0.8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.port-modal-title {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  max-width: 80%;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  animation: modalTitleIn 0.5s ease 0.1s both;
}
@keyframes modalTitleIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.port-modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  box-sizing: border-box;
}
.port-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--black);
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  line-height: 1;
  opacity: 0.9;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.port-modal-close:hover {
  opacity: 1;
  background: var(--white);
  transform: scale(1.1) rotate(90deg);
}

.port-modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--black);
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 100;
  opacity: 0.9;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.port-modal-nav:hover {
  opacity: 1;
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}
.port-modal-prev {
  left: 1.5rem;
}
.port-modal-next {
  right: 1.5rem;
}

@media (max-width: 1024px) {
  .port-hero-inner {
    padding-left: 0;
  }
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .port-grid {
    grid-template-columns: 1fr;
  }
}

 
 / *   S h o w   M o r e   B u t t o n   * / 
 . s h o w - m o r e - c o n t a i n e r   { 
     m a r g i n - t o p :   3 r e m ; 
     m a r g i n - b o t t o m :   2 r e m ; 
 } 
 
 . s h o w - m o r e - b t n   { 
     p a d d i n g :   1 4 p x   3 2 p x ; 
     f o n t - s i z e :   1 r e m ; 
     f o n t - w e i g h t :   5 0 0 ; 
     b o r d e r - r a d i u s :   8 p x ; 
     t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
     p o s i t i o n :   r e l a t i v e ; 
     o v e r f l o w :   h i d d e n ; 
 } 
 
 . s h o w - m o r e - b t n : h o v e r   { 
     t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
     b o x - s h a d o w :   0   8 p x   2 5 p x   r g b a ( 5 9 ,   1 3 0 ,   2 4 6 ,   0 . 3 ) ; 
 } 
 
 . s h o w - m o r e - b t n : a c t i v e   { 
     t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 / *   H i d d e n   p r o j e c t s   i n i t i a l l y   * / 
 . p o r t - i t e m : n t h - c h i l d ( n + 1 3 )   { 
     d i s p l a y :   n o n e ; 
 } 
 
 . p o r t - i t e m . s h o w   { 
     d i s p l a y :   b l o c k ; 
 } 
 
 
 
 / *   H i d d e n   p r o j e c t s   i n i t i a l l y   -   U P D A T E D   * / 
 . p o r t - i t e m : n t h - c h i l d ( n + 1 3 )   { 
     o p a c i t y :   0 ; 
     v i s i b i l i t y :   h i d d e n ; 
     p o i n t e r - e v e n t s :   n o n e ; 
     t r a n s f o r m :   t r a n s l a t e Y ( 4 0 p x ) ; 
 } 
 
 . p o r t - i t e m . s h o w   { 
