/* ============================================
   PROFESSIONAL GALLERY STYLES
   Modern, Clean, Enhanced Design
   ============================================ */

.gallery-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rajdhani', 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #f3f4f6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.gallery-page * {
  box-sizing: border-box;
}

.gallery-page a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.gallery-nav {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  padding: 1.25rem 0;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.gallery-nav-container {
  width: min(1400px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
}

.gallery-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-logo-img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  filter: brightness(1.2) contrast(1.2);
  transition: all 0.3s ease;
}

.gallery-logo-img:hover {
  filter: brightness(1.3) contrast(1.3);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-logo-img {
    width: 100px;
    height: 75px;
  }
}

.gallery-logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.gallery-nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.gallery-nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-nav-link:hover,
.gallery-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================
   CONTAINER
   ============================================ */
.gallery-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.gallery-hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(15, 15, 20, 1) 100%);
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 140, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gallery-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.8);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.05);
}

.gallery-hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  color: #ffffff;
  letter-spacing: -1px;
}

.gallery-hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.gallery-section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 2px;
}

.gallery-section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   MAIN GALLERY SECTION
   ============================================ */
.gallery-main-section {
  padding: 6rem 2rem;
  background: #0a0a0a;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-content {
  width: 100%;
}

.gallery-item-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.gallery-item-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.gallery-timeline-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #0a0a0a 0%, #0f0f14 100%);
  position: relative;
}

.timeline-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  padding: 3rem 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(0, 212, 255, 0.3) 10%,
    rgba(0, 212, 255, 0.6) 50%,
    rgba(0, 212, 255, 0.3) 90%,
    transparent 100%
  );
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timeline-year {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.8);
  border: 3px solid #0a0a0a;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.6),
    0 0 40px rgba(0, 212, 255, 0.3);
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: rgba(0, 212, 255, 1);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.8),
    0 0 60px rgba(0, 212, 255, 0.4);
}

.timeline-content-card {
  background: rgba(20, 20, 20, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  text-align: center;
}

.timeline-item:hover .timeline-content-card {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: rgba(25, 25, 25, 0.9);
}

.timeline-card-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.5px;
}

.timeline-card-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-card-image img {
  transform: scale(1.1);
}

/* ============================================
   COLLABORATION SECTION (Existing)
   ============================================ */
.gallery-collab {
  padding: 6rem 2rem;
  background: #0a0a0a;
}

.gallery-collab-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-collab-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.8);
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.05);
}

.gallery-collab-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 2px;
}

.gallery-collab-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

.gallery-collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-collab-card {
  background: rgba(20, 20, 20, 0.6);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-collab-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-collab-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-collab-card:hover .gallery-collab-thumb {
  transform: scale(1.1);
}

.gallery-collab-caption {
  padding: 1.5rem;
}

.collab-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.5px;
}

.collab-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.gallery-footer {
  padding: 4rem 2rem;
  text-align: center;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-footer p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.6;
}

.gallery-footer strong {
  color: #ffffff;
  font-weight: 600;
}

/* ============================================
   MODAL
   ============================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(20, 20, 20, 0.98);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.collab-modal-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.gallery-modal-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
}

.collab-modal-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .timeline-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .timeline-wrapper::before {
    top: 25%;
    height: calc(100% - 6rem);
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, 
      transparent 0%,
      rgba(0, 212, 255, 0.3) 10%,
      rgba(0, 212, 255, 0.6) 50%,
      rgba(0, 212, 255, 0.3) 90%,
      transparent 100%
    );
  }
}

@media (max-width: 768px) {
  .gallery-nav-container {
    padding: 0 1rem;
    flex-wrap: wrap;
  }

  .gallery-nav-list {
    gap: 0.75rem;
  }

  .gallery-nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .gallery-hero {
    padding: 6rem 1.5rem 4rem;
  }

  .gallery-main-section,
  .gallery-timeline-section,
  .gallery-collab {
    padding: 4rem 1.5rem;
  }

  .gallery-masonry {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
  }

  .timeline-wrapper::before {
    left: 2rem;
    width: 2px;
    height: calc(100% - 4rem);
    top: 2rem;
    transform: none;
  }

  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 4rem;
  }

  .timeline-marker {
    flex-direction: row;
    gap: 1rem;
    position: absolute;
    left: 0;
  }

  .timeline-year {
    font-size: 1.25rem;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
  }

  .timeline-content-card {
    max-width: 100%;
    margin-left: 0;
  }

  .gallery-collab-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-section-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 5rem 1rem 3rem;
  }

  .gallery-main-section,
  .gallery-timeline-section,
  .gallery-collab {
    padding: 3rem 1rem;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-item-overlay {
    padding: 1.5rem;
  }

  .gallery-item-title {
    font-size: 1.1rem;
  }

  .gallery-item-description {
    font-size: 0.85rem;
  }

  .timeline-item {
    padding-left: 3rem;
    gap: 1rem;
  }

  .timeline-content-card {
    padding: 1.25rem;
  }

  .timeline-card-title {
    font-size: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
