.feature-demo {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(30, 30, 50, 0.5);
    border-radius: 10px;
}

.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.clock {
    width: 200px;
    height: 200px;
    border: 10px solid var(--accent);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(157, 80, 187, 0.3);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateY(-3px); /* account for the height of the clock hands */
}

.hand {
    width: 50%;
    height: 6px;
    background: var(--light);
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
    border-radius: 3px;
}

.hour-hand {
    height: 8px;
    width: 35%;
    left: 15%;
    background: var(--secondary);
}

.min-hand {
    height: 6px;
    width: 45%;
    left: 5%;
    background: var(--light);
}

.second-hand {
    height: 3px;
    width: 45%;
    left: 5%;
    background: var(--accent);
}

.feature-code {
    margin-bottom: 40px;
}

.code-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a3a5a;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background: rgba(30, 30, 50, 0.5);
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.tab.active {
    background: var(--accent);
    color: var(--dark);
    font-weight: bold;
}

.code-content {
    display: none;
    background: #1a1a2e;
    padding: 20px;
    border-radius: 0 5px 5px 5px;
    overflow-x: auto;
}

.code-content.active {
    display: block;
}

pre {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    color: #41d8bf;
}

.feature-usage {
    background: rgba(30, 30, 50, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.feature-usage ul {
    list-style-position: inside;
    margin-top: 15px;
}

.feature-usage li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--secondary);
}
