/* ============================================
   simidiots.net - Playful Isometric Playground
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: #3D3833;
    background-color: #E8DFC8;
    overflow-x: hidden;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #3D3833;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #E8DFC8;
    line-height: 1.1;
    display: block;
}

.logo-dot {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #B8864A;
    display: block;
    margin-top: 0.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    color: #E8DFC8;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
    background-color: rgba(232, 223, 200, 0.1);
    color: #C4908A;
}

.nav-link.active {
    background-color: rgba(184, 134, 74, 0.2);
    color: #B8864A;
}

.sidebar-leaves {
    margin-top: auto;
    position: relative;
    height: 120px;
}

.sidebar-leaf {
    width: 40px;
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 20px;
}

.sidebar-leaf.leaf-2 {
    left: 50px;
    bottom: 10px;
    transform: rotate(25deg);
    width: 30px;
    height: 50px;
}

/* --- Main Content --- */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

/* --- Sections --- */
.section {
    position: relative;
    padding: 4rem 3rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    color: #3D3833;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.15rem;
    color: #6A7B8A;
    font-weight: 400;
}

/* --- Isometric Blocks --- */
.isometric-cluster {
    position: relative;
    perspective: 600px;
}

.hero-cluster {
    margin-top: 3rem;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 2;
}

.iso-block {
    width: 60px;
    height: var(--block-height, 80px);
    background-color: var(--block-color, #7A8B6A);
    position: relative;
    transform: rotateX(60deg) rotateZ(45deg);
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.iso-block::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--block-color, #7A8B6A);
    filter: brightness(1.2);
    transform: skewX(-45deg);
    transform-origin: bottom left;
}

.iso-block::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -20px;
    width: 20px;
    height: calc(100% + 10px);
    background-color: var(--block-color, #7A8B6A);
    filter: brightness(0.8);
    transform: skewY(-45deg);
    transform-origin: top left;
}

/* --- Hero Leaves --- */
.hero-leaf {
    position: absolute;
    z-index: 1;
}

.leaf-bottom-left {
    bottom: 2rem;
    left: 2rem;
    width: 80px;
    height: 120px;
}

.leaf-bottom-right {
    bottom: 3rem;
    right: 4rem;
    width: 60px;
    height: 100px;
    transform: rotate(30deg);
}

/* --- Skeleton Loading --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 4rem 3rem;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.reveal-section.revealed .skeleton-loader {
    opacity: 0;
}

.skeleton-block {
    width: 60px;
    height: 80px;
    background: linear-gradient(90deg, #E8DFC8 25%, #D8CDB8 50%, #E8DFC8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    transform: rotateX(60deg) rotateZ(45deg);
    border: 2px solid #D8CDB8;
}

.skeleton-block.wide {
    width: 100%;
    height: 120px;
    transform: none;
}

/* --- Explore Section --- */
.explore-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.revealed .section-content {
    opacity: 1;
    transform: translateY(0);
}

.float-cluster {
    float: right;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 0 0 1.5rem 2rem;
    shape-outside: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.section-heading {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #3D3833;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #3D3833;
    margin-bottom: 1rem;
    max-width: 600px;
}

.section-text a {
    color: #6A7B8A;
    text-decoration: underline;
}

/* --- Leaf Divider --- */
.leaf-divider {
    text-align: center;
    padding: 1rem 0;
    margin-left: 260px;
}

.leaf-divider svg {
    width: 200px;
    height: 40px;
}

/* --- Landscape Section --- */
.landscape-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.landscape-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 2rem 0;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed .landscape-row {
    opacity: 1;
    transform: translateY(0);
}

.landscape-block {
    width: 70px;
    flex-shrink: 0;
}

.landscape-leaf {
    width: 30px;
    height: 50px;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: -5px;
}

.landscape-leaf.leaf-tilt {
    transform: rotate(-20deg);
}

.landscape-card {
    background-color: rgba(232, 223, 200, 0.85);
    padding: 2rem;
    margin-top: 2rem;
    max-width: 500px;
    border-left: 4px solid #7A8B6A;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.reveal-section.revealed .landscape-card {
    opacity: 1;
    transform: translateY(0);
}

/* --- Closing Section --- */
.closing-section {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.closing-content {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-section.revealed .closing-content {
    opacity: 1;
    transform: translateY(0);
}

.closing-blocks {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.small-block {
    width: 40px;
}

.closing-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #3D3833;
    margin-bottom: 1.5rem;
}

.closing-leaves {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: flex-end;
}

.closing-leaves svg {
    width: 30px;
    height: auto;
}

.closing-leaves svg:nth-child(1) { transform: rotate(-15deg); }
.closing-leaves svg:nth-child(2) { transform: rotate(10deg); }
.closing-leaves svg:nth-child(3) { transform: rotate(-5deg); }
.closing-leaves svg:nth-child(4) { transform: rotate(20deg); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .sidebar-leaves {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .leaf-divider {
        margin-left: 0;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .float-cluster {
        float: none;
        margin: 0 0 1.5rem 0;
    }
}
