/* GENERIC STYLING */

/* variables */

html {
    --main-color: #ec7600;
    --secondary-color: #FEF8F2;
    /*--accent-color-blue: #E8F4FC;*/
    --accent-color-blue: #E8F3FF;
    --padding-left-right: 4.5rem;
    --card-padding: 2rem 1.8rem;
}

@media (max-width: 900px) {
    html {
        --padding-left-right: 1.3rem;
        --card-padding: 2.5rem 1.4rem;
    }
}

/* typography general */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    margin-bottom: 1rem;
}

h4 {
    position: relative;
    text-transform: uppercase;
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

@media (min-width: 720px) {
    h4::after {
        --height: 40px;
        --width: 25px;
        position: absolute;
        content: "";
        background: var(--main-color);
        border-radius: 40px;
        height: var(--height);
        width: var(--width);
        left: calc(50% - (var(--width) / 2));
        top: calc(var(--height) - (var(--height) * 2) - 20px);
    }

    h4.left::after {
        left: 0;
    }
}

@media (max-width: 900px) {
    h4 {
        font-size: 1.7rem;
        /*line-height: 120%;*/
    }
}

h5 {
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 150%;
    margin-bottom: 1rem;
}

p.bigger {
    font-size: 1.2rem;
}

p:last-of-type {
    margin-bottom: 0;
}

p.sub {
    text-align: center;
    text-transform: uppercase;
    margin: 0.5rem auto 0 auto;
    font-weight: 700;
}

@media (max-width: 720px) {
    p.sub {
        text-align: left;
    }
}

.balance {
    text-wrap-style: balance;
}

span.orange {
    color: var(--main-color);
}

span.italic {
    font-style: italic;
}

@media (min-width: 721px) {
    .text-center-not-on-mobile {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* design elements */

button {
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize;
    background-color: var(--main-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    margin: 1.75rem 0;
    border: 1px solid transparent;
    transition: all 300ms ease-in-out;
}

button:hover,
button:active,
button:focus {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border-color: var(--main-color);
}

button.thin {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

button.secondary {
    background-color: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

button.secondary:hover {
    background-color: var(--accent-color-blue);
    border-color: black;
    color: black;
}



button a {
    color: inherit;
    text-decoration: none;
}

/* layout */

.container {
    max-width: 1300px;
    margin: 0 auto;
}

section, footer {
    padding: 10rem var(--padding-left-right);
}

@media (max-width: 720px) {
    section {
        padding: 6rem var(--padding-left-right);
    }
}

/* USE THIS FOR WHEN A SECTION WITH NO BG COLOUR FOLLOWS ANOTHER TO REDUCE LARGE SPACES */
section.no-pad-top {
    padding-top: 0;
}

/* SECTION SPECIFIC STYLING */

/* header & footer */

/*header {
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}*/

nav {
    margin: 0 auto;
    max-width: 1800px;
    padding: 2rem var(--padding-left-right);
}

@media (max-width: 900px) {
    nav {
        padding: 1.75rem var(--padding-left-right);
    }
}

.header__logo {
    width: min(40vw, 275px);
    max-width: 400px;
}

/* main */

/* hero section */

.hero {
    --padding: var(--padding-left-right);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    max-width: 1800px;
    padding: var(--padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 3fr 2fr;
    }
}

@media (min-width:1801px) {
    .hero {
        margin-top: 3rem;
        border-radius: 40px;
        border: 1px solid var(--main-color);
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 3rem var(--padding-left-right);
        padding-right: 4.75rem;
        grid-template-columns: 1fr;
        align-items: start;
        min-height: 63vh;
        margin-bottom: -3rem;
    }

    .hero button {
        margin-bottom: 0;
        margin-top: 2rem;
    }

    .hero::before {
        content: "";
        position: absolute;
        top: 4rem;
        bottom: 4rem;
        right: -6rem;
        left: 50vw;
        background: url("../media/img/computer4.webp");
        background-size: cover;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 0.5;
        transform: perspective(1000px) rotateY(-30deg);
    }

    .hero::after {
        content: "";
        position: absolute;
        background: url("../media/img/keyboard_bg.webp");
        top: 10%;
        left: 10%;
        right: -20%;
        bottom: 15%;
        border-radius: 20px;
        z-index: -2;
        transform: perspective(1000px) rotateX(-30deg) rotateY(-25deg) scale(1.5);
    }
}

.hero__text {
    max-width: 700px;
}

.hero__text span {
    color: var(--main-color);
    font-weight: 700;
}

.hero__text p:first-of-type {
    font-size: 2.8rem;
    line-height: 125%;
    margin-bottom: 1.75rem;
}

.hero__text p {
    font-size: 1.2rem;
}

@media (max-width: 1200px) {
    .hero__text p:first-of-type {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .hero__text p:first-of-type {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

.hero_img {
    width: 100%;
    object-fit: contain;
    transform: perspective(1000px) rotateY(-20deg);
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); */
}

@media (max-width: 900px) {
    .hero_img {
        max-width: max-content;
        margin-right: -8rem;
        height: 100%;
        width: 250%;
        object-fit: cover;
        object-position: left;
    }
}

.hero__img-container {
    position: relative;
}

@media (min-width: 1800px) {
    .hero_img {
        max-width: 750px;
    }
}

@media (max-width:900px) {
    .hero__img-container {
        display: none;
    }
}

.hero__img-container::after {
    content: "";
    position: absolute;
    background-color: transparent;
    top: 4rem;
    left: -1rem;
    right: 3rem;
    bottom: 4rem;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    z-index: -1;
    transform: perspective(1000px) rotateY(30deg);
}

.hero__img-container::before {
    content: "";
    position: absolute;
    /* background-color: var(--secondary-color); */
    background: url("../media/img/keyboard_bg.webp");
    top: 10%;
    left: -7%;
    right: -20%;
    bottom: 15%;
    /* border: 1px solid var(--main-color); */
    border-radius: 20px;
    z-index: -1;
    transform: perspective(1000px) rotateX(-30deg) rotateY(-25deg) scale(3.5);
}

/* .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../media/img/SOCIAL_PROFILE_TOP.svg");
    background-size: cover;
    z-index: -1;
} */

/* .hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: var(--padding);
    right: 0;
    height: 2rem;
    background-color: var(--main-color);
    border-radius: 100vw 0 0 100vw;
    z-index: -1;
} */

/* statement section */

.statement p {
    font-size: 1.2rem;
}

.statement p,
.statement h4 {
    text-align: center;
    margin: inherit auto;
    max-width: 62ch;
}

.statement p {
    margin: 0 auto;
}

@media (max-width: 720px) {

    .statement p,
    .statement h4 {
        text-align: left;
    }
}


.statement span {
    color: var(--main-color);
}

/* cards section */

.cards {
    background-color: #fff;
    background: url("../media/img/bg/orange-blur.png");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100% 100%; 
    background-blend-mode: soft-light;
}

.cards ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 5rem;
}

@media (max-width: 1000px) {
    .cards ul {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .cards ul {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 93%;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: inline mandatory;
        overscroll-behavior-inline: contain;
        padding-bottom: 1rem;
        margin-inline: -1.3rem;
        scroll-padding-inline: 1.3rem;
        padding-left: var(--padding-left-right);
        padding-right: var(--padding-left-right);
    }

    ::-webkit-scrollbar {
        display: none
    }

    .card {
        position: relative;
        scroll-snap-align: center;
    }

    .card::after {
        position: absolute;
        bottom: 2.5rem;
        /* transform: translateY(-50%); */
        right: 20px;
        animation-name: pulse;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }

    .card:first-of-type::after {
        content: url("../media/img/icons/arrow-right-square.svg");
    }

    .card:last-of-type::after {
        content: url("../media/img/icons/arrow-left-square.svg");
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--secondary-color);
    padding: var(--card-padding);
    border: 1px solid transparent;
    border-radius: 40px;
    transition: all 300ms ease-in-out
}

.card:hover {
    border-color: var(--main-color);
}

.card.flash {
    border-color: var(--main-color);
    /* scale: 0.98; */
    transform: translateY(-10px);
    /* rotate: 2deg; */
}

@media (max-width: 720px) {
    .card {
        border: 1px solid var(--main-color);
    }
}

.card button {
    margin-bottom: 0;
}

.card svg {
    margin-bottom: 1rem;
    color: var(--main-color);
    width: 40px;
    height: 40px;
    transition: color 300ms ease-in-out;
}

.card:hover svg {
    color: #000;
}

/* why section */

section.why {
    padding: 0 var(--padding-left-right);
}

.why .container {
    max-width: 850px;
    display: grid;
    grid-template-columns: 3fr 1.5fr;
    align-items: normal;
    gap: 0.5rem;
}

.why__internal {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--accent-color-blue);
    border-radius: 40px 0 0 40px;
    /* padding: var(--card-padding); */
    padding: 3rem 3.5rem;
    height: 100%;
}

.why__internal>* {
    z-index: 1;
}

.why__internal::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: url("../media/img/SOCIAL_PROFILE_TOP.svg");
    background-size: contain;
    background-clip: content-box;
    mix-blend-mode: screen;
    z-index: 0;
    opacity: 0.3;
}

.why img {
    border-radius: 0 40px 40px 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1200px) {
    .why .container {
        /* border-radius: 80px 80px 0 0; */
        overflow: hidden;
        grid-template-columns: 5fr 1fr;
        align-items: normal;
        gap: 0.3rem;
    }

    .why img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 720px) {
    .why .container {
        margin-left: -1.3rem;
        margin-right: -1.3rem;
    }

    .why__internal {
        border-radius: 0;
        padding: 3rem var(--padding-left-right);
    }

    .why img {
        border-radius: 0;
    }
}

/* 3 step process */

.steps {
    position: relative;
    display: grid;
    list-style: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 5rem auto 1rem auto;
}

.three-step-process h4,
.three-step-process>.container>p:first-of-type {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.three-step-process p.bigger {
    position: relative;
}

.steps::after {
    --width: 2px;
    --height: 3.8rem;
    position: absolute;
    content: "";
    height: var(--height);
    width: var(--width);
    background: var(--accent-color-blue);
    border-radius: 40px 40px 0 0;
    left: calc(50% - (var(--width) / 2));
    top: calc(var(--height) - (var(--height) * 2));
}

.steps li {
    position: relative;
    border: 2px solid var(--accent-color-blue);
    border-radius: 40px;
    padding: var(--card-padding);
}

.steps li:not(:last-child):after {
    position: absolute;
    content: "";
    width: calc(2rem + 2px);
    height: 2px;
    top: calc(50% - 1px);
    right: calc(-2rem - 2px);
    background-color: var(--accent-color-blue);
}

@media (max-width: 720px) {
    .steps {
        grid-template-columns: 1fr;
        margin: 2rem auto;
    }

    .steps::after {
        /* --height: 2rem; */
        display: none;
    }

    .steps li:not(:last-child):after {
        width: 2px;
        height: calc(2rem + 2px);
        top: 100%;
        right: calc(50% - 1px);
    }

    .three-step-process h4,
    .three-step-process>.container>p:first-of-type {
        text-align: left;
    }
}

.steps svg {
    width: 40px;
    height: 40px;
    color: var(--main-color);
    margin-bottom: 1rem;
}

section.blue {
    background-color: var(--accent-color-blue);
}

section.second-colour {
    background-color: var(--secondary-color);
}

section.portfolio {
    position: relative;
    background: linear-gradient(var(--accent-color-blue) 35%, #fff 70%);
    border-bottom: 2px solid var(--accent-color-blue);
    /* margin: 1rem auto; */
}

@media (max-width: 720px) {
	section.portfolio {
		border-radius: 40px 40px 0 0;
	}
}

section.portfolio>.container {
    position: relative;
    z-index: 1;
}

section.portfolio::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("../media/img/SOCIAL_PROFILE_TOP.svg");
    mix-blend-mode: screen;
    z-index: 0;
    opacity: 0.4;
    background-size: 70%;
    background-clip: border-box;
}

.portfolio-inner-row:first-of-type {
    margin-top: 5rem;
}

.portfolio-inner-row {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 900px;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin: 10rem auto;
    align-items: center;
}

.portfolio-inner-row:last-of-type {
    margin-bottom: 0;
}

.portfolio-inner-row:not(:last-child):after {
    position: absolute;
    content: "";
    bottom: calc(-5rem - 2.5px);
    right: calc(50% - 30px);
    width: 60px;
    height: 5px;
    border-radius: 20px;
    background-color: var(--main-color);
}

.portfolio-inner-row.reverse {
    grid-template-columns: 1fr 1.5fr;
    margin-left: auto;
}

/* staggered portfolio items for larger screens */
@media (min-width: 1300px) {
    .portfolio-inner-row {
        margin-left: 5rem;
    }

    .portfolio-inner-row.reverse {
        margin-right: 5rem;
    }
}

.portfolio-inner-row.reverse div:first-child {
    order: 2;
}

.col img {
    border-radius: 40px;
}

.col p:first-child {
    text-transform: uppercase;
    font-weight: bold;

}

@media (max-width: 720px) {

    .portfolio-inner-row,
    .portfolio-inner-row.reverse {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 4rem;
        margin: 9rem auto;
    }

    .portfolio-inner-row.reverse div:first-child {
        order: 0;
    }

    .portfolio-inner-row:last-of-type {
        margin-bottom: 0;
    }

    .portfolio-inner-row:not(:last-child):after {
        width: 25px;
        height: 25px;
        left: auto;
        right: calc(50% - 12.5px);
        bottom: calc(-4.5rem - 12.5px);
    }

    .col button {
        margin-bottom: 0;
    }
}

/* CONTACT SECTION */

#contact {
    position: sticky;
    transition: all 600ms ease-in-out;
}

@media (min-width: 1000px) {
    #contact {
        top: 0;
    }
}

@media (max-width: 720px) {
	#contact {
		border-radius: 40px 40px 0 0;
	}
}

/* #contact::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../media/img/bg/blocks.png");
    z-index: -1;
    opacity: 0.03;
} */

#contact + section {
    /* background: white; */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
}


/* FEATURES SECTION */

section.features .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 12rem;
    align-content: start;
}

.features h5 {
	position: relative;
	line-height: 1;
}

.features h5::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 5px;
	top: calc(50% - 2.5px);
	border-radius: 40px;
	left: -30px;
	background-color: var(--main-color);
}

#features-text {
    padding: 20px 0;
}

