:root{
    --clr-base: #111111;
    --clr-grey: #222222;
    --clr-white: #ffffff;
    --clr-light: #bbbbbb;
    --clr-green: #229944;

    --text-sm: 0.8rem;
    --text-md: 1.6rem;
    --text-lg: 2rem;
    --text-xl: 3.6rem;
    --text-xxl: 5.4rem;

    --gutter-xs: 2rem;
    --gutter-sm: 5rem;
    --gutter-md: 10rem;
    --gutter-lg: 18rem;

    font-family: 'Lato', arial, sans-serif;
}

html
{
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color:var(--clr-base);

    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
}

img:not(.close){
    pointer-events: none;
}

h1
{
    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
    font-size: var(--text-xxl);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

h2
{
    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
    font-size: var(--text-xl);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    padding-top: 4rem;
}

h3
{
    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
    font-size: var(--text-lg);
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

p
{
    font-size: var(--text-md);
    font-weight: 300;
    margin: 0;
}

b
{
    font-size: var(--text-md);
    font-weight: 400;
    margin: 0;
}

p a:link {
    color: var(--clr-green);
}
  
p a:visited {
  color: var(--clr-green);
  opacity: 0.8;
}

/* mouse over link 
a:hover {
  color: hotpink;
}

/* selected link 
a:active {
  color: blue;
}*/

/*#region HEADER & NAVBAR */

header{
    display: flex;
    justify-content: space-between;
    background-color: var(--clr-base);
    margin: 0 var(--gutter-lg);
}

.nav-first
{
    width: 25%;
    display: flex;
    justify-content: space-between;
}

.nav-logo
{
    width: 6rem;
    display: flex;
    align-items: center;
}

.nav-toggle
{
    display: none;
    --button-color: var(--clr-white);
}

/*#region NAV TOGGLE ANIMATION */
  
.nav-toggle[data-state="closed"] :is(.top, .bottom) {
    animation: to-open-icon 800ms forwards;
}
  
.nav-toggle[data-state="opened"] :is(.top, .bottom) {
    animation: to-close-icon 800ms forwards;
}
  
.nav-toggle .line.top {
    --rotation: -45deg;
    transform-origin: 65px 45px;
}

.nav-toggle .line.bottom {
    --rotation: 45deg;
    transform-origin: 60px 55px;
}
  
@keyframes to-close-icon {
    0% {
      stroke-dashoffset: 0;
    }
    40% {
      stroke-dashoffset: 79.9;
    }
    60% {
      stroke-dashoffset: 79.9;
      rotate: calc(var(--rotation));
    }
    100% {
      stroke-dashoffset: 0;
      rotate: var(--rotation);
    }
}

@keyframes to-open-icon {
    0% {
      stroke-dashoffset: 0;
      rotate: var(--rotation);
    }
    40% {
      stroke-dashoffset: 79.9;
      rotate: var(--rotation);
    }
    60% {
      stroke-dashoffset: 79.9;
    }
    100% {
      stroke-dashoffset: 0;
    }
}

/*#endregion NAV TOGGLE ANIMATION */

.primary-navigation
{
    width: 50%;
    padding: 3rem;
    display: flex;
    justify-content: center;
    background-color: var(--clr-base);
}

nav ul{
    display: flex;
    list-style-type: none;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

nav a, nav span{
    text-decoration: none;
    font-size: var(--text-md);
    text-transform: uppercase;
    color: var(--clr-light);
    display: inline-block;
    position: relative;
    padding: 0.2rem 0;

    transition: color 0.5s;
}

nav a:hover, nav span:hover{
    color: var(--clr-white);
}

nav a::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--clr-white);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover:after{
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-third
{
    width: 25%;
}
 
.nav-dropdown-btn {
    cursor: pointer;  
    border: none;
    outline: none;
    padding: 14px 16px;
    background-color: inherit;
    margin: 0px;
}

.nav-dropdown-btn svg{
    max-width: 24px;
    position: absolute;
    top: 2.8rem;
    left: calc(50% - 12px);
}

.nav-dropdown-btn img{
    display: none;
}

.nav-dropdown-btn .line-1{
    animation: erase-arrow 0.6s 0.1s forwards;
}

.nav-dropdown-btn:hover .line-1{
    animation: draw-arrow 0.6s forwards;
}

.nav-dropdown-btn .line-2{
    animation: erase-arrow 0.45s forwards;
}

.nav-dropdown-btn:hover .line-2{
    animation: draw-arrow 0.6s 0.1s forwards;
}

@keyframes draw-arrow {
    0% {
      stroke-dashoffset: 50;
    }

    100% {
      stroke-dashoffset: 0;
    }
}

@keyframes erase-arrow {
    0% {
      stroke-dashoffset: 0;
    }

    100% {
      stroke-dashoffset: 50;
    }
}

.nav-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    padding: 1rem;
    margin-top: 10px;
    background-color: var(--clr-base);
    max-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
  
.nav-dropdown-content[data-visible="true"] {
    display: flex;
}

/*#endregion HEADER & NAVBAR */


/*#region FOOTER */

footer{
    border-top: 2px solid var(--clr-grey);
    padding: 3rem 0rem;
}

.footer-logo{
    height: 3rem;
}

footer>div:first-of-type{
    justify-content: space-between;
}

footer ul{
    list-style-type: none;
    text-transform: uppercase;
    font-size: 1.5rem;

    padding: 0;
    margin: 0;
}

footer ul :first-child a{
    font-weight: 500;
    color: var(--clr-white);
}

footer ul a{
    text-decoration: none;
    color: var(--clr-light);
    display: inline-block;
    position: relative;
    font-weight: 300;

    transition: color 0.5s;
}

footer ul a:hover{
    color: var(--clr-green);
}

footer li:not(:last-child) {
    margin-bottom: 0.8rem;
}

footer p{
    font-size: var(--text-sm);
}

/*#endregion FOOTER */


/*#region CARDS */

/*#region COLLECTION CARD */
.collection-card
{
    position: relative;
    --clr-border: var(--clr-grey);
    max-width: 600px;
   
}

.collection-card img
{
    width: 100%;
    height: 100%;

    box-sizing: border-box;
    border: 2px solid var(--clr-border);
    transition: .5s ease;
}

.collection-card .overlay
{
    position: absolute; 
    top: 2px;
    left: 2px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(2px);
    color: var(--clr-white);
    font-size: var(--text-md);
    width: calc(100% - 2rem - 4px);
    height: calc(100% - 2rem - 4px);
    padding: 1rem;
    opacity: 1;
    
    transition: .5s ease;
}

.collection-card:hover .overlay {
    opacity: 0;
}

.collection-card:hover img {
    --clr-border: var(--clr-green);
}

/*#endregion COLLECTION CARD */

/*#region HOMEPAGE PROJECT CARD */

.project-nav-card
{
    --clr-border: var(--clr-grey);

    width: 100%;
    border: 2px solid var(--clr-border);

    transition: all 1.2s;
}

.project-nav-card .border-top
{
    border-top: 2px solid var(--clr-border);
    transition: all 1.2s;
    
}

.project-nav-card:hover
{
    --clr-border: var(--clr-green);
}

/*#endregion HOMEPAGE PROJECT CARD */

/*#region PROJECT CARD */

.project-card{
    display: flex;
    border: solid 2px var(--clr-grey);
    width: 100%;
}

.project-card>img:first-of-type{
    width: 45%;
    object-fit: cover; 
    border-right: solid 2px var(--clr-grey);
}

.project-card-info{
    width: 55%;
    display: flex;
    flex-direction: column;
}

.project-card-heading{
    
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--clr-grey);
}

.project-card-body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}


.project-card-body p{
    
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
}

/*#endregion PROJECT CARD */

/*#endregion CARDS */


/*#region BUTTONS */

.btn-explore
{
    text-decoration: none;
    color: var(--clr-light);
    display: inline-block;
    position: relative;
    width: 100%;
}

.btn-explore::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 100%;
    bottom: 0;
    left: 0;
    background-color: var(--clr-green);
    transform-origin: top right;
    transition: transform 0.4s ease-out;
    z-index: -1;
}

