body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-image: url('/pictures/background.jpg');
}

header {
    background-color: transparent;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}


strong {
    font-weight: bold;
    color: #2C2C2C;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 5px;
}

h1 {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    text-align: center;
}

section {
    padding: 100px 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    color: #fff;
    font-size: 24px
}


@media (min-width: 769px) {

    .icon {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }

    nav a {
        display: inline-block;
        color: #fff;
        text-align: center;
        padding: 20px 50px;
        text-decoration: none;
        font-size: 16px;
        font-weight: bold;
        margin: 0 10px;
        transition: all 0.5s ease;
        position: relative;
    }

    nav a:hover {
        color: #fff;
    }

    nav a:before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        height: 2px;
        width: 0;
        background-color: #fff;
        transition: all 0.5s ease;
    }

    nav a:hover:before {
        width: 100%;
    }

    nav a.active:before {
        width: 100%;
    }


    .project {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin: 50px 0;
    }

    .project img {
        flex: 1;
        margin-right: 20px;
        border-radius: 10px;
    }

    .project h3 {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 10px 0;
    }

    .project p {
        flex: 2;
        margin: 0;
        font-size: 18px;
        line-height: 1.5;
    }

    .project .button {
        flex: 1;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    

body {
    margin: 0;
}

.project {
    flex-direction: column;
}

.project img {
    margin: 0 0 20px 0;
}

.project p {
    flex: none;
    margin-bottom: 20px;
}

nav .icon {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #000000;
    width: 100%; /* add width to the icon */
    height: 50px; /* add height to the icon */
    border-radius: 5; /* add border-radius to make the icon circular */
    display: flex;
    justify-content: center; /* center the content horizontally */
    align-items: center; /* center the content vertically */
}

nav {
    flex-direction: column;
    background-color: #fff;
    padding: 0;
    /* remove padding */
    position: relative; /* Add position:relative */
}

nav a {
    border-top: none;
    display: none;
    text-decoration: none;
    color: #000000;
    /* remove hyperlink formatting */
}

nav a.active {
    display: block;
}

nav a:hover {
    position: relative;
    outline: none;
}

nav a:hover::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: #000000;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

nav a:hover::before {
    width: 100%;
}

nav.responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* add this to remove padding */
}

nav.responsive a {
    display: block;
    text-align: center;
    padding: 20px 0;
}

nav.responsive a:hover::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: #000000;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

nav .menu-toggle {
    display: none;
}

nav.responsive:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    opacity: 0.9;
    z-index: -1;
}

nav.responsive a:hover::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: #000000;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}



}

.sliding-text h2,
.sliding-text p {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.sliding-text h2:nth-child(1),
.sliding-text p:nth-child(3) {
    transition-delay: 0.2s;
}

.sliding-text h2:nth-child(2),
.sliding-text p:nth-child(4) {
    transition-delay: 0.4s;
}

.sliding-text h2.active,
.sliding-text p.active {
    opacity: 1;
    transform: translateX(0);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
}

#loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}