/* Project-specific styles */

/* Project Header */
.project-header, .project-hero {
    background-color: #000;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    position: absolute;
    left: 20px;
    top: 20px; /* Fixed top position */
    height: 160px; /* Increased from 120px to 160px */
    width: auto; /* Maintain aspect ratio */
    transform: none;
}

/* Updated to create space for the logo */
.project-header h1 {
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    max-width: 80%; /* Limit width to prevent overflow */
    margin-left: auto;
    margin-right: auto;
}

/* Updated for consistent spacing */
.project-header p {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background-color: #fff;
}

/* Project Cards */
.project-card {
    width: 100%;
    max-width: 800px;
    border: 3px solid #000;
    display: flex;
    flex-direction: column;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-info h2 {
    font-size: 2rem;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-location, .project-company, .project-date {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.project-description {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Single Project Page Styles */
.project-page {
    background-color: #fff;
    min-height: calc(100vh - 100px);
}

.project-hero {
    background-color: #000;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.project-hero h1 {
    font-size: 3.5rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
}

.project-hero .project-details {
    justify-content: center;
}

.carousel-container {
    position: relative;
    margin: 2rem auto;
    max-width: 1000px;
    height: 500px;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.project-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.project-content article {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.project-content article p {
    margin-bottom: 1.5rem;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-top: 3px solid #000;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .project-card {
        max-width: 100%;
    }

    .project-hero h1 {
        font-size: 2.5rem;
    }

    .carousel-container {
        height: 300px;
    }

    .header-logo {
        position: absolute; /* Keep it absolute */
        top: 15px; /* Align with burger menu */
        left: 15px;
        height: auto;
        max-height: 40px; /* Smaller size for mobile */
        transform: none;
        margin-bottom: 0;
    }

    .project-header, .project-hero {
        padding-top: 70px; /* Provide space for the logo and burger menu */
    }
}
