﻿/* ============================================================================
   NASA L'SPACE PAGE STYLES
   ============================================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Global Styles */
* {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0d1117;
    color: #e2e8f0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

main {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 4em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #cbd5e1;
}

h4 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
    color: #94a3b8;
}

p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #94a3b8;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.28) 0%, rgba(124, 58, 255, 0.08) 100%);
    color: #e2e8f0;
    padding: 3em 2em;
    border-radius: 1.5em;
    border-left: 6px solid rgba(124, 58, 255, 0.8);
    box-shadow: 0 10px 30px rgba(124, 58, 255, 0.15);
    position: relative;
}

.hero-text {
    flex: 1 1 400px;
    padding: 1em;
}

.nasa-badge {
    margin-bottom: 1em;
}

.nasa-badge img {
    width: 80px;
    height: auto;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 0.3em;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aff 0%, #5b21b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.4em;
    color: #94a3b8;
    margin-bottom: 0.5em;
    font-weight: 500;
}

.hero-text .tagline {
    font-size: 1.1em;
    color: #8894a7;
    font-style: italic;
    margin-bottom: 1em;
}

.hero-text .role {
    font-size: 1.2em;
    color: #7c3aff;
    font-weight: 600;
    padding: 0.5em 1em;
    background: rgba(124, 58, 255, 0.25);
    border-radius: 0.5em;
    display: inline-block;
    margin-bottom: 0.5em;
}

.hero-text .duration {
    font-size: 1em;
    color: #8894a7;
    font-style: italic;
    margin-bottom: 1em;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    padding: 1em 1.5em;
    border-radius: 1em;
    border: 2px solid rgba(251, 191, 36, 0.5);
    margin-top: 1em;
}

.badge-icon {
    font-size: 2em;
}

.badge-text {
    font-size: 1.1em;
    color: #e2e8f0;
}

.badge-text strong {
    color: #d97706;
    font-weight: 700;
}

.hero-image {
    flex: 1 1 400px;
    text-align: center;
    padding: 1em;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1.5em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

/* ============================================================================
   PROGRAM OVERVIEW SECTION
   ============================================================================ */
.program-overview {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.overview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.overview-text {
    flex: 1 1 500px;
}

.overview-text p {
    margin-bottom: 1.5em;
}

.overview-text strong {
    color: #7c3aff;
    font-weight: 600;
}

.overview-stats {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.stat-box {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.12) 0%, rgba(124, 58, 255, 0.06) 100%);
    padding: 2em 1.5em;
    border-radius: 1em;
    text-align: center;
    border: 2px solid rgba(124, 58, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 255, 0.15);
}

.stat-box.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.5);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #7c3aff;
    margin-bottom: 0.3em;
    line-height: 1;
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 0.3em;
}

.stat-label {
    font-size: 1.4em;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 0.3em;
}

.stat-box p {
    font-size: 1em;
    color: #94a3b8;
    margin: 0;
    font-weight: 600;
}

/* ============================================================================
   MISSION OVERVIEW SECTION
   ============================================================================ */
.mission-overview {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.mission-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(124, 58, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #7c3aff;
}

.mission-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.08) 0%, rgba(124, 58, 255, 0.02) 100%);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(124, 58, 255, 0.4);
}

.mission-card h3 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.5em;
    margin-bottom: 1em;
}

.mission-card ul {
    list-style: none;
    padding: 0;
    margin: 0.8em 0;
}

.mission-card li {
    padding: 0.6em 0 0.6em 1.8em;
    color: #94a3b8;
    position: relative;
}

.mission-card li::before {
    content: "▶";
    color: #7c3aff;
    font-size: 0.7em;
    position: absolute;
    left: 0;
}

.mission-card strong {
    color: #7c3aff;
}

.mission-card p {
    margin: 0.8em 0;
}

/* ============================================================================
   ROLE SECTION
   ============================================================================ */
.role-section {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.role-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2em;
    padding: 2em;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-radius: 1em;
    border-left: 4px solid #f59e0b;
}

