* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #160234;
    color: antiquewhite;
    font-family: 'Noto Sans Avestan', sans-serif;
    overflow-x: hidden;
}

#navbar-section {
    position: sticky;
    top: 0;
    background: none;
    backdrop-filter: blur(5px);
    z-index: 1009;
}

#mobile-navbar {
    display: none;
    /* Hide the mobile navbar by default */
}

nav img {
    width: 54px;
    /* Set the width of the icons */
    aspect-ratio: 1 / 1;
    /* Maintain the aspect ratio of the icons */
}

#navbar,
#mobile-navbar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    /* Center the icons horizontally */
    padding: 10px 30px;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Gotcha Gothic', sans-serif;

}


#mobile-navbar ul {
    position: absolute;
    top: 50px;
    width: 100%;
    padding: 10px 10px;

}

#hamburger {
    display: flex;
    width: 50px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.show {
    display: block
}

.hidden {
    display: none
}

.mt-10 {
    margin-top: 10px
}


.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.pad-10 {
    padding: 10px 10px;
}

.page-h1 {
    margin-top: 50px;
    margin-left: 20px;
    padding: 0px 3px;
}

small {
    opacity: 75%;
    font-style: italic;
}

.border-left {
    border-left: 2px solid #055c81;
}

#menu a,
#menu li {
    list-style: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 150px;
}

#mobile-menu {
    position: relative;
    left: 0;
    margin-top: 10px;
    width: 100%;
    background-color: #160234;
}

#mobile-menu li {
    padding: 20px 10px;
    background-color: #05194a;
    margin-bottom: 3px;
}

#mobile-menu li>a,
#menu li>a {
    text-decoration: none;
    color: aliceblue;
    cursor: pointer;
}

#hero-container {
    background-image: url(../img/hero.png);
    background-size: cover;
    width: 100%;
    height: 100vh;
    background-color: blue;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 20px;
}

#hero-content {
    position: absolute;
    margin-top: 20px;
    z-index: 1000;
    padding: 15px 15px;
    border: 1px solid #142369;
    background-color: #101940c6;
    border-radius: 8px;
    margin-left: 20px;
}

.capsule-text {
    font-size: clamp(.7rem, .8rem, 1rem);
    border: 2px solid #09407b;
    background-color: #05194a;
    color: #25b4d8;
    width: max-content;
    padding: 10px 10px;
    border-radius: 100px;
    text-align: center;
    font-family: 'Noto Sans Avestan', sans-serif;

}

.tagline {
    font-size: clamp(1.8rem, 2.5rem, 2.8rem);
    font-weight: bolder;
    background: linear-gradient(135deg, #00b3ff, #fd00d7);

    /* 2. Clip the background to the text geometry */
    -webkit-background-clip: text;
    background-clip: text;

    /* 3. Make the foreground text transparent */
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-image-container {
    margin-top: 100px;
    margin-left: 200px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    gap: clamp(-80px, -15vw, -40px);
    padding: 0 20px;

}

.hero-image {
    width: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image1 {
    margin-right: -100px;
}

.image1 img {
    width: clamp(150px, 30vw, 700px);
    height: auto;
    max-width: 100%;
    opacity: 0;
    animation: fadeSlideInRight 0.8s ease-out forwards;
}

.image2 img {
    width: clamp(150px, 35vw, 500px);
    height: auto;
    max-width: 100%;
    opacity: 0;
    animation: fadeSlideInLeft 0.8s ease-out forwards 0.3s;
}

button {
    width: max-content;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 100ms linear;
}

#ctaButton {
    position: relative;
    margin-top: -300px;
}

#ctaButton a {
    position: absolute;
    background-color: #9e6e2b;
    border: 2px solid #d3810f;
    border-radius: 100px;
    color: #ffdfb2;
    font-size: x-large;
    margin-left: 100px;
    margin-bottom: 100px;
    padding: 10px 50px;
    text-decoration: none;
}

.section {

    padding: 20px 10px;
    margin-top: 20px;
    width: 100%;
    height: 100vh;
}

#product-buttons {
    padding-top: 100px;
}

#product-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 50px 10px;
}

.link-button {
    background: linear-gradient(135deg, #1d0442, #270856);
    border: 1px solid #3b1379;
    color: #eff2f7;
    font-size: clamp(.8rem, 1rem, 1.2rem);
    text-transform: uppercase;
    padding: 20px 15px;
    width: 100%;
}

.link-button:hover {
    box-shadow: 1px 5px 20px rgba(69, 7, 254, 0.403);
}

.card-container {
    padding: 10px 20px;
}

.card-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #055c81, #7a0498);
    border: 1px solid #09407b;
    border-radius: 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card h2, .card h4 {
    padding: 10px 15px;
}

.card p {
    padding: 10px 10px;
}

.card ul {
    margin: auto;
    width: 98%;
    background-color: rgba(0, 0, 0, 0.1);
    color: aliceblue;
    text-align: start !important;
    padding: 20px 20px !important;
    height: 150px;
    border-radius: 5px;
}

.card li {
    list-style-type: square !important;
    text-align: start !important;
    margin-left: 10px;
}

.card-link-container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px;
    margin: 20px 0px;

}