.btn-explore:hover:after{
    transform: scaleX(1);
    transform-origin: top left;
}

.btn-explore a
{
    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
    font-size: var(--text-md);
    font-weight: 400;
    text-decoration: none;
}

.btn-explore .flex
{
    gap: 1rem;
    color: var(--clr-white);
    font-family: 'Lato', arial, sans-serif;
    font-size: var(--text-md);
    font-weight: 400;
}

.btn-explore.bordered
{
    border: 2px solid var(--clr-grey);
    transition: all 1.2s;
}

.btn-explore.bordered:hover
{
    border: 2px solid var(--clr-green);
}

.btn-secondary
{
    font-size: 1.2rem;
    color: var(--clr-white);
    padding: 1rem 2.4rem;
    border: 2px solid var(--clr-green);

    transition: background-color 0.5s;
}

.btn-secondary:hover
{
    background-color: var(--clr-green);
}

/*#endregion BUTTONS */


/*#region UTILITY */

.bg-grey{
    background-color: var(--clr-grey);
}

.grid{
    display: grid;
}

.grid-cols-3
{
    grid-template-columns: repeat(3 , 1fr);
}

.flex{
    display: flex;
}

.flex-col
{
    flex-direction: column;
}

.flex-container
{
    display: flex;
}

.base-margin
{
    margin: 0 var(--gutter-lg);
}