.role-intro strong {
    color: #d97706;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.role-card {
    background: #0d1117;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #7c3aff;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(124, 58, 255, 0.15);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.role-card h3 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.5em;
}

.role-card p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1em;
}

.role-card p:last-child {
    margin-bottom: 0;
}

.role-card strong {
    color: #7c3aff;
}

/* ============================================================================
   CDH SUBSYSTEM SECTION
   ============================================================================ */
.cdh-subsystem {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.subsystem-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5em;
}

.subsystem-intro p {
    font-size: 1.15em;
    color: #94a3b8;
}

.subsystem-intro strong {
    color: #7c3aff;
}

.subsystem-architecture {
    margin-bottom: 3em;
}

.subsystem-architecture h3 {
    text-align: center;
    color: #7c3aff;
    margin-bottom: 1.5em;
}

.architecture-diagram {
    text-align: center;
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.architecture-diagram img {
    width: 100%;
    max-width: 900px;
    border-radius: 0.5em;
}

.caption {
    margin-top: 1em;
    font-size: 1em;
    color: #8894a7;
    font-style: italic;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
}

.component-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-top: 3px solid #7c3aff;
}

.component-card.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
    border-top-color: #f59e0b;
}

.component-card h4 {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 1.3em;
    margin-bottom: 1em;
}

.component-specs {
    background: rgba(124, 58, 255, 0.05);
    padding: 0.8em;
    border-radius: 0.5em;
    margin-bottom: 1em;
}

.component-specs p {
    margin: 0;
    font-size: 0.95em;
    color: #94a3b8;
}

.component-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-card li {
    padding: 0.6em 0;
    color: #94a3b8;
    border-bottom: 1px solid rgba(124, 58, 255, 0.25);
}

.component-card li:last-child {
    border-bottom: none;
}

.component-card strong {
    color: #e2e8f0;
    font-weight: 600;
}

.subsystem-summary {
    margin-top: 3em;
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.subsystem-summary h3 {
    text-align: center;
    margin-bottom: 1.5em;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.specs-table thead {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.25) 0%, rgba(124, 58, 255, 0.05) 100%);
}

.specs-table th {
    padding: 1em;
    text-align: left;
    color: #e2e8f0;
    font-weight: 600;
    border-bottom: 2px solid #7c3aff;
}

.specs-table td {
    padding: 1em;
    color: #94a3b8;
    border-bottom: 1px solid #30363d;
}

.specs-table tbody tr:hover {
    background: rgba(124, 58, 255, 0.03);
}

.total-row {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.25) 0%, rgba(124, 58, 255, 0.05) 100%);
    font-weight: 700;
}

.total-row td {
    border-top: 2px solid #7c3aff;
    border-bottom: 2px solid #7c3aff;
}

/* ============================================================================
   ROVER DESIGN SECTION
   ============================================================================ */
.rover-design {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.rover-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 3em;
}

.rover-image {
    flex: 1 1 450px;
    text-align: center;
}

.rover-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
}

.rover-specs {
    flex: 1 1 400px;
}

.rover-specs h3 {
    margin-top: 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
}

.spec-item {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.12) 0%, rgba(124, 58, 255, 0.06) 100%);
    padding: 1.5em;
    border-radius: 0.8em;
    border-left: 3px solid #7c3aff;
}

.spec-item h4 {
    margin: 0 0 0.5em;
    color: #e2e8f0;
    font-size: 1.1em;
}

.spec-item p {
    margin: 0;
    color: #7c3aff;
    font-weight: 600;
    font-size: 1.2em;
}

.subsystems-overview h3 {
    text-align: center;
    margin-bottom: 1.5em;
}

.subsystems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.subsystem-box {
    background: #0d1117;
    padding: 1.5em;
    border-radius: 1em;
    border-left: 3px solid #64748b;
}

.subsystem-box.highlight {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.25) 0%, rgba(124, 58, 255, 0.05) 100%);
    border-left-color: #7c3aff;
}

