/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    overflow: hidden;
    background-color: black;
    font-weight: normal;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    width: 130px;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
}

/* Hamburger menu */
.menu-toggle {
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: transparent;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    list-style: none;
}

.main-nav ul li {
    margin-bottom: 10px;
    float: right;
    clear: both;
}

.main-nav ul li a {
    display: block;
    color: white;
    background-color: black;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    padding: 0px 15px;
    border-radius: 0px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: orange;
    color: white;
}

/* Slide styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s, transform 0.8s ease;
    min-height: 100%;
    min-width: 100%;
    transform: translateY(100%);
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: backgroundZoom 15s ease-in-out infinite;
}

/* Background images for each slide */
#home::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home-bg.jpg');
}

#about::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/about-bg.jpg');
}

#what-we-do::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/what-we-do-bg.jpg');
}

#contact::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/contact-bg.jpg');
}

#gallery::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home-bg.jpg');
}

#gear {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home-bg.jpg');
}

/* Gallery styles */
.gallery-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-item {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    display: block;
    border: 2px solid white;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Slide content */
.slide-content {
    text-align: left;
    color: white;
    max-width: 1080px;
    padding: 20px;
    /*margin-top: calc(100vh - 500px);*/    
}

/* Animation keyframes for slide-up effect */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation keyframes for background zoom effect */
@keyframes backgroundZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.slide-content h1 {    
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
    text-align: left;
    letter-spacing: 8px;
    font-weight: 400;
    font-size: 80px;
    text-transform: uppercase;
    padding-left: 15px;
}

.slide-content h2 {    
    margin-bottom: 1.5rem;
    color: white;
    background-color: black;
    padding: 0.5rem 1rem;
    display: inline-block;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.5s;
    letter-spacing: 2px;
    font-weight: 400;
    font-size: 30px;
    text-transform: uppercase;
}


.text-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px 10px;
    border-radius: 0px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    line-height: 1.6;    
}

.text-box p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 20px;
    z-index: 1000;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content h2 {
        font-size: 20px;
    }
    
    .text-box p {
        font-size: 16px;
    }
    
    .slide {
        width: 100vw;
        /*height: 100vh;*/
        min-height: 100vh;
        min-width: 100vw;
        max-width: 100%;
        overflow: auto;
    }
    
    .logo {
        width: 90px;
        height: auto;
    }

}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 28px;
    }
    
    .text-box {
        padding: 15px;
        width: 90%;
    }
    
    .slide {
        width: 100vw;
        /*height: 100vh;*/
        min-height: 100vh;
        min-width: 100vw;
        max-width: 100%;
        overflow: auto;
    }
    
    .gallery-row {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-item {
        width: 90%;
        max-width: 300px;
    }
}

.longe-gear {
    margin-top: 300px;
}

.longe-about {
    margin-top: 150px;
}