/* Project Page Specific Styles */
:root {
    --project-primary-color: #007BFF;
    --project-secondary-color: #6c757d;
    --project-accent-color: #FF6B6B;
    --project-bg-color: #f8f9fa;
    --project-text-color: #333;
    --project-light-color: #f1f1f1;
    --project-dark-color: #212529;
    --project-border-color: #dee2e6;
    --timeline-line-color: #e0e0e0;
    --section-spacing: 100px;
    --content-max-width: 1200px;
}

/* General Project Page Styles */
.project-page {
    background-color: var(--project-bg-color);
    color: var(--project-text-color);
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    padding-top: 69px;
}

.section-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.project-section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--project-dark-color);
}

.section-line {
    height: 4px;
    width: 60px;
    background-color: var(--project-accent-color);
    margin: 0 auto;
}

.subsection-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--project-dark-color);
}

/* Project Hero Section */
.project-hero {
    position: relative;
    padding: 80px 0;
    background-color: var(--project-dark-color);
    color: white;
    overflow: hidden;
}

.project-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.project-metadata {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.project-category {
    background-color: var(--project-accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 5px;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-tagline {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Project Overview Section */
.overview-section {
    background-color: white;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.overview-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.overview-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 2rem;
    color: var(--project-accent-color);
    flex-shrink: 0;
}

.highlight-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--project-dark-color);
}

.highlight-content p {
    font-size: 1rem;
    color: var(--project-secondary-color);
}

/* Challenge & Solution Section */
.challenge-section {
    background-color: var(--project-bg-color);
}

.challenge-solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.challenge-block, .solution-block {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.challenge-list, .solution-list {
    margin-top: 20px;
    padding-left: 20px;
    list-style-type: none; /* Remove default bullets */
}

.challenge-list li, .solution-list li {
    margin-bottom: 10px;
    position: relative;
}

.challenge-list li::before, .solution-list li::before {
    content: "•";
    color: var(--project-accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.solution-image-container {
    margin-top: 50px;
    text-align: center;
}

.solution-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--project-secondary-color);
    text-align: center;
}

/* Process Section */
.process-section {
    background-color: white;
}

.process-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: var(--timeline-line-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 4px solid var(--project-accent-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--project-accent-color);
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--project-dark-color);
}

.timeline-image-container {
    margin-top: 20px;
}

.timeline-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Results Section */
.results-section {
    background-color: var(--project-bg-color);
}

.results-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.metric-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.metric-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--project-accent-color);
    margin-bottom: 10px;
}

.metric-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--project-dark-color);
}

.metric-description {
    font-size: 1rem;
    color: var(--project-secondary-color);
}

.qualitative-results {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.results-list {
    padding-left: 20px;
    list-style-type: none; /* Remove default bullets */
}

.results-list li {
    margin-bottom: 15px;
    position: relative;
}

.results-list li::before {
    content: "•";
    color: var(--project-accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.project-testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    font-style: italic;
    margin: 0;
}

.project-testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 100px;
    color: var(--project-accent-color);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.project-testimonial p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.project-testimonial cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    text-align: right;
    color: var(--project-dark-color);
}

/* Technical Implementation Section */
.technical-section {
    background-color: var(--project-bg-color);
}

.technical-content > p {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.technical-features {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.feature-block {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--project-dark-color);
}

.technical-list {
    padding-left: 20px;
    list-style-type: none;
}

.technical-list li {
    margin-bottom: 15px;
    position: relative;
}

.technical-list li::before {
    content: "▸";
    color: var(--project-accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.code-highlights {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.code-highlights h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--project-dark-color);
    text-align: center;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.achievement-item {
    text-align: center;
}

.achievement-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--project-accent-color);
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 1rem;
    color: var(--project-secondary-color);
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .achievement-value {
        font-size: 2rem;
    }
}

/* Reflection Section */
.reflection-section {
    background-color: white;
}

.reflection-content > p {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.learnings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.learning-item {
    background-color: var(--project-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.learning-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--project-dark-color);
    text-align: center;
}

.reflection-list {
    padding-left: 20px;
    list-style-type: none; /* Remove default bullets */
}

.reflection-list li {
    margin-bottom: 10px;
    position: relative;
}

.reflection-list li::before {
    content: "•";
    color: var(--project-accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.personal-takeaway {
    background-color: var(--project-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.personal-takeaway h3, .personal-takeaway h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--project-dark-color);
    text-align: center;
}

/* Related Projects Section */
.related-projects-section {
    background-color: var(--project-bg-color);
    padding-bottom: 80px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-project-card a {
    text-decoration: none;
    color: var(--project-text-color);
    display: block;
}

.related-project-image {
    height: 200px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-card:hover .related-project-image img {
    transform: scale(1.05);
}

.related-project-content {
    padding: 20px;
}

.related-project-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--project-dark-color);
}

.related-project-content p {
    font-size: 1rem;
    color: var(--project-secondary-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .related-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    background-color: var(--project-dark-color);
    padding: 30px;
    color: white;
}

.prev-project, .next-project {
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.prev-project {
    text-align: left;
    justify-self: start;
}

.next-project {
    text-align: right;
    justify-self: end;
}

.prev-project:hover {
    transform: translateX(-5px);
}

.next-project:hover {
    transform: translateX(5px);
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.back-to-all {
    color: white;
    text-decoration: none;
    background-color: var(--project-accent-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: center;
    justify-self: center;
}

.back-to-all:hover {
    background-color: #ff4949;
}

/* Download Section */
.download-section {
    background-color: var(--project-bg-color);
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-container p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--project-accent-color);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.download-button:hover {
    background-color: #ff4949;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.download-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}

.download-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 576px) {
    .download-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Code Block Overflow Fix */
.code-block, pre.code-block {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 80px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .project-title {
        font-size: 3rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .challenge-solution-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .results-metrics {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .learnings-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }
    
    .project-page {
        padding-top: 60px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-hero {
        padding: 60px 0;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-tagline {
        font-size: 1.2rem;
    }
    
    .overview-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .process-timeline::before {
        left: 15px;
    }
    
    .project-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .prev-project, .next-project, .back-to-all {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-metadata {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-category, .project-date {
        display: inline-block;
    }
    
    .highlight-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .metric-value {
        font-size: 2.5rem;
    }
}
