html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

#typewriter-text {
    white-space: nowrap;
    border-right: 2px solid;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 750ms step-end infinite;
}

/* Keyframes for typing effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Keyframes for cursor blink */
@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #F6C17B;
    }
}

/* To control the erasing animation */
.erasing {
    animation: erasing 2s steps(30, end) forwards;
}

@keyframes erasing {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

@font-face {
    font-family: 'Nohemi';
    src: url('Nohemi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nohemi';
    src: url('Nohemi-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nohemi';
    src: url('Nohemi-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.fresko-title {
    font-family: 'Nohemi', sans-serif;
    color: #19004E;
    font-weight: 700;
}

.header-button {
    border: 2px solid #D0D5DD;
    color: #19004E;
}

.header-button-inv {
    background: #070015;
    color: #FFFFFF;
}

.fresko-quad {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.circle {
    position: absolute;
    width: 50px;
    height: 50px;
    overflow: hidden;
    transition: transform 0.2s ease-out;
}

.circleB {
    position: absolute;
    width: 40px;
    height: 40px;
    overflow: hidden;
    transition: transform 0.2s ease-out;
}

.trapezium-top {
    width: 500px;
    height: 380px;
    background: linear-gradient(180deg, rgba(242, 244, 247, 0.3) 29.83%, #EDD3F8 98.09%);
    clip-path: polygon(0% 0%, 100% 0%, 65% 100%, 35% 100%);
}

.trapezium-bottom {
    width: 500px;
    height: 380px;
    background: linear-gradient(0deg, rgba(242, 244, 247, 0.3) 29.83%, #FFECB9 98.09%);
    clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
}

.feature-item {
    max-width: 32rem;
    transition: border-color 0.3s ease;
}

.media-container {
    width: 28rem;
    height: 28rem;
}

.media-container img, .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

video {
    pointer-events: none;
    user-select: none;
    touch-action: none;
}

.carousel-track {
    overflow: hidden;
    width: 100%;
}

.carousel-content {
    animation: scroll 10s linear alternate infinite;
}

.carousel-content img {
    flex-shrink: 0;
    width: auto;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {

    .carousel-content {
        animation: scroll 5s linear alternate infinite;
    }

    .trapezium-top {
        width: 250px;
        height: 200px;
    }

    .trapezium-bottom {
        width: 250px;
        height: 200px;
    }

    .circle {
        width: 20px;
        height: 20px;
    }

    .circleB {
        width: 30px;
        height: 30px;
    }

    .media-container {
        width: 14rem;
        height: 14rem;
    }
}

@media (max-width: 1024px) {
    .media-container {
        width: 20rem;
        height: 20rem;
    }
}

/* for iPad Mini */
@media (min-width: 768px) and (max-width: 834px) and (-webkit-min-device-pixel-ratio: 2),
(min-width: 768px) and (max-width: 834px) and (min-resolution: 192dpi) {
    .media-container {
        width: 20rem;
        height: 20rem;
    }
}

/* Loader visibility and positioning */
.loader {
    border: 4px solid transparent;
    border-top: 4px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.button-text {
    display: inline-block;
}

/* Hide text when loader is active */
button.loading .button-text {
    display: none;
}

/* Show loader when active */
button.loading .loader {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Disable cursor for button */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Musician */
[xType="musician"] {
    width: 60px;
    height: 60px;
}

@media (min-width: 768px) {
    [xType="musician"] {
        width: 74px;
        height: 74px;
    }
}

@media (min-width: 1024px) {
    [xType="musician"] {
        width: 93px;
        height: 93px;
    }
}

@media (min-width: 1280px) {
    [xType="musician"] {
        width: 113px;
        height: 113px;
    }
}

/* Influencer */
[xType="influencer"] {
    width: 52px;
    height: 107px;
}

@media (min-width: 768px) {
    [xType="influencer"] {
        width: 66px;
        height: 134px;
    }
}

@media (min-width: 1024px) {
    [xType="influencer"] {
        width: 82px;
        height: 167px;
    }
}

@media (min-width: 1280px) {
    [xType="influencer"] {
        width: 113px;
        height: 231px;
    }
}

/* Digital Creator */
[xType="digital-creator"] {
    width: 80px;
    height: 65px;
}

@media (min-width: 768px) {
    [xType="digital-creator"] {
        width: 110px;
        height: 90px;
    }
}

@media (min-width: 1024px) {
    [xType="digital-creator"] {
        width: 137px;
        height: 90px;
    }
}

@media (min-width: 1280px) {
    [xType="digital-creator"] {
        width: 171px;
        height: 113px;
    }
}

/* Publisher */
[xType="publisher"] {
    width: 64px;
    height: 91px;
}

@media (min-width: 768px) {
    [xType="publisher"] {
        width: 80px;
        height: 114px;
    }
}

@media (min-width: 1024px) {
    [xType="publisher"] {
        width: 100px;
        height: 143px;
    }
}

@media (min-width: 1280px) {
    [xType="publisher"] {
        width: 125px;
        height: 179px;
    }
}

/* Fashion */
[xType="fashion"] {
    width: 75px;
    height: 72px;
}

@media (min-width: 768px) {
    [xType="fashion"] {
        width: 94px;
        height: 91px;
    }
}

@media (min-width: 1024px) {
    [xType="fashion"] {
        width: 118px;
        height: 114px;
    }
}

@media (min-width: 1280px) {
    [xType="fashion"] {
        width: 147px;
        height: 143px;
    }
}

/* Fitness */
[xType="fitness"] {
    width: 60px;
    height: 64px;
}

@media (min-width: 768px) {
    [xType="fitness"] {
        width: 75px;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    [xType="fitness"] {
        width: 94px;
        height: 100px;
    }
}

@media (min-width: 1280px) {
    [xType="fitness"] {
        width: 118px;
        height: 125px;
    }
}

/* Coach */
[xType="coach"] {
    width: 98px;
    height: 70px;
}

@media (min-width: 768px) {
    [xType="coach"] {
        width: 122px;
        height: 88px;
    }
}

@media (min-width: 1024px) {
    [xType="coach"] {
        width: 152px;
        height: 110px;
    }
}

@media (min-width: 1280px) {
    [xType="coach"] {
        width: 190px;
        height: 137px;
    }
}

/* Artist */
[xType="artist"] {
    width: 60px;
    height: 60px;
}

@media (min-width: 768px) {
    [xType="artist"] {
        width: 75px;
        height: 75px;
    }
}

@media (min-width: 1024px) {
    [xType="artist"] {
        width: 94px;
        height: 94px;
    }
}

@media (min-width: 1280px) {
    [xType="artist"] {
        width: 118px;
        height: 118px;
    }
}

/* Photographer */
[xType="photographer"] {
    width: 60px;
    height: 46px;
}

@media (min-width: 768px) {
    [xType="photographer"] {
        width: 75px;
        height: 58px;
    }
}

@media (min-width: 1024px) {
    [xType="photographer"] {
        width: 94px;
        height: 73px;
    }
}

@media (min-width: 1280px) {
    [xType="photographer"] {
        width: 117px;
        height: 91px;
    }
}

#blocks-list {
    height: calc(100vh - 64px);
}

#scroll-section::-webkit-scrollbar {
    display: none;
}

#fixed-content {
    position: sticky;
    top: 10%;
    align-self: flex-start;
}

@media (max-width: 768px) {
    #blocks-list {
        height: auto; /* Allow natural height on mobile */
    }

    #scroll-section::-webkit-scrollbar {
        display: block; /* Show scrollbar if necessary */
    }

    #fixed-content {
        position: static; /* Normal flow positioning */
        top: auto; /* Remove sticky offset */
        align-self: auto; /* Reset alignment */
    }
}
