.features-page {
    overflow-x: hidden;
    background-image: url('lightmode.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.features-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    overflow-y: auto;
    height: 100vh;
}

.features-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    transition: transform 0.3s ease;
}

.back-home:hover {
    transform: translateX(-5px);
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin-top: 1rem;
    animation: bounce 2s infinite;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    transform: translateZ(0);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    will-change: transform, opacity;
}

.feature-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.feature-section.active .feature-content {
    opacity: 1;
    transform: translateY(0);
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

.feature-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.feature-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.feature-link:hover::before {
    left: 100%;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* SVG Animations */
.timer-track {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 4;
    opacity: 0.2;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transform-origin: center;
    animation: timer-progress 4s ease-out infinite;
}

.planner-page {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 4;
    animation: draw-rect 2s ease-out forwards;
}

.planner-lines {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-lines 2s ease-out forwards 0.5s;
}

.mindful-circle {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 4;
    opacity: 0.2;
}

.mindful-wave {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    stroke-linecap: round;
    animation: wave 3s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

@keyframes timer-progress {
    0% { stroke-dashoffset: 565.48; transform: rotate(-90deg); }
    100% { stroke-dashoffset: 0; transform: rotate(-90deg); }
}

@keyframes draw-rect {
    0% { stroke-dasharray: 568; stroke-dashoffset: 568; }
    100% { stroke-dasharray: 568; stroke-dashoffset: 0; }
}

@keyframes draw-lines {
    to { stroke-dashoffset: 0; }
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .feature-section:nth-child(even) .feature-content {
        flex-direction: column-reverse;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    .feature-visual {
        order: -1;
    }

    .feature-svg {
        max-width: 300px;
    }
}