/* ==========================================================================
   |||||||||||||||||| APARTMENT SCOPE PAGE STYLES ||||||||||||||||||
   ========================================================================== */


/* ==========================================================================
   1. MAIN PAGE CONTAINER
   This is the primary wrapper for all unique content on this page.
   ========================================================================== */
.project-page-content {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 120px; /* This sets the consistent space BETWEEN each major section */
    align-items: center; 
}


/* ==========================================================================
   2. REUSABLE COMPONENTS
   ========================================================================== */

/* The main title for a section */
.section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #F2F2F2;
}

/* A smaller heading within a section */
.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #F2F2F2;
}

/* The main paragraph/detail text style */
.section-detail-text {
    font-size: 16px;
    font-weight: 300;
    color: #969696;
    line-height: 1.7;
}


/* ==========================================================================
   3. SECTION-SPECIFIC STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1. Project Hero Section (Full screen intro)
   -------------------------------------------------------------------------- */
.project-hero {
    width: 100%;
    min-height: 100vh;
    background-color: #232323;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px 0px 40px;
}

.hero-text-content {
    margin-bottom: 40px;
}

.hero-project-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    color: #F2F2F2;
    margin-bottom: 8px;
}

.hero-project-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #F2F2F2;
}

.hero-placeholder-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    margin-bottom: -7px;
    background-color: transparent; 
}


/* --------------------------------------------------------------------------
   3.2. Project Overview & Process Sections
   -------------------------------------------------------------------------- */
.project-overview,
.project-process {
    width: 100%;
    max-width: 1000px;
    text-align: left;
    color: #F2F2F2;
}

.overview-super-title {
    font-size: 12px;
    font-weight: 300;
    color: #969696;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.divider {
    border: none;
    height: 1px;
    background-color: #343539;
    margin: 24px 0;
}

.overview-grid {
    display: grid;
    gap: 0 48px;
}

.overview-grid.two-column {
    grid-template-columns: repeat(2, 1fr);
}

.overview-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.overview-item ul {
    list-style: none;
    padding: 0;
}

