:root {
    --RP-Highlight-Colour: #6a3dff;
    --RP-Link-Button-Colour: #ffffff;
    --RP-Link-Button-Colour-Dark: #222222;
}

::selection {
    background-color: #6a3dff6f;
}

input {
    caret-color: var(--RP-Highlight-Colour);
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/poppins-v20-latin-regular.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-regular.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/poppins-v20-latin-300.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-300.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/poppins-v20-latin-500.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-500.woff') format('woff');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('/assets/fonts/poppins-v20-latin-600.woff2') format('woff2'),
         url('/assets/fonts/poppins-v20-latin-600.woff') format('woff');
}

.custom-letters {
    display: inline-block;
    white-space: nowrap;
}

.custom-r {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/assets/fonts/SVGs/R.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;   /* Hide the original letter */
}

.custom-p {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/assets/fonts/SVGs/P.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;   /* Hide the original letter */
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(75deg,#262527,#161A1D);
    margin: 0;
    color: var(--RP-Link-Button-Colour);
    font-family: Poppins, san-serif;
    font-weight: 400;
    font-size: 1.0rem;
    line-height: 1.7em;
    text-rendering: optimizeLegibility;
}

* {
    font-weight: 400;
}

a {
    color: var(--RP-Link-Button-Colour);
}

p {
    margin: 0;
}

strong {
    font-weight: 700;
}

/* Navbar */
nav {
    position: absolute;
    top: 0;
    z-index: 999;
    width: 100vw;
    height: 88px;
}

.nav-grid-container {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
    align-content: center;
}

.nav-flex-container-1 {
    height: 88px;
    grid-column: 2/5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    width: 10%;
    height: 49px;
}

.nav-logo {
    height: 100%;
}

.nav-flex-container-2 {
    display: flex;
    gap: 30px;
    flex-direction: row-reverse;
    align-items: center;
}

.nav-primary-link {
    line-height: 57px;
    color: #ffffff;
    background-color: var(--RP-Highlight-Colour);
    padding-left: 30px;
    padding-right: 30px;
    height: 57px;
    border-radius: 28.5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    overflow: auto;
}

.dynamic-text-desktop {
    display: block;
}

.dynamic-text-mobile {
    display: none;
}

.w-nav-link {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    color: var(--RP-Link-Button-Colour);
    text-align: left;
    margin-left: auto;
    margin-right: auto
}

.nav-link {
    line-height: 1.4em;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
}

.footer-column {
    grid-column: 2/5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-spacer {
    margin: 20px 0 40px 0;
    height: 2px;
    width: 100%;
    background-color: rgba(112, 112, 108, 0.15);
}

.footer-flex {
    display: flex;
    width: 100%;
    padding-bottom: 40px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: column;
}

.footer-flex > * {
    font-size: 0.8rem;
}

.latest-project-logo {
    width: 150px;
    height: 150px;
    border-radius: 20px;
}

.socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-media-link {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(180, 180, 180, 0.2);
    border-radius: 50%;
    -webkit-transition: color .2s, background-color .2s, border-color .2s;
    transition: color .2s, background-color .2s, border-color .2s;
    color: #b4b4b4
}

.social-media-link:hover {
    border-color: #ffffff;
    background-color: #6a3dffaa;
    color: #ffffff
}

.social-media-icon {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.link-icon {
    display: flex;
    width: 96px;
    height: 96px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

header {
    content:"";
    display: grid;
    margin-top: 88px;
    grid-template-columns: 7.5% 1fr 7.5%;
    grid-template-rows: 1fr 5fr 1fr;
    position: relative;
    height: 100vh;

}

header::before {
	content: "";
	position: absolute;
	left: 90;
	top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	width: 100%;
	height: 100%;
    /* grid-column: 1/6; */
    background-image: url('/assets/images/OceanChaos/OceanChaos_feature.webp');
    filter: brightness(60%);
    background-size: cover;
    /* background-position: center; */
    z-index: -1;
}

.header-section {
  grid-column: 2/3;
  grid-row: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: 35rem;

}

.header-title {
    font-weight: 500;
    font-size: 3.25rem;
    line-height: 4rem;
    color: #ffffff;
    margin: 0;
}

.header-text {
    font-size: 1.25rem;
    line-height: 1.7em;
    font-weight: 300;
    color: #ffffff;
    margin: 30px 0 0 0;
    padding-left: 2px;
}

.header-link-get-started {
    line-height: 57px;
    color: #ffffff;
    background-color: var(--RP-Highlight-Colour);
    margin: 30px 0 0 0;
    padding: 0 30px 0 30px;
    height: 57px;
    border-radius: 28.5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    overflow: auto;
}

.main-content {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
}

.display-framing {
    grid-column: 2/5;
    width: 100%;
    min-height: 50vh;
    padding: 70px 0 70px 0  ;
}

.project-description {
    width: 49%;
    padding: 0 0 30px 0;
}

.project-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* .project-grid > img {
    width: 100%;
    object-fit: cover;
} */

.home-collection-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Fixed proportion border */
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 10%;
}

.timeline {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
}

.timeline-column {
    grid-column: 2/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 70px 0;
}

.timeline-title {
    margin: 0 0 10px 0;
    text-align: center;
}

.timeline-text {
    margin: 0 0 25px 0;
    text-align: center;
}

.timeline-content {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
}

.timeline-boxes, .link-boxes {
    display: flex;
    flex-direction: column;
    row-gap: 14px;
    align-items: center;
}

.timeline-card, .timeline-card-mobile, .link-card {
    background-color: var(--RP-Highlight-Colour);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    height: 248px;
    box-sizing: border-box;
    overflow: scroll;
    margin: 0 50px 0 0;
}

.link-card {
    overflow: hidden;
}

.timeline-card-mobile, .link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    height: 96px;
    overflow: hidden;
}

.timeline-card-mobile {
    display: none;
}

.timeline-card-title {
    margin: 0 0 15px 0;
}

.timeline-card-title-mobile, .link-card-title {
    margin: 0;
    font-weight: 500;
}

.timeline-card-words, .link-card-words {
    display: flex;
    flex-direction: column;
}

.link-link {
    display: flex;
    column-gap: 10px;
    height: 96px;
    width: 100%;
    max-width: 500px;
    text-decoration: none;
}

.link-img {
    height: 100%;
    border-radius: 10px;
}

.link-img-future-projects {
    filter: blur(5px);
}

.timeline-dots-and-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot{
    width: 14px;
    height: 14px;
    background: #D1D6E6;
    border-radius: 7px;
    z-index: 0;
}

.timeline-dot-special{
    width: 30px;
    height: 30px;
    background: #D1D6E6;
    border-radius: 20px;
    outline: solid 4px rgb(33, 34, 36);
    outline-offset: -7px;
    z-index: 0;
}

.timeline-dot-special-outer {
    width: 30px;
    height: 30px;
    background: #D1D6E6;
    border-radius: 50%;
    position: relative;
    z-index: 0;

    box-shadow: 0 0 0 0 rgb(0, 255, 8, 1);
	transform: scale(1);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 255, 8, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(0, 255, 8, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(0, 255, 8, 0);
	}
}

.timeline-dot-special-mid {
    position: absolute;
    background: rgb(33, 34, 36);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -12px 0px 0px -12px;
    z-index: 1;
}

.timeline-dot-special-inner {
    position: absolute;
    background: rgb(88, 243, 93);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -8px 0px 0px -8px;
    z-index: 2;

    animation: fade 2s infinite
}

@keyframes fade {
	0% {
        background: rgba(88, 243, 93, 0);
	}

	30% {
        background: rgb(88, 243, 93);
	}

    70% {
        background: rgb(88, 243, 93);
	}

	100% {
        background: rgba(88, 243, 93, 0);
	}
}

.timeline-line, .timeline-line-special {
    width: 6px;
    height: 252px;
    background: #D1D6E6;
    margin: -2px 0 -2px 0;
    z-index: -1;
}

.timeline-line-special {
    height: 244px;
}

.timeline-card-mobile-arrow, .link-card-arrow {
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    height: 5px;
    width: 5px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
  }

.timeline-modal {
    max-width: 500px;
    margin: auto 24px auto 24px;
    border: none;
    border-radius: 10px;
    background-color: var(--RP-Highlight-Colour);
    color: #ffffff;
}

.timeline-modal::backdrop {
    /* background: linear-gradient(45deg, #FF433D, #6a3dff); */
    /* opacity: 0.3; */
    background-color: rgba(0, 0, 0, 0.5);
}

.timeline-modal-button-framing {
    display: flex;
    justify-content: center;
}

.timeline-close-modal-button {
    font-family: Poppins, san-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7em;
    width: 140px;
    height: 40px;
    margin: 16px 0 4px 0;
    border-radius: 10px;
    color: var(--RP-Highlight-Colour);
    border: none;
}

.inspiration {
    /* background-color: #6a3dff; */
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
    
}

.inspiration-content {
    grid-column: 2/5;
    display: flex;
    justify-content: center;
    padding: 0 0 70px 0;
}

.inspiration-insta-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #0f1214;
    border-radius: 20px;
    height: 500px;
    width: fit-content;
    padding: 30px 40px 30px 40px;
    overflow: hidden;
}

.inspiration-title {
    margin: 0;
    padding: 0;
}

.instagram-media {
    height: 100%;
    width:10%
}

.sneak-peek, .behind-the-scenes {
    display: grid;
    grid-template-columns: 7.5% repeat(3,1fr) 7.5%;
}

.sneak-peek-column, .behind-the-scenes-column {
    grid-column: 2/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 0 40px 0;
}

.sneak-peek-column {
    padding: 0 0 60px 0;
}

.sneak-peek-title, .behind-the-scenes-title {
    margin: 0;
    text-align: center;
}

.sneak-peek-text, .behind-the-scenes-text {
    text-align: center;
}

.behind-the-scenes-text {
    width: 100%;
    max-width: 640px;
}

.sneak-peek-image-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.sneak-peek-image {
    width: 100%;
    max-width: 300px;
}

.behind-the-scenes-video {
    width: 100%;
    max-width: 500px;
}

@media (min-width: 1857px) {
    .nav-grid-container, footer, header, .main-content, .timeline, .inspiration, .sneak-peek, .behind-the-scenes {
        grid-template-columns: 1fr repeat(3,520px) 1fr;
    }
}

@media (max-width: 767px) {
    footer, .main-content, .timeline, .inspiration, .sneak-peek, .behind-the-scenes {
        grid-template-columns: 24px repeat(3,1fr) 24px;
    }

    .nav-grid-container {
        grid-template-columns: 24px 1fr 24px;
    }

    header {
        grid-template-columns: 24px 1fr 24px;
        grid-template-rows: 0.4fr 5fr 0.5fr;
        height: 100%;
    }

    .header-title {
        font-size: 2.5rem;
        line-height: 3.25rem;
    }
    
    .header-section {
        width: 90%;
    }

    .header-text {
        font-size: 1.20rem;
        line-height: 1.7em;
        font-weight: 300;
        color: #ffffff;
        margin: 30px 0 0 0;
        padding-left: 2px;
    }

    .timeline-card {
        margin: 0 0 0 0;
    }

    .nav-logo {
        width: 88px;
        max-height: 88px;
    }

    .nav-logo-link {
        min-width: 0px;
    }

    .nav-flex-container-1 {
        grid-column: 2/3;
    }

    .project-description {
        width: 100%;
    }

    .inspiration-insta-profile {
        width: 100%;
        padding: 30px 0px 30px 0px;
        align-items: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hidden-home-collection-image {
        display: none;
    }

}

@media (max-width: 600px) {
    .nav-flex-container-2 {
        gap: 15px;
    }

    .nav-primary-link {
        padding-left: 15px;
        padding-right: 15px;
    }

    .dynamic-text-desktop {
        display: none;
    }

    .dynamic-text-mobile {
        display: block;
    }
    
    .timeline-content, .timeline-boxes {
        width: 100%;
    }
    
    .timeline-card {
        display: none;
    }

    .timeline-card-mobile {
        display: flex;
    }

    .timeline-line {
        height: 100px;
    }

    .timeline-line-special {
        height: 92px;
    }
}

@media (max-width: 390px) {
    .link-card-title {
        font-size: 1.1em;
        line-height: 1.7rem;
    }

    .link-card-text {
        font-size: 0.9em;
        line-height: 1.2rem;
    }
}