/* --- Project Page Specific Architecture --- */

/* ADD THIS TO THE TOP OF project-style.css */

@font-face {
    font-family: 'Moura';
    src: url('fonts/Moura-Regular.woff2') format('woff2'),
         url('fonts/Moura-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.project-main {
    padding-top: 80px; /* Offset for the fixed header */
}

/* --- Project Hero --- */
.project-hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a subtle parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}
.project-hero-content {
    background-color: rgba(0,0,0,0.2);
    padding: 2rem 3rem;
    backdrop-filter: blur(5px);
}
.project-hero h1 {
    font-size: 4.5rem;
    margin: 0;
}
.project-hero p {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    letter-spacing: 1px;
}

/* --- Content Sections --- */
.project-section {
    padding: 100px 0;
}
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Centered Manifesto Style */
.text-manifesto {
    text-align: center;
}
.text-manifesto h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}
.text-manifesto p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}
.reflection-bg {
    background-color: var(--white-color);
}

/* --- RE-ARCHITECTED CAROUSEL CSS --- */
.carousel-section {
    padding: 60px 0;
    background-color: var(--white-color);
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Crucial for smooth button clicks */
    gap: 30px;
    padding: 20px 40px;
    scrollbar-width: thin; /* Un-hides for Firefox */
    scrollbar-color: var(--accent-color) transparent;
}

/* Un-hide scrollbar for Chrome/Safari and style it */
.carousel-container::-webkit-scrollbar {
    display: block;
    height: 5px;
}
.carousel-container::-webkit-scrollbar-track {
    background: transparent;
}
.carousel-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

.carousel-container.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    transform: scale(1.01);
}

.carousel-item {
    flex: 0 0 55%; 
    scroll-snap-align: center;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item figcaption {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    padding: 1rem 0;
}

/* Arrow Button Styling */
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: var(--white-color);
    transform: translateY(-50%) scale(1.1);
}
/* REFINED CAROUSEL ITEM ARCHITECTURE */
.carousel-item {
    flex: 0 0 70%; /* Each item takes 70% of the container's width, forcing overflow */
    scroll-snap-align: center;
    border-radius: 5px;
    overflow: hidden;
    position: relative; /* Crucial for aspect ratio control */
    aspect-ratio: 16 / 9; /* Enforce the cinematic 16:9 ratio */
}
/* REFINED CAROUSEL IMAGE ARCHITECTURE */
.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will ensure the image fills the container beautifully */
}
.carousel-item figcaption {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    padding: 1rem 0;
}

/* --- Text & Image Grid --- */
.text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.text-image-grid.reverse {
    grid-template-columns: 1fr 1fr;
}
.text-image-grid.reverse .text-content {
    order: 2;
}
.text-image-grid h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.text-image-grid p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.text-image-grid img {
    border-radius: 5px;
    width: 100%;
    height: auto;
}

/* Identity Showcase */
.identity-showcase {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
}
.logo-showcase {
    max-width: 150px;
    margin: 0 auto 2rem auto;
}
.palette {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #eee;
}

/* --- Project Navigation --- */
.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    border-top: 1px solid #eee;
}
.nav-link {
    font-weight: 500;
    color: var(--text-color);
}

/* --- Responsive for Project Page --- */
@media (max-width: 768px) {
    .project-main { padding-top: 70px; }
    .project-hero { height: 50vh; }
    .project-hero h1 { font-size: 2.5rem; }
    .project-section { padding: 60px 0; }
    .text-image-grid, .text-image-grid.reverse { grid-template-columns: 1fr; }
    .text-image-grid.reverse .text-content { order: 0; }
    .carousel-item { flex-basis: 90%; }
}

/* --- ADD THIS TO THE END OF project-style.css --- */

/* --- Atelier Verde: Vertical Hero Architecture --- */
.project-hero-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
}
.hero-image-container img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}
.hero-text-container {
    padding: 0 5vw;
}
/* REFINED HERO HEADLINE WITH MOURA FONT */
.hero-text-container h1 {
    font-family: 'Moura', var(--font-serif); /* Use Moura, with Cormorant as a fallback */
    font-size: 5.5rem; /* Increase size for more impact, adjust as needed */
    font-weight: normal; /* Custom fonts often need a normal weight */
    line-height: 1.1;
    margin-bottom: 0.5rem; /* This is the new line */
}
.hero-text-container p {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--accent-color);
}

/* --- Manifesto Intro --- */
.manifesto-intro {
    font-size: 1.5rem !important;
    font-weight: 600;
    font-family: var(--font-serif);
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* --- Identity Showcase --- */
.identity-section-bg {
    background-color: var(--white-color);
}
.identity-showcase-full {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 60px;
}
.identity-logo img {
    max-width: 250px;
    margin: 0 auto;
}
.identity-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Final Mood Image --- */
.final-mood-image {
    width: 100%;
    max-height: 450px; /* Constrains the height to prevent it from being too tall */
    object-fit: cover; /* Ensures the image fills the space beautifully without distortion */
    border-radius: 5px;
    margin: 0 auto 3rem auto; /* Ensures it's centered */
    display: block;
}

/* --- Responsive for Atelier Verde --- */
@media (max-width: 768px) {
    .project-hero-vertical {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-image-container img {
        height: 60vh;
    }
    .hero-text-container {
        padding: 40px 25px;
        text-align: center;
    }
    .hero-text-container h1 {
        font-size: 3rem;
    }
    .identity-showcase-full {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- ADD THIS TO THE END OF project-style.css --- */

/* Final Reflection Section Refinements */
.final-reflection-section {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

/* New Full-Width Container Architecture */
.full-width-container {
    width: 100vw; /* 100% of the viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Re-architected Cinematic Image for Full Width */
.final-mood-image {
    width: 100%; /* Image will fill its new full-width container */
    max-height: 500px; 
    object-fit: cover;
    margin-bottom: 4rem; /* More space between image and text */
}

/* Final Paragraph Refinement */
.final-reflection-section p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* --- ADD THIS TO THE END OF project-style.css --- */

/* --- Scribe & Meridian: Dark Theme Architecture --- */

.scribe-theme {
    background-color: #f0e9e2; /* Aged Parchment */
}

/* Dark Hero */
.project-hero-dark {
    min-height: 80vh;
    background-color: #3a241c; /* Deep Cacao */
    color: #f0e9e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.hero-logo-container {
    max-width: 300px;
    margin-bottom: 2rem;
}
.hero-text-dark h1 {
    font-family: 'Playfair Display', var(--font-serif);
    font-size: 3.5rem;
    font-weight: 600;
    color: #f0e9e2;
    margin: 0;
}
.hero-text-dark p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #a98b64; /* Burnished Gold */
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* Full-width Image Breaks */
.project-image-break {
    margin-bottom: 0;
}
.project-image-break img {
    width: 100%;
    height: auto;
    display: block;
}

/* Override for manifesto text on dark theme */
.scribe-theme .text-manifesto h2 {
    font-family: 'Playfair Display', var(--font-serif);
}

/* Responsive for Scribe & Meridian */
@media (max-width: 768px) {
    .project-hero-dark {
        min-height: 60vh;
    }
    .hero-text-dark h1 {
        font-size: 2.5rem;
    }
}