/* =============================================
   ATHYA VISUALS — MODERN THUMBNAIL & MODAL
   ============================================= */

/* ── Portfolio Header ── */
#portfolio-header {
  padding: clamp(120px, 15vw, 160px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
  position: relative;
  background: var(--bg-dark);
}
.portfolio-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}
.portfolio-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-main);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Modern Thumbnails Grid ── */
#modern-thumbnails {
  padding-bottom: clamp(80px, 10vw, 140px);
  background: var(--bg-dark);
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(30px, 5vw, 50px);
}

.thumb-card {
  cursor: pointer;
  group: thumb;
}

.thumb-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-project-btn {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary);
  font-family: var(--ff-body);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thumb-card:hover .thumb-image-wrap {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}
.thumb-card:hover .thumb-img {
  transform: scale(1.05);
}
.thumb-card:hover .view-project-btn {
  opacity: 1;
}

.thumb-info h3 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.thumb-card:hover .thumb-info h3 {
  color: var(--primary);
}

.thumb-info p {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── Full Project Modal ── */
.project-modal {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.project-modal.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.modal-nav {
  position: sticky;
  top: 0;
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 3vw, 24px) clamp(24px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10001;
}

.modal-info-bar h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 4px;
}
.modal-info-bar p {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: clamp(40px, 8vw, 80px) 0;
  scroll-behavior: smooth;
}

#modal-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
}

.modal-img-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.modal-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Customization for Modal */
.modal-scroll-area::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll-area::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
.modal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
