/* ======================================= */
/* Project Page General Styles           */
/* ======================================= */
body {
    /* This assumes your dotted background is on the body */
    background-color: #f8f9fa;
    background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Reusable handwritten title class */
.handwritten-title {
    font-family: 'Kalam', cursive;
    font-size: 3rem;
    text-align: center;
    color: #333;
    margin-top: 80px;
    margin-bottom: 50px;
}

/* ======================================= */
/* 1. Back Navigation                    */
/* ======================================= */
.project-nav {
    margin-bottom: 30px;
}
.project-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}
.project-nav a:hover {
    color: #000;
}

/* ======================================= */
/* 2. Project Header                     */
/* ======================================= */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.header-text {
    flex: 1;
}
.header-text h1 {
    font-family: 'Kameron', serif;
    font-size: 4rem;
    margin: 0;
}
.header-text .subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0 20px 0;
}
.header-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    margin-top: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.header-image {
    flex: 1;
}
.header-image img {
    width: 100%;
    height: auto;
}

/* ======================================= */
/* 3. The Problem                        */
/* (Styles are now included in this file) */
/* ======================================= */
.problem-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-card {
    display: flex; 
    background-color: #0b1a4d; /* Dark blue */
    border-radius: 12px;
    overflow: hidden; /* This makes the image corners match */
    max-width: 1000px; 
    margin: 0 auto; /* Centers the card */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.problem-text {
    flex: 1; /* Takes up 50% */
    padding: 0 2.5rem; /* No vertical padding, horizontal padding only */
    box-sizing: border-box;
    
    /* This vertically centers the text-box */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box {
    border: 2px dashed #93c5fd; /* Light blue dashed border */
    border-radius: 8px;
    padding: 25px;
    color: #ffffff; 
}

.text-box h2 {
    font-family: 'Kameron', serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400; /* "Information" */
    margin-top: 0;
    margin-bottom: 15px;
}

.text-box h2 strong {
    font-weight: 700; /* "Overload" */
}

.text-box p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.problem-image {
    flex: 1; /* Takes up 50% */
}

.problem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the container */
    display: block; /* Removes bottom space */
    min-width: 0;
}


/* ======================================= */
/* 4. User Personas                      */
/* ======================================= */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.persona-card {
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    font-family: 'Inter', sans-serif;
}
.persona-title {
    font-family: 'Kameron', serif;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
}
.persona-card p {
    line-height: 1.6;
}
.persona-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 600;
}
.persona-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/* Sticky Note Colors */
.card-pink { background-color: #FFC2EC; }
.card-blue { background-color: #C2E5FF; }
.card-green { background-color: #CDF4D3; }

/* ======================================= */
/* 5. The Solution                       */
/* ======================================= */
.solution-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======================================= */
/* 6. Features Diagram                   */
/* ======================================= */
/* ======================================= */
/* 6. Features Diagram                   */
/* ======================================= */

/* This is the main container that holds the mind map */
.features-diagram {
    position: relative; /* This is essential! */
    width: 100%;
    max-width: 1100px;
    margin: 80px auto;
    
    /* Sets the height of the container so cards fit */
    height: 1000px; 
    
    /* * This is the KEY:
     * It places your 'feature-lines.png' in the background.
     */
    background-image: url('/preppal/assets/red-lines.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* This is the style for EACH screenshot card */
.feature-card {
    position: absolute; /* This lets us place it anywhere */
    width: 45%; /* Each card is 45% of the container's width */
    
    /* Adds the cool 3D tilt effect */
    transform: perspective(1000px) rotateX(10deg) rotateY(-8deg);
    
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
    z-index: 10;
}

.feature-card .screenshot {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* This places the red pin on each card */
.pin-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 30px;
    z-index: 2;
}


/* * These IDs are used to place each card in its
 * specific spot. We use percentages so it's
 * somewhat responsive.
 */

#card-dash {
    top: 0;
    left: 5%;
    transform: perspective(1000px) rotateX(5deg) rotateY(-3deg);
}

#card-gen-left {
    top: 35%;
    left: 0;
}

#card-gen-right {
    top: 15%;
    right: 5%;
}

#card-module {
    top: 55%;
    right: 0;
}

#card-course {
    top: 75%;
    left: 10%;
    transform: perspective(1000px) rotateX(10deg) rotateY(5deg);
}


/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    /*
     * On mobile, this complex layout is hard.
     * We'll just stack them vertically.
     */
    .features-diagram {
        height: auto; /* Let it grow */
        background-image: none; /* Hide the lines */
        
        /* This turns off absolute positioning */
        position: static; 
    }
    
    .feature-card {
        position: static; /* Stack them */
        width: 90%;
        margin: 0 auto 30px auto;
        
        /* Reset transform on mobile */
        transform: none;
    }

    /* We hide the pins on mobile */
    .pin-icon {
        display: none;
    }
}

/* ======================================= */
/* 7. Conclusion                         */
/* ======================================= */
.conclusion-section {
    text-align: center;
    margin: 80px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
}

/* ======================================= */
/* 8. Other Projects                     */
/* ======================================= */
/* This section will reuse the ".pics-wrap"
   and ".thumbnails" styles from your main 'style.css'.
   If you want this page to be 100% standalone,
   we would need to copy those styles here too.
*/
.other-projects .pics-wrap {
    /* Assuming pics-wrap is from your main CSS */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}
.other-projects .thumbnails {
    /* Assuming thumbnails is from your main CSS */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(1deg); /* Just a slight default tilt */
}
.other-projects .thumbnails:nth-child(even) {
    transform: rotate(-1deg); /* Alternate the tilt */
}
.other-projects .thumbnails:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}
.other-projects .thumbnails img {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
}
.other-projects .name-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}
.other-projects .text-w-logo {
    font-family: 'Kameron', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}


/* ======================================= */
/* Responsive Media Queries              */
/* ======================================= */
@media (max-width: 768px) {
    .handwritten-title {
        font-size: 2.5rem;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 3rem;
    }
    
    /* Stack the problem card on mobile */
    .problem-card {
        flex-direction: column;
    }
    .problem-text {
        padding: 30px 20px; /* Add vertical padding back on mobile */
    }
    .text-box h2 {
        font-size: 2rem; /* Smaller title on mobile */
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}
/* ======================================= */
/* Footer                                */
/* ======================================= */
footer {
    text-align: center;
    padding: 50px 20px 30px 20px;
    
    /* Adds a subtle line above the footer */
    border-top: 1px solid #eee; 
    margin-top: 100px;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    /* This targets the <i> icon tags */
    font-size: 1.8rem; /* Makes icons bigger */
    color: #777;      /* A subtle grey color */
    margin: 0 15px;    /* Spaces them out */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #333; /* Darker on hover */
}

.contact-email {
    margin-bottom: 25px;
}

.contact-email a {
    font-family: 'Kameron', serif;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    
    /* Fun "highlighter" effect */
    border-bottom: 2px solid #C2E5FF; /* Uses your sticky note blue */
    padding-bottom: 2px;
    transition: all 0.2s ease-in-out;
}

.contact-email a:hover {
    background-color: #C2E5FF; /* Fills the highlight on hover */
    color: #000;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}