:root {
    --header-height: 6vh;
}

* {
    padding: 0;
    margin: 0;
    font-size: clamp(14px, 2vw, 20px);
}

/* Common */

.animated-gradient {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background: linear-gradient(-45deg, #0a051a, #120c33, #1a1659, #241c6e);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


@font-face {
    font-family: "JetBrainsMono";
    src: url("../fonts/JetBrainsMono.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter_variable.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

a {
    text-decoration: none;
    line-height: 0;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Inter";
}

main {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.flex-container {
    display: flex;
    gap: 10px;
}

.data-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    width: 80%;
    padding-top: 3vh;
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;   
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius:10px;
    padding: 10px;
    min-height: 10px;
}

/* Standard button */
.standard-button {
    all: unset;
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;

    border-radius: 10px;
    transition: .2s linear;
}

.standard-button:disabled {
    cursor: not-allowed; 
    opacity: 0.6; 
}

.standard-button:disabled:active {
    transform: none;
}

/* Alerts */
.custom-popup {
    width: 80vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

div.custom-content {
    overflow-y: auto;
    text-align: left;
    font-size: 12px;
}


/* Header */
header {
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
    left: 0;
    height: var(--header-height);
}

nav {
    padding: 5px 10px;
}

.nav-item {
    color: aliceblue;
    position: relative;
    padding: 5px 20px;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

.nav-item:hover::after {
    width: 100%;
    left: 0;
}

/* Footer */
footer {
    display: flex;
    align-items: center;
    padding: 50px;
    scroll-snap-align: start;
}

footer > p {
    margin-left: auto;
    margin-right: auto;
}

/* Index */

div.first-block {
    display: flex;
    justify-content: center;
    gap: 2vw;
    width: 80%;
    margin-top: 3vh;
    margin-left: auto;
    margin-right: auto;
    padding: 3vh 2vw;
}

div.first-block > div {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

div.first-block > div > p {
    font-size: clamp(14px, 20px, 35px);;
    margin: auto;
}

div.first-block > svg {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 8px #5552E8)
            drop-shadow(0 0 10px #17157a)
            drop-shadow(0 0 15px #5552E8);

}


div.about-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.about-card {font-size: clamp(14px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.mini-title {
    font-size: clamp(30px, 4vw, 60px);
    font-weight: bold;
    padding-top: calc(3vh + var(--header-height));
}

div.about-content {
    padding-top: 10px;
    max-width: 900px;
}

div.contact-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 80px;
}

div.contact-card {
    padding: 10px 20px;
    width: 50%;
    min-height: 120px;
    margin-left: auto;
    margin-right: auto;
}

div.contact-card > a {
    padding: 10px 20px;
    align-self: center;
    width: clamp(120px, 30%, 200px);
    margin-top: auto;
}
  
.bulb {
    margin: auto 10px auto 0px;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    animation: soft-blink 1.5s infinite;
}

.info {
    padding: 20px 30px;
}

/* Download */
.card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
.download-card {
    border-radius: 10px;
    width: 100%;
    height: 300px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.download-card:hover {
    transform: translateY(-10px);
}

.card-wrapper:hover .download-card:not(.flipped) {
    transform: translateY(-10px);
}

.download-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.card-back {
    transform: rotateY(180deg);
}

.card-front > img {
    margin: auto;
    display: block;
}

div.line-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

div.line-btns > span, .card-front > h2 {
    margin: auto;
}

div.line-btns > span, .card-front > h2 {
    font-size: x-large;
}

div.line-btns > span { 
    font-size: small;
}

.card-info {
    padding: 5px 0px;
}

/* Switch theme */
.theme-switch {
    margin-right: 10px;
    margin-left: auto;
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
    align-content: center;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f0f0f0;
    border: 2px solid #cccccc;
    border-radius: 34px;
    transition: all 0.4s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

input:checked + .slider {
    background: linear-gradient(#000000, #191633);
}

input:checked + .slider:before {
    transform: translateX(28px);
    background-color: #f5f5f5;
}

.slider:after {
    content: "☀️";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
}

input:checked + .slider:after {
    opacity: 0;
}

.slider:before {
    content: "🌙";
    color: #f5f5f5;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

input:checked + .slider:before {
    opacity: 1;
}

/* fade-in-up elements*/
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) {
    animation-delay: 0s;
}
.fade-in-up:nth-child(2) {
    animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
    animation-delay: 0.4s;
}

/* Carousel */
#products {
    overflow: hidden;
}

.container {
    display: flex;
    width: 100vw;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: auto;
}

.carousel {
    position: relative;
    overflow: hidden;
}


.slides {
    display: flex;
    width: 400%;
    transition: transform 0.5s ease-in-out;
}

.slide > svg {
    height: clamp(10vh, 60vh, 70vh);
}

.slide {
    width: 25%;
    text-align: center;
}

.prev, .next {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: auto;

    display: flex;            
    justify-content: center;  
    align-items: center;      
    padding: 0; 
}

.prev svg, .next svg {
    width: 20px;
    height: 20px;
}

.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #00f0ff;
}

.carousel-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* Fixing */
html body.swal2-height-auto {
    height: 100% !important;
}

@media (max-width: 1062px) {
    .carousel-container {
        display: none;
    }
}

@media (max-width: 604px) {
    div.about-card {
        padding: 15px 20px;
    }
}

@media (max-width: 604px) {
    .cards-container {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    div.first-block {
        width: 100% !important;
    }
    .first-block > svg {
        display: none;
    }
}

@media (max-width: 460px) {
    div.contact-card {
        width: 80%;
    }
}