.subsystem-box h4 {
    margin-top: 0;
    font-size: 1.2em;
}

.subsystem-box ul {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 0;
}

.subsystem-box li {
    padding: 0.4em 0;
    color: #94a3b8;
}

.drill-system {
    margin-top: 3em;
}

.drill-system h3 {
    text-align: center;
    margin-bottom: 1.5em;
}

.drill-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: center;
}

.drill-image {
    flex: 1 1 350px;
    text-align: center;
}

.drill-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 1em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
}

.drill-details {
    flex: 1 1 500px;
}

.drill-details ul {
    list-style: none;
    padding: 0;
}

.drill-details li {
    padding: 0.6em 0;
    color: #94a3b8;
}

/* ============================================================================
   PROJECT MANAGEMENT SECTION
   ============================================================================ */
.project-management {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.management-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 2px solid rgba(124, 58, 255, 0.4);
}

.card-header .card-icon {
    font-size: 2em;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4em;
}

.management-card p {
    margin-bottom: 1em;
}

.management-card p:last-child {
    margin-bottom: 0;
}

.management-card strong {
    color: #7c3aff;
}

/* ============================================================================
   ACHIEVEMENTS SECTION
   ============================================================================ */
.achievements {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.achievement-box {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.12) 0%, rgba(124, 58, 255, 0.06) 100%);
    padding: 2em;
    border-radius: 1em;
    text-align: center;
    border: 2px solid rgba(124, 58, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-box.major {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.5);
}

.achievement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 255, 0.15);
}

.achievement-icon {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

.achievement-box h3 {
    font-size: 1.4em;
    margin-bottom: 0.8em;
    color: #e2e8f0;
}

.achievement-box p {
    font-size: 1em;
    color: #94a3b8;
    margin: 0;
}

.achievement-box strong {
    color: #7c3aff;
}

.achievement-box.major strong {
    color: #d97706;
}

/* ============================================================================
   CERTIFICATE SECTION
   ============================================================================ */
.certificate {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.certificate-display {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: flex-start;
}

.certificate-image {
    flex: 1 1 500px;
    text-align: center;
}

.certificate-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 1em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
    border: 4px solid rgba(124, 58, 255, 0.3);
}

.certificate-details {
    flex: 1 1 400px;
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.certificate-details h3 {
    margin-top: 0;
    color: #7c3aff;
    text-align: center;
}

.certificate-text {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 2em;
    color: #94a3b8;
}

.certificate-text strong {
    color: #e2e8f0;
    font-weight: 700;
}

.certificate-details h4 {
    text-align: center;
    margin: 2em 0 1.5em;
    color: #e2e8f0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
}

.badge-item {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.08) 0%, rgba(124, 58, 255, 0.02) 100%);
    padding: 1em;
    border-radius: 0.8em;
    text-align: center;
    border: 2px solid rgba(124, 58, 255, 0.4);
}

.badge-item .badge-icon {
    font-size: 2em;
    margin-bottom: 0.3em;
}

.badge-item p {
    margin: 0;
    font-size: 0.9em;
    color: #94a3b8;
    font-weight: 600;
}

.certificate-signers {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px solid rgba(124, 58, 255, 0.4);
}

.certificate-signers p {
    margin-bottom: 1.5em;
    text-align: center;
    font-size: 0.95em;
}

.certificate-signers strong {
    color: #7c3aff;
    font-size: 1.1em;
}

/* ============================================================================
   IMPACT & SKILLS SECTION
   ============================================================================ */
.impact {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.12) 0%, rgba(124, 58, 255, 0.06) 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.impact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.impact-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #7c3aff;
}

.impact-card h3 {
    margin-top: 0;
    color: #e2e8f0;
}

.impact-card strong {
    color: #7c3aff;
}

.skills-gained {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.skills-gained h3 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #e2e8f0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.28) 0%, rgba(124, 58, 255, 0.08) 100%);
    color: #e2e8f0;
    padding: 0.6em 1.2em;
    border-radius: 2em;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid rgba(124, 58, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(124, 58, 255, 0.4);
    border-color: #7c3aff;
    transform: scale(1.05);
}

/* ============================================================================
   GALLERY SECTION
   ============================================================================ */
.gallery {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.gallery-item {
    position: relative;
    background: #0d1117;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 255, 0.15);
}

.gallery-item.featured {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item.featured img {
    height: 350px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2em 1.5em 1.5em;
    color: #ffffff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(-5px);
}

.gallery-overlay h4 {
    margin: 0 0 0.3em;
    font-size: 1.3em;
    color: #ffffff;
}

.gallery-overlay p {
    margin: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   MENTOR & PROGRAM SECTION
   ============================================================================ */
.mentor-program {
    background: linear-gradient(135deg, #161b22 0%, #1a2332 100%);
    padding: 3em 2em;
    border-radius: 1.5em;
}

.mentor-content {
    margin-bottom: 3em;
}

.mentor-card {
    background: #161b22;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #7c3aff;
}

.mentor-card h3 {
    margin-top: 0;
    color: #7c3aff;
}

.mentor-card strong {
    color: #7c3aff;
}

.program-structure h3 {
    text-align: center;
    margin-bottom: 2em;
}

.timeline-phases {
    max-width: 900px;
    margin: 0 auto;
}

.phase-item {
    display: flex;
    gap: 2em;
    margin-bottom: 2em;
    position: relative;
}

.phase-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 70px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, rgba(124, 58, 255, 0.3) 0%, rgba(124, 58, 255, 0.05) 100%);
}

.phase-item:last-child::before {
    display: none;
}

.phase-marker {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.28) 0%, rgba(124, 58, 255, 0.08) 100%);
    border: 3px solid #7c3aff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    color: #7c3aff;
    z-index: 1;
}

.phase-content {
    flex: 1;
    background: #161b22;
    padding: 1.5em;
    border-radius: 1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.phase-content h4 {
    margin-top: 0;
    color: #e2e8f0;
}

.phase-content p {
    margin: 0;
    color: #94a3b8;
}

/* ============================================================================
   TAKEAWAYS SECTION
   ============================================================================ */
.takeaways {
    background: #161b22;
    padding: 3em 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.takeaways-content blockquote {
    font-size: 1.3em;
    line-height: 1.8;
    color: #cbd5e1;
    font-style: italic;
    border-left: 5px solid #7c3aff;
    padding-left: 2em;
    margin: 0 0 2em 0;
    background: rgba(124, 58, 255, 0.05);
    padding: 1.5em 2em;
    border-radius: 0.5em;
}

.future-goals h3 {
    text-align: center;
    margin-bottom: 2em;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

.goal-item {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.12) 0%, rgba(124, 58, 255, 0.06) 100%);
    padding: 2em;
    border-radius: 1em;
    border-left: 4px solid #7c3aff;
}

.goal-item h4 {
    margin-top: 0;
    color: #e2e8f0;
}

.goal-item p {
    margin: 0;
    color: #94a3b8;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    section {
        margin-bottom: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .hero-text .subtitle {
        font-size: 1.1em;
    }

    .hero,
    .overview-content,
    .mission-grid,
    .role-cards,
    .components-grid,
    .rover-overview,
    .management-grid,
    .achievement-grid,
    .certificate-display,
    .impact-content,
    .gallery-grid,
    .goals-grid {
        flex-direction: column;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .mission-card.primary {
        grid-column: span 1;
    }

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

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

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

    .gallery-item.featured {
        grid-column: span 1;
    }

    .gallery-item img,
    .gallery-item.featured img {
        height: 200px;
    }

    .phase-item {
        flex-direction: column;
        gap: 1em;
    }

    .phase-item::before {
        display: none;
    }

    .phase-marker {
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .specs-table {
        font-size: 0.85em;
    }

    .specs-table th,
    .specs-table td {
        padding: 0.7em 0.5em;
    }
}

/* Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
