
/* 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, #18230F 0%, #1F7D53 100%);
    min-height: 100vh;
    color: #FFF8F3; 
    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: #FF9800; 
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(255, 152, 0, 0.10);
}

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

footer {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    color: #FFB74D; 
    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: #1F7D53 #18230F;
    scroll-behavior: smooth;
}
.view::-webkit-scrollbar {
    height: 10px;
    background: #18230F;
}
.view::-webkit-scrollbar-thumb {
    background: #1F7D53;
    border-radius: 5px;
}

.block {
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, #18230F 0%, #1F7D53 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(24, 35, 15, 0.10), 0 1.5px 6px 0 rgba(24, 35, 15, 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: #FF9800; 
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #27391C 0%, #255F38 100%);
    box-shadow: 0 2px 8px rgba(24, 35, 15, 0.10);
    transition: background 0.3s, color 0.3s;
}

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

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

.block:hover i {
    background: linear-gradient(135deg, #255F38 0%, #18230F 100%);
    color: #FFD59E; 
}

.block-1 i { background: linear-gradient(135deg, #18230F 0%, #27391C 100%);}
.block-2 i { background: linear-gradient(135deg, #27391C 0%, #1F7D53 100%);}
.block-3 i { background: linear-gradient(135deg, #1F7D53 0%, #255F38 100%);}
.block-4 i { background: linear-gradient(135deg, #255F38 0%, #18230F 100%);}
.block-5 i { background: linear-gradient(135deg, #27391C 0%, #255F38 100%);}
.block-6 i { background: linear-gradient(135deg, #18230F 0%, #1F7D53 100%);}
.block-7 i { background: linear-gradient(135deg, #1F7D53 0%, #27391C 100%);}
.block-8 i { background: linear-gradient(135deg, #255F38 0%, #1F7D53 100%);}
.block-9 i { background: linear-gradient(135deg, #27391C 0%, #18230F 100%);}
.block-10 i { background: linear-gradient(135deg, #18230F 0%, #255F38 100%);}

@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;
    }
}
