* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fdf5ff;
    background: radial-gradient(circle at top left, #ff4ec2 0, #2b0b45 40%, #050013 100%);
}

.project-page {
    min-height: 100vh;
}

.project-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 55px 80px;
}

.project-eyebrow {
    margin-bottom: 28px;
    font-size: 0.99rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffb3ff;
}

.project-hero h1 {
    margin-bottom: 32px;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fdf5ff;
}

.project-intro {
    max-width: 760px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #fdf5ff;
}

@media (max-width: 768px) {
    .project-hero {
        padding: 80px 24px 60px;
    }

    .project-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .project-intro {
        font-size: 1.05rem;
    }
}

.project-overview {
    width: calc(100% - 110px);
    max-width: 1090px;
    margin: 0 auto 100px;
    padding: 55px 60px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 179, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(5, 0, 19, 0.35);
}

.section-eyebrow {
    margin-bottom: 14px;
    color: #ffb3ff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.project-overview h2 {
    margin-bottom: 24px;
    color: #fdf5ff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.project-overview p:not(.section-eyebrow) {
    max-width: 850px;
    margin-bottom: 18px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-overview p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-overview {
        width: calc(100% - 48px);
        margin-bottom: 70px;
        padding: 36px 26px;
    }
}
/* =========================================================
   ARCHITECTURE & TECHNOLOGIES
   ========================================================= */

