html, body {
    height: 100%;
}

body {
    font-family: 'Jost', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #060606;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page_wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease-in-out;   
}

.page_wrapper.visible {
    opacity: 1;
} 

.page {
    height: min-content;
    flex-direction: column;
    display: flex;
    margin-top: 60px;
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    width: 80%;
    max-width: 1700px;
    align-self: center;
}



a {
    text-decoration: none;
    color: white;
}

button {
    margin-left: 20px;
    padding: 5px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    max-height: 35px;
}

button:hover {
    background-color: rgba(119, 119, 119, 0.8);
}

.navbar {
    display: flex;
    justify-content: center;
    background: #131313;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 64px;
}

.navmenu{
    width: calc(96% - 10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;  
}


.logo {
    display: flex;
    font-size: clamp(14px, 2vw, 16px);
}

.logo a:hover{
    color: #918e8e;
}

.nav-links {
    display: flex;
    gap: 40px;
    color: #ddd;
    font-size: clamp(14px, 2vw, 16px);
    text-decoration: none;
    transition: background 0.3s;
}

.nav-item {
    position: relative;
}

.nav-links a:hover {
    color: #918e8e;
}

.dropdown {
    display: none;
 position: absolute;
  background: #131313;
  top: 100%;
  left: -49px;
  min-width: 150px;
  top: 20px;
}

.dropdown a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
}



/* .dropdown a:hover {
    background: #555;
} */

.nav-item:hover .dropdown {
    display: block;
}  

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #bdbdbd;
    user-select: none;
}
.sidebar {
    position: fixed;
    top: 64px;
    width: 100%;
    height: auto;
    background: #222;
    display: none;
    flex-direction: column;
    z-index: 999;
    user-select: none;
}

.sidebar a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

.sidebar a:hover {
    background: #444;
}
#menu-toggle:checked ~ .sidebar {
    display: flex;
}

@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: flex;
        height: 24px;
        align-items: center;
    }
}





.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    margin-top: 68px;
}

.column {
    flex: 30%;
    max-width: 33%;
    padding: 0 4px;
}

.column img {
    margin-top: 8px;
    width: 100%;
}

@media screen and (max-width: 800px) {
    .column {
        flex: 45%;
        max-width: 50%;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }
}


.works_nav {
    position: relative;
    top: 95px;
    display: flex;
    gap: 30px;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(12px, 3vw, 16px);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */

}

.works_nav a:hover {
    opacity: 0.8;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 103px;
    transition: all 0.3s ease 0s;
}

.gallery-item {
   /* background: white; */
  /*  padding: 10px;
   /* border-radius: 8px; */
    padding-bottom: 20px; 
    max-height: 2;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 21/9; 
    object-fit: cover;
}
.gallery-item .info {
    margin-top: 10px;
}
.gallery-item h3 {
    font-size: 16px;
    margin: 0px 0;
    text-align: left;
    font-size: 14px;
    color: #bdbdbd;
}
.gallery-item p {
    font-size: 14px;
    /*! color: white; */
    margin: 2px 0;
    text-align: left;
    font-size: 14px;
    color: #686868;
}
.gallery-item img:hover {
   /* opacity: 0.8; */
    cursor: pointer;
    transform: scale(0.98);
    animation: ease-in-out 0.2s;
}  

@media (max-width: 1280px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
    }
} 

@media (max-width: 600px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
} 


.info {
    text-align: left;
}

.gal-info {
    text-align: left;
    color: #bdbdbd;
    font-size: 15px;
    /* padding-left: 30px; */
}

.gal-info h3{
    margin-top: 15px;
    margin-bottom:5px;
}

.gal-info p {
    margin-top: 1px;
    margin-bottom: 1px;
    color: #686868;
    font-size: 14px;
}
.grid_link:hover {
    opacity: 0.8;
}


.vimeo
{
    position: relative;
    background-color: black;
}
.video iframe
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (min-width: 992px)
{
.video iframe
  {
    width: 50%;
  }
}


/* .home_slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slide 25s infinite;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

@keyframes slide {
0% { opacity: 0; }
5% { opacity: 1; }
25% { opacity: 1; }
30% { opacity: 0; }
100% { opacity: 0; }
} */

.home_slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none; /* disable clicks on hidden slides */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
    pointer-events: auto; /* enable clicks on visible slide */
}



.description {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}



footer {
    /*! background-color: #000; */
    color: #b7b7b7;
    text-align: center;
    margin: 0 auto;
    font-size: 14px;
    padding-bottom: 10px;
}

footer h1 {
    margin: 0 0 2px;
    font-size: 22px;
}

footer p {
    margin: 0;
}

footer img {
    max-height: 25px;
}

footer img:hover {
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    text-align: center;
}

.footer-links li {
    display: inline;
    margin: 0 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #918e8e;
}


.rights {
    margin-top: 5px;
    font-size: 12px;
}