.base-padding
{
    padding: 0 var(--gutter-lg);
}

.gap-1
{
    gap: 1rem;
}

.gap-2
{
    gap: 2rem;
}

.gap-3
{
    gap: 3rem;
}

.p-1
{
    padding: 1rem;
}

.px-1
{
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1
{
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.p-2
{
    padding: 2rem;
}

.px-2
{
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2
{
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.my-auto
{
    margin-top: auto;
    margin-bottom: auto;
}

.my-1
{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-2
{
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.border-x
{
    border-left: 2px solid var(--clr-grey);
    border-right: 2px solid var(--clr-grey);
}

.border-y
{
    border-top: 2px solid var(--clr-grey);
    border-bottom: 2px solid var(--clr-grey);
}

.border-top
{
    border-top: 2px solid var(--clr-grey);
}

.text-light
{
    color: var(--clr-light);
}

.col-25
{
    width: 25%;
}

.col-50
{
    width: 50%;
}

.col-75
{
    width: 75%;
}

.col-100
{
    width: 100%;
}

.valign-centre
{
    align-items: center;
}

.valign-bottom
{
    align-items: end;
}

.valign-space-between
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-centre
{
    text-align: center;
}

.text-left
{
    text-align: left;
}

.text-right
{
    text-align: right;
}

.justify-content-right
{
    justify-content: right;
}

.justify-content-centre
{
    justify-content: center;
}

.justify-space-between
{
    justify-content: space-between;
}

.capitalize
{
    text-transform: capitalize;
}

/*#endregion UTILITY */


/*#region FLICKITY CAROUSEL */

.gallery-cell{
    margin: 0 1rem;
    object-fit: contain;
}

.gallery-cell img{
    max-height: 640px;
}

.flickity-page-dots {
    bottom: -22px;
}

.flickity-page-dots .dot {
    height: 4px;
    width: 40px;
    margin: 0;
    border-radius: 0;
}

.flickity-button {
    background: transparent;
}

.flickity-prev-next-button {
    width: 16rem;
    height: calc(100% + 2px);
    border-radius: 0;
    padding: 0;
}

.flickity-button-icon {
    max-height: 4rem;
    fill: var(--clr-light);
    transition: fill 400ms ease-in-out;
}

.flickity-button-icon:hover{
    fill: var(--clr-white);
}

/*#endregion FLICKITY CAROUSEL */


/*#region GALLERY MODAL */

#modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 1rem 0;
    
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-base);  
}
  
.modal-content {
    position: relative;
    
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    object-fit: contain;
}

#modal-image{
    background-color: transparent;

    width: 100%;
    height: 85vh;
    object-fit: contain;

    border: 2px solid var(--clr-grey);
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

#modal-info
{
    background-color: var(--clr-base);
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: 2px solid var(--clr-grey);
    box-sizing: border-box;
}

.modal-btn
{
    padding: 1.4rem 2.2rem;
    border-right: 2px solid var(--clr-grey);

    transition: background-color 0.5s;
}

.modal-btn:hover,
.modal-btn:focus
{
    background-color: var(--clr-grey);
    cursor: pointer;
}

.modal-btn img
{
    height: 2.4rem;
}

#modal-info .modal-btn:last-of-type
{
    transform: scale(-1); 
}
  
.close {
    width: 1.4rem;
    background-color: var(--clr-grey);
    position: absolute;
    padding: 0.75rem;
    top: -3px;
    right: -3px;
    border: 3px solid var(--clr-base);
    z-index: 4;
}
  
.close:hover,
.close:focus {
    cursor: pointer;
}

.loader {
    position: absolute;
    top: 40%;
    left: calc(50% - 32px);

    border: 8px solid var(--clr-grey);
    border-radius: 50%;
    border-top: 8px solid var(--clr-base);
    width: 64px;
    height: 64px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    z-index: 2;
}
  
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*#endregion GALLERY MODAL */

/*#region PROJECT PAGES */

.keyword-list
{
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.6rem 0;
    gap: 1rem;
}

.keyword-list li
{
    display: flex;
    align-items: center;
    border: 2px solid var(--clr-grey);
    border-radius: 2rem;
    padding: 0.6rem 1.4rem 0.8rem;
    text-transform: capitalize;
    font-size: calc(var(--text-md) * 0.75);
    font-weight: 300;
}

.project-date
{
    text-transform: uppercase;
    color: var(--clr-light);
    display: flex;
    align-items: end;
    margin-bottom: 0.4rem;
}

.section-nav{
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.section-nav li
{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid 2px var(--clr-grey);
    border-right: solid 2px var(--clr-grey);
}

.section-nav li:first-child
{
    border-left: solid 2px var(--clr-grey);
}

.section-nav a
{
    flex: 1;
    text-decoration: none;
    text-align: center;
    font-size: var(--text-md);
    text-transform: capitalize;
    color: var(--clr-light);
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.4rem;

    transition: all 0.5s;
}

.section-nav a:hover
{
    color: var(--clr-white);
    background-color: var(--clr-green);
}

.switch {
    position: relative;
    display: inline-block;
    width: 3.6rem;
    height: 2rem;
}
  
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr-grey);
    -webkit-transition: .4s;
    transition: .4s;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 1.6rem;
    width: 1.6rem;
    left: 0.2rem;
    bottom: 0.2rem;
    background-color: var(--clr-white);
    -webkit-transition: .4s;
    transition: .4s;
}
  
input:checked + .slider {
    background-color: var(--clr-green);
}
  
input:checked + .slider:before {
    -webkit-transform: translateX(1.6rem);
    -ms-transform: translateX(1.6rem);
    transform: translateX(1.6rem);
}

/*#endregion PROJECT PAGES */

@media(min-width:2100px){

    html
    {
        font-size: 22px;
    }
}

@media(max-width:1540px){

    html
    {
        font-size: 16px;
    }

    .base-margin
    {
        margin: 0 var(--gutter-md);
    }

    .base-padding
    {
        padding: 0 var(--gutter-md);
    }

    header{
        margin: 0 var(--gutter-md);
    }
}

@media(max-width:1200px){

    html
    {
        font-size: 14px;
        --gutter: 6rem;
    }

    header
    {
        flex-direction: column;
        margin: 0;
        width: 100%;
        position: fixed;
        left: 0; 
        z-index: 5;
    }

    #nav-buffer
    {
        height: 7rem;
    }

    .nav-first{
        width:auto;
        max-width: 100vw;
        padding: 2rem var(--gutter);
        z-index: 10;
        background-color: var(--clr-base);
    }

    .primary-navigation{
        width: 100%;
        padding: 3rem var(--gutter);
        justify-content: left;
        position: absolute;
        top: 6rem;
        left: 0;
        transform: translateY(-100%);
        transition: transform 500ms ease-in-out;
    }

    .primary-navigation[data-visible="true"]{
        transform: translateY(0%);    
    }

    #nav-link-1, #nav-link-2, #nav-link-3, #nav-link-4{
        opacity: 0;
    }

    #nav-link-1{
        transition: opacity 600ms ease-out 400ms;
    }

    #nav-link-2{
        transition: opacity 600ms ease-out 500ms;
    }

    #nav-link-3{
        transition: opacity 600ms ease-out 600ms;
    }

    #nav-link-4{
        transition: opacity 600ms ease-out 700ms;
    }

    .primary-navigation[data-visible="true"] #nav-link-1,
    .primary-navigation[data-visible="true"] #nav-link-2,
    .primary-navigation[data-visible="true"] #nav-link-3,
    .primary-navigation[data-visible="true"] #nav-link-4{
        opacity: 1;    
    }

    .nav-dropdown{
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown-btn {
        padding: 0px;
        margin: 0px;
        display: flex;
        gap: 0.4rem;
        align-items: center;
    }

    .nav-dropdown-btn svg{
        display: none;
    }

    .nav-dropdown-btn img{
        display: block;
        height: var(--text-md);
        margin-left: 0.6rem;
        transform: rotate(90deg);
        transition: transform 600ms ease-in-out;
    }

    .nav-dropdown-btn[data-state="opened"] img{
        transform: rotate(270deg);
    }

    .nav-dropdown-content{
        display: flex;
        overflow: hidden;
        gap: 1rem;
        position: relative;
        padding: 0;
        margin: 0;
        box-shadow: none;
        max-height: 0;
        transition: all 600ms ease-in-out;
    }

    .nav-dropdown-content[data-visible="true"]{
        max-height: 500px;
        margin-top: 2rem;
    }

    #dropdown-link-1, #dropdown-link-2, #dropdown-link-3{
        opacity: 0;
        transition: opacity 600ms ease-out 0ms;
    }

    .nav-dropdown-content[data-visible="true"] #dropdown-link-1{
        transition: opacity 600ms ease-out 100ms;
        opacity: 1;
    }

    .nav-dropdown-content[data-visible="true"] #dropdown-link-2{
        transition: opacity 600ms ease-out 200ms;
        opacity: 1;
    }

    .nav-dropdown-content[data-visible="true"] #dropdown-link-3{
        transition: opacity 600ms ease-out 300ms;
        opacity: 1;
    }

    .nav-toggle
    {
        display: block;
        width: 4rem;
        height: 4rem;
        padding: 0;
        background-color: transparent;  
        /*background-image: url("media/SVG/hamburger_1.svg");
        background-repeat: no-repeat;
        background-position: center;*/
        
        border: 0;
    }

    nav ul{
        flex-direction: column;
        font-size: 3.2rem;
        align-items: baseline;
    }

    nav ul li{
        display: flex;
        padding: 1rem;
    }

    .base-margin
    {
        margin: 0 var(--gutter-sm);
    }

    .base-padding
    {
        padding: 0 var(--gutter-sm);
    }

    .grid-cols-3
    {
        grid-template-columns: repeat(auto-fit , minmax(280px, 1fr));
    }

    .flex-container
    {
        flex-direction: column;
    }

    .collection-card .overlay
    {
        background: rgba(10, 10, 10, 0.75);
        backdrop-filter: none;       
    }

    .collection-card:hover .overlay {
        opacity: 1;
    }

    #modal-image{
        height: 80vh;
    }

}

@media (max-width: 800px){

    .modal-content{
        top: 8rem;
    }

    #modal-image{
        height: 65vh;
    }

    .flickity-button{
        display: none;
    }

    .project-card{
        flex-direction: column;
    }

    .project-card>img:first-of-type{
        width: 100%;
        border-right: none;
    }

    .project-card-info{
        width: 100%;
    }

    .section-nav{
        flex-direction: column;
    }

    .section-nav li{
        border-left: solid 2px var(--clr-grey);
        width: 100%;
    }

}

@media (max-width: 576px){
    html
    {
        font-size: 10px;
        --gutter: 1.8rem;
    }

    .base-margin
    {
        margin: 0 var(--gutter-xs);
    }

    .base-padding
    {
        padding: 0 var(--gutter-xs);
    }

    h1
    {
        font-size: var(--text-xl);
    }

    footer>div:first-of-type{
        flex-direction: column;
    }

    footer .text-right
    {
        text-align: left;
    }

    footer .justify-content-right
    {
        justify-content: left;
    }

}


