/* ═════════════════════════════════════════════════════════════════════════
   PROJECT DETAIL PAGES - COMPREHENSIVE STYLING
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent: #c8ff00;
  --border-color: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ═════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═════════════════════════════════════════════════════════════════════════ */

.project-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link,
.back-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.logo-link {
  font-size: 18px;
}

.logo-link:hover,
.back-link:hover {
  color: var(--accent);
}

/* ═════════════════════════════════════════════════════════════════════════
   MAIN PAGE CONTAINER
   ═════════════════════════════════════════════════════════════════════════ */

.project-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* ═════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═════════════════════════════════════════════════════════════════════════ */

.project-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 20px;
  margin-bottom: 60px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ═════════════════════════════════════════════════════════════════════════
   CONTENT GRID & LAYOUT
   ═════════════════════════════════════════════════════════════════════════ */

.project-content-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

@media (max-width: 1024px) {
  .project-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   MAIN CONTENT SECTIONS
   ═════════════════════════════════════════════════════════════════════════ */

.project-main-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.content-section {
  padding-bottom: 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.section-content h3,
.subsection-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 16px;
}

.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.content-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.content-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

/* ═════════════════════════════════════════════════════════════════════════
   STATISTICS GRID
   ═════════════════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.stat-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   IMAGE SECTIONS
   ═════════════════════════════════════════════════════════════════════════ */

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-placeholder {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═════════════════════════════════════════════════════════════════════════
   SERVICES & TECH SECTIONS
   ═════════════════════════════════════════════════════════════════════════ */

.services-list,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.service-item,
.tech-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.service-item:hover,
.tech-item:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.service-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tech-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═════════════════════════════════════════════════════════════════════════ */

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.info-list dd {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-left: 0;
  margin-bottom: 8px;
}

.services-sidebar,
.tech-sidebar {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-sidebar li,
.tech-sidebar li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.services-sidebar li:before,
.tech-sidebar li:before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: bold;
}

.sidebar-cta {
  display: block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 20px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.sidebar-cta:hover {
  background: #e0ff1a;
  transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════
   BOTTOM CTA SECTION
   ═════════════════════════════════════════════════════════════════════════ */

.project-bottom-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 20px;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.cta-button.primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.cta-button.primary:hover {
  background: #e0ff1a;
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 255, 0, 0.05);
}

/* ═════════════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════════════ */

.project-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-section p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .project-hero {
    padding: 60px 20px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 20px;
  }

  .sidebar-box {
    position: static;
  }

  .project-bottom-cta {
    padding: 60px 20px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 12px 16px;
  }

  .logo-link,
  .back-link {
    font-size: 12px;
  }

  .project-hero {
    padding: 40px 16px;
    margin-bottom: 30px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 8px 14px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-content-grid {
    padding: 0 16px 40px;
  }

  .section-title {
    font-size: 20px;
  }

  .stats-grid {
    gap: 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  .cta-title {
    font-size: 22px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
