* {
    box-sizing: border-box;
}

@font-face {
    font-family: daytona;
    src: url(fonts/DaytonaPro-Cond.ttf);
  }

  @font-face {
    font-family: daytona-reg;
    src: url(fonts/DaytonaPro-Light.ttf);
  }


/*GENERAL*/

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    position: relative;
    font-family: 'daytona-reg';
}

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

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

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

.front {
    z-index: 9;
}

.dark {
    background-color: #101518;
}

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

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

.img-box {
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    clip-path: polygon(0 80px,80px 0,100% 0,100% 100%,0 100%);
}

/*TEXT*/

h1 {
    font-size: 4.5rem;
    line-height: 4.5rem;
    font-family: 'daytona-reg';
    margin: 0;
}

.section h1 {
    width: 70%;
}

h2 {
    margin: 20px 0;
    font-weight: normal;
}

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

a {
    all: unset;
}

p {
    line-height: 1.5rem;
    opacity: 0.8;
}

/*HEADER*/

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

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

.logo {
    width: 190px;
}

#menu {
    height: 60px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.159);
    display: flex;
    align-items: center;
    padding: 0 15px 0 30px;
}

#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 {
    justify-self: flex-end;
    background-color: white;
    color: black;
    padding: 10px 20px 8px 20px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
}

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

.button.reverse {
    background-color: 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/hero-8.jpg');
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    flex-direction: column;
    padding: 0 calc(4vw + 30px);
    padding-bottom: 6vh;
    text-align: left;
    position: relative;
}

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

#hero h1 {
    margin-bottom: 40px;
    width: 70%;
}

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

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

#hero .button {
    font-size: 20px;
    margin-top: 20px;
    padding: 12px 40px;
}

/*ABOUT*/

.line {
    background-color: #464646;
}

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

#about h1 {
    width: 100%;
}

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

#left {
    background-image: url('images/about-3.jpg');
}

#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;
}

.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-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;
}

#projects-wrap > div {
    scroll-snap-align: start; /* Aligns the child elements for snapping */
    min-width: 47.5%; /* Ensures correct width for snapping */
}

#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: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.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/project-1.jpg');
}

#ii {
    background-image: url('images/project-2.jpg');
}

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

#iv {
    background-image: url('images/project-4.jpg');
}

/*SERVICES*/

#services-list {
    display: flex;
    gap: 6vw;
}

#services-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

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

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

.service-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    cursor: pointer;
}

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

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

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

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

/*CONTACT*/

input {
    all: unset;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #464646;
    margin-bottom: 80px;
    cursor: text;
    color: white;
    height: 60px;
}

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

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

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

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

/*FOOTER*/

footer {
    height: 50vh;
    background-color: #0a0b0d;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6vw;
}

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

footer p {
    color: #464646;
    margin: 0;
}

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

#matt a:hover {
    color: white;
}

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

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

#header {
    padding: 0;
}

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

#hero {
    padding: 0 8%;
    padding-bottom: 8%;
    background-position-x: 45%;
}

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

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

#close-button {
    cursor: pointer;
}

#mobile-menu.show {
    right: 0; /* Slide in to view */
}

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

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

#mobile-menu li a {
    opacity: 0.8;
}

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

#menu {
    display: none;
}

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

.section {
    padding: 8%;
}

#left {
    height: 42vh;
}

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

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

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

.boxes li {
    height: 25vh;
}

#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;
}

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

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

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

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

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

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

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

}