/* Project Page Styles - Consolidated from all project pages */

/* Project Hero Section */
.project-hero {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0f1419 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(64, 224, 208, 0.1);
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%2340e0d0" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.project-hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(64, 224, 208, 0.1);
  border: 1px solid rgba(64, 224, 208, 0.2);
  border-radius: 50%;
  color: #40e0d0;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-button:hover {
  background: rgba(64, 224, 208, 0.2);
  border-color: rgba(64, 224, 208, 0.4);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, #40e0d0, #20b2aa);
  color: #0a0f1c;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

.project-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #40e0d0, #20b2aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: #a0a9b8;
  margin: 0 0 32px 0;
  line-height: 1.4;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #40e0d0;
}

.stat-label {
  font-size: 14px;
  color: #a0a9b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  flex: 0 0 400px;
}

.hero-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(64, 224, 208, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.2);
}

/* Project Details Section */
.project-details {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 100%);
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-sections {
  margin-bottom: 80px;
}

.info-grid {
  column-count: 2; /* 2 columns on desktop */
  column-gap: 40px;
  max-width: 100%;
}

.project-info-card,
.skills-card,
.challenges-card,
.features-card {
  background: rgba(64, 224, 208, 0.05);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.1);
  transition: all 0.3s ease;
  height: fit-content;
  break-inside: avoid; /* Prevent breaking across columns */
  margin-bottom: 40px; /* Space between cards */
  display: inline-block; /* Ensure proper column flow */
  width: 100%; /* Take full width of column */
}

.project-info-card:last-child,
.skills-card:last-child,
.challenges-card:last-child,
.features-card:last-child {
  margin-bottom: 0; /* Remove margin from last item */
}

.project-info-card:hover,
.skills-card:hover,
.challenges-card:hover,
.features-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(64, 224, 208, 0.2);
  border-color: rgba(64, 224, 208, 0.3);
}

.project-info-card h3,
.skills-card h3,
.challenges-card h3,
.features-card h3 {
  font-size: 22px;
  color: #40e0d0;
  margin: 0 0 24px 0;
  font-weight: 600;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(64, 224, 208, 0.2);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(64, 224, 208, 0.1);
  gap: 4px;
}

.info-item:last-child {
  border-bottom: none;
}

.label {
  font-weight: 500;
  color: #a0a9b8;
  flex-shrink: 0;
  min-width: 60px;
}

.value {
  font-weight: 600;
  color: #40e0d0;
  text-align: right;
  line-height: 1.4;
  padding-left: 8px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(64, 224, 208, 0.1);
  color: #a0a9b8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(64, 224, 208, 0.2);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: linear-gradient(135deg, #40e0d0, #20b2aa);
  color: #0a0f1c;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

.challenges-card ul {
  margin: 0;
  padding-left: 20px;
}

.challenges-card li {
  margin: 8px 0;
  color: #a0a9b8;
  line-height: 1.6;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(64, 224, 208, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(64, 224, 208, 0.1);
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(64, 224, 208, 0.1);
  border-color: rgba(64, 224, 208, 0.2);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content h4 {
  font-size: 14px;
  color: #40e0d0;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.feature-content p {
  font-size: 12px;
  color: #a0a9b8;
  margin: 0;
  line-height: 1.4;
}

/* Main Content Section */
.main-content {
  width: 100%;
  max-width: 100%;
}

.main-content h2 {
  font-size: 32px;
  color: #40e0d0;
  margin: 0 0 24px 0;
  font-weight: 700;
}

.main-content h3 {
  font-size: 24px;
  color: #20b2aa;
  margin: 32px 0 16px 0;
  font-weight: 600;
}

.main-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #a0a9b8;
  margin: 0 0 20px 0;
}

/* Simple List Styling for Main Content - matches tech-section */
.main-content ul {
  margin: 0;
  padding-left: 20px;
}

.main-content li {
  margin: 8px 0;
  color: #a0a9b8;
  line-height: 1.6;
}

/* Subtle bold text styling */
b, strong {
  font-weight: 600;
  color: #c0c8d0;
}

/* Tech Section */
.tech-section {
  background: rgba(64, 224, 208, 0.05);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.1);
  border-left: 4px solid #40e0d0;
}

.tech-section ul {
  margin: 0;
  padding-left: 20px;
}

.tech-section li {
  margin: 8px 0;
  color: #a0a9b8;
  line-height: 1.6;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.gallery-item {
  background: rgba(64, 224, 208, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(64, 224, 208, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(64, 224, 208, 0.3);
  box-shadow: 0 20px 60px rgba(64, 224, 208, 0.2);
}

.gallery-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 24px;
}

.gallery-caption h4 {
  font-size: 18px;
  color: #40e0d0;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.gallery-caption p {
  font-size: 14px;
  color: #a0a9b8;
  margin: 0;
  line-height: 1.6;
}

/* Style for video elements in gallery */
.gallery-image video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-image video:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(64, 224, 208, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-hero .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .project-hero h1 {
    font-size: 36px;
  }

  .hero-stats {
    justify-content: center;
  }

  .info-grid {
    column-count: 1;
    column-gap: 0;
  }

  .project-info-card,
  .skills-card,
  .challenges-card,
  .features-card {
    margin-bottom: 30px;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .project-hero {
    padding: 60px 0;
  }

  .project-hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .project-details {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }
}

