/* project-details.css - Clean & Modern Design */

/* Resets & Body */
body.details-page {
  background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
  color: #fff;
  font-family: 'Outfit', 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body.details-page::-webkit-scrollbar {
  width: 8px;
}

body.details-page::-webkit-scrollbar-track {
  background: #000;
}

body.details-page::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Nav */
.details-nav {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 9999;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-4px);
}

/* Full Bleed Hero */
.hero-parallax {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.5) contrast(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.95) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
  z-index: 10;
}

.tech-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(10px);
  display: inline-block;
}

.huge-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  margin: 0.5rem 0 1rem 0;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.wow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  cursor: pointer;
}

.wow-btn.live {
  background: #fff;
  color: #000;
}

.wow-btn.live:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.wow-btn.git {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.wow-btn.git:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Bento Grid */
.bento-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 5% 4rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .bento-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    padding: 2.8rem 5% 3.5rem;
  }
}

@media (max-width: 768px) {
  .bento-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.5rem 4% 3rem;
  }
}

.bento-item {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.bento-item:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.bento-item h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.bento-item h2 i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.bento-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.bento-item p:last-child {
  margin-bottom: 0;
}

/* Grid Assignments */
.bento-item.overview {
  grid-column: span 2;
}

.bento-item.features {
  grid-column: span 1;
}

.bento-item.challenges {
  grid-column: span 1;
}

.bento-item.stack {
  grid-column: span 2;
}

.bento-item.showcase {
  grid-column: span 2;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.bento-item.showcase img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}


@media (max-width: 1024px) {
  .bento-item.overview { grid-column: span 2; }
  .bento-item.features { grid-column: span 2; grid-row: auto; }
  .bento-item.challenges { grid-column: span 2; }
  .bento-item.stack { grid-column: span 2; }
  .bento-item.showcase { grid-column: span 2; }
}

@media (max-width: 768px) {
  .bento-item {
    padding: 2rem;
    border-radius: 16px;
  }
  
  .bento-item h2 {
    font-size: 1.4rem;
  }
  
  .bento-item p {
    font-size: 1rem;
  }
  
  .bento-item.overview { grid-column: span 1; }
  .bento-item.features { grid-column: span 1; }
  .bento-item.challenges { grid-column: span 1; }
  .bento-item.stack { grid-column: span 1; }
  .bento-item.showcase { grid-column: span 1; }
  
  .bento-item.showcase img {
    height: 250px;
  }
}

.bento-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bento-item ul li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 300;
}

.bento-item ul li:last-child {
  margin-bottom: 0;
}

.bento-item ul li strong {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Tech Stack Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

.tech-grid span {
  display: flex;
  align-items: center;
}

.tech-grid span:not(:last-child)::after {
  content: '|';
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.8rem;
  font-weight: 300;
}

/* Footer */
.footer {
  min-height: auto;
  padding: 1rem 2%;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.footer-social { 
  display: flex; 
  justify-content: center;
  gap: 1rem; 
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 1px;
}

.footer-link:hover::before { 
  width: 80%; 
}

.footer-link i {
  font-family: "remixicon";
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.footer-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.footer-link:hover i {
  opacity: 1;
  transform: translateX(4px);
}

.footer-time {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-copy {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .details-nav {
    top: 1.5rem;
    left: 1.5rem;
  }
  
  .back-btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.75rem;
  }
  
  .hero-parallax {
    height: 60vh;
    min-height: 360px;
    padding-bottom: 2.8rem;
  }
  
  .tech-pill {
    margin-bottom: 0.9rem;
  }
  
  .huge-title {
    font-size: clamp(1.7rem, 6.5vw, 3rem);
    margin-bottom: 0.5rem;
  }
  
  .tagline {
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    margin-bottom: 1.3rem;
  }
  
  .wow-btn {
    padding: 0.88rem 1.8rem;
    font-size: 0.78rem;
  }
  
  .bento-container {
    gap: 1.1rem;
    padding: 2.8rem 4% 3.2rem;
  }
  
  .bento-item {
    padding: 1.8rem;
  }
  
  .bento-item h2 {
    font-size: 1.3rem;
  }
  
  .bento-item h3 {
    font-size: 1.05rem;
  }
  
  .bento-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .details-nav {
    top: 1rem;
    left: 1rem;
  }
  
  .back-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.7rem;
  }
  
  .hero-parallax {
    height: 55vh;
    min-height: 320px;
    padding-bottom: 2.5rem;
  }
  
  .tech-pill {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.8rem;
  }
  
  .huge-title {
    font-size: clamp(1.6rem, 6.5vw, 2.4rem);
    margin-bottom: 0.5rem;
  }
  
  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .wow-btn {
    width: 100%;
    padding: 0.85rem 1.4rem;
    font-size: 0.8rem;
  }
  
  .footer-social {
    gap: 1.2rem;
  }
  
  .footer-link {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .footer-link i {
    font-size: 0.95rem;
  }
  
  .bento-container {
    padding: 1.8rem 4% 2.5rem;
    gap: 1rem;
  }
  
  .bento-item {
    padding: 1.4rem;
    border-radius: 14px;
  }
  
  .bento-item h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .bento-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
  }
  
  .bento-item p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .tech-grid {
    gap: 0.6rem;
    font-size: 0.85rem;
  }
  
  .tech-grid span {
    font-size: 0.85rem;
  }
  
  .tech-grid span:not(:last-child)::after {
    margin-left: 0.6rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .bento-item,
  .wow-btn,
  .back-btn,
  .tech-grid span {
    transition: none;
  }
}