/* About Page Specific Styles */

/* Ambient Particles */
.ambient-particles {
    background: radial-gradient(circle at 50% 50%, rgba(74, 124, 89, 0.2) 0%, transparent 50%);
    opacity: 0.6;
}

/* 3D Tilt Cards */
.hover-3d-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hover-3d-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.hover-3d-wrapper:hover .hover-3d-inner {
    /* JS will calculate the exact rotation based on mouse pos */
    box-shadow: 0 20px 40px rgba(74, 124, 89, 0.15);
}

.trait-icon {
    transform: translateZ(30px);
    /* Pops the icon out during tilt */
    transition: stroke-dashoffset 2s ease-in-out;
}

/* Timeline SVG Vine */
.timeline-vine-wrapper {
    overflow: hidden;
}

.vine-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* Animated heartbeat in Hero */
.heartbeat-line {
    animation: pan-right 10s linear infinite;
}

.heartbeat-path {
    stroke-dasharray: 100;
    animation: dash-flow 2s linear infinite;
}

@keyframes pan-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0%);
    }
}

@keyframes dash-flow {
    from {
        stroke-dashoffset: 200;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Typewriter cursor */
.typewriter-quote {
    display: inline-block;
}

.typewriter-quote::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Timeline Responsive Fixes */
@media (max-width: 767px) {
    .timeline-row {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .timeline-node {
        margin-left: 1rem;
        z-index: 10;
        position: absolute;
        left: -15px;
        /* Offset to rest on mobile border */
    }

    .timeline-panel {
        padding-left: 3rem;
        /* Make room for the dot on the left */
        width: 100%;
        text-align: left !important;
    }

    .timeline-container {
        border-left: 2px dashed var(--color-primary-light);
        margin-left: 1rem;
    }
}