.project-architecture {
    width: min(1024px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-architecture h2 {
    margin-bottom: 32px;
    color: #fdf5ff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

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

.tech-item {
    padding: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.tech-item h3 {
    margin-bottom: 10px;
    color: #ffb3ff;
    font-size: 1.05rem;
}

.tech-item p {
    color: #fdf5ff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .project-architecture {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

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

    .tech-item {
        padding: 24px;
    }
}

/* =========================================================
   CLOUD ARCHITECTURE
   ========================================================= */

.project-flow {
    width: min(1024px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-flow h2 {
    margin-bottom: 18px;
    color: #fdf5ff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.flow-intro {
    max-width: 760px;
    margin-bottom: 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.architecture-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}

.flow-item {
    flex: 1;
    min-width: 0;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.flow-item span {
    display: block;
    margin-bottom: 14px;
    color: #ffb3ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.flow-item h3 {
    margin-bottom: 10px;
    color: #ffb3ff;
    font-size: 1rem;
}

.flow-item p {
    color: #fdf5ff;
    font-size: 0.9rem;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: #ffb3ff;
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    .architecture-flow {
        flex-direction: column;
    }

    .flow-arrow {
        justify-content: center;
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

@media (max-width: 768px) {
    .project-flow {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

    .flow-item {
        padding: 24px;
    }
}

/* ==================================================
   INFRASTRUCTURE AS CODE
================================================== */

.project-iac {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-iac h2 {
    margin-bottom: 22px;
    color: #fdf5ff;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.iac-intro {
    max-width: 850px;
    margin-bottom: 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.iac-item {
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.iac-item span {
    display: block;
    margin-bottom: 14px;
    color: #ffb3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.iac-item h3 {
    margin-bottom: 12px;
    color: #ffb3ff;
    font-size: 1.05rem;
}

.iac-item p {
    color: #fdf5ff;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .project-iac {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

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

    .iac-item {
        padding: 24px;
    }
}

/* ==================================================
   CI/CD & AUTOMATED TESTING
================================================== */

.project-cicd {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-cicd h2 {
    margin-bottom: 22px;
    color: #fdf5ff;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.cicd-intro {
    max-width: 850px;
    margin-bottom: 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pipeline-flow {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.pipeline-item {
    flex: 1;
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.pipeline-item span {
    display: block;
    margin-bottom: 14px;
    color: #ffb3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pipeline-item h3 {
    margin-bottom: 12px;
    color: #ffb3ff;
    font-size: 1.05rem;
}

.pipeline-item p {
    color: #fdf5ff;
    line-height: 1.7;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb3ff;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .project-cicd {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        padding: 2px 0;
    }

    .pipeline-item {
        padding: 24px;
    }
}

/* ==================================================
   CHALLENGES & SOLUTIONS
================================================== */

.project-challenges {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-challenges h2 {
    margin-bottom: 22px;
    color: #fdf5ff;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.challenges-intro {
    max-width: 850px;
    margin-bottom: 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.challenge-item {
    padding: 30px 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.challenge-label,
.solution-label {
    margin-bottom: 10px;
    color: #ffb3ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.solution-label {
    margin-top: 24px;
}

.challenge-item h3 {
    margin-bottom: 14px;
    color: #fdf5ff;
    font-size: 1.2rem;
    line-height: 1.4;
}

.challenge-item p:not(.challenge-label):not(.solution-label) {
    color: #fdf5ff;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .project-challenges {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

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

    .challenge-item {
        padding: 24px;
    }
}

/* =========================================================
   KEY TAKEAWAYS
   ========================================================= */

.project-takeaways {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto 100px;
}

.project-takeaways h2 {
    margin-bottom: 24px;
    color: #fdf5ff;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.takeaways-intro {
    max-width: 850px;
    margin-bottom: 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.takeaway-item {
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 179, 255, 0.18);
    border-radius: 18px;
}

.takeaway-item span {
    display: block;
    margin-bottom: 14px;
    color: #ffb3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.takeaway-item h3 {
    margin-bottom: 12px;
    color: #ffb3ff;
    font-size: 1.05rem;
}

.takeaway-item p {
    color: #fdf5ff;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .project-takeaways {
        width: calc(100% - 48px);
        margin-bottom: 70px;
    }

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

    .takeaway-item {
        padding: 24px;
    }
}

/* =========================================================
   PROJECT ACTIONS
   ========================================================= */

.project-actions {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 110px;
    text-align: center;
}

.project-actions h2 {
    margin-bottom: 24px;
    color: #fdf5ff;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.actions-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    color: #fdf5ff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 15px 24px;
    border: 1px solid #ffb3ff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-button:hover {
    transform: translateY(-2px);
}

.project-button-primary {
    background: #ffb3ff;
    color: #26002f;
}

.project-button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffb3ff;
}

@media (max-width: 600px) {
    .project-actions {
        width: calc(100% - 48px);
        padding-bottom: 70px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .project-button {
        width: 100%;
        min-width: 0;
    }
}

/* Mobile polish */
@media (max-width: 768px) {

    /* Slightly tighter spacing between major sections */
    .project-architecture,
    .project-iac,
    .project-cicd,
    .project-challenges,
    .project-takeaways,
    .project-cta {
        margin-bottom: 60px;
    }

    /* Keep section headings readable without overpowering mobile */
    .project-architecture h2,
    .project-iac h2,
    .project-cicd h2,
    .project-challenges h2,
    .project-takeaways h2,
    .project-cta h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    /* Comfortable mobile card sizing */
    .tech-item,
    .flow-item,
    .iac-item,
    .cicd-item,
    .challenge-item,
    .takeaway-item {
        padding: 22px;
    }

    /* Keep informational content left aligned */
    .project-architecture,
    .project-iac,
    .project-cicd,
    .project-challenges,
    .project-takeaways {
        text-align: left;
    }

    /* CTA is intentionally centered */
    .project-cta {
        text-align: center;
    }
}

/* Extra polish for narrow mobile screens */
@media (max-width: 480px) {

    .project-page {
        font-size: 0.95rem;
    }

    .project-hero,
    .project-overview,
    .project-architecture,
    .project-iac,
    .project-cicd,
    .project-challenges,
    .project-takeaways,
    .project-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-architecture > .section-eyebrow,
.project-architecture > h2,
.project-architecture > p {
    margin-left: 0;
    margin-right: 0;
}

    .project-architecture h2,
    .project-iac h2,
    .project-cicd h2,
    .project-challenges h2,
    .project-takeaways h2,
    .project-cta h2 {
        font-size: 1.8rem;
    }

    .tech-item,
    .flow-item,
    .iac-item,
    .cicd-item,
    .challenge-item,
    .takeaway-item {
        padding: 20px;
    }

    .project-overview {
        padding: 24px 20px;
    }

    .project-overview p:not(.section-eyebrow) {
        font-size: 0.95rem;
        line-height: 1.7;
    }





}