* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/*Desktop styling*/
@media only screen and (min-width: 1024px) {
.logo {
    width: 3.5rem;
    height: 1.5rem;
    fill: #ff3333;
    transition: transform 0.2s ease;
}
.logo:hover {
    transform:scale(1.1);
}
h1 {
    font-family: "Urbanist", sans-serif;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1.1;
}
h2 {
    font-family: "Urbanist", sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h3 {
    font-family: "Urbanist", sans-serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.4;
}
h4 {
    font-family: "Urbanist", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}
h5 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h6 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
}
span {
    font-family: "Urbanist", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1rem;
}
p {
    font-family: "Urbanist", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
}
.black-label {
    color: #141926;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.label {
    color: #ff3333;
    margin-bottom: 0.5rem;
    display: inline-block;
}
li {
    font-family: "Urbanist", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
ul {
    list-style: square;
}
}

/*Mobile and tablet styling*/
@media only screen and (max-width: 1023px) {
.logo {
    width: 3rem;
    height: auto;
    fill: #ff3333;
    }
h1 {
    font-family: "Urbanist", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h2 {
    font-family: "Urbanist", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h3 {
    font-family: "Urbanist", sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
}
h4 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h5 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
h6 {
    font-family: "Urbanist", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
}
span {
    font-family: "Urbanist", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1rem;
}
p {
    font-family: "Urbanist", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
}
.black-label {
    color: #141926;
    margin-bottom: 0.25rem;
    display: inline-block;
}
.label {
    color: #ff3333;
    margin-bottom: 0.25rem;
    display: inline-block;
}
li {
    font-family: "Urbanist", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
}

/*Desktop homepage*/
.body-homepage {
    width: 100%;
    background-color: #141926;
    color: #fff;
}
.heading {
    padding: 2rem 5rem;
    border: 1px solid #fff;
    gap: 1rem;
}
.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #fff;
    border-top: none;
}
.sub-header-left,
.sub-header-right {
    width: 50%;
    padding: 0.75rem 5rem;
}
.sub-header-left {
    border-right: 1px solid #fff;
}
.sub-header-right {
    text-align: right;
}
.projects {
    width: 100%;
}
.projects .project-header {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5rem;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    align-items: center;
}
.arrow-curve-down {
    width: 32px;
    height: 32px;
    stroke: #ff3333;
    stroke-width: 3;
    fill: none;
}
.cards {
    display: flex;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
}
.project-card {
    flex: 1;
    transition: flex 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    text-decoration: none;
    color: inherit; 
}
.project-card:hover {
    flex: 1.1;
    cursor: pointer;
    text-decoration: none;

}
.project-card .image {
    overflow: hidden;
}
.project-card .image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* smooth scaling */
}
.project-card:hover .image img {
    transform: scale(1.05); /* slight zoom */
}
.card-content {
    padding: 1.5rem;
}
.card-content p {
    margin: 0.5rem 0;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
}
.about {
    padding: 5rem;
    border: 1px solid #fff;
    border-top: none;
}
.about-name {
    margin-bottom: 1rem;
}
.about-info {
    display: flex;
    justify-content: space-between;
}
.about-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 20rem;
    height: 100%;
    gap: 16rem;
}
.about-text {
    margin: 0 0 1rem 0;
}
.li-button {
    display: inline-flex;
    width: 18rem;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ff3333;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.li-button span {
    font-size: 1rem;
    font-weight: 800;
}
.li-button:hover {
    background-color: #fff;
    color: #010816;
}
.link {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}
.li-button:hover .link {
    stroke: #010816;
}
.about-skills {
    display: flex;
    gap: 5rem;
}
.about-skill-section-left, 
.about-skill-section-right {
    width: 17;
}
.design-skills {
    display: flex;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
    margin-bottom: 2rem;
}
.research-skills {
    display: flex;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
    margin-bottom: 2rem;
}
.webdev-skills {
    display: flex;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
    margin-bottom: 2rem;
}
.tools-skills {
    display: flex;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
    margin-bottom: 2rem;
}
.dot-color {
    color: #ff3333;
}

/*Mobile and tablet homepage*/
@media only screen and (max-width: 1023px) {
.heading {
    padding: 1.5rem 1rem;
}

.sub-header-left,
.sub-header-right {
    padding: 1rem 1rem;
    width: 100%;
    text-align: left;
    border-right: none;
}
.sub-header-left {
    border-right: 1px solid #fff;
}
.sub-header-right {
    text-align: right;
}
.cards {
    flex-direction: column;
}
.project-card {
    flex: none;
    width: 100%;
}
.card-content {
    padding: 1rem;
}
.about-info {
    flex-direction: column;
    gap: 2rem;
}

.about-description {
    max-width: 100%;
    gap: 1rem;
}

.about-skills {
    flex-direction: column;
     gap: 1rem;
}

.about-skill-section-left,
.about-skill-section-right {
    width: 100%;
}
.li-button {
    width: 100%;
    justify-content: center;
}
.about,
    .projects .project-header,
    .heading {
        padding: 1.5rem 1rem;
    }
}

/*Desktop case studies*/
.body-case-studies {
    width: 100%;
    background-color: #FFF1F1;
    color: #010816;
}
.body-case-studies .tag {
    background-color: #141926;
    color: #fff;
}
.header {
    display: flex;
    width: 100%;
    border: 1px solid #141926;
    height: 25rem;
}
.header-left, .header-right {
    width: 50%;
}
.header-left {
    padding: 2rem 5rem;
    gap: 1rem;
    border-right: 1px solid #141926;
}
.header-right {
    display: flex;
    align-items: center; 
    justify-content: center;
    overflow: hidden; 
}
.header-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.body-case-studies .sub-header {
    border-color: #141926;
}
.body-case-studies .sub-header-left {
    border-color: #141926;
}
.body-case-studies .sub-header-right .tags {
    justify-content: flex-end;
    margin: 0;
}
.info-table {
    display: flex;
    justify-content: center;
    align-items: stretch;
    border-right: 1px solid #141926;
}
.left-side-table,
.right-side-table {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.right-side-table .cell {
    flex: 1;
    padding: 1rem 5rem 1rem 1rem;
    border-left: 1px solid #141926;
    border-bottom: 1px solid #141926;
}
.left-side-table .cell {
    flex: 1;
    padding: 1rem 1rem 1rem 5rem;
    border-left: 1px solid #141926;
    border-bottom: 1px solid #141926;
}
.info-table#diginstable .right-side-table {
    max-width: 20%;
}
.context {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
    padding: 2rem 5rem;
    border-right: 1px solid #141926;
    border-left: 1px solid #141926;
}
.context-title {
    flex: 1 1 50%;
}
.context-title h4 {
    color: #FF6464;
}
.context-content p {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.context-content p:last-child {
    margin-bottom: 0;
}
.section-with-title {
    display: flex;
    flex: 1;
    justify-content: space-between;
    border: 1px solid #141926;
}
.swt-title {
    border-right: 1px solid #141926;
    padding: 2rem 5rem;
    min-width: 35%;
}
.swt-content {
    padding: 2rem 5rem;
}
.swt-content p {
    margin-bottom: 0.5rem;
}
.swt-content p:last-child {
    margin-bottom: 0;
}
.image-cover {
    position: relative;
    width: 100%;
    height: 40rem;
    background-image: url('../Images/big\ room\ planning\ -\ redd-francisco-PTRzqc_h1r4-unsplash.jpg');
    background-size: cover;
    background-position: center
}
.ic-content {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    background: #fff;
    padding: 1.5rem;
    width: 26rem;
}
.ic-content h5 {
    margin-bottom: 1rem;
}
.ic-content p {
    margin-bottom: 0.5rem;
}
.ic-content p:last-child {
    margin-bottom: 0;
}
.image-only {
    padding: 0 5rem 2rem 5rem;
    overflow: hidden;
    border: 1px solid #141926;
    border-top: none;
}
.image-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.half-content {
    width: 100%;
    padding: 2rem 5rem;
    border-left: 1px solid #141926;
    border-right: 1px solid #141926;
    padding-right: 55%;
}
.half-content h4{
    color: #FF6464;
    margin-bottom: 1rem;
}
.half-content h6 {
    margin-bottom: 1.5rem;
}
.half-content p {
    margin-bottom: 0.5rem;
}
.half-content p:last-child {
    margin-bottom: 0;
}
.two-images {
    display: flex;
    flex: 1;
    border-bottom: 1px solid #141926;
    border-left: 1px solid #141926;
    border-right: 1px solid #141926;
}
.ti-left-side, .ti-right-side {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content:center;
    overflow: hidden;
}
.ti-left-side{
    padding: 2rem 2rem 2rem 5rem;
}
.ti-right-side{
    padding: 2rem 5rem 2rem 2rem;
}
.ti-left-side img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.ti-right-side img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.ti-left-side .tag {
    position: absolute;
    top: 3rem;
    left: 6rem;
}
.ti-right-side .tag {
    position: absolute;
    top: 3rem;
    left: 3rem;
}
.ti-right-side .tag#after {
    background-color: #ff3333;
}
.content-right {
    display: flex;
    flex: 1;
}
.content-right .image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #141926;
    border-left: 1px solid #141926;
    border-bottom: 1px solid #141926;
}
.content-right .image img {
    width: 100%;
    height: auto;
    object-fit: center;
}
.content-right .content {
    padding: 5rem;
    border-right: 1px solid #141926;
    border-bottom: 1px solid #141926;
    max-width: 37rem;
}
.content-right .content h6 {
    margin-bottom: 1.5rem;
}
.content-right .content h5 {
    margin-bottom: 1.5rem;
}
.content-right .content h4 {
    color: #FF6464;
    margin-bottom: 1.5rem;
}
.content-right .content p {
    margin-bottom: 0.5rem;
}
.content-right .content p:last-child {
    margin-bottom: 0;
}
.content-right .content b {
    font-weight: 800;
}
.content-left {
    display: flex;
    flex: 1;
}
.content-left .content {
    padding: 5rem;
    border-left: 1px solid #141926;
    border-bottom: 1px solid #141926;
    max-width: 40rem;
}
.content-left .content h6 {
    margin-bottom: 1.5rem;
}
.content-left .content h5 {
    margin-bottom: 1.5rem;
}
.content-left .content h4 {
    color: #FF6464;
    margin-bottom: 1.5rem;
}
.content-left .content p {
    margin-bottom: 0.5rem;
}
.content-left .content p:last-child {
    margin-bottom: 0;
}
.content-left .content b {
    font-weight: 800;
}
.content-left .image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #141926;
    border-left: 1px solid #141926;
    border-bottom: 1px solid #141926;
}
.content-left .image img {
    width: 100%;
    height: auto;
    object-fit: center;
}
.content-right#cost-concerns {
    display: flex;
    border-right: 1px solid #141926;
}
.content-right#cost-concerns .content {
    border-bottom: none;
}
.content-right#cost-concerns .image {
    flex: 2; /* image takes 2/3 of space */
    border-bottom: none;
}
.content-right#cost-concerns .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.section-with-title#proto .swt-content {
    border-right: 1px solid #141926;
}
.video-only {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #141926;
    border-top: none;
    height: 40rem;
}
.video-only video {
    width: auto;
    height: 100%;
    object-fit: cover;
}
.content-right#pric {
    display: flex;
    border-right: 1px solid #141926;
}
.content-right#pric .content {
    border-bottom: none;
}
.content-right#pric .image {
    flex: 2; /* image takes 2/3 of space */
    border-bottom: none;
}
.content-right#pric .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.content-left#quote-options {
    border-top: 1px solid #141926;
}
.body-case-studies .cards {
    border-color: #141926;
    border-top: none;
}
.body-case-studies .project-card {
    border-color: #141926;
    border-top: none;
}
.other-projects {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    transition: none !important;
    transform: none !important;
    cursor: default !important;
    max-width: 30%;
    border-right: 1px solid #141926;
    border-bottom: 1px solid #141926;
}
.other-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.button-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.back-button {
    display: inline-flex;
    align-items: center;
    width: 18rem;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    color: #141926;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.back-button span {
    font-size: 1rem;
    font-weight: 800;
}
.back-button:hover {
    background-color: #141926;
    color: #fff;
}
.left-arrow {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #141926;
    stroke-width: 2;
    fill: none;
}
.back-button:hover .left-arrow {
    stroke: #fff;
}
.image-only#full-table {
    border-bottom: none;
}
.ti-left-side#style-left {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 1.5rem 2rem;
    margin-left: 5rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
}
.ti-left-side#style-left h6{
    margin-bottom: 1rem;
}
.ti-right-side#style-right {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 1.5rem 2rem;
    margin-left: 2rem;
    margin-right: 5rem;
    margin-bottom: 2rem;
}
.ti-right-side#style-right h6{
    margin-bottom: 1rem;
}
.content-left#plan-with-card {
    flex: 1;
    border-bottom: 1px solid #141926;
}
.content-left#plan-with-card .content {
    max-width: none;
    border-bottom: none;
}
.content-left#plan-with-card .ti-right-side#style-right {
    min-width: 40%;
    padding: 1.5rem 3rem;
    margin-right: 0;
    margin-bottom: 0;
    border-left: 1px solid #141926;
    border-right: 1px solid #141926;
}
.tag#redtag {
    display: inline-block;
    margin-top: 0.5rem;
    background-color: #ff3333;
}
.context .context-content p#simple {
    font-size: 1rem;
}
.content-right .content#ankhdev {
    max-width: 40%;
}

