/* Styles specific to project detail pages to keep style.css cleaner */

.project-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.project-detail header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-title {
    font-size: 2.8rem;
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
}

.project-meta {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
}

.back-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-text);
    text-decoration: none;
}

/* Video Section */
.project-video-section {
    margin-bottom: 3rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
}

/* Guide and Write-up Sections */
.step-by-step-guide,
.technical-write-up {
    padding: 2rem;
    background-color: var(--color-card-bg);
    /* Use card background */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.step-by-step-guide h3,
.technical-write-up h3 {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

/* Step list styling */
.step-by-step-guide ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-by-step-guide li {
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.step-by-step-guide li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    background-color: var(--color-highlight);
    color: var(--color-primary);
    /* Dark text on light accent circle */
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: bold;
}

.step-by-step-guide h4 {
    margin-top: 0;
    color: var(--color-text);
}

/* Technical Write-up Specifics */
.technical-write-up h4 {
    color: var(--color-secondary);
    margin-top: 1.5rem;
    border-bottom: 1px dotted var(--color-border);
    padding-bottom: 0.2rem;
}

/* Code block styling (using the monospace font) */
pre {
    background-color: var(--color-primary);
    /* Use deep charcoal for code block */
    color: var(--color-highlight);
    /* Use lighter accent for code text */
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid var(--color-border);
    margin-top: 1rem;
}

/* List styling */
.technical-write-up ul {
    list-style: disc inside;
    padding-left: 1rem;
}

/* --- Contact Form Styling (Adjusted for Dark Mode) --- */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-card-bg);
    /* Use card background */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-form label {
    color: var(--color-text);
    /* Ensure labels are bright */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: var(--color-primary);
    /* Darker input background */
    color: var(--color-text);
    /* Light text in input */
    border: 1px solid var(--color-border);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-highlight);
    box-shadow: 0 0 5px rgba(160, 188, 194, 0.7);
}

.submit-button {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.submit-button:hover {
    background-color: var(--color-highlight);
    color: var(--color-primary);
    /* Dark text on very light hover */
}

.note {
    color: var(--color-text-light);
}

/* Responsive adjustments for project page */
@media (max-width: 600px) {
    /* ... (rest of media query remains the same) */
}