/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary: #2f6364;
    --primary-light: #4a9a9b;
    --primary-dark: #1e4142;
    --success: #10b981;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --border: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light-gray);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container - Split View */
.app-container {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
    /* Allow container to grow with content */
    height: auto;
    position: relative;
}

/* Left Panel - Fixed Onboarding */
.left-panel {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure minimum height for desktop */
    min-height: 100vh;
    /* Allow panel to grow if needed */
    height: auto;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
    z-index: 10;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Brand */
.brand {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 24px;
    padding-top: 40px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* Apify powered badge */
.powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(0, 184, 204, 0.2);
    border: 1px solid rgba(0, 184, 204, 0.3);
    border-radius: 24px;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 184, 204, 0.15);
}

.powered-badge:hover {
    background: rgba(0, 184, 204, 0.3);
    border-color: rgba(0, 184, 204, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 204, 0.25);
}

/* Value Props */
.value-props {
    margin: 36px 0;
    position: relative;
    z-index: 1;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.value-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.value-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.value-item small {
    font-size: 14px;
    opacity: 0.8;
}

/* Quick Steps */
.quick-steps {
    position: relative;
    z-index: 1;
}

.quick-steps h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.9;
}

.steps-list {
    list-style: none;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.steps-list li::before {
    content: counter(steps);
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    margin-top: auto;
    position: relative;
    z-index: 1;
    /* Ensure CTA is always visible */
    padding-top: 24px;
    flex-shrink: 0;
}

.primary-cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-note {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.8;
}

/* Right Panel - Tools */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--light-gray);
    min-height: 100vh;
    /* Allow vertical overflow */
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure proper height calculation */
    height: auto;
}

/* Tools Header */
.tools-header {
    background: var(--white);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--light-gray);
    padding: 4px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.03);
}

.tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.tab:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* Tools Container */
.tools-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-content: start;
    scroll-behavior: smooth;
    /* Ensure minimum height for proper scrolling */
    min-height: 0;
    /* Prevent layout issues */
    width: 100%;
}

/* Custom Scrollbar */
.tools-container::-webkit-scrollbar {
    width: 8px;
}

.tools-container::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.tools-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.tools-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading States */
.tools-container.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Tool Card - Enhanced */
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 280px; /* Set minimum height instead of fixed height */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible; /* Allow content to be visible */
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius) var(--radius) 0 0; /* Add border-radius to match card */
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tool-card:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f2f4 100%);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tool-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: auto;
    padding-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--success);
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.tool-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.tool-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.tool-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 99, 100, 0.3);
}

.tool-link:active {
    transform: translateY(0);
}

/* Loading State */
.loading-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-button {
    height: 36px;
    width: 100%;
    margin-top: auto;
    border-radius: var(--radius-sm);
}

