/* CSS */

/* Animations */

@media (prefers-reduced-motion: no-preference) {
    .wipeenter {
        animation: wipe-enter 2s 1 forwards;
    }
}

@keyframes fade-in {
    from {
        scale: .6; opacity: 0;
    }
    to {
        scale: 1; opacity: 1;
    }
}

@keyframes fade-out {
    from {
        scale: 1; opacity: 1;
    }
    to {
        scale: .6; opacity: 0;
    }
}

@keyframes wipe-enter {
    from {
        display: none;
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        scale: .8; opacity: 0;
    }
    to {
        scale: 1; opacity: 1;
    }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFadeIn768 {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFadeIn480 {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Font faces */
@font-face {
    font-family: 'Findel';
    src: url('Findel-Display-Regular.otf');
}

@font-face {
    font-family: 'MadeleinaSans';
    src: url(MadeleinaSans-2VY3.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    cursor: url('UiElements/Cursor.png'), auto;
    background-color: #292929;
}

a:hover, button:hover {
    cursor: url('UiElements/Cursor\ Hover.png'), auto;
}

/* Header styles */
header {
    z-index: 500;
    text-align: center;
    display: flex;
    align-items: center;
    background-color: #222;
    height: 100px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: flex-start;
}

header li a {
    font-family: Findel;
    font-size: 1.8vw;
    padding: 3rem;
    color: #e9e9e9;
    text-decoration: none;
}

header ul {
    display: flex;
    padding: 0;
    margin: 0;
}

header li {
    list-style: none;
    position: relative;
}

header li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #e9e9e9;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

header li:hover::after {
    width: 80%;
}

header img {
    height: 10rem;
    width: 15rem;
    max-height: 100vw;
    max-width: 100vw;
    object-fit: contain;
}

/* Landing video styles */
#landing {
    position: relative;
    height: 100vh;
}

#landing video {
    background-color: #e9e9e9;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.1;
    z-index: -1;
}

/* Landing text styles */
#landing .landing-text {
    font-family: findel;
    font-size: 4vw;
    position: absolute;
    z-index: 1;
    color: #fff;
    text-align: left;
    bottom: 2%;
    left: 2%;
    animation: slideFadeIn 1.5s ease-in-out;
}

#what-we-do {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#what-we-do h2 {
    font-family: findel;
    font-size: 6vw;
    color: #e9e9e9;
    margin-top: 2vw;
    text-align: center;
}

.wwd-container {
    /* animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 900px; */

    display: flex;
    justify-content: space-around;
    margin: 0 auto;
}

/* What We Do & What We Dont Do | Wrapper */
.wwd-text, .wwdd-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
    background-color: #333;
    color: #e9e9e9;
    border-radius: 36px;
    padding: 30px;
    min-width: 35vw;
    max-width: 35vw;
    min-height: 50vh;
    font-size: 1.2em;
}

/* What We Do & What We Dont Do | Headers */
.wwd-text h1, .wwdd-text h1 {
    text-align: center;
    font-family: 'findel', sans-serif;
    font-size: 3em;
    margin-bottom: 10%;
}

/* What We Do & What We Dont Do | Hover */
.wwd-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(21, 255, 0, 0.8);
}

.wwdd-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.8);
}

/* What We Do & What We Dont Do | UL */
.wwd-text ul, .wwdd-text ul {
    display: table;
    margin: 0 auto;
    text-align: center;
}

/* What We Do & What We Dont Do | Text */
.wwd-text li, .wwdd-text li {
    animation: fade-out linear;
    animation-timeline: view();
    animation-range-start: 700px;
    animation-range-end: 1000px;

    float: left;
    font-family: MadeleinaSans;
    margin-bottom: 8vh;
    font-size: 2em;
    list-style: none;
    text-align: center;
    box-sizing: border-box;
}

/* Our Work section styles */
#our-work {
    padding: 50px 50px 50px 50px;
    padding: 100px 0;
    background-color: #292929;
    text-align: left;
}

#our-work h2 {
    animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 700px;

    margin-left: 2vw;
    font-family: findel;
    font-size: 3vw;
    color: #e9e9e9;
    margin-bottom: 2vw;
}

.our-work-container {
    min-height: 30vh;
    margin-left: 2vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
}

.our-work-item {
    animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 600px;

    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    width: 18vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.our-work-item img {
    align-self: center;
    width: 100%;
    height: auto;
}

.our-work-item h3 {
    font-family: 'MadeleinaSans';
    text-align: center;
    font-size: 2.4em;
    color: #e9e9e9;
    margin: 10px 0;
    padding: 2% 2%;
}

.our-work-item p {
    text-align: center;
    font-family: 'MadeleinaSans';
    font-size: 1.8em;
    color: #e9e9e9;
    margin: 10px 10px;
    padding: 1% 1%;
}

.our-work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#about {
    height: auto;
    color: #e9e9e9;
    background-color: #333;
}