.card-link {
    text-align: center;
    width: 100%;
    background-color: #05194a;
    padding: 15px 15px;
    border-radius: 8px;
    border: 2px solid #055c81;
    color: #00b3ff;
    text-transform: uppercase;
    transition: 100ms linear;
    cursor: pointer;
    text-decoration: none;
}

.card-link:hover {
    border: 2px solid #158dc1;
    color: #26baf9;
}

.build-section,
.build-container {
    padding: 20px;
}

.build-diagram {
    width: 500px;
    height: auto;

}

.build-diagram img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.build-title {
    width: 100%;
    background: linear-gradient(135deg, #055c81, #7a0498);
    padding: 10px 10px;
    border-radius: 8px;
}

.features {
    padding: 0px 20px;
}

.features-container {
    padding: 10px 30px;
}

.wrapper {
    background-color: #1b0340;
    padding: 20px 0px;
}

footer {
    text-align: center;
    width: 100%;
    height: auto;
    background-color: #0a0118;
    padding: 30px 20px;
}

footer img {
    height: 50px;
    width: auto;

}

#pisotabButton {
    position: relative;
    z-index: 1000;
}

#pisotab-popup-image {
    opacity: 0;
    position: absolute;
    width: 150px;
    height: auto;
    margin-top: -140px;
    margin-left: -20px;
    z-index: 1001;
}

#pisotab-popup-image img {
    width: 100%;
    object-fit: contain;
}

.slideUp {
    animation: slideUP 0.3s ease-out forwards;
}

.slideDown {
    animation: slideDown 0.3s ease-out forwards;
}

.software-container {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.card-link-download {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px;
}

.messenger-link {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: start;
    align-items: start;
    color: #00b3ff;
    margin-top: 20px;
    background-color: #142369;
    width: max-content;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #055c81;
}

.messenger-link:hover {
    border: 1px solid #00b3ff;
}


@keyframes slideUP {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(-20px);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(-20px);
    }

    to {
        opacity: 0;
        transform: translateY(5px);
    }
}



/* Animations */
@keyframes fadeSlideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(30px);
    }
}

@keyframes fadeSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Mobile: < 480px */
@media screen and (max-width: 479px) {
    #mobile-navbar {
        display: flex;
    }

    #navbar {
        display: none;
    }

    nav img {
        width: 44px;
    }

    #navbar,
    #mobile-navbar {
        padding: 8px 15px;
    }

    #hero-container {
        height: 80vh;
    }

    #hero-content {
        width: 95%;
        text-align: center;
        margin-left: 2.5%;
        margin-top: 15px;
        padding: 12px 12px;
    }

    .capsule-text {
        font-size: clamp(.5rem, .65rem, .8rem);
        width: 100%;
        padding: 2px 8px;
    }

    .tagline {
        font-size: clamp(.9rem, 1.5rem, 1.8rem);
        margin-top: 10px;
    }

    .hero-image-container {
        margin-top: 100px;
        padding: 0 10px;
        margin-left: 0px;
    }

    .image1 {
        margin-right: 50px;
        margin-left: -40px;
        transform: scale(1.5);
    }

    .image2 {
        margin-right: 0px;
        transform: scale(1.5);
    }

    #ctaButton {
        display: flex;
        width: 98%;
        margin-top: 50px;
    }

    #ctaButton a {
        text-align: center;
        position: relative;
        align-self: center;
        width: 100%;
        background-color: #b06c0ce0;
        border: 2px solid #c97b0d;
        border-radius: 100px;
        color: #ffdfb2;
        font-size: 1.3rem;
        margin-left: 10px;
        margin-bottom: 0px;
    }

    .build-diagram {
        width: 100%;
        height: auto;

    }

    .build-diagram img {
        width: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

    .build-video {
        width: 100%;
        height: auto;
    }

    .build-video iframe {
        width: 100%;
    }

    .video-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
}

/* Tablet: 480px - 767px */
@media screen and (min-width: 480px) and (max-width: 767px) {
    #mobile-navbar {
        display: flex;
    }

    #navbar {
        display: none;
    }

    nav img {
        width: 48px;
    }

    #navbar,
    #mobile-navbar {
        padding: 10px 20px;
    }

    #hero-container {
        height: 90vh;
    }

    #hero-content {
        width: 90%;
        text-align: center;
        margin-left: 5%;
        margin-top: 20px;
        padding: 15px 15px;
    }

    .capsule-text {
        font-size: clamp(.6rem, .75rem, .9rem);
        width: 100%;
        padding: 3px 10px;
    }

    .tagline {
        font-size: clamp(1.2rem, 1.8rem, 2.2rem);
        margin-top: 12px;
    }

    .hero-image-container {
        margin-top: 120px;
        margin-left: 0px;
    }

    .image1 {
        margin-right: 0px;
    }

}

/* Desktop: >= 768px */
@media screen and (min-width: 768px) {
    #mobile-navbar {
        display: none;
    }

    #navbar {
        display: flex;
    }

    nav img {
        width: 54px;
    }

    #navbar,
    #mobile-navbar {
        padding: 10px 30px;
    }

    #hero-container {
        height: 100vh;
    }

    #hero-content {
        margin-top: 20px;
        margin-left: 20px;
    }
}