@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
    --primary: #2a9df4;
    --primary-dark: #1b85d6;
    --primary-light: #e6f4fe;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --doodle-font: 'Caveat', cursive;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Whiteboard Canvas Grid Pattern Background */
.whiteboard-bg {
    background-color: #fafbfc;
    background-image: 
        linear-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}
.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--primary) !important;
}

/* Primary Button Styling */
.btn-primary-custom {
    background-color: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(42, 157, 244, 0.2), 0 2px 4px -2px rgba(42, 157, 244, 0.2);
    transition: all 0.2s ease;
}
.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(42, 157, 244, 0.3), 0 4px 6px -4px rgba(42, 157, 244, 0.3);
}

.btn-secondary-custom {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-secondary-custom:hover {
    background-color: var(--bg-light);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Doodle Text Accent */
.doodle-accent {
    font-family: var(--doodle-font);
    color: var(--primary);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    transform: rotate(-3deg);
}

.doodle-accent::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 10px 0 !important;
}

.hero-row {
    min-height: auto !important;
}

.hero-tagline {
    font-size: 2.4rem !important;
}

.hero-title {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* CSS Editor Mockup Animation */
.editor-mockup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mockup-header {
    height: 45px;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.mockup-sidebar {
    width: 65px;
    background-color: var(--bg-light);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    gap: 20px;
}

.mockup-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
}
.mockup-icon.active {
    background-color: var(--primary);
    color: white;
}

.mockup-canvas-wrapper {
    flex: 1;
    background-color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-canvas {
    width: 80%;
    height: 75%;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hand Drawing Simulation Animation */
.drawing-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.mockup-hand {
    position: absolute;
    width: 70px;
    z-index: 10;
    pointer-events: none;
    animation: drawMotion 6s infinite ease-in-out;
    margin-left: -17px;
    margin-top: -7px;
    transform: rotate(-15deg);
    transform-origin: 17px 7px;
}

.drawing-svg {
    width: 140px;
    height: 140px;
}

.drawing-svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: pathDraw 6s infinite ease-in-out;
}

@keyframes drawMotion {
    0% { left: 50%; top: 15%; }
    7.11% { left: 31%; top: 23%; }
    14.21% { left: 25%; top: 45%; }
    18.87% { left: 29%; top: 59%; }
    23.53% { left: 37%; top: 70%; }
    26.69% { left: 37%; top: 80%; }
    28.42% { left: 41%; top: 84%; }
    34.11% { left: 59%; top: 84%; }
    35.85% { left: 63%; top: 80%; }
    39.01% { left: 63%; top: 70%; }
    43.67% { left: 71%; top: 59%; }
    48.33% { left: 75%; top: 45%; }
    55.44% { left: 69%; top: 23%; }
    62.54% { left: 50%; top: 15%; } /* Outline done */
    64.0% { left: 45%; top: 65%; } /* Move to filament */
    68.19% { left: 48%; top: 50%; }
    69.29% { left: 52%; top: 50%; }
    73.47% { left: 55%; top: 65%; } /* Filament done */
    75.0% { left: 40%; top: 84%; } /* Move to base line 1 */
    79.79% { left: 60%; top: 84%; } /* Base line 1 done */
    80.8% { left: 42%; top: 89%; } /* Move to base line 2 */
    84.84% { left: 58%; top: 89%; } /* Base line 2 done */
    85.6% { left: 45%; top: 94%; } /* Move to base line 3 */
    88.0% { left: 55%; top: 94%; } /* Base line 3 done */
    92.0%, 100% { left: 50%; top: 15%; }
}

@keyframes pathDraw {
    0% {
        stroke-dashoffset: 100;
    }
    88% {
        stroke-dashoffset: 0;
    }
    90% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
    100% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
}

.mockup-right-panel {
    width: 70px;
    background-color: #1e293b;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 15px 5px;
    gap: 12px;
}

.mockup-control {
    height: 8px;
    background-color: #475569;
    border-radius: 4px;
    width: 80%;
    margin: 0 auto;
}
.mockup-control.active {
    background-color: var(--primary);
}

.mockup-timeline {
    height: 60px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.mockup-track {
    flex: 1;
    height: 30px;
    background-color: white;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.mockup-block {
    width: 60px;
    height: 20px;
    background-color: var(--primary-light);
    border: 1px solid rgba(42, 157, 244, 0.3);
    border-radius: 3px;
}

/* Feature Cards */
.feature-section {
    padding: 25px 0;
    background-color: var(--bg-light);
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.section-heading {
    font-weight: 800;
    font-size: 2.25rem;
}

.feature-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Custom Whiteboard Switch Section */
.board-types-section {
    padding: 25px 0;
}

.board-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}
.board-card:hover {
    transform: scale(1.02);
}

.board-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--doodle-font);
    font-size: 2rem;
    font-weight: bold;
}

.board-preview.whiteboard {
    background-color: #fafafa;
    color: #334155;
    border-bottom: 1px solid var(--border);
}
.board-preview.blackboard {
    background-color: #1e293b;
    color: #f1f5f9;
}
.board-preview.glassboard {
    background-color: #38bdf8;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    color: white;
}

.board-info {
    padding: 20px;
    background: white;
}

/* Pricing Toggle */
.pricing-section {
    padding: 25px 0;
    background-color: var(--bg-light);
}

.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.toggle-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.toggle-label.active {
    color: var(--primary);
}

.form-switch .form-check-input {
    width: 3.5rem;
    height: 1.8rem;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pricing-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(42, 157, 244, 0.1), 0 10px 10px -5px rgba(42, 157, 244, 0.04);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 30px;
}

.plan-name {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 20px 0;
}
.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: #10b981;
}

/* FAQ Section */
.faq-section {
    padding: 25px 0;
}

.accordion-item {
    border: 1px solid var(--border);
    margin-bottom: 12px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(42, 157, 244, 0.2);
}

/* Footer */
.footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 40px 0 25px 0;
    border-top: 1px solid #1e293b;
}

.footer p, 
.footer p.text-muted {
    color: #94a3b8 !important;
}

.footer-title {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover,
.footer a:hover,
.footer a.text-light:hover {
    color: #ffffff !important;
}

.footer a.text-light {
    color: #ffffff !important;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 0.875rem;
}

/* Video Presentation Showcase */
.video-section {
    padding: 35px 0;
    background-color: var(--bg-white);
}

.video-container-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    background-color: #ffffff;
    overflow: hidden;
}

.video-browser-bar {
    height: 40px;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
}

.video-responsive-ratio {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive-ratio iframe,
.video-responsive-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Staggered Layout feature items */
.staggered-section {
    padding: 50px 0;
    border-top: 1px solid var(--border);
}
.staggered-section.bg-light-tint {
    background-color: #f8fafc;
}

.staggered-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-media-col {
    flex: 1;
}

.feature-text-col {
    flex: 1;
}

.feature-bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-bullet-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.feature-bullet-list li i {
    color: var(--primary);
    margin-top: 3px;
}

/* Custom Draw Path Graphic Mockup */
.path-editor-mock {
    background-color: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.path-canvas-mock {
    width: 300px;
    height: 300px;
    position: relative;
    flex-shrink: 0;
}

.path-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.path-node.active {
    background-color: #ef4444;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.path-node-label {
    position: absolute;
    top: -18px;
    left: -5px;
    font-size: 8px;
    font-weight: 700;
    color: #475569;
}

.path-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Hands Library Mockup Showcase */
.hands-grid-mock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
}

.hand-card-mock {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hand-card-mock:hover,
.hand-card-mock.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(42, 157, 244, 0.15);
    transform: translateY(-2px);
}

.hand-thumb-img {
    height: 65px;
    object-fit: contain;
    margin-bottom: 8px;
}

.hand-card-mock span {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* Audio Wave Timeline Mockup */
.audio-timeline-mock {
    background-color: #1e293b;
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.audio-track-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}
.audio-track-row:last-child {
    margin-bottom: 0;
}

.audio-track-label {
    width: 80px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-track-wave {
    flex: 1;
    height: 35px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.audio-block-fill {
    height: 25px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.audio-block-fill.music {
    background: linear-gradient(90deg, #10b981, #34d399);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.wave-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}

.wave-bar {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
}

.wave-bar:nth-child(1) { height: 12px; }
.wave-bar:nth-child(2) { height: 18px; }
.wave-bar:nth-child(3) { height: 15px; }
.wave-bar:nth-child(4) { height: 22px; }
.wave-bar:nth-child(5) { height: 8px; }
.wave-bar:nth-child(6) { height: 14px; }
.wave-bar:nth-child(7) { height: 20px; }
.wave-bar:nth-child(8) { height: 12px; }

/* Responsive adjustments for staggered columns */
@media (max-width: 991px) {
    .staggered-row {
        flex-direction: column;
        gap: 30px;
    }
    .staggered-row.reverse-mobile {
        flex-direction: column-reverse;
    }
}

/* ==========================================
   INTERACTIVE KEYFRAME ANIMATIONS
   ========================================== */

/* 1. Custom Draw Path Animation */
.path-mock-hand {
    position: absolute;
    width: 60px;
    z-index: 10;
    pointer-events: none;
    animation: tracePathHand 7s infinite linear;
    margin-left: -15px;
    margin-top: -6px;
    transform: rotate(-15deg);
    transform-origin: 15px 6px;
}

.path-sketch-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: tracePathLine 7s infinite linear;
}

/* Trace Path Nodes Pulsing */
.path-node:nth-child(3) { animation: pulseNode 7s infinite step-end; animation-delay: 0.5s; }
.path-node:nth-child(4) { animation: pulseNode 7s infinite step-end; animation-delay: 1.5s; }
.path-node:nth-child(5) { animation: pulseNode 7s infinite step-end; animation-delay: 2.5s; }
.path-node:nth-child(6) { animation: pulseNode 7s infinite step-end; animation-delay: 3.5s; }
.path-node:nth-child(7) { animation: pulseNode 7s infinite step-end; animation-delay: 4.5s; }

@keyframes pulseNode {
    0%, 100% {
        background-color: var(--primary);
        transform: scale(1);
        box-shadow: none;
    }
    5%, 15% {
        background-color: #ef4444;
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    }
}

@keyframes tracePathHand {
    0% { top: 55px; left: 150px; }         /* Node 1 */
    15% { top: 139px; left: 189px; }       /* Node 2 */
    30% { top: 139px; left: 279px; }       /* Node 3 */
    45% { top: 195px; left: 207px; }       /* Node 4 */
    60% { top: 285px; left: 234px; }       /* Node 5 */
    75% { top: 234px; left: 150px; }       /* Node 6 */
    85% { top: 55px; left: 150px; }        /* Return to Node 1 */
    100% { top: 55px; left: 150px; }
}

@keyframes tracePathLine {
    0% { stroke-dashoffset: 100; }
    75% { stroke-dashoffset: 50; }
    90% { stroke-dashoffset: 50; opacity: 1; }
    95% { opacity: 0; }
    100% { stroke-dashoffset: 100; opacity: 0; }
}


/* 2. Board and Hand Cycle Showcase */
.board-cycle-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    height: 280px;
    position: relative;
    background-color: #ffffff;
}

.board-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out;
    animation: cycleSlides 12s infinite;
}

.board-slide.slide-white {
    background-color: #fafafa;
    animation-delay: 0s;
}
.board-slide.slide-black {
    background-color: #1e293b;
    color: white;
    animation-delay: 4s;
}
.board-slide.slide-glass {
    background-color: #38bdf8;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    color: white;
    animation-delay: 8s;
}

@keyframes cycleSlides {
    0%, 30% { opacity: 1; z-index: 2; }
    33%, 97% { opacity: 0; z-index: 1; }
    100% { opacity: 1; z-index: 2; }
}

/* Loop drawings and hands inside slides */
.board-drawing-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.board-slide-hand {
    position: absolute;
    width: 60px;
    z-index: 10;
    margin-left: -15px;
    margin-top: -6px;
    transform-origin: 15px 6px !important;
}

.board-slide-hand.hand-circle {
    animation: drawCircleHand 4s infinite ease-in-out;
}

.board-slide-hand.hand-triangle {
    animation: drawTriangleHand 4s infinite ease-in-out;
}

.board-slide-hand.hand-square {
    animation: drawSquareHand 4s infinite ease-in-out;
}

.board-slide-drawing {
    width: 120px;
    height: 120px;
}

.board-slide-drawing-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: strokeInSlide 4s infinite ease-in-out;
}

@keyframes drawCircleHand {
    0% { left: 80%; top: 50%; }
    9.375% { left: 71.2%; top: 71.2%; }
    18.75% { left: 50%; top: 80%; }
    28.125% { left: 28.8%; top: 71.2%; }
    37.5% { left: 20%; top: 50%; }
    46.875% { left: 28.8%; top: 28.8%; }
    56.25% { left: 50%; top: 20%; }
    65.625% { left: 71.2%; top: 28.8%; }
    75% { left: 80%; top: 50%; }
    90%, 100% { left: 80%; top: 50%; }
}

@keyframes drawTriangleHand {
    0% { left: 50%; top: 15%; }
    25% { left: 15%; top: 85%; }
    50% { left: 85%; top: 85%; }
    75% { left: 50%; top: 15%; }
    90%, 100% { left: 50%; top: 15%; }
}

@keyframes drawSquareHand {
    0% { left: 25%; top: 25%; }
    18.75% { left: 75%; top: 25%; }
    37.5% { left: 75%; top: 75%; }
    56.25% { left: 25%; top: 75%; }
    75% { left: 25%; top: 25%; }
    90%, 100% { left: 25%; top: 25%; }
}

@keyframes strokeInSlide {
    0% { stroke-dashoffset: 100; }
    75% { stroke-dashoffset: 0; }
    90% { opacity: 1; }
    95%, 100% { opacity: 0; }
}


/* 3. Audio Equalizer Wave and Timeline Playhead */
.audio-timeline-mock {
    position: relative;
    overflow: hidden;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    left: 90px; /* Offset label width */
    width: 2px;
    height: 100%;
    background-color: #ef4444;
    z-index: 10;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
    animation: playheadMove 5s infinite linear;
}

@keyframes playheadMove {
    0% { left: 90px; }
    90% { left: calc(100% - 10px); opacity: 1; }
    91% { opacity: 0; }
    100% { left: 90px; opacity: 0; }
}

/* Bouncing audio waves */
.wave-bars .wave-bar {
    animation: bounceWave 1.2s infinite ease-in-out alternate;
}

.wave-bars .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bars .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bars .wave-bar:nth-child(3) { animation-delay: 0.5s; }
.wave-bars .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.wave-bars .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bars .wave-bar:nth-child(6) { animation-delay: 0.6s; }
.wave-bars .wave-bar:nth-child(7) { animation-delay: 0.3s; }
.wave-bars .wave-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes bounceWave {
    0% {
        transform: scaleY(0.3);
    }
    100% {
        transform: scaleY(1.1);
    }
}
