/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #DCA06D 0%, #A55B4B 100%);
    min-height: 100vh;
    color: #210F37;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #210F37;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header p {
    color: #4F1C51;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    color: #A55B4B;
    font-size: 1rem;
    margin-top: auto;
}

main {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}

.view {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    max-width: 100vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #A55B4B #DCA06D;
        scroll-behavior: smooth;

}
.view::-webkit-scrollbar {
    height: 10px;
    background: #DCA06D;
}
.view::-webkit-scrollbar-thumb {
    background: #A55B4B;
    border-radius: 5px;
}

.block {
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, #DCA06D 0%, #A55B4B 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(33, 15, 55, 0.10), 0 1.5px 6px 0 rgba(33, 15, 55, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    scroll-snap-align: start;
    margin-right: 0;
    margin-left: 0;
}

.block.in-view {
    animation: appear-x 1s cubic-bezier(.4,2,.6,1) both;
}

@keyframes appear-x {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.block i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #DCA06D;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #210F37 0%, #4F1C51 100%);
    box-shadow: 0 2px 8px rgba(33, 15, 55, 0.10);
    transition: background 0.3s;
}

.block span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #210F37;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.block:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(33, 15, 55, 0.18), 0 3px 12px 0 rgba(33, 15, 55, 0.12);
}

.block:hover i {
    background: linear-gradient(135deg, #4F1C51 0%, #210F37 100%);
}

/* Unique block backgrounds for variety using the new palette */
.block-1 i { background: linear-gradient(135deg, #210F37 0%, #4F1C51 100%);}
.block-2 i { background: linear-gradient(135deg, #4F1C51 0%, #A55B4B 100%);}
.block-3 i { background: linear-gradient(135deg, #A55B4B 0%, #DCA06D 100%);}
.block-4 i { background: linear-gradient(135deg, #DCA06D 0%, #210F37 100%);}
.block-5 i { background: linear-gradient(135deg, #4F1C51 0%, #DCA06D 100%);}
.block-6 i { background: linear-gradient(135deg, #210F37 0%, #A55B4B 100%);}
.block-7 i { background: linear-gradient(135deg, #A55B4B 0%, #4F1C51 100%);}
.block-8 i { background: linear-gradient(135deg, #DCA06D 0%, #A55B4B 100%);}
.block-9 i { background: linear-gradient(135deg, #4F1C51 0%, #210F37 100%);}
.block-10 i { background: linear-gradient(135deg, #210F37 0%, #DCA06D 100%);}

/* Responsive adjustments */
@media (max-width: 900px) {
    .block {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
    .view {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    .block {
        flex: 0 0 90vw;
        width: 90vw;
        height: 90vw;
        max-width: 350px;
        max-height: 350px;
    }
    .view {
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
}