/* Portfolio Section */
#portfolio {
    padding: 50px 20px;
    background-color: #fff;
    color: #000;
    text-align: center;
}

#portfolio .section-title {
    font-family: "Raleway", sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #000;
}

.section-intro {
    font-family: "Roboto", sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Portfolio Container */
.portfolio-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Portfolio Item */
.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Portfolio Image and Overlays */
.portfolio-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tech-overlay,
.desc-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.tech-overlay {
    left: 0;
    transform: translateX(-100%);
}

.desc-overlay {
    right: 0;
    transform: translateX(100%);
}

.portfolio-image:hover .tech-overlay,
.portfolio-image:hover .desc-overlay {
    opacity: 1;
    transform: translateX(0);
}

.tech-overlay h3,
.desc-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #04A9D9;
}

/* Overlay Lists */
.tech-stack,
.project-features {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}

.tech-stack li::before,
.project-features li::before,
.project-results ul li::before {
    content: "✓ ";
    color: #04A9D9;
    font-weight: bold;
}

/* Testimonial & Highlights */
.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.testimonial {
    background-color: #0487D9;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial blockquote {
    font-size: 1.2rem;
    margin: 0;
}

.testimonial cite {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.project-results {
    background: #f0f8ff;
    border-left: 4px solid #0487D9;
    padding: 20px;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
}

.project-results h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #023859;
}

.project-results ul {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Center the whole list */
    display: inline-block; /* Keeps list centered but items aligned */
    text-align: left; /* Aligns bullet points */
}

/* Coming Soon Box */
.portfolio-coming-soon {
    background-color: #f9f9f9;
    border: 2px dashed #0487D9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
    font-family: "Raleway", sans-serif;
}

.portfolio-coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #023859;
}

.portfolio-coming-soon p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

/* CTA Section */
.portfolio-cta {
    margin-top: 40px;
    text-align: center;
}

.portfolio-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #023859;
}

.portfolio-cta p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-family: "Roboto", sans-serif;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

/* CTA Button */
.cta-button {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #444;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .testimonial-container {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .project-results,
    .testimonial {
        width: 45%;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .tech-overlay,
    .desc-overlay {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .tech-overlay,
    .desc-overlay {
        width: 100%;
        transform: translateY(100%);
        height: auto;
        align-items: center;
        text-align: center;
    }

    .portfolio-image:hover .tech-overlay,
    .portfolio-image:hover .desc-overlay {
        transform: translateY(0);
    }

    .testimonial,
    .project-results {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .tech-overlay,
    .desc-overlay {
        font-size: 0.8rem;
        padding: 10px;
        line-height: 1.4;
    }

    .tech-overlay h3,
    .desc-overlay h3 {
        font-size: 1rem;
    }

    .tech-stack li,
    .project-features li {
        font-size: 0.85rem;
    }
}


@media (max-width: 375px) {
    .tech-overlay,
    .desc-overlay {
        font-size: 0.75rem;
        padding: 8px;
        line-height: 1.3;
    }

    .tech-overlay h3,
    .desc-overlay h3 {
        font-size: 0.95rem;
    }

    .tech-stack li,
    .project-features li {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
}


@media (max-width: 369px) {
    .tech-overlay,
    .desc-overlay {
        font-size: 0.72rem;
        padding: 6px 8px;
        line-height: 1.2;
    }

    .tech-overlay h3,
    .desc-overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .tech-stack li,
    .project-features li {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .tech-stack,
    .project-features {
        margin-top: 5px;
    }
}