/* --- Process Section --- */
.process-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number-circle {
    width: 64px;
    height: 64px;
    border: 1px solid #343539;
    background: linear-gradient(to bottom, #1A1A1A, #252525);
    border-radius: 50%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    color: #F2F2F2;
}

.process-step .section-subtitle {
    margin-bottom: 12px;
}

.process-step ul {
    list-style: none;
    padding: 0;
}


/* --------------------------------------------------------------------------
   3.3. User Persona Section
   -------------------------------------------------------------------------- */
.user-persona-section {
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.persona-intro-text {
    margin-bottom: 40px;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
}

.persona-card {
    border-radius: 16px;
    padding: 32px 48px;
    color: #F2F2F2;
}

.card-style-1 {
    grid-column: 1 / 2;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to bottom right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-style-2 {
    grid-column: 2 / 4;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to bottom left, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-3 {
    grid-column: 1 / 2;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-4 {
    grid-column: 2 / 3;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}
.card-style-5 {
    grid-column: 3 / 4;
    border: 0.5px solid #343539;
    background-image: linear-gradient(to top left, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
}

.persona-avatar-img {
    width: 150px;
    height: auto;
}

.persona-header h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.persona-header p {
    color: #969696;
    font-size: 16px;
    font-weight: 400;
}

.persona-details {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.persona-details .detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #7F8188;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: #F2F2F2;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.list-title img {
    width: 24px;
    height: 24px;
}

.persona-list {
    list-style-type: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.persona-list li {
    font-size: 15px;
    color: #969696;
    line-height: 1.6;
    padding-left: 8px;
}


/* --------------------------------------------------------------------------
   3.4. User Journey Section
   -------------------------------------------------------------------------- */
.user-journey-section {
    width: 100%;
    max-width: 1000px;
    position: relative;
}

.journey-intro-text {
    margin-bottom: 40px;
}

.journey-map-container {
    background: linear-gradient(to bottom, #1A1A1A, #252525);
    border-radius: 16px;
    padding: 32px 48px;
    border: 1px solid #2c2c2c;
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.journey-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-left: 44px;
}

.journey-scenario h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F2F2F2;
    margin-bottom: 4px;
}

.journey-scenario p {
    font-size: 16px;
    color: #969696;
    font-weight: 300;
    line-height: 1.6;
}

.journey-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 24px;
    align-items: start;
}

.journey-phase.top-phase {
    grid-row: 1;
    text-align: center;
}

.journey-path-container {
    grid-row: 2;
    grid-column: 1 / -1;
    position: relative;
    height: 170px;
    margin-right: 90px;
    margin-left: 40px;
}

.journey-path-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.journey-phase.bottom-phase {
    grid-row: 3;
}

.top-phase h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F2F2F2;
    margin-bottom: 8px;
}

.top-phase p {
    font-size: 14px;
    color: #969696;
    line-height: 1.6;
    font-weight: 300;
}

.phase-details {
    text-align: center;
}

.phase-details:first-child {
    margin-bottom: 24px;
}

.phase-details strong {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F2F2F2;
    display: block;
    margin-bottom: 8px;
}

.phase-details p {
    font-size: 14px;
    color: #969696;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================================================
   CSS SITEMAP STYLES   
   ========================================================================== */

/* 1. Container */
.sitemap-container {
    width: 100%;
    /* Standard Card Styles */
    background: linear-gradient(to bottom right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid #343539;
    border-radius: 16px;
    padding: 60px 40px; /* Increased side padding to give the 100% columns room */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 2. Common Node Styles (The Pills) */
.sitemap-node {
    background-color: #1A1A1A;
    border: 1px solid #444;
    border-radius: 50px;
    padding: 10px 24px;
    color: #F2F2F2;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2; /* Ensures pill sits on top of lines */
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.node-number {
    color: #969696;
    margin-right: 6px;
    font-weight: 400;
}

/* Specific Node adjustments */
.root-node {
    margin-bottom: 0;
    font-size: 16px;
    padding: 12px 32px;
}

.level-1-node {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.level-2-node {
    color: #969696;
    border-color: #343539;
    font-weight: 400;
    font-size: 13px;
    width: auto;
    display: inline-block;
}

/* 3. The Lines */

/* Solid vertical line from Root down to bridge */
.line-vertical-solid {
    width: 1px;
    height: 30px;
    background-color: #666;
    /* No margin bottom here, it connects directly to the bridge */
}

/* The Horizontal Bridge Line */
.sitemap-bridge {
    width: calc(80% + 6.4px); 
    height: 1px;
    background-color: #666;
    margin-bottom: 0; 
}

/* Container for the 5 columns */
.sitemap-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    gap: 8px; 
}
/* Individual Column */
.sitemap-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* Forces all 5 columns to be exactly the same width */
    position: relative;
}

/* Small solid line connecting horizontal bridge to Level 1 nodes */
.line-vertical-solid-short {
    width: 1px;
    height: 20px;
    background-color: #666;
    margin-bottom: 0;
}

/* Dashed lines connecting Level 1 to Level 2 */
.dashed-connector {
    width: 1px;
    height: 20px;
    background-image: linear-gradient(to bottom, #666 50%, transparent 50%);
    background-position: left;
    background-size: 1px 6px;
    background-repeat: repeat-y;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .sitemap-columns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    /* Hide the connecting lines on mobile/tablet since we stack them */
    .sitemap-bridge, 
    .line-vertical-solid {
        display: none; 
    }
    
    /* Add space below root since the line is gone */
    .root-node {
        margin-bottom: 30px;
    }
    
    .sitemap-col {
        min-width: 200px; /* Ensures columns don't get too squished */
    }
    
    .line-vertical-solid-short {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   3.5. Images & Links
   -------------------------------------------------------------------------- */
.wireframe-image {
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
}

.digital-wireframe-image {
    display: block;
    margin: 0 auto;
    width: 70%;
    height: auto;
    margin-top: 40px;
    border-radius: 24px;
}

.section-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.prototype-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #969696;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    align-self: flex-end;
    margin-bottom: -18px;
}

.prototype-link:hover {
    color: #F2F2F2;
}

.external-link-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    /* Use the generic Open Link icon or the specific apartment one if you have it */
    -webkit-mask-image: url('images/Apartment/Open_link.svg');
    mask-image: url('images/Apartment/Open_link.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.full-width-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
}

.mockup-gallery-image {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    height: auto;
    border-radius: 12px;
}

/* ==========================================================================
   4. RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 992px) {
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-style-1 { grid-column: 1 / 2; grid-row: 1; }
    .card-style-2 { grid-column: 2 / 3; grid-row: 1; }
    .card-style-3 { grid-column: 1 / 3; grid-row: 2; }
    .card-style-4 { grid-column: 1 / 2; grid-row: 3; }
    .card-style-5 { grid-column: 2 / 3; grid-row: 3; }
}

@media (max-width: 768px) {
    .hero-project-title { font-size: 40px; }
    .hero-project-subtitle { font-size: 16px; }
    .section-title { font-size: 32px; }

    .overview-grid.two-column,
    .overview-grid.three-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .process-step {
        width: 100%;
        max-width: 300px;
    }
    
    .pain-points-grid {
        grid-template-columns: 1fr; /* Stack in 1 column on mobile */
        gap: 24px;
    }
    
    .persona-grid { grid-template-columns: 1fr; }
    .persona-card { grid-column: 1 / -1 !important; }
    .persona-details {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .journey-map-container { padding: 24px; }
    .journey-path-container { display: none; }
    .journey-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .journey-phase.top-phase { display: none; }
    .journey-phase.bottom-phase {
        text-align: left;
        padding: 24px;
        border-top: 1px solid #2c2c2c;
    }
    .journey-phase.bottom-phase:first-child { border-top: none; }
}


/* ==========================================================================
   INTERACTIVE CARD EFFECTS
   ========================================================================== */

.interactive-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

.interactive-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        circle 250px at var(--glow-x) var(--glow-y),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    opacity: var(--glow-opacity);
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

/* ==========================================================================
   PAIN POINTS SECTION STYLES
   ========================================================================== */

/* The Grid Container */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 24px;
    margin-top: 32px;
}

/* The Individual Card */
.pain-point-card {
    /* Background and Border to match the dark aesthetic */
    background: linear-gradient(to bottom right, rgba(52, 53, 57, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid #343539;
    border-radius: 16px;
    
    /* Layout inside the card */
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Ensure text colors are inherited correctly */
    color: #F2F2F2;
}

/* The Number Circle (1, 2, 3) */
.pp-number-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    
    /* Dark semi-transparent background with a subtle border */
    background-color: #1A1A1A;
    border: 1px solid #444;
    
    /* Centering the number */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Text Styling */
    font-family: 'Open Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #F2F2F2;
    margin-bottom: 24px; /* Space below the circle */

    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Card Title */
.pp-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F2F2F2;
}

/* Card Description */
.pp-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #969696;
    line-height: 1.6;
    max-width: 90%; /* Keeps text from hitting the very edges */
}