/* ============================================================
   LRX.WIKI - STREET-STYLE KNOWLEDGE WALL
   Design Language: Street-style, Layered-depth, Geometric-sans
   ============================================================ */

/* CSS Custom Properties - Color Palette */
:root {
    --color-cream: #F0E8D8;
    --color-earth-dark: #5A4E3A;
    --color-earth-medium: #A89878;
    --color-earth-light: #C8B898;
    --color-black: #2A2420;
    --color-dark-bg: #3A3228;
    --color-earth-mid: #7A6E5A;
    --color-rust: #B87040;

    /* Shadows for depth */
    --shadow-shallow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Font sizes using clamp */
    --font-size-h1: clamp(3rem, 8vw, 6rem);
    --font-size-counter: clamp(2.8rem, 7vw, 5rem);
    --font-size-h2: clamp(2rem, 5vw, 3.5rem);
    --font-size-h3: clamp(1.25rem, 3vw, 1.75rem);
    --font-size-body: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-dark-bg);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-cream);
    line-height: 1.1;
}

h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: var(--font-size-h2);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-cream);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 0.8rem;
}

p {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-cream);
}

/* ============================================================
   SECTIONS - FULL VIEWPORT HEIGHT
   ============================================================ */

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SECTION 1: THE WALL (HERO)
   ============================================================ */

.wall {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a251f 100%);
    position: relative;
}

.wall.hero {
    perspective: 1200px;
}

.panel {
    position: absolute;
    background: var(--color-earth-dark);
    padding: 2rem;
    box-shadow: var(--shadow-deep);
    border: 3px solid var(--color-black);
}

.panel-1 {
    width: 50%;
    height: 60%;
    right: 5%;
    top: 10%;
    background-color: var(--color-earth-dark);
    transform: rotateZ(-2deg) rotateX(8deg);
    z-index: 3;
}

.panel-2 {
    width: 45%;
    height: 50%;
    left: 5%;
    bottom: 15%;
    background-color: #8A7A62;
    transform: rotateZ(1deg) rotateX(-5deg);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panel-3 {
    width: 55%;
    height: 55%;
    right: 15%;
    bottom: 8%;
    background-color: var(--color-earth-medium);
    transform: rotateZ(0deg) rotateX(3deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    word-spacing: 100vw;
    animation: titleFade 1.2s ease-out;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--color-cream);
    font-weight: 400;
    animation: subtitleFade 1.4s ease-out;
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   COUNTER DISPLAY
   ============================================================ */

.counter-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.counter-number {
    font-family: 'Work Sans', sans-serif;
    font-size: var(--font-size-counter);
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 0.04em;
    display: block;
    filter: url(#turbulence-filter);
}

.counter-label {
    font-size: 1rem;
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* SVG Filter for stencil texture */
svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================================
   PANEL TEXT
   ============================================================ */

.panel-text {
    font-size: 1.1rem;
    max-width: 90%;
    text-align: center;
    color: var(--color-cream);
    line-height: 1.8;
}

/* ============================================================
   SECTION 2: KNOWLEDGE CARDS
   ============================================================ */

.knowledge-cards {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #332d25 100%);
    flex-direction: column;
    padding: 4rem 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--color-earth-dark);
    padding: 2rem;
    border: 2px solid var(--color-black);
    position: relative;
    transform: perspective(1000px) rotateZ(-1.5deg);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    overflow: hidden;
}

.card:nth-child(2) {
    transform: perspective(1000px) rotateZ(1.2deg);
}

.card:nth-child(3) {
    transform: perspective(1000px) rotateZ(-0.8deg);
}

.card:nth-child(4) {
    transform: perspective(1000px) rotateZ(1.5deg);
}

.card:hover {
    transform: perspective(1000px) rotateZ(0deg) translateY(-8px);
    box-shadow: var(--shadow-deep);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-cream);
}

.card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--color-rust);
    opacity: 0.3;
    transform: rotate(45deg) translate(50%, 50%);
}

/* ============================================================
   SECTION 3: RIGHTS FRAMEWORK
   ============================================================ */

.rights-framework {
    background: linear-gradient(135deg, #4a4037 0%, var(--color-dark-bg) 100%);
    flex-direction: column;
    padding: 4rem 2rem;
}

.framework-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.right-item {
    position: relative;
    padding: 2rem;
    background: var(--color-earth-medium);
    border-left: 4px solid var(--color-rust);
    box-shadow: var(--shadow-medium);
    transform: rotateZ(-0.5deg);
    transition: all 0.3s ease;
}

.right-item:nth-child(even) {
    transform: rotateZ(0.5deg);
}

.right-item:hover {
    transform: rotateZ(0deg) translateY(-4px);
    box-shadow: var(--shadow-deep);
}

.right-number {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-rust);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.right-item h3 {
    color: var(--color-cream);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.right-item p {
    font-size: 0.9rem;
    color: var(--color-cream);
    line-height: 1.6;
}

/* ============================================================
   SECTION 4: VISION
   ============================================================ */

.vision {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a251f 100%);
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.vision-content {
    flex: 1;
    max-width: 500px;
    animation: slideInLeft 1s ease-out;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-cream);
}

.vision-cta {
    margin-top: 2rem;
}

.cta-button {
    background: var(--color-rust);
    color: var(--color-cream);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    transform: skewX(-5deg);
}

.cta-button:hover {
    background: #a85f35;
    box-shadow: var(--shadow-deep);
    transform: skewX(-5deg) translateY(-2px);
}

.cta-button:active {
    transform: skewX(-5deg) translateY(0px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vision-diagram {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.diagram-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-deep));
}

.diagram-circle {
    stroke: var(--color-rust);
    stroke-width: 2;
    fill: none;
    animation: circlePulse 3s ease-in-out infinite;
}

.diagram-circle:nth-child(1) {
    animation-delay: 0s;
}

.diagram-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.diagram-circle:nth-child(3) {
    animation-delay: 0.4s;
}

.diagram-line {
    stroke: var(--color-earth-light);
    stroke-width: 1.5;
    opacity: 0.6;
}

@keyframes circlePulse {
    0%, 100% {
        r: attr(r);
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .panel-1,
    .panel-2,
    .panel-3 {
        width: 90%;
        height: 50%;
        position: static;
        transform: rotateZ(0deg) !important;
        margin: 1rem auto;
        box-shadow: var(--shadow-medium);
    }

    .wall.hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .framework-container {
        grid-template-columns: 1fr;
    }

    .vision {
        flex-direction: column;
        gap: 2rem;
    }

    .vision-diagram {
        width: 100%;
        max-width: 300px;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 2rem 1rem;
        min-height: auto;
        padding-top: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .cards-grid,
    .framework-container {
        gap: 1rem;
    }

    .card,
    .right-item {
        padding: 1.5rem;
    }
}

/* ============================================================
   SCROLLBAR STYLING (WebKit browsers)
   ============================================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-rust);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a85f35;
}
