/* Project Detail Page - Modern Elegant Design */

.project-detail-page {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
}

.detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero Section */
.project-hero {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-hero.animated,
.project-hero[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #100961 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.hero-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2d2da3 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 9, 97, 0.2);
  border: 1px solid rgba(16, 9, 97, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8c0e8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.project-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.project-client {
  font-size: 1.25rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

.view-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(16, 9, 97, 0.3);
}

.view-site-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.view-site-btn:hover::before {
  left: 100%;
}

.view-site-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 9, 97, 0.5);
}

.view-site-btn svg {
  transition: transform 0.3s ease;
}

.view-site-btn:hover svg {
  transform: translateX(4px);
}

/* Media + Contact Layout */
.media-contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Media Section */
.media {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.media.animated,
.media[data-animate].animated {
  opacity: 1;
  transform: translateX(0);
}

.image-wrapper,
.video-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-wrapper::before,
.video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  z-index: 1;
}

.media img,
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  transition: transform 0.5s ease;
}

.media:hover img,
.video-wrapper:hover video {
  transform: scale(1.02);
}

.video-wrapper {
  position: relative;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 24px solid #ffffff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 4px;
}

.video-wrapper video.playing + .play-overlay {
  opacity: 0;
}

/* Contact Card */
.contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 100px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  justify-content: space-between;
}

.contact-card.animated,
.contact-card[data-animate].animated {
  opacity: 1;
  transform: translateX(0);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

.card-header {
  text-align: center;
}

.card-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.card-header p {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin: 0;
}

.contact-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(16, 9, 97, 0.3);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-avatar {
  border-color: rgba(16, 9, 97, 0.6);
  transform: scale(1.05);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  text-align: center;
}

.contact-info .name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.contact-info .role {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin: 0;
  font-weight: 500;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.email-btn {
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 9, 97, 0.3);
}

.email-btn:hover {
  box-shadow: 0 8px 30px rgba(16, 9, 97, 0.5);
}

.schedule-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.schedule-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Project Details Section */
.project-details {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.project-details.animated,
.project-details[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

.details-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.details-content {
  max-width: 100%;
}

.details-header {
  margin-bottom: 2.5rem;
}

.details-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.details-divider {
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  border-radius: 2px;
}

.description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #b0b0b0;
  white-space: pre-line;
}

/* Characteristics Panel */
.characteristics-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  position: sticky;
  top: 100px;
  height: fit-content;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.characteristics-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

.characteristics-header {
  margin-bottom: 1.5rem;
}

.characteristics-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.characteristics-divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  border-radius: 2px;
}

.characteristics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.characteristic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.characteristic-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 9, 97, 0.3);
  color: #ffffff;
  transform: translateX(4px);
}

.characteristic-item svg {
  flex-shrink: 0;
  color: #100961;
  transition: color 0.3s ease;
}

.characteristic-item:hover svg {
  color: #2d2da3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .detail-container {
    padding: 1.5rem;
    gap: 3rem;
  }

  .project-hero {
    padding: 4rem 0 3rem;
  }

  .media-contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .media {
    order: 1;
  }

  .contact-card {
    position: static;
    order: 2;
  }

  .details-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .characteristics-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .detail-container {
    padding: 1rem;
    gap: 2.5rem;
  }

  .project-hero {
    padding: 3rem 0 2rem;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .project-client {
    font-size: 1.125rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .card-header h2 {
    font-size: 1.5rem;
  }

  .details-header h2 {
    font-size: 1.75rem;
  }

  .description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .detail-container {
    padding: 0.75rem;
    gap: 2rem;
  }

  .project-hero {
    padding: 2rem 0 1.5rem;
  }

  .project-title {
    font-size: 2rem;
  }

  .view-site-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-avatar {
    width: 80px;
    height: 80px;
  }

  .contact-btn {
    width: 100%;
  }
}