.about-container {
    margin-left: 1vw;
    display: flex;
    justify-content: space-between;
    align-items: top;
    height: 100%;
    flex-wrap: wrap;
    width: 100%;
}

.about-text {
    max-height: none;
    margin-top: 1vw;
    flex: 2;
    text-align: left;
    margin-right: 20px;
    width: 100%;
}

.about-text h1 {
    font-family: findel;
    font-size: 4vw;
    margin-bottom: 20px;
}

.about-text p {
    font-family: 'MadeleinaSans';
    font-size: 2.4em;
    margin-bottom: 40px;
}

.about-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    animation: fade-in linear;
    animation-timeline: view();
    animation-range-start: 100px;
    animation-range-end: 750px;
    height: auto;
    width: 100%;
    max-width: 500px;
}

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vh;
    text-align: center;
}

#contact button, .contact-button {
    padding: 50px 110px;
    background-color: #333;
    color: #e9e9e9;
    border: 2px solid #e9e9e9;
    border-radius: 50px;
    font-size: 4.2em;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin: auto;
    animation: none;
}

#contact button:hover, .contact-button:hover {
    transform: translateY(-50px);
    box-shadow: 0 8px 16px rgb(255, 255, 255);
}

#tcs {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5vh;
    text-align: center;
    background-color: #333;
    color: #e9e9e9;
    font-size: 1.2em;
}

.tcs-container a {
    user-select: none;
    font-size: 1.2em;
    color: #00c3ff;
    text-decoration: none;
    cursor: url('UiElements/Cursor.png'), auto;
}

.tcs-container a:hover {
    cursor: url('UiElements/Cursor.png'), auto;
    text-decoration: underline;
}

.animate {
    animation: slideFadeIn 1.5s ease-in-out;
}

.mobile {
    align-content: center;
    align-self: center;
    align-content: center;
    align-items: center;
    display: none;
}

.mobile p {
    color: #e9e9e9;
    font-size: 1.2em;
    align-self: center;
    text-align: center;
    margin: 0 auto;
}

#scrollbutton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #e9e9e9;
    color: white;
    padding: 0;
    border: 2px solid #334226;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('UiElements/Cursor\ Hover.png'), auto;
    z-index: 50;
}

#scrollbutton img {
    width: 30px;
    height: 30px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 1rem;
    }

    header a {
        font-size: 2vw;
        padding: 1rem;
    }

    header img {
        height: 7rem;
        width: 10rem;
    }

    #our-work h1 {
        font-size: 4vw;
    }

    #landing .landing-text {
        font-size: 8vw;
        bottom: 0;
        left: 0;
        animation: slideFadeIn768 1.5s ease-in-out;
    }

    .wwd-container {
        flex-direction: column;
        align-items: center;
    }

    .wwd-text, .wwdd-text {
        min-width: 80vw;
        min-height: auto;
        font-size: 1em;
    }

    .our-work-container {
        flex-direction: column;
        align-items: center;
    }

    .our-work-item {
        width: 80vw;
    }

    #contact button, .contact-button {
        padding: 20px 40px;
        font-size: 2em;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .about-text {
        text-align: center;
        margin-right: 0;
        width: 100%;
    }

    .about-image {
        margin-top: 20px;
        width: 100%;
    }

    .about-text h1 {
        font-size: 6vw;
    }

    .about-text p {
        font-size: 2em;
    }

    @keyframes slideFadeIn768 {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 480px) {
    header {
        height: 50px;
        padding: 0 0;
    }

    header a {
        font-size: 0.5vw;
        padding: 0 0;
    }

    header li a {
        text-align: center;
        font-size: 2.15vw;
        padding: 0.3rem;
    }

    header img {
        height: 100%;
        width: 7rem;
    }

    #landing .landing-text {
        font-size: 10vw;
        bottom: 0;
        left: 0;
        animation: slideFadeIn480 1.5s ease-in-out;
    }

    #our-work h2 {
        left: 50%;
        align-self: center;
        text-align: center;
        font-size: 8vw;
    }

    .wwd-container {
        flex-direction: column;
        align-items: center;
    }

    .wwd-text, .wwdd-text {
        min-width: 90vw;
        min-height: auto;
        font-size: 0.8em;
    }

    .wwdd-text {
        display: none;
    }

    .our-work-container {
        flex-direction: column;
        align-items: center;
    }

    .our-work-item {
        width: 90vw;
    }

    .mobile {
        display: flex;
        justify-content: center;
    }

    .mobile p {
        display: inline-block;
    }

    #contact button, .contact-button {
        padding: 10px 20px;
        font-size: 1.5em;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .about-text {
        text-align: center;
        margin-right: 0;
        width: 100%;
    }

    .about-image {
        margin-top: 20px;
        width: 100%;
    }

    .about-text h1 {
        font-size: 8vw;
    }

    .about-text p {
        font-size: 1.8em;
    }

    @keyframes slideFadeIn480 {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

