/* ==========================================================================
   |||||||||||||||||||||||||| MovieClick 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
   These are "utility" classes used across multiple sections for consistency.
   Changing a style here will update it everywhere it's used.
   ========================================================================== */

/* The main title for a section (e.g., "User Persona") */
.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 (e.g., "The goal", "My role") */
.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
   Layouts and styles that are unique to each individual section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1. Project Hero Section (Full screen intro)
   -------------------------------------------------------------------------- */
.project-hero {
    width: 100%;
    min-height: 100vh; /* Makes the section take up the full browser height */
    background-color: #232323;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers content */
    align-items: center; /* Horizontally centers content */
    text-align: center;
    padding: 40px 20px;
}

.hero-text-content {
    margin-bottom: 40px; /* Space between the title and the main image */
}

.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; /* Prevents the image from getting too large on big screens */
    height: auto;
    border-radius: 12px;
    background-color: #333; /* Fallback color while image loads */
}


/* --------------------------------------------------------------------------
   3.2. Project Overview & Process Sections (Shared Layouts)
   -------------------------------------------------------------------------- */
.project-overview,
.project-process {
    width: 100%;
    max-width: 1000px; /* Constrains the width of these text sections */
    text-align: left;
    color: #F2F2F2;
}

/* The small grey text above a section title (e.g., "PROCESS HIGHLIGHTS") */
.overview-super-title {
    font-size: 12px;
    font-weight: 300;
    color: #969696;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* The thin grey line used to separate content */
.divider {
    border: none;
    height: 1px;
    background-color: #343539;
    margin: 24px 0;
}

/* Defines a grid layout for content */
.overview-grid {
    display: grid;
    gap: 0 48px; /* 0px space between rows, 48px space between columns */
}

/* A grid with two equal-width columns */
.overview-grid.two-column {
    grid-template-columns: repeat(2, 1fr);
}

/* A grid with three equal-width columns */
.overview-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

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

/* --- Styles specifically for the "Process" section --- */
.process-steps-container {
    display: flex; /* Arranges the 5 steps in a horizontal row */
    justify-content: space-between; /* Distributes them evenly */
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    flex: 1; /* Allows each step to share the space equally */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The numbered circles in "The Process" section */
.step-number-circle {
    width: 64px;
    height: 64px;
    border: 1px solid #343539;
    background: linear-gradient(to bottom, #1A1A1A, #252525);
    border-radius: 50%; /* This is the trick that makes a square a circle */
    margin-bottom: 24px;
    display: flex; /* The next 3 lines perfectly center the number inside */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    color: #F2F2F2;
}

.process-step .section-subtitle {
    margin-bottom: 12px; /* Small tweak for this specific layout */
}

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


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

.persona-intro-text {
    margin-bottom: 40px; /* Space between the intro paragraph and the card grid */
}

/* This creates the main 3-column grid for the persona cards */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
}

/* Base style for all cards in the persona section */
.persona-card {
    border-radius: 16px;
    padding: 32px 48px;
    color: #F2F2F2;
}

/* -- Unique styles for each of the 5 cards to control their position and background -- */
.card-style-1 {
    grid-column: 1 / 2; /* This card takes up the 1st column */
    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; /* This card spans from the 2nd to the 4th column line (taking up 2 columns) */
    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));
}

/* -- Styling for the content INSIDE the persona cards -- */
.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; /* This creates the bullet points */
    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; /* Space between bullet and text */
}


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

.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: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-left: 64px;
}

.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;
}

/* This creates the 3-row, 4-column grid for the timeline */
.journey-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto; /* 3 rows that grow with content */
    gap: 24px;
    align-items: start;
}

/* All the top text blocks go in the first row */
.journey-phase.top-phase {
    grid-row: 1;
    text-align: center;
}

/* The SVG image container goes in the second row and spans all 4 columns */
.journey-path-container {
    grid-row: 2;
    grid-column: 1 / -1; /* This means "start at line 1, end at the last line" */
    position: relative;
    height: 170px;
    margin-right: 90px;
    margin-left: 40px;
}

/* The SVG image itself is stretched to fill its container */
.journey-path-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* All the bottom text blocks go in the third row */
.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;
}

/* --------------------------------------------------------------------------
   3.5. Wireframe Image Section
   -------------------------------------------------------------------------- */
.wireframe-image {
    width: 100%;
    height: auto;
    margin-top: 40px; /* Space between the text and the image */
    border-radius: 12px;
}

