/* Rip-off Section Styles */

.rip-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 320px;
    margin-top: 4rem;
    background: #0a0a0a;
    /* Deep inner shadow for depth - like looking into a hole */
    box-shadow:
        inset 0 0 80px 30px rgba(0, 0, 0, 0.9),
        inset 0 8px 25px rgba(0, 0, 0, 0.8),
        inset 0 -8px 25px rgba(0, 0, 0, 0.8);
    user-select: none;
    border: 1px solid #1a1a1a;
    transition: none;
}

/* Torn paper edge effect - jagged top edge */
.rip-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 10px;
    background:
        linear-gradient(135deg, transparent 33.33%, #2c2c2c 33.33%, #2c2c2c 66.66%, transparent 66.66%),
        linear-gradient(225deg, transparent 33.33%, #2c2c2c 33.33%, #2c2c2c 66.66%, transparent 66.66%);
    background-size: 12px 100%;
    z-index: 15;
    pointer-events: none;
}

/* Jagged bottom edge */
.rip-container::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 10px;
    background:
        linear-gradient(45deg, transparent 33.33%, #2c2c2c 33.33%, #2c2c2c 66.66%, transparent 66.66%),
        linear-gradient(-45deg, transparent 33.33%, #2c2c2c 33.33%, #2c2c2c 66.66%, transparent 66.66%);
    background-size: 12px 100%;
    z-index: 15;
    pointer-events: none;
}

.rip-container:hover {
    background: #0a0a0a;
}

/* The revealed underneath content */
.rip-underneath {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0d0d0d 0%, #050505 100%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* The tear canvas */
.tear-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: grab;
    touch-action: none;
}

.tear-canvas:active {
    cursor: grabbing;
}

/* Live Coding Background */
.matrix-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    color: #888;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    z-index: 0;
    padding: 1.5rem;
    overflow: hidden;
    font-family: 'Source Code Pro', monospace;
    pointer-events: none;
}

/* Blinking cursor for live coding effect */
.matrix-code .cursor {
    color: #e6a31a;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.app-menu {
    position: relative;
    z-index: 2;
    background: rgba(20, 20, 20, 0.95);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 600px;
    width: 90%;
}

.app-menu h3 {
    margin-top: 0;
    color: #e6a31a;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(230, 163, 26, 0.3);
    padding-bottom: 0.5rem;
}

.app-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-menu li {
    margin-bottom: 1.5rem;
}

.app-menu li:last-child {
    margin-bottom: 0;
}

.app-menu a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4rem;
    display: block;
    transition: color 0.2s;
}

.app-menu a:hover {
    color: #e6a31a;
    text-decoration: none;
    background: none;
    box-shadow: none;
}

.app-menu .comment {
    color: #6a9955;
    display: block;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    font-family: 'Source Code Pro', monospace;
}