/* Project page styles */
.project-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: left;
    color: goldenrod;
    font-family: Consolas, "Droid Sans Mono", monospace;
}

.project-page h1 {
    color: darkorange;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.project-page a,
.project-page a:visited {
    color: green;
    display: inline-block;
    transition: transform 0.2s ease;
}

.project-page a:hover {
    transform: scale(1.3);
}

.video {
  display: block;      /* remove inline spacing */
  margin: 0 auto;      /* center */
  width: 100%;         /* scale to container */
  max-width: 600px;   /* or whatever max you want */
  height: auto;
}

.project-image {
    text-align: center;
    margin: 30px 0;
}

/* first image stays centered, the rest align left */
.project-image:first-of-type {
    text-align: center;
}
.project-image:not(:first-of-type) {
    text-align: left;
}

.project-image img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

.project-description {
    line-height: 1.6;
}

.project-image_extra {
    text-align: center;
    margin: 30px 0;
}

.project-image-extra img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image-extra img:hover {
    transform: scale(2.8);
}

.project-description h2, .project-description h3 {
    color: darkorange;
    margin-top: 25px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
    padding-bottom: 5px;
}

.project-description ul {
    margin-left: 20px;
}

.project-description li {
    margin: 8px 0;
    color: #ddd;
}

.project-links {
    margin: 20px 0;
}

.project-link-item {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid darkorange;
    transition: background-color 0.3s ease;
}

.project-link-item:hover {
    background-color: rgba(255, 140, 0, 0.15);
}

.project-link-item h4 {
    margin: 0 0 8px 0;
}

.project-link-item h4 a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link-item h4 a:hover {
    color: #ffb84d;
}

.project-link-item p {
    margin: 5px 0;
    color: #ccc;
    font-size: 0.95em;
}

.back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

.back-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 140, 0, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link a:hover {
    background-color: rgba(255, 140, 0, 0.3);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .project-page {
        padding: 15px;
    }
    
    .project-page h1 {
        font-size: 1.8em;
    }
    
    .project-link-item {
        padding: 12px;
    }
}