/* --- Style for the Digital Wireframe image specifically --- */
.digital-wireframe-image {
    display: block;
    margin: 0 auto;
    width: 70%;
    height: auto;
    margin-top: 40px;
    border-radius: 24px; /* A slightly larger radius to match the mockup */
}

/* --------------------------------------------------------------------------
   3.7. Section Header with Link
   -------------------------------------------------------------------------- */
.section-header-with-link {
    display: flex; /* Arranges items in a row */
    justify-content: space-between; /* Pushes the title to the left and the link to the right */
    align-items: center; /* Vertically aligns them in the middle */
    width: 100%;
}

.prototype-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between "View prototype" and the icon */
    
    color: #969696;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;

    /* New styles for positioning */
    align-self: flex-end; /* Pushes the link to the far right */
    margin-bottom: -18px;  /* Creates the 4px space above the divider */
}

.prototype-link:hover {
    color: #F2F2F2; /* A subtle hover effect */
}

.external-link-icon {
    display: inline-block;
    width: 20px;
    height: 20px;

    /* This is the magic: set the background color to the CURRENT text color */
    background-color: currentColor; 

    /* Use the SVG file as a MASK */
    -webkit-mask-image: url('images/MoviClick/Open_link.svg');
    mask-image: url('images/MoviClick/Open_link.svg');
    
    /* Ensure the mask covers the whole element */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   3.8. Full-Width Image Section (Reusable)
   -------------------------------------------------------------------------- */
.full-width-image {
    display: block;
    margin: 0 auto;
    width: 70%;
    height: auto;
    margin-top: 40px;
    border-radius: 24px;
}

/* --------------------------------------------------------------------------
   3.9. Mockup Gallery Image
   -------------------------------------------------------------------------- */
.mockup-gallery-image {
    /* --- THIS IS YOUR MAIN SIZE CONTROL --- */
    max-width: 100%; /* Example: Makes the image 80% of the container's width */
    
    /* --- These styles center the smaller image --- */
    display: block; /* Ensures margin auto works */
    margin-left: auto;
    margin-right: auto;
    
    /* --- Other styles --- */
    margin-top: 40px;
    height: auto;
    border-radius: 12px;
}

/* ==========================================================================
   4. RESPONSIVE STYLES
   This block contains all the adjustments for smaller screens (tablets/mobile).
   ========================================================================== */

/* --- On Tablets and smaller --- */
@media (max-width: 992px) {
    /* Make the persona grid a 2-column layout */
    .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; } /* Spans full width */
    .card-style-4 { grid-column: 1 / 2; grid-row: 3; }
    .card-style-5 { grid-column: 2 / 3; grid-row: 3; }
}

/* --- On Mobile phones --- */
@media (max-width: 768px) {
    .hero-project-title {
        font-size: 40px;
    }

    .hero-project-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    /* Stack all overview columns vertically */
    .overview-grid.two-column,
    .overview-grid.three-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Stack the process steps vertically */
    .process-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .process-step {
        width: 100%;
        max-width: 300px;
    }
    
    /* Stack the persona cards vertically */
    .persona-grid {
        grid-template-columns: 1fr;
    }
    .persona-card {
        grid-column: 1 / -1 !important; /* Make sure all cards span the full width */
    }
    .persona-details {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    /* --- Responsive for the Journey Map --- */
    .journey-map-container {
        padding: 24px;
    }
    
    .journey-path-container {
        display: none; /* Hide the SVG line on mobile for clarity */
    }

    .journey-timeline {
        grid-template-columns: 1fr; /* Stack into a single column */
        gap: 0;
    }

    .journey-phase.top-phase {
        display: none; /* Hide the simple top text to avoid repetition */
    }

    .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 (Spotlight, Tilt, Glow, Click)
   ========================================================================== */

/* This is the container for the grid, needed for the spotlight effect */
.user-persona-section {
    position: relative; /* Establishes a positioning context */
}

/* Base styles for all interactive cards */
.interactive-card {
    /* Enables 3D transformations for the tilt effect */
    transform-style: preserve-3d;
    /* Smooths out the transition when the mouse leaves the card */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;

    /* These are custom properties (variables) that JavaScript will update */
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

/* This pseudo-element creates the border glow */
.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), /* Your purple glow color */
        transparent
    );
    opacity: var(--glow-opacity);
    transition: opacity 0.3s ease-out;
}