* {
    box-sizing: border-box;
}



/*GENERAL*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    position: relative;
    font-family: 'Inter Tight';
}

.btm-small {
    margin-bottom: 20px;
}

.btm-big {
    margin-bottom: 40px;
}

.btm-xl {
    margin-bottom: 80px;
}

p:last-child {
    margin-bottom: 0;
}

.front {
    z-index: 9;
}

.dark {
    background-color: #000000;
}

.section {
    padding: 5% calc(4vw + 30px);
    color: white;
}

.red {
    background-color: rgb(168, 8, 8);
}

.img-box {
    border-radius: 7px;
    border: 1px solid rgb(45, 45, 45);
}

.img-box .badge {
    font-size: 12px;
    border-radius: 0 5px 5px 0;
    background-color: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px);
    color: black;
    border-left: 0;
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
}

.flex.center {
    align-items: center;
    text-align: unset;
}

.flex.end {
    align-items: flex-end;
}

.gap-5 {
    gap: 10px;
}

/*TEXT*/

h1 {
    font-size: 4.5rem;
    line-height: 4.5rem;
    margin: 0;
    text-transform: capitalize;
    padding-bottom: .5rem;
    letter-spacing: -1px;
}

.section h1 {
    width: 70%;
}

h2 {
    margin: 0;
    font-weight: normal;
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 0;
}

a {
    all: unset;
}

p {
    line-height: 1.5rem;
    opacity: 0.6;
    margin: 0;
}

.center {
    text-align: center;
}

.badge {
    background: rgba(89, 89, 89, 0);
    color: white;
    border: 1px solid rgb(103, 103, 103);
    border-radius: 5px;
    padding: 5px 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
}

.half {
    width: 50%;
}

.sevenfive {
    width: 75%;
}

/*HEADER*/

#header {
    position: absolute;
    top: 6vh;
    padding: 0 4vw;
    width: 100%;
    z-index: 99;
}

#nav-wrap {
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0px 12px 0 30px;
    align-items: center;
    border-radius: 10px;
}

.logo {
    width: 190px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 20px;
}

#header .logo, footer .logo {
    filter: invert();
}

#menu {
    height: 60px;
    display: flex;
    align-items: center;
}

#menu ul, #footer-menu ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

#menu li a{
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

#menu li a:hover {
    opacity: 1;
}

#mobile-menu {
    display: none;
}

#menu i {
    font-size: 12px;
}

#menu-button {
    display: none;
}

/*BUTTONS*/

button {
    all: unset;
}

.button {
    justify-self: flex-end;
    background: white;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    font-weight: 500;
    gap: 7px;
}

#button:hover {
    background-color: white;
    color: black;
}

.button.reverse {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.button.reverse:hover {
    background-color: white;
    color: black;
}

.wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*HERO*/

#hero {
    height: 100vh;
    background: url('images/bg-6.jpg');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    padding: 0 calc(4vw + 30px);
    padding-top: 8vh;
    text-align: left;
    position: relative;
    background-repeat: no-repeat;
}

#sudo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.hero-text {
    text-align: center;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero h1 {
    margin-bottom: 40px;
    background: -webkit-linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(239, 239, 239) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

#hero h3, #hero p {
    margin-bottom: 40px;
}

#hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

#hero .button {
    margin-top: 20px;
}

/*HIGHLIGHTS*/


#highlights ul li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-transform: capitalize;
    border-left: 1px solid rgb(103, 103, 103);
    padding-left: 20px;
}

#highlights h2 {
    font-weight: 200;
    font-size: 4rem;
    line-height: 3rem;
}

#highlights p {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: auto;
}


/*ABOUT*/

.line {
    background-color: #464646;
}

#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

#about h1 {
    width: 100%;
}

#right {
    color: white;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#left {
    background-image: url('images/face.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#right a {
    margin-top: auto;
}

/*TEAM*/

.boxes {
    list-style-type: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0;
    padding: 0;
    gap: 6vw;
}

#team .boxes li {
    border: 1px solid #464646;
    height: 35vh;
    border-radius: 7px;
    padding: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.07) 100%);
    cursor: pointer;
}

/*PROJECTS*/

#projects {
    padding-bottom: calc(5% - 40px);
}

#projects-top {
    display: grid;
    grid-template-columns: 1fr 150px;
} 

#scroll-buttons {
    align-self: flex-end;
    justify-self: flex-end;
}

#projects-wrap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 47.5%;
    overflow-x: scroll;
    gap: 5%;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    max-width: 99.99%;
}

#projects-wrap p {
    opacity: 0.5;
}

#projects-wrap > div {
    scroll-snap-align: start; /* Aligns the child elements for snapping */
    min-width: 47.5%; /* Ensures correct width for snapping */
    border: 1px solid rgb(45, 45, 45);
    padding: 5%;
    border-radius: 5px;
}

#scroll-left, #scroll-right {
    font-size: 3rem;
    opacity: 0.3;
    cursor: pointer;
}

#scroll-left:hover, #scroll-right:hover {
    opacity: 1;
}

#scroll-left {
    margin-right: 25px;
}

#projects .img-box {
    height: 200px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background-size: cover;
    padding-top: 20px;
}

.scroll-link {
    width: 30%;
    background: white;
    color: black;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    clip-path: polygon(0 80px,80px 0,100% 0,100% 100%,0 100%);
}

