/* ===========================
   Project Page Styles
   =========================== */

:root {
  --project-dark-bg: #1a1a19;
  --project-text-light: #e8dccf;
  --project-accent: #DC6228;
}

/* Base */
.project-page {
  background: var(--project-dark-bg);
  min-height: 100vh;
}

body.project-template {
  background: var(--project-dark-bg) !important;
  overflow-x: hidden;
}

/* Custom Header for Project Page */
body.project-template #gh-head {
  position: absolute !important;
  width: 100%;
  z-index: 1000;
  background: #d12a20 !important;
  border-bottom: none !important;
  height: 180px !important;
  min-height: 180px !important;
}

body.project-template #gh-head.gh-head.outer {
  background: #d12a20 !important;
  height: 180px !important;
  min-height: 180px !important;
}

body.project-template #gh-head .gh-head-inner {
  height: 100% !important;
  align-items: center !important;
}

/* Make logo bigger */
body.project-template #gh-head .gh-head-logo img {
  max-height: 180px !important;
  width: auto !important;
  max-width: none !important;
  height: 180px !important;
}

body.project-template #gh-head .gh-head-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

body.project-template #gh-head .gh-head-brand {
  order: 1 !important;
  flex: 0 0 auto !important;
}

body.project-template #gh-head .gh-head-menu {
  order: 3 !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

body.project-template #gh-head .gh-head-actions {
  order: 2 !important;
  margin-left: auto !important;
}

body.project-template #gh-head .gh-burger {
  display: none !important;
}

/* Make nav links visible on project page */
body.project-template #gh-head .gh-head-menu nav {
  display: flex !important;
}

/* Hero Section */
.project-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  background: linear-gradient(135deg, var(--project-accent) 0%, #A64458 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px 0 0;
  margin: 0;
}

.project-hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  padding: 0;
}

.project-hero-main {
  display: flex;
  gap: 60px;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 0;
  padding-left: clamp(20px, 5vw, 80px);
}

.project-hero-image-container {
  position: relative;
  width: 715px;
  height: auto;
  flex-shrink: 0;
  align-self: flex-end;
  z-index: 1001;
  line-height: 0;
  margin-bottom: 0;
  margin-top: -80px;
}

.project-hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  vertical-align: bottom;
  margin: 0;
  padding: 0;
}

.project-header-info {
  flex: 1;
  max-width: 700px;
  text-align: left;
  padding-bottom: 40px;
  padding-right: clamp(20px, 5vw, 80px);
  align-self: flex-end;
}

.project-name {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  color: white;
  margin: 0 0 1.5rem 0;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.project-tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: white;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

/* Navigation */
.project-nav {
  background: var(--project-dark-bg);
  border-bottom: 3px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-top: 0;
}

.project-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 clamp(20px, 5vw, 80px);
}

.project-nav-link {
  padding: 24px 32px;
  color: #888;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
}

.project-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.project-nav-link.active {
  color: white;
  border-bottom-color: var(--project-accent);
}

.project-nav-link-external {
  border-bottom-color: transparent !important;
}

.project-nav-link-external:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Content */
.project-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 80px);
  min-height: 60vh;
  background: var(--project-dark-bg);
}

.project-section {
  display: none;
}

.project-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--project-text-light);
  margin: 0 0 40px 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

/* Overview Content */
.project-overview-content {
  max-width: 1000px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--project-text-light);
}

.project-overview-content p {
  margin: 0 0 32px;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.project-detail-item h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--project-accent);
  margin: 0 0 12px;
}

.project-detail-item p {
  font-size: 16px;
  color: var(--project-text-light);
  margin: 0;
}

/* Examples Grid */
.project-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.project-example-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-example-item:hover {
  transform: translateY(-4px);
}

.project-example-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-example-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--project-text-light);
  margin: 20px 20px 12px;
}

.project-example-item p {
  font-size: 14px;
  color: #999;
  margin: 0 20px 20px;
  line-height: 1.5;
}

/* Social Content */
.project-social-content {
  max-width: 100%;
  color: var(--project-text-light);
}

/* Footer */
body.project-template footer.site-footer.outer,
body.project-template .site-footer.outer {
  background: #0a0a09 !important;
  color: #e8dccf !important;
}

/* Responsive */
@media (max-width: 768px) {
  body.project-template #gh-head .gh-burger {
    display: block !important;
  }
  
  body.project-template #gh-head .gh-head-menu {
    display: none !important;
  }
  
  body.project-template.gh-head-open #gh-head .gh-head-menu {
    display: flex !important;
  }
  
  .project-hero {
    min-height: auto;
    padding: 80px 0 0;
  }
  
  .project-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }
  
  .project-hero-image-container {
    width: 90%;
    max-width: 350px;
  }
  
  .project-header-info {
    text-align: center;
    max-width: 90%;
    padding: 0 20px 40px;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .project-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
  }
  
  .project-nav-link {
    padding: 18px 20px;
    font-size: 13px;
  }
  
  .project-content {
    padding: 60px 20px;
  }
  
  .project-examples-grid {
    grid-template-columns: 1fr;
  }
}