#features-text h4 {
    margin-bottom: 3rem;
}

img.decorative-side-left {
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

img.decorative-side-right {
    width: 100%;
    height: 100%;
    border-radius: 0 40px 40px 0;
}

@media (max-width: 1000px) {
    section.features .container {
        grid-template-columns: 1fr 250px;
        gap: 3rem;
    }
}

@media (max-width: 720px) {
    section.features .container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    img.decorative-side-left {
        border-radius: 0;
        width: 100%;
        height: 20px;
    }
}

/* FAQ SECTION */

section.faq .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 12rem;
    align-content: start;
}

.features h5 {
	position: relative;
	line-height: 1;
}

.features h5::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 5px;
	top: calc(50% - 2.5px);
	border-radius: 40px;
	left: -30px;
	background-color: var(--main-color);
}

#features-text {
    padding: 20px 0;
}

#features-text h4 {
    margin-bottom: 3rem;
}

img.decorative-side-left {
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

img.decorative-side-right {
    width: 100%;
    height: 100%;
    border-radius: 0 40px 40px 0;
}

@media (max-width: 1000px) {
    section.faq .container {
        grid-template-columns: 1fr 250px;
        gap: 3rem;
    }
}

@media (max-width: 720px) {
    section.faq .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    img.decorative-side-left {
        border-radius: 0;
        width: 100%;
        height: 20px;
    }
}

footer {
    background: url("../media/img/bg/orange-waves.webp");
    width: 100%;
    background-size: cover;
    color: var(--secondary-color);
}

@media (max-width: 720px) {
	footer {
		border-radius: 40px 40px 0 0;
	}
}

footer h4:after {
    background-color: var(--secondary-color);
}

/* .faq {
    background: url("../media/img/bg/orange-waves.webp");
    width: 100%;
    background-size: cover;
    color: var(--secondary-color);
}

.faq h4::after {
    background-color: var(--secondary-color);
} */


/* KEYFRAMES ANIMATIONS */

@keyframes pulse {

    0%,
    100% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes bounce-left {
    0% {
        transform: translateX(0);
    }

    70% {
        transform: translateX(-6rem);
    }

    100% {
        transform: translateX(0);
    }
}

/* FORM STYLING */

form {
    margin: 5rem auto 0 auto;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 600px;
}

input {
    padding: 0.7rem 0.5rem;
    border: 0;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, .7);
}

input:not([type=submit]) {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--main-color);
    font-size: 1rem;
}

input:not([type=submit]):focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--main-color);
    background-color: rgba(255, 255, 255, .3);
}

form label {
    display: inline-block;
    display: block;
}

form .form-wrapper {
    width: 100%;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

form .form-wrapper>div {
    width: 100%;
}

textarea {
    background-color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    resize: none;
    border: none;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--main-color);
}

textarea::placeholder {
    /* color: var(--accent-color-blue); */
    /* opacity: 0.5; */
    font-family: 'Poppins';
    color: rgba(0, 0, 0, 0.3);
    font-weight: 100;
}

input[type=submit] {
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: var(--main-color);
    border: 0;
    color: var(--secondary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid transparent;
    transition: all 300ms ease-in-out;
}

input[type=submit]:hover,
input[type=submit]:focus,
input[type=submit]:focus-visible {
    background-color: var(--secondary-color);
    color: var(--main-color);
    border-color: var(--main-color);
}