@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;700&display=swap');

body {
    background-color: #131313;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: #eee;
    overflow-x: hidden;
}

#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    padding-left: 5px;
    padding-right: 50px;
    width: 100%;
    z-index: 1000;
}

header .logo img {
    height: 60px;
}

header nav {
    display: none; /* Hide nav by default */
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

header nav a.build-price {
    background-color: #076820;
}
.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    align-items: center;
    margin-right: 30px;
    transition: all 0.3s ease;
}

.menu-icon .bar {
    width: 40px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.menu-icon span {
    color: white;
    margin-left: 3px;
}

.menu-icon.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-icon.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.overlay-menu {
    display: none;
    position: fixed;
    top: 70px; /* Adjusted to start below the hamburger button */
    right: 0;
    padding-top: 5px;
    width: 40%; /* Adjusted to be quarter to half the screen width */
    height: calc(100% - 70px);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    z-index: 999;
}

.overlay-menu.open {
    display: block;
}

.overlay-menu-content {
    position: absolute;
    top: 3%;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
}

.overlay-menu-content a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 10px;
    opacity: 0;
    transform: translateX(100%);
    animation: slide-in 1s ease forwards;
}

.overlay-menu-content a:nth-child(1) {
    animation-delay: 0.1s;
}

.overlay-menu-content a:nth-child(2) {
    animation-delay: 0.3s;
}

.overlay-menu-content a:nth-child(3) {
    animation-delay: 0.5s;
}

.overlay-menu-content a:nth-child(4) {
    animation-delay: 0.7s;
}

.overlay-menu-content a:nth-child(5) {
    animation-delay: 0.9s;
}

.overlay-menu-content a:nth-child(6) {
    animation-delay: 0.10s;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slider {
    background-image: radial-gradient(#1e1e1e, #0d0d0d);
    overflow-x: hidden;
    height: 100vh;
}

#dCanvas {
    height: 100vh;
    cursor: grab;
}

.contentOne, .contentThree {
    position: absolute;
    height: 100%;
    width: 30%;
    top: 20%;
    right: 5%;
    padding: 50px;
    box-sizing: border-box;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.contentOne h1, .contentThree h1 {
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.contentOne .des, .contentThree .des {
    opacity: 0.6;
}

.contentOneAction .contentOne, .contentThreeAction .contentThree {
    opacity: 1;
    pointer-events: unset;
}

button#showmore {
    position: absolute;
    bottom: 10%;
    left: 50%;
    background-color: transparent;
    border: 1px solid #eee5;
    padding: 10px 20px;
    border-radius: 20px;
    color: #eee5;
    cursor: pointer;
}

.contentTwo {
    position: absolute;
    width: 70%;
    left: 15%;
    bottom: 20%;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.contentTwoAction .contentTwo {
    opacity: 1;
    pointer-events: unset;
}

.contentTwo ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.contentTwo ul li span:nth-child(1) {
    font-size: x-large;
    font-weight: bold;
    display: block;
}

.contentTwoAction ul li {
    opacity: 0;
    transform: translateY(10px);
    animation: showli 1s ease-in-out 1 forwards;
    padding-right: 30px;
}

@keyframes showli {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.contentTwo ul li:nth-child(2) {
    animation-delay: 0.3s !important;
}

.contentTwo ul li:nth-child(3) {
    animation-delay: 0.5s !important;
}

.contentTwo ul li:nth-child(4) {
    animation-delay: 0.7s !important;
}

.fullScreen .contentThree {
    opacity: 1;
    pointer-events: unset;
}
.articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #131313;
}

.article {
    display: flex;
    flex-direction: row;
    background-color: #131313;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.article img {
    width: 30%;
    border-radius: 10px;
    margin-right: 20px;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-content h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #fff;
}

.article-content p {
    margin: 0;
    color: #ddd;
    font-size: 1rem;
}

.article.in-view {
    transform: translateY(0);
    opacity: 1;
}

/* Animation on scroll */
.articles article:not(.in-view) {
    transform: translateY(50px);
    opacity: 0;
}

@media screen and (max-width: 768px) {
    #dCanvas {
        height: 40vh;
    }

    .contentOne, .contentTwo, .contentThree {
        position: relative;
        width: 90%;
        height: auto;
        opacity: 1 !important;
        text-align: center;
        padding: 10px 0 0 5%;
        top: unset;
        right: unset;
        left: unset;
        bottom: unset;
    }

    .contentOne h1, .contentThree h1 {
        font-size: large;
    }

    .contentTwo ul li span:nth-child(1) {
        font-size: medium;
    }

    .contentTwo ul {
        padding: 20px;
        box-sizing: border-box;
        gap: 20px;
    }

    .slider #showmore {
        display: none;
    }
    .articles {
        padding: 10px;
    }

    .article {
        flex-direction: column;
        align-items: center;
    }

    .article img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 1rem;
    }
}
@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 0.625rem;
    }
    
    .menu-icon {
        display: flex;
    }
    
    .overlay-menu {
        width: 70%; /* Make it wider for better access */
    }

    #dCanvas {
        height: 30vh;
    }

    .contentOne, .contentTwo, .contentThree {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .contentOne h1, .contentThree h1 {
        font-size: 1.8rem;
    }

    .contentTwo ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px;
    }

    .contentTwo ul li {
        width: 90%;
        text-align: center;
    }

    .articles {
        padding: 10px;
    }

    .article {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .article img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .article-content {
        text-align: center;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 1rem;
    }
}