/* Desktop View - Maintain split layout */
@media (min-width: 1025px) {
    body {
        overflow: hidden; /* Prevent body scroll on desktop */
    }

    .app-container {
        height: 100vh;
        overflow: hidden;
    }

    .left-panel {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }

    .left-panel::-webkit-scrollbar {
        width: 6px;
    }

    .left-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .left-panel::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .left-panel::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .right-panel {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .tools-container {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        /* Remove max-height restriction to allow proper scrolling */
        /* max-height: calc(100vh - 89px); */ /* Removed - causing cut-off issue */
        height: 100%;
        min-height: 0; /* Important for flexbox children */
    }
}

/* Responsive - Desktop First */
@media (max-width: 1440px) {
    .left-panel {
        width: 360px;
        padding: 40px 28px;
    }

    .logo {
        font-size: 30px;
    }

    .tagline {
        font-size: 17px;
    }
}

@media (max-width: 1400px) {
    .app-container {
        max-width: 100%;
        /* Ensure proper height handling */
        height: 100vh;
        overflow: hidden;
    }

    .left-panel {
        width: 340px;
        padding: 36px 24px;
        /* Fixed height for desktop split view */
        height: 100vh;
        overflow-y: auto;
    }

    .right-panel {
        /* Fixed height for desktop split view */
        height: 100vh;
        overflow: hidden;
    }

    .tools-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
        /* Ensure scrolling works properly - removed fixed height */
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
}

@media (max-width: 1280px) {
    .left-panel {
        width: 320px;
        padding: 32px 20px;
    }

    .value-item {
        padding: 12px;
        gap: 12px;
    }

    .value-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .left-panel {
        width: 300px;
        /* Maintain proper height */
        height: 100vh;
        overflow-y: auto;
    }

    .filter-tabs {
        font-size: 13px;
    }

    .tab {
        padding: 7px 14px;
        font-size: 13px;
    }

    .tools-container {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Specific styles for desktop-tablet transition */
    .app-container {
        display: flex;
        flex-direction: row;
    }

    .left-panel {
        width: 280px;
        flex-shrink: 0;
        padding: 28px 20px;
        height: 100vh;
        overflow-y: auto;
    }

    .right-panel {
        flex: 1;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .left-panel {
        width: 100%;
        padding: 28px 20px;
        /* Allow height to be auto on tablets */
        height: auto;
        min-height: auto;
    }

    .powered-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tools-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .logo {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    .value-item {
        padding: 14px;
    }

    .tool-card {
        padding: 20px;
    }
}

/* Tablet and below */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
    }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        max-width: 100%;
    }

    .left-panel {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 32px 24px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        /* Reset overflow for mobile */
        overflow: visible;
    }

    .left-panel::before {
        display: none;
    }

    .lang-switcher {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }

    .brand {
        text-align: center;
        margin-bottom: 32px;
    }

    .logo {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    .value-props {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin: 32px 0;
        flex-wrap: wrap;
    }

    .value-item {
        flex: 1;
        min-width: 150px;
        padding: 16px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .value-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 8px;
        font-size: 28px;
    }

    .value-item strong {
        font-size: 14px;
    }

    .value-item small {
        font-size: 12px;
    }

    .quick-steps {
        background: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: var(--radius);
        margin-bottom: 24px;
    }

    .cta-section {
        text-align: center;
    }

    .primary-cta {
        max-width: 320px;
        margin: 0 auto;
    }

    .right-panel {
        height: auto;
        min-height: 60vh;
        background: var(--light-gray);
        /* Ensure scrolling works */
        overflow-y: visible;
        overflow-x: hidden;
    }

    .tools-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--white);
    }

    .tools-header h2 {
        font-size: 22px;
        text-align: center;
    }

    .filter-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        /* Add padding for scroll */
        padding-bottom: 4px;
        /* Ensure tabs are scrollable */
        flex-wrap: nowrap;
        max-width: 100%;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .tools-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 16px;
        /* Ensure proper height and scrolling */
        height: auto;
        min-height: 400px;
        overflow-y: visible;
    }

    .tool-card {
        padding: 18px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .tool-name {
        font-size: 15px;
    }

    .tool-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* Tablet View */
@media (max-width: 768px) {
    .value-props {
        flex-direction: column;
        gap: 12px;
    }

    .value-item {
        flex: none;
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        align-items: flex-start;
    }

    .value-icon {
        margin: 0;
    }

    .tools-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 16px;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    body {
        /* Ensure proper scrolling on mobile */
        overflow-y: auto;
        overflow-x: hidden;
    }

    .app-container {
        /* Reset any height constraints */
        min-height: 100vh;
        height: auto;
    }

    .left-panel {
        padding: 24px 16px;
        /* Ensure content is visible */
        overflow: visible;
        min-height: auto;
    }

    .lang-switcher {
        top: 12px;
        right: 12px;
    }

    .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }

    .logo {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    .brand {
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .powered-badge {
        margin-top: 12px;
        font-size: 11px;
        padding: 6px 10px;
    }

    .value-props {
        margin: 24px 0;
    }

    .value-item {
        padding: 12px;
        gap: 12px;
    }

    .value-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .value-item strong {
        font-size: 13px;
        display: block;
        margin-bottom: 2px;
    }

    .value-item small {
        font-size: 11px;
        line-height: 1.3;
    }

    .quick-steps {
        display: none;
    }

    .cta-section {
        padding-top: 16px;
    }

    .primary-cta {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .tools-header {
        padding: 16px;
    }

    .tools-header h2 {
        font-size: 20px;
    }

    .filter-tabs {
        padding: 3px;
        gap: 2px;
        /* Enable horizontal scroll for tabs */
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .tools-container {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
        /* Ensure proper scrolling */
        overflow-y: visible;
        min-height: 300px;
        height: auto;
    }

    .tool-card {
        padding: 16px;
    }

    .tool-header {
        gap: 12px;
    }

    .tool-meta {
        font-size: 11px;
        gap: 12px;
    }

    .tool-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .logo {
        font-size: 24px;
    }

    .tagline {
        font-size: 14px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 0 auto;
        min-width: 60px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States & Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tool-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-light);
    color: var(--white);
}