/* ============================================
   Projects Page Custom Styles (Classic White Theme)
   ============================================ */

/* Override body background with user image */
body {
  background-image: 
    radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.95) 100%),
    url('projects-background.png') !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Force vertical column layout inside the TV screen */
#view-domains .portfolio-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding: 0.1rem 0.5rem;
  overflow-y: hidden;
  width: 100%;
}

/* Center and style the select category header */
#view-domains .portfolio-body h2 {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  border: none;
  padding: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
  text-align: center;
}

/* Category Grid Selection */
.domain-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 15px;
  column-gap: 12px;
  width: 100%;
  margin-top: 2px;
}

/* Compact, neatly aligned category boxes */
.domain-card {
  width: calc(31% - 2px);
  min-width: 110px;
  height: 88px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
  text-align: center;
  box-sizing: border-box;
  pointer-events: auto;
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

/* Hover feedback */
.domain-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.12),
    inset 0 0 12px rgba(255, 255, 255, 0.05);
  background: rgba(25, 25, 25, 0.95);
}

.domain-card:hover h3 {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.domain-card:hover p {
  color: rgba(255, 255, 255, 0.95);
}

.domain-card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  text-shadow: none;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.domain-card p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 3px;
}

.card-indicator {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.6);
  line-height: 1;
}

/* TV Bezel LED Glowing active color */
.bezel-led-dot.active {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 6px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* 3D Carousel Stage Layout */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 285px;
  padding: 0 45px;
  overflow: visible;
}

.carousel-perspective {
  perspective: 1000px;
  position: relative;
  width: 320px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.carousel-cube {
  position: relative;
  width: 290px;
  height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Project Cards inside Carousel */
.project-card {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.98) 0%, rgba(3, 3, 3, 0.99) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  user-select: none;
  box-sizing: border-box;
}

.project-card.active {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.9),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  opacity: 1 !important;
}

.project-card.active:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 0 22px rgba(255, 255, 255, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.95),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.project-card.active:hover .card-inner-wrapper {
  transform: scale(1.02);
}

/* Inactive cards are dimmed in background */
.project-card:not(.active) {
  opacity: 0.42;
  pointer-events: none;
}

/* Card image wrapper & fallback text */
.card-inner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow: hidden;
  width: 100%;
  text-align: left;
  transition: transform 0.3s ease;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
  background: radial-gradient(circle, #141414 0%, #060606 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.card-proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.card-img-placeholder-text {
  position: absolute;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1;
  letter-spacing: 0.1em;
}

.card-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow: hidden;
}

/* Card internal content styling */
.card-header-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.project-card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.55rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 6px rgba(255,255,255,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.project-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tech-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
}

.card-footer-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  flex-shrink: 0;
}

.project-card.active:hover .card-footer-link {
  border-bottom-style: solid;
  color: #fff;
}

/* Carousel duration/internship text */
.card-duration {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: bold;
  margin-bottom: 6px;
}

/* 3D Carousel arrow navigation buttons */
.carousel-arrow {
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  pointer-events: auto;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
  position: absolute;
}
.carousel-arrow.left { left: 6px; }
.carousel-arrow.right { right: 6px; }

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Carousel tip text */
.carousel-tip {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  animation: none !important;
  text-align: center;
  margin-top: 1px;
}

/* Carousel view layout */
#view-carousel {
  justify-content: space-between !important;
  padding: 0.8rem 1.5rem !important;
}

#view-carousel .portfolio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding-top: 4px;
}

/* Carousel Header stack styles */
.header-carousel-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#carousel-category-title {
  font-family: 'VT323', monospace;
  font-size: 1.45rem !important;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
}
.logo {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: none;
  border: none !important;
}

}

/* Remove scrollbar inside TV */
.portfolio-body::-webkit-scrollbar { display: none; }
.portfolio-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Force overlays to never block clicks */
.tv-glass-reflection, .crt-overlay {
  pointer-events: none !important;
}

/* ============================================
   WELCOME TEXT INSIDE TV (domain view)
   ============================================ */
.projects-welcome-text {
  font-family: 'Special Elite', serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 14px 0;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
  line-height: 1.3;
}

.projects-welcome-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 0 20px 0;
}

.projects-welcome-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.12em;
  margin: 0;
  animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.38; }
  50%       { opacity: 0.75; }
}

/* ============================================
   OUTSIDE-TV DOMAIN PICKER BAR
   ============================================ */
.domain-picker {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.domain-picker.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.domain-picker-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.domain-picker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 700px;
}

.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Special Elite', serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.domain-pill:hover {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.domain-pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.pill-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* ============================================
   CAROUSEL CARD FONT FIXES (legible text)
   ============================================ */
.project-card h3 {
  font-family: 'Special Elite', serif !important;
  font-size: 1.1rem !important;
  color: #fff !important;
  text-shadow: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.25 !important;
  margin-bottom: 4px !important;
}

.project-card p {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-header-cat {
  font-size: 0.65rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.18em !important;
}

.tech-tag {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding: 2px 8px !important;
}

.card-footer-link {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}

.card-footer-link:hover {
  color: #fff !important;
}
