/* Homepage Intro */
@media (max-width: 900px) {

    .brief-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 0 2rem 0;
    }

    .brief-image {
        max-width: 100%;
        padding: 0;
        transform: none;
    }

    .brief-image img {
        width: 120px;
        height: auto;
        padding-top: .75rem;
        margin-bottom: .75rem;
    }
    .brief-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brief-text h1 {
        font-size: clamp(2.2rem, 5vw, 3rem);
        padding: 0;
        margin-bottom: 1rem;
    }

    .brief-text p {
        width: 90%;
        margin: auto;
        padding: 0;
        font-size: .95rem;
        line-height: 1.5;
        text-align: center;
    }
    .btn-container{
        width:100%;
        justify-content:center;
    }
}

@media (max-width: 600px) {

    .brief-image img {
        width: 90px;
        padding-top: .5rem;
        margin-bottom: .5rem;
    }

    .brief-text h1 {
        font-size: 2rem;
        margin-bottom: .75rem;
    }

    .brief-text p {
        margin: auto;
        width: 90%;
        font-size: .95rem;
        line-height: 1.5;
        padding-bottom: 1rem;
        text-align: center;
    }
}

/* Buttons */
@media (max-width: 900px) {
    .btn {
        font-size: 0.95rem;
        min-width: 150px;
        padding: 0.8rem 1.4rem;
    }

    .btn-container {
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .btn {
        font-size: 0.9rem;
        min-width: 130px;
        padding: 0.75rem 1.2rem;
    }

    .btn-container {
        align-items: center;
        gap: 0.75rem;
    }
}

/*Project Boxes*/
@media (max-width: 900px) {
    .homepage-grid{
        width: 92%;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .homepage-card{
        min-height: 280px;
        height: 38vh;
        border-radius: 24px;
    }

    .card-content{
        padding: 2rem;
    }

    .card-content h2{
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: .95;
    }

    .card-content p{
        margin-top: .75rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .card-content .card-label{
        font-size: .65rem;
        letter-spacing: .14em;
        margin-left: 0;
        margin-bottom: .5rem;
    }

    .intro-logo {
        display: block;
        width: 100px;      
        height: auto;
        margin: 0 auto;
        padding-top: 1rem;
    }
}
@media (max-width: 600px) {
    .homepage-grid{
        width: 90%;
        gap: 1rem;
    }

    .homepage-card{
        height: 240px;
        min-height: 240px;
        border-radius: 20px;
    }

    .card-content{
        padding: 1.5rem;
    }

    .card-content h2{
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .card-content p{
        font-size: .9rem;
    }

    .card-content .card-label{
        font-size: .6rem;
        letter-spacing: .12em;
    }
}

/* About Me */
@media (max-width: 900px) {
    .pagebrief{
        width: 90%;
    }

    .pagebrief h2 {
        font-size: clamp(1.4rem, 3.8vw, 2rem);
        line-height: 1.3;
        padding-bottom: 1.5rem;
        width: 85%;
        margin: auto;
    }

    .pagebrief p {
        font-size: 0.85rem;
        line-height: 1.6;
        text-align: left;
        padding-bottom: 1.25rem;
        margin: auto;
        width: 95%;
    }

    .intro-logo{
        width: 120px;
        padding-top: .75rem;
        margin-bottom: .75rem;
    }
}

@media (max-width: 600px) {
    .pagebrief{
        width: 90%;
    }

    .pagebrief h2{
        font-size: 1.25rem;
        line-height: 1.35;
        padding-bottom: 1.25rem;
        width: 90%;
        margin: auto;
    }

    .pagebrief p{
        font-size: .95rem;
        line-height: 1.5;
        padding-bottom: 1rem;
        text-align: left;
        margin: auto;
        width: 98%;
    }

    .intro-logo{
        width: 90px;
        padding-top: .5rem;
        margin-bottom: .5rem;
    }
}


/* Timeline */
@media (max-width: 900px) {
    .timeline {
        width: min(700px, 92%);
        margin: 2rem auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
    }

    .timeline::before {
        content: "";
        position: absolute;
        left: 24px;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 999px;
        background: var(--timeline-line-color);
        transform: none;
    }

    .timeline-item {
        display: block;
        position: relative;
        width: 100%;
        min-height: auto;
        padding-left: 60px;
        box-sizing: border-box;
        transition: none;
    }

    .timeline-item:hover {
        transform: none;
    }

    .timeline-item .dot {
        position: absolute;
        left: 26px;
        top: 28px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--timeline-line-color);
        transform: translate(-50%, -50%);
    }

    .timeline-item.left .content,
    .timeline-item.right .content {
        grid-column: auto;
        justify-self: stretch;
        text-align: left;
    }

    .content {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .content h1 {
        font-size: 1.2rem;
    }

    .content h3 {
        font-size: .9rem;
    }

    .timeline-item.left .content li,
    .timeline-item.right .content li {
        text-align: left;
        direction: ltr;
        margin: .4rem 0;
    }

    .timeline_item_details ul {
        padding-left: 1.25rem;
        padding-right: 0;
    }
}
@media (max-width: 600px) {
    .timeline {
        width: 95%;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-item .dot {
        left: 20px;
        width: 12px;
        height: 12px;
    }

    .content {
        padding: 1rem;

    }

    .content h1 {
        font-size: 1rem;
    }

    .content h3 {
        font-size: .8rem;
    }
}
/* Contact */
@media (max-width:900px){
    .contact-form{
        width:92%;
        padding:2rem 0;
    }

    .contact-form h1{
        font-size:2.5rem;
    }

    .contact-form .heading{
        font-size:1.3rem;
    }

    .contact-form label{
        font-size:1rem;
    }

    .contact-form input,
    .contact-form textarea{
        font-size:1rem;
    }
}
@media (max-width:600px){
    .contact-form{
        width:95%;
    }

    .contact-form h1{
        font-size:2rem;
    }

    .contact-form .heading{
        font-size:1.15rem;
    }

    .contact-form textarea{
        min-height:100px;
    }
}
@media (max-width: 600px) {
    .social-links {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .social-icon {
        font-size: 1.75rem;
    }
}


