/* Project Page Styles - Streamlined */

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

body, html {
  height: 100%;
  background-color: #211f1f;
  color: #65524D;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

h1, h2, h3, footer {
  font-family: 'Prata', serif;
}

/* === PROJECT HEADER === */
.project-header {
  height: 200px;
  width: 100%;
  background-color: #f8f7f2;
  position: relative;
}

.header-container {
  max-width: 100%;
  height: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* === NAVIGATION === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 40px;
}

.nav-link {
  font-family: 'Prata', serif;
  font-size: 14px;
  color: #65524D;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FE4A49;
}

/* === DROPDOWN STYLES === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f8f7f2;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border: 1px solid #65524D;
  border-radius: 4px;
  z-index: 1000;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  font-family: 'Inter', sans-serif;
  color: #65524D;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #FE4A49;
  color: #f8f7f2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-arrow::after {
  content: ' ▼';
  font-size: 0.7rem;
  margin-left: 5px;
  color: #65524D;
}

.dropdown:hover .dropdown-arrow::after {
  color: #FE4A49;
}

/* === LOGO SECTION === */
.logo-section {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-right: 0;
}

.site-logo {
  width: 400px;
  height: 180px;
  object-fit: contain;
  display: block;
}

.logo-section a {
  display: block;
  line-height: 0;
}

/* === FOOTER === */
footer {
  height: 50px;
  width: 100%;
  margin-top: 5px;
  padding-left: 10px;
  padding-top: 20px;
  background-color: #226f54;
  color: #f8f7f2;
  display: flex;
  align-items: left;
  justify-content: left;
  font-size: 16px;
}

footer a {
  color: #f8f7f2;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: underline;
  font-weight: 800;
}

/* === PROJECT CONTENT CONTAINER === */
.project-container {
  background-color: #f8f7f2;
  margin: 40px;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-height: calc(100vh - 280px);
}

/* === PROJECT TYPOGRAPHY === */
.project-container h1 {
  color: #211f1f;
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #226f54;
  padding-bottom: 15px;
}

.project-container h2 {
  color: #226f54;
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
}

.project-container h3 {
  color: #211f1f;
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
}

.project-container h4 {
  color: #226f54;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.project-container p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

.project-lead {
  font-size: 1.2rem;
  color: #211f1f;
  font-weight: 400;
  margin-bottom: 30px;
  font-style: italic;
}

.project-container ul,
.project-container ol {
  margin: 15px 0;
  padding-left: 25px;
}

.project-container li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.project-container a {
  color: #226f54;
  text-decoration: underline;
}

.project-container a:hover {
  color: #FE4A49;
  text-decoration: none;
}

/* === VIDEO SHOWCASE === */
.video-showcase {
  margin-bottom: 40px;
  text-align: center;
}

.site-demo-video {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #226f54;
}

.video-caption {
  margin-top: 15px;
  font-style: italic;
  color: #65524D;
  font-size: 14px;
}

/* === GRID LAYOUTS === */
.goals-grid,
.results-grid,
.context-grid,
.sentiment-comparison,
.language-comparison,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.context-grid,
.sentiment-comparison {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.skills-showcase,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.topics-grid,
.comparison-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.wordcloud-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin: 25px 0;
}

/* === CONTENT BLOCKS === */
.goal-item,
.context-item,
.group-analysis,
.language-group,
.wordcloud-group {
  background-color: rgba(34, 111, 84, 0.05);
  padding: 25px;
  border-radius: 6px;
  border-left: 4px solid #226f54;
}

.challenge-item,
.insight-item {
  padding: 25px;
  background-color: rgba(254, 74, 73, 0.05);
  border-radius: 6px;
  border-left: 4px solid #FE4A49;
  margin: 25px 0;
}

.development-section,
.tech-overview {
  margin: 25px 0;
  padding: 20px;
  background-color: rgba(101, 82, 77, 0.05);
  border-radius: 6px;
}

.result-category {
  padding: 20px;
  background-color: rgba(34, 111, 84, 0.08);
  border-radius: 6px;
}

.feature-item,
.skill-category,
.metric-item {
  padding: 20px;
  background-color: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.topic-item,
.metric-item {
  border-left: 4px solid #226f54;
}

.skill-category p,
.feature-item p {
  margin: 0;
  font-size: 14px;
}

/* === SPECIAL ELEMENTS === */
.stats-box {
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
  text-align: center;
}

.stats-box.positive {
  background-color: rgba(34, 111, 84, 0.1);
  border: 1px solid #226f54;
}

.stats-box.varied {
  background-color: rgba(254, 74, 73, 0.1);
  border: 1px solid #FE4A49;
}

.keyword-tags {
  margin: 15px 0;
}

.keyword-tag {
  display: inline-block;
  background-color: #226f54;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin: 3px;
}

.wordcloud-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wordcloud-group {
  text-align: center;
}

.metric-item p {
  font-size: 16px;
  margin: 10px 0;
  font-weight: 500;
}

.metric-insight {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: #65524D;
  margin-top: 8px;
}

/* === CODE BLOCKS === */
.code-section {
  margin: 30px 0;
}

.code-block {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid #4a5568;
}

/* === PHP PROJECT SPECIFIC STYLES === */
.demo-showcase {
  margin: 30px 0;
  text-align: center;
}

.demo-frame {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border: 2px solid #226f54;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.demo-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

.demo-link {
  display: inline-block;
  background-color: #226f54;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin: 15px 0;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.demo-link:hover {
  background-color: #FE4A49;
  color: white;
  text-decoration: none;
}

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

.tech-item {
  padding: 15px;
  background-color: rgba(34, 111, 84, 0.05);
  border-radius: 4px;
  text-align: center;
  border-left: 3px solid #226f54;
}

.tech-item h4 {
  margin-bottom: 5px;
  font-size: 14px;
}

.tech-item p {
  margin: 0;
  font-size: 13px;
}

/* === PHP PROJECT SPECIFIC STYLES === */
.demo-showcase {
  margin: 30px 0;
  text-align: center;
}

.demo-frame {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border: 2px solid #226f54;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.demo-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

.demo-link {
  display: inline-block;
  background-color: #226f54;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin: 15px 0;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.demo-link:hover {
  background-color: #FE4A49;
  color: white;
  text-decoration: none;
}

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

.tech-item {
  padding: 15px;
  background-color: rgba(34, 111, 84, 0.05);
  border-radius: 4px;
  text-align: center;
  border-left: 3px solid #226f54;
}

.tech-item h4 {
  margin-bottom: 5px;
  font-size: 14px;
}

.tech-item p {
  margin: 0;
  font-size: 13px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 10px;
  }
  
  .main-nav {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .logo-section {
    position: relative;
    padding-right: 0;
  }
  
  .site-logo {
    width: 300px;
    height: 135px;
  }

  .project-container {
    margin: 20px;
    padding: 30px 25px;
  }
  
  .project-container h1 {
    font-size: 2rem;
  }
  
  .project-container h2 {
    font-size: 1.5rem;
  }

  .goals-grid,
  .results-grid,
  .context-grid,
  .sentiment-comparison,
  .language-comparison,
  .insights-grid,
  .wordcloud-comparison,
  .comparison-metrics {
    grid-template-columns: 1fr;
  }
  
  .skills-showcase,
  .feature-grid,
  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .code-block {
    font-size: 11px;
    padding: 15px;
  }
}