.about {
    margin-top: 60px;
    font-size: 16px; 
    color: #bdbdbd;  
}
.about p {
    font-size: clamp(16px, 2vw, 19px);
    margin-bottom: 10px;
}
.about h4 {
    font-size: 42px;
    margin-bottom: 25px;
}
.profile-image {
    display: block;
    max-width: 300px;
    margin: 20px auto;
}
.contact-section {
    color: #bdbdbd;
    font-size: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    margin-bottom: 20px;
    justify-items: center;
}

.contact-column {
    padding: 15px;
    border-radius: 8px;
    text-align: center; 
}

.contact-column h3 {
    margin-bottom: 0px;
}

.contact-column h2 {
    font-weight: normal;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 0px;
}

.contact-column a {
    display: block;
    text-decoration: none;
    color: #bdbdbd;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .contact-section {
        grid-template-columns: 1fr;
        margin-bottom: 15px;
    }
}




.car-container {
    position: relative;
    overflow: hidden;
    margin: 20px -5px 40px;
    z-index: 2;
}
.car {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    transition: all 0.3s ease;
}
.car::-webkit-scrollbar {
    display: none;
}

.car_item {
    color: #b7b7b7;


}

.car_item p{
    margin-top: -3px;
    margin-bottom: 0px;
    margin-left: 5px;
    text-align: left;
    font-size: 14px;
}





.car img {
    scroll-snap-align: start;
    object-fit: cover;
    padding-left: 5px;
    height: 130px;
    width: 250px;
}
.car a:hover {
    opacity: 0.8;
}
.car-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0, 136, 169, 0);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
}
.car-button:hover {
    background-color: rgba(0, 136, 169, 0);
}
.prev {
    left: 10px;
    margin-left: 0px;
}
.next {
    right: 10px;
}




.gallery_toggle {
    margin-top: 8px;
    color: #bdbdbd;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.arrow.rotate {
    transform: rotate(90deg);
}

.gallery_wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.gallery_wrapper.open {
    padding-top: 0px;
    padding-bottom: 30px;
    max-height: 1000px; /* enough to fit full content */
}

@media screen and (max-width: 600px) {
    .gallery_wrapper.open {
        max-height: 3000px;
    }
}

.stills_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 5px;
    width: 100%;
}

.stills_gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.stills_gallery img:hover {
    opacity: 0.8;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay img {
    width: 90vw;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.close-btn,
.nav-btn {
    position: absolute;
    font-size: 40px;
    color: #bdbdbd;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.close-btn {
    top: 20px;
    right: 30px;
}

.nav-btn.left {
    left: 30px;
}

.nav-btn.right {
    right: 30px;
}

.nav-btn {
    top: 50%;
    transform: translateY(-50%);
}

@media screen and (max-width: 600px) {
.nav-btn {
display: none;
}
}


.spinner {
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 1001;
    transform: translate(-50%, -50%);
    display: none;
    font-size: 48px;
    color: #bdbdbd;
}

.spinner_icon {
  font-size: 48px;
  animation: spin 1s linear infinite;
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}





.homepage {
    padding-top: 60px;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.homepage.visible {
    opacity: 1;
}  

.homepage_half {
    display: grid;
    grid-template-columns: 1fr 1fr; 
}

.homepage_third {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
}

.homepage_item {
    position: relative; 
}


.homepage_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.two_six_six {
    aspect-ratio: 2.66/1;
}

.academy {
    aspect-ratio: 1.37/1;
}

.scope{
    aspect-ratio: 2.39/1;
}


.homepage_info {
    color: #bdbdbd;
    position: absolute;
    z-index: 1;
    width: 100%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease; 
    pointer-events: none; 
    font-size: 14pt;
}

.homepage_item:hover img{
    opacity: 0.6;
}

.homepage_link:hover .homepage_info{
    opacity: 1;
}

@media screen and (max-width: 650px) {
    .homepage_half{
        grid-template-columns: 1fr; 
    }
}




.contact_form input {
    width: 99%;
    background-color: #060606;
    font-size: 16px;
    font-family: jost;
    border-width: 1px;
    border-style: solid;
    color: #bdbdbd;
}

input:-webkit-autofill {
    background-color: #060606 !important;
    color: #bdbdbd !important;
    -webkit-box-shadow: 0 0 0px 1000px black inset !important;
    -webkit-text-fill-color: #bdbdbd !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact_form input:focus {
    width: 99%;
    background-color: #060606;
    font-size: 16px;
    font-family: jost;
    border-width: 1px;
    border-style: solid;
    color: #bdbdbd;
    border-radius: none;
}


.contact_form textarea {
    width: 99%;
    height: 160px;
    background-color: #060606;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: jost;
    border-width: 1px;
    border-style: solid;
    color: #bdbdbd;
}

.contact_form button {
    width: 100%;
    color: #bdbdbd;
    background-color: #060606;
    border-radius: 3px;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 20px;
}

.contact_form button:hover {
    opacity: 0.8;
}

.contact_form p{
    margin-bottom: 5px;
    margin-left: 0.25%;
}

.contact_form button{
    margin: 0;
    font-size: 24px;
    margin-top: 20px; 
}

.contact_form{
    margin-bottom: 5vh;
}

canvas.wipe-canvas {
    display: block;
    width: 100%;       
    height: auto;       
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    background-size: cover;
    background-position: center;
}