#i {
    background-image: url('images/za.jpg');
}

#ii {
    background-image: url('images/bike.jpg');
    background-position-y: 50%;
}

#iii {
    background-image: url('images/sports.jpg');
}

#iv {
    background-image: url('images/city.jpg');
    background-position-y: 50%;
}

.projects-numbers {
    margin: 40px 0;
    padding: 0;
}

.projects-numbers li{
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 10px;
}

.tags .badge {
    margin-bottom: 0;
}

/*SERVICES*/

.serv-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    border-radius: 5px;
}

.serv-grad {
    width: 100%;
    height: 100%;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

#services-list {
    width: 100%;
}

#services-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 35px;
}

#services-list li, #team-list li {
    border: 1px solid rgb(45, 45, 45);
    border-radius: 7px;
    overflow: hidden;
    padding: 5%;
    background-color: black;
    display: flex;
    flex-direction: column;
}

#services-list li .button, #team-list li .button {
    margin-top: auto;
}

/*PROCESS*/

#process {
    display: flex;
    gap: 5%;
}

#process ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 47.5%;
}

#process li {
    border-bottom: 1px solid  #464646;
}

#process li p {
    padding-bottom: 20px;
}

.process-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.process-h:hover {
    opacity: 1;
}

.process-details {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease; 
}

.process-details.open {
    height: auto;
}

.fa-plus {
    transition: transform 0.3s ease; /* Adjust duration and easing as needed */
}

/*TEAM*/

#team-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
}

#team .serv-img {
    height: 275px;
}

/*CONTACT*/

form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}

input {
    all: unset;
    width: 100%;
    background: none;
    border: 1px solid #464646;
    cursor: text;
    color: white;
    height: 60px;
    text-indent: 20px;
    border-radius: 7px;
}

.input-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8vw;
    margin-bottom: 40px;
}

.input-wrap:last-child {
    margin-bottom: 0;
}

.input-wrap input {
    margin-bottom: 0;
}

.input-wrap .button {
    width: 100%;
}

#message {
    grid-column: 1/4;
    height: 150px;
}

#successMessage {
    display: none;
}

/*FOOTER*/

footer {
    background-color: #141414;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6vw;
}

#footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
}

#footer-menu a {
    opacity: 0.7;
}

#footer-menu a:hover {
    opacity: 1;
}


footer p {
    color: #6b6b6b;
    margin: 0;
}

#matt {
    align-self: flex-end; 
    justify-self: flex-end;
}

#matt a:hover {
    color: white;
}

@media only screen and (max-width: 1060px) {

    #services-list ul {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}


@media only screen and (max-width: 768px) {

.mobile-hide {
    display: none;
}

h1 {
    font-size: 3.5rem;
    line-height: 3.5rem;
}

#header {
    padding: 0;
}

#nav-wrap {
    grid-template-columns: 1fr 1fr;
    padding: 0 8%;
}

#nav-wrap .button{
    display: none;
}

#hero {
    padding: 0 8%;
    padding-bottom: 8%;
    background-position-x: 45%;
    align-items: flex-start;
    justify-content: flex-end;
}

.hero-text {
    width: 100%;
    text-align: left;
    align-items: flex-start;
}

#hero h1, #hero p, .section h1, #hero .button {
    width: 100%;
}

#hero p {
    margin-bottom: 20px;
}

#menu-button {
    display: block;
    cursor: pointer;
    justify-self: flex-end;
    }

#mobile-menu {
    display: block;
    height: 100vh;
    right: -65vw; /* Start off-screen */
    width: 65vw;
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 99999;
    padding: 12%;
    padding-top: 7vh;
    transition: right 0.3s ease; 
}

#close-button {
    cursor: pointer;
}

#mobile-menu.show {
    right: 0;
}

#mobile-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80%;
}

#mobile-menu li a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1.3rem;
}

#mobile-menu li a:hover {
    opacity: 1;
}

#menu {
    display: none;
}

.section {
    padding: 15% 8%;
}

.center {
    text-align: left;
}

.sevenfive {
    width: 100%;
}

#left {
    height: 50vh;
}

#services {
    align-items: flex-start;
}

#services-list ul, #team-list ul {
    grid-template-columns: 1fr;
    row-gap: 9vh;
}

#process {
    display: block;
}

#process-wrap {
    align-items: flex-start;
}

#process ul {
    width: 100%;
}

#about {
    grid-template-columns: 1fr;
    gap: 10vh;
}

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

.boxes li {
    height: 25vh;
}

#projects {
    padding-bottom: calc(15% - 40px);
}


#projects-wrap {
    grid-auto-columns: 100%;
}

#projects-top {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px !important;
}

#projects-wrap > div {
    min-width: 100%;
}

#projects .img-box {
    height: 42vh;
}

.projects-numbers li {
    color: grey;
}

#scroll-buttons {
    justify-self: flex-start;
}

#services-list {
    flex-direction: column;
    gap: 0;
}

#service-two {
    border-bottom: 0 !important;
}

form {
    gap: 25px;
    grid-template-columns: 1fr;
}

.input-wrap {
    grid-template-columns: 1fr;
}

#message {
    grid-column: unset;
}

footer {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr auto;
    height: auto;
}

#footer-menu ul {
    flex-wrap: wrap;
    gap: 20px;
}

#footer-left {
    gap: 40px;
}

#matt {
    justify-self: flex-start;
}

}