/* assets/css/investements.css (v2 - Left-Aligned Header) */

/* --- GLOBAL SETTINGS & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=K2D:wght@400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-color: #F1ECE2;
    --text-color: #333;
    --primary-yellow: #E2B726;
    --font-bold: 'Inter', sans-serif;
    --font-normal: 'K2D', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-normal);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 1. THESIS SECTION --- */
.thesis-section {
    padding: 7rem 0;
    margin-top:3rem;
}

.thesis-header {
    /* ALIGNMENT FIX: Changed from centered to left-aligned */
    text-align: left;
    max-width: 900px; /* Increased max-width for better flow */
    margin: 0 0 4rem 0; /* Removed auto margin */
}

.thesis-header h1 {
    font-family: var(--font-bold);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.2;
    text-wrap: balance;
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.thesis-card {
    background-color: var(--primary-yellow);
    padding: 2.5rem;
    border-radius: 16px;

    /* Animation Preparation */
    opacity: 0;
    transform: translateY(40px);
}

.thesis-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    display: grid;
    place-items: center;
}

.thesis-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-color);
}

.thesis-card h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.thesis-card p {
    font-family: var(--font-normal);
    line-height: 1.7;
    color: rgba(0,0,0,0.7);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .thesis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .thesis-section {
        padding: 4rem 0;
    }
    .container {
        padding: 0 1.5rem;
    }
    .thesis-header h1 {
        font-size: 2.8rem;
    }
    .thesis-header {
        text-align: center; /* Center header on mobile for better balance */
    }
}








/* Add this new code to the end of investements.css */


/* --- 2. RISK MITIGATION SECTION --- */
.risk-section {
    padding: 7rem 0;
    background-color: #E9E2D8; /* A subtle background to differentiate it */
}

.risk-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.risk-header h2 {
    font-family: var(--font-bold);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.3;
}

.risk-list {
    max-width: 1300px;
    margin: 0 auto;
}

.risk-item {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Title gets 1 part, description gets 2 */
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #d1c9be;
}

.risk-item:first-child {
    border-top: 1px solid #d1c9be;
}

.risk-item h3 {
    font-family: var(--font-bold);
    font-size: 1.5rem;
}

.risk-item p {
    font-family: var(--font-normal);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.risk-conclusion {
    text-align: center;
    max-width: 700px;
    margin: 4rem auto 0 auto;
}

.risk-conclusion p {
    font-family: var(--font-bold);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}


/* --- RISK SECTION RESPONSIVENESS --- */
@media (max-width: 768px) {
    .risk-section {
        padding: 4rem 0;
    }
    .risk-item {
        grid-template-columns: 1fr; /* Stack to a single column */
        gap: 1rem;
        text-align: center;
    }
    .risk-header h2 {
        font-size: 2.2rem;
    }
}







/* REPLACE your entire Core Portfolio and Modal CSS blocks with this */

/* --- 3. CORE PORTFOLIO SECTION --- */
.core-portfolio-section { padding: 7rem 0; }
.section-title { font-family: var(--font-bold); font-size: 2.8rem; text-align: center; margin-bottom: 5rem; }
.portfolio-project { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; margin-bottom: 8rem; }
.portfolio-project.reverse { grid-template-columns: 1fr 1.2fr; }
.portfolio-project.reverse .project-carousel-wrapper { order: 2; }
.project-carousel-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.15); aspect-ratio: 4 / 3; }
.carousel-slides { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide.active { opacity: 1; }
.carousel-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.75rem; z-index: 2; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255,255,255,0.5); cursor: pointer; transition: background-color 0.3s ease; border: none; }
.carousel-dot.active { background-color: #fff; }
.project-details h3 { font-family: var(--font-bold); font-size: 2.5rem; }
.project-details h4 { font-family: var(--font-normal); font-size: 1.2rem; margin: 0.5rem 0 1.5rem 0; color: #555; }
.project-details p { line-height: 1.8; color: #555; margin-bottom: 2rem; }
.learn-more-btn { font-family: var(--font-bold); font-size: 1rem; padding: 0.9rem 2rem; border-radius: 50px; border: 2px solid var(--text-color); background: none; color: var(--text-color); cursor: pointer; transition: all 0.3s ease; }
.learn-more-btn:hover { background-color: var(--text-color); color: #fff; }


/* --- MODAL STYLES (REWRITTEN & RESPONSIVE) --- */
body.modal-active { overflow: hidden; } /* Prevent background scroll */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: visibility 0s 0.3s; }
.modal.active { opacity: 1; visibility: visible; transition: visibility 0s; }
.modal-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); cursor: pointer; }
.modal-box { position: relative; z-index: 1; background-color: #FAF8F5; border-radius: 16px; padding: 3rem; max-width: 650px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2.5rem; line-height: 1; cursor: pointer; color: #aaa; transition: color 0.3s ease; }
.modal-close-btn:hover { color: var(--text-color); }
.modal-box h3 { font-family: var(--font-bold); font-size: 2.5rem; text-align: center; }
.modal-subtitle { text-align: center; color: #555; margin: 0.5rem 0 2.5rem 0; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid #ddd; text-align: center; }
.modal-stat-item span { display: block; font-family: var(--font-bold); font-size: 2.2rem; color: var(--primary-yellow); }
.modal-description p { color: #555; line-height: 1.7; margin-bottom: 1.5rem; }
.modal-description p:last-child { margin-bottom: 0; }
.modal-link { display: inline-block; font-family: var(--font-bold); text-decoration: none; color: var(--text-color); margin-top: 2.5rem; }


/* --- PORTFOLIO & MODAL RESPONSIVENESS --- */
@media (max-width: 992px) {
    .portfolio-project, .portfolio-project.reverse { grid-template-columns: 1fr; }
    .portfolio-project.reverse .project-carousel-wrapper { order: 1; }
    .project-details { text-align: center; }
}
@media (max-width: 768px) {
    .core-portfolio-section { padding: 4rem 0; }
    .section-title { font-size: 2.2rem; }
    .modal-box { padding: 2.5rem 1.5rem; }
    .modal-box h3 { font-size: 2rem; }
    .modal-stats { grid-template-columns: 1fr; gap: 1.5rem; border-bottom: none; }
    .modal-stat-item { padding-bottom: 1.5rem; border-bottom: 1px solid #ddd; }
    .modal-stat-item:last-child { border-bottom: none; }
}