/* =============================================================
   Rosé Pine — Unified Stylesheet
   Hassan Jahid · Data Science Portfolio
   Variable names & hex values match main.css exactly
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap");

/* ── Color Tokens — identical to main.css :root ─────────── */
:root {
    --primary-color:   #eb6f92;
    --secondary-color: #9ccfd8;
    --accent-color:    #f6c177;
    --highlight-color: #c4a7e7;
    --teal-accent:     #31748f;
    --bg-dark:         #191724;
    --bg-darker:       #1a1a1a;
    --bg-surface:      #1e1c2e;
    --text-light:      #e0def4;
    --text-gray:       #6e6a86;
    --border-color:    #26233a;

    /* Extended accent spectrum */
    --accent1:  #eb6f92;
    --accent2:  #9ccfd8;
    --accent3:  #f6c177;
    --accent4:  #c4a7e7;
    --accent5:  #31748f;
    --accent6:  #ff8a80;
    --accent7:  #ff80bf;
    --accent8:  #ff66cc;
    --accent9:  #ff4dd2;
    --accent10: #ff33e6;
    --accent11: #ff1aff;
    --accent12: #e600f5;
    --accent13: #b300ff;
    --accent14: #9900cc;
    --accent15: #8000b3;
    --accent16: #6600cc;
    --accent17: #4d00b3;
    --accent18: #3300b3;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ────────────────────────────────────────────────── */
body {
    font-family: "Source Code Pro", "Courier New", monospace;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--border-color) 100%);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--highlight-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: var(--teal-accent);
    color: var(--text-light);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 207, 216, 0.3);
}

.project-title {
    font-size: 1.8rem;
    color: var(--highlight-color);
    font-weight: 700;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--border-color);
}

/* ── Content Wrapper ─────────────────────────────────────── */
.content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

/* ── Meta Info ───────────────────────────────────────────── */
.meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.meta-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* ── Tags ────────────────────────────────────────────────── */
.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: var(--border-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--teal-accent);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--teal-accent);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 116, 143, 0.3);
}

/* ── Action Buttons ──────────────────────────────────────── */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 111, 146, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.btn-secondary:hover {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 207, 216, 0.3);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-accent);
}

.section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section ul,
.section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.section strong {
    color: var(--accent-color);
}

.section em {
    color: var(--primary-color);
}

/* ── Charts Grid ─────────────────────────────────────────── */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-item {
    background: var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    transition: all 0.3s ease;
}

.chart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.chart-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.chart-item h4 {
    color: var(--highlight-color);
    margin-bottom: 0.5rem;
}

.chart-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ── Findings List ───────────────────────────────────────── */
.findings-list {
    background: var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.findings-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    color: var(--text-gray);
}

.findings-list li::before {
    content: "▸";
    position: absolute;
    left: -0.5rem;
    color: var(--accent-color);
}

/* ── Ratings Table ───────────────────────────────────────── */
.ratings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.ratings-table th {
    background: var(--border-color);
    color: var(--highlight-color);
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--bg-surface);
}

.ratings-table td {
    background: var(--bg-surface);
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
}

.ratings-table tr:hover td {
    background: var(--border-color);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--bg-surface);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--highlight-color);
    margin-top: 4rem;
}

.footer p {
    color: var(--text-gray);
}

/* ── Index Page Title ────────────────────────────────────── */
.page-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Section Intro (index pages) ─────────────────────────── */
.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-intro h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.section-intro p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Projects Grid (index cards) ─────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-body h4 {
    color: var(--highlight-color);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.card-body p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-body a {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-body a:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ── Tag Row (inside cards) ──────────────────────────────── */
.tag-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

/* ── Sub-heading (reports page) ──────────────────────────── */
.sub-heading {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--teal-accent);
}

/* ── Report Cards ────────────────────────────────────────── */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.report-card {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.report-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.report-icon {
    font-size: 2rem;
}

.report-card h4 {
    color: var(--highlight-color);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
}

.report-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.report-card .btn {
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* ── Dash Card (full-width dashboard preview) ─────────────── */
.dash-card {
    background: var(--bg-surface);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.dash-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.dash-card img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.dash-card .card-body h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.dash-card .card-body p {
    margin-bottom: 1.5rem;
}

.dash-card .card-body a {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
}

/* ── Package Card ────────────────────────────────────────── */
.package-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(235, 111, 146, 0.15);
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(235, 111, 146, 0.25);
}

.featured-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.package-inner {
    padding: 2.5rem;
}

.package-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.package-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.package-info h3 {
    color: var(--highlight-color);
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.package-info .tagline {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.package-desc {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-value {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

.btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .hero-image {
        height: 300px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .package-header {
        flex-direction: column;
    }

    .stats-row {
        flex-direction: column;
    }
}