/* ===================================================================
 * Electric Golf Cart Page Specific Styles
 * ------------------------------------------------------------------- */

/* Header Background Image */
header#home {
    background: url('../Images/placeholder-onshape-design.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

header#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

header#home .row.banner {
    position: relative;
    z-index: 2;
}

header#home .banner-text h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Project Section Base Styles */
.project-section {
    padding: 60px 0;
    background: #fff;
}

.project-section.alt-bg {
    background: #f8f8f8;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #313131;
    text-align: center;
}

.project-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.large-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 30px 0;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Image */
.hero-image-container {
    text-align: center;
    margin: 40px 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
    font-style: italic;
}

/* Problem Section */
.problem-content {
    margin-top: 40px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.problem-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 15px;
}

.problem-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Requirements Section */
.requirements-content {
    margin-top: 40px;
}

.requirement-block {
    margin-bottom: 50px;
}

.requirement-block h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 25px;
    text-align: center;
}

.content-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.content-image {
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-text {
    width: 55%;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.design-requirements-list {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
}

.design-requirements-list h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 30px;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.req-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.req-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 5px;
}

.req-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Components Section */
.components-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.component-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.component-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 20px;
    text-align: center;
}

.component-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.component-details p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.component-details strong {
    color: #11ABB0;
}

/* Controller Evolution */
.evolution-content {
    margin-top: 40px;
}

.version-comparison {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

.version-block {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.version-block h3 {
    font-size: 22px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 20px;
    text-align: center;
}

.version-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.version-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.version-old .version-details h4 {
    color: #c33;
}

.version-new .version-details h4 {
    color: #11ABB0;
}

.problem-list,
.success-list {
    list-style: none;
    padding: 0;
}

.problem-list li,
.success-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.problem-list li:before {
    content: "✗";
    color: #c33;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.success-list li:before {
    content: "✓";
    color: #11ABB0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.arrow-divider {
    font-size: 48px;
    color: #11ABB0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Gearbox Section */
.gearbox-content {
    margin-top: 40px;
}

.challenge-intro {
    margin-bottom: 50px;
}

.gearbox-design {
    margin-bottom: 50px;
}

.gearbox-design h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 30px;
    text-align: center;
}

.design-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.design-image {
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.design-specs {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-box {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #11ABB0;
}

.spec-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: #11ABB0;
    margin-bottom: 10px;
}

.spec-box p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* Iteration Timeline */
.iteration-story h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 40px;
    text-align: center;
}

.iteration-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.iteration-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iteration-item.success {
    background: #f0f9f9;
    border: 2px solid #11ABB0;
}

.iteration-number {
    width: 60px;
    height: 60px;
    background: #11ABB0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.iteration-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 10px;
}

.iteration-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.iteration-image {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-top: 10px;
}

.breakthrough-box {
    background: #11ABB0;
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.breakthrough-box h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.breakthrough-box p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* CAD Design Section */
.cad-content {
    margin-top: 40px;
}

.full-width-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    display: block;
}

.design-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.design-item {
    text-align: center;
}

.design-gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.design-item p {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

/* Result Section */
.result-content {
    margin-top: 40px;
}

.result-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.highlight-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #11ABB0;
    margin-bottom: 15px;
}

.highlight-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.specs-summary {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
}

.specs-summary h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 30px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.summary-item {
    text-align: center;
}

.summary-item strong {
    font-size: 16px;
    color: #11ABB0;
    display: block;
    margin-bottom: 8px;
}

.summary-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Reflection Section */
.reflection-content {
    margin-top: 40px;
}

.quote-block {
    text-align: center;
    margin: 40px 0;
}

.quote-block blockquote {
    font-size: 26px;
    font-style: italic;
    color: #555;
    border-left: 5px solid #11ABB0;
    padding-left: 30px;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

.reflection-text {
    margin: 40px 0;
}

.meaning-box {
    background: #11ABB0;
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.meaning-box h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.meaning-box p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.meaning-box p:last-child {
    margin-bottom: 0;
}

.skills-developed {
    margin-top: 60px;
}

.skills-developed h3 {
    font-size: 26px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 40px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.skill-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #11ABB0;
    margin-bottom: 10px;
}

.skill-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

/* Gallery Section */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* ===================================================================
 * Responsive Design
 * ------------------------------------------------------------------- */

/* Tablets */
@media only screen and (max-width: 1024px) {
    .problem-grid,
    .components-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .content-layout,
    .design-layout {
        flex-direction: column;
    }

    .content-image,
    .content-text,
    .design-image,
    .design-specs {
        width: 100%;
    }

    .version-comparison {
        flex-direction: column;
    }

    .arrow-divider {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .result-highlights,
    .summary-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .design-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Devices */
@media only screen and (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }

    .project-description,
    .large-text {
        font-size: 16px;
    }

    .quote-block blockquote {
        font-size: 20px;
        padding-left: 20px;
    }

    .design-gallery,
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-image,
    .design-gallery-image {
        height: 200px;
    }

    .iteration-item {
        flex-direction: column;
    }

    .iteration-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Small Mobile Devices */
@media only screen and (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }

    .project-description,
    .large-text {
        font-size: 15px;
    }

    .design-gallery,
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image,
    .design-gallery-image {
        height: 250px;
    }
}