/*404 page*/
body.body-page-missing {
    background-color: #FF3333;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    margin: 0;
    padding: 2rem;
    gap: 3rem;
}
.missing-detail {
    width: 90%;
}
.missing-detail svg {
    width: 100%;
    height: auto;
    display: block;
}
body.body-page-missing .back-button {
    color: #fff;
    background-color: #FF6464;
    margin-top: 4rem;
}
body.body-page-missing .back-button:hover {
    background-color: #141926;
}
body.body-page-missing .back-button .left-arrow {
    stroke: #fff;
}



/*Mobila and tablet case studies*/
@media only screen and (max-width: 1023px) {
    /* General body */
    .body-case-studies {
        color: #010816;
        background-color: #FFF1F1;
    }
    .header {
        flex-direction: column;
        height: auto;
    }
    .header-left{
        width: 100%;
        padding: 1.5rem;
    }
    .header-right {
        width: 100%;
    }
    .header-right img {
        height: auto;
    }
    .body-case-studies .sub-header-left {
        display: none;
    }
    .info-table {
        flex-direction: column;
        border-right: none;
    }
    .left-side-table,
    .right-side-table {
        width: 100%;
        border-left: none;
    }
    .left-side-table .cell,
    .right-side-table .cell {
        padding: 1rem;
        border-right: none;
    }
    .info-table#diginstable .right-side-table {
        max-width: none;
    }
    .context {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        border-left: none;
        border-right: none;
    }
    .context-title h4 {
        margin-bottom: 0;
    }
    .context-content p {
        font-size: 1rem;
    }
    .section-with-title {
        flex-direction: column;
        min-width: none;
    }
    .swt-title {
        border-right: none;
        border-bottom: 1px solid #141926;
        padding: 1.5rem;
    }
    .swt-content {
        padding: 1.5rem;
    }

    .image-cover {
        height: auto;
        background-position: center;
    }
    .ic-content {
        position: static;
        width: 100%;
        left: auto;
        bottom: auto;
        padding: 1.5rem;
    }
    .image-only {
        padding: 1rem 0;
    }
    .two-images {
        flex-direction: column;
    }
    .ti-left-side, .ti-right-side {
        padding: 1.5rem;
    }
    .ti-left-side img,
    .ti-right-side img {
        width: 100%;
        height: auto;
    }
    .ti-left-side .tag, 
    .ti-right-side .tag {
        position: absolute;
        left: 2rem;
        top: 2rem;
    }
    .content-left {
        flex-direction: column;
    }
    .content-right {
        flex-direction: column-reverse;
    }
    .content-left .content,
    .content-right .content {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #141926;
        padding: 1.5rem;
        max-width: 100%;
    }
    .content-left .image,
    .content-right .image {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #141926;
    }
    .video-only {
        height: auto;
    }
    .video-only video {
        width: 100%;
        height: auto;
    }
    .half-content {
        width: 100%;
        border-left: none;
        border-right: none;
        padding: 1.5rem;
    }
    .body-case-studies .cards {
        flex-direction: column-reverse;
    }
    .other-projects {
        max-width: 100%;
        padding: 1.5rem;
        border-right: none;
        gap: 2rem;
    }
    .other-header {
        display: none;
    }
    .button-group {
        width: 100%;
    }
    .li-button,
    .back-button {
        width: 100%;
        justify-content: center;
    }
    .arrow-curve-down {
        display: none;
    }
    .content-left#plan-with-card .ti-right-side#style-right {
    min-width: none;
    padding: 2rem 2rem;
    margin-left: 0;
    margin-right: 0;
    }
    .content-right .content#ankhdev {
    max-width: none;
    }
    .missing-detail {
        width: 95%;
    }
}

/*Larger screens case studies*/
@media only screen and (min-width: 2000px) {
    .content-left .content,
    .content-right .content {
        max-width: 45%;
    }
    .header {
        height: 30rem;
    }
    .content-right .content#ankhdev {
        max-width: 60%;
    }
}