:root {
    --color-primary: #ffcc40;
    --color-secondary: #ffe4a3;
    --color-tertiary: #000000;
    --color-alternate: #3e3e3e;
    --color-primary-text: #2b2a2a;
    --color-secondary-text: #161618;
    --color-primary-bg: #f7f7f7;
    --color-secondary-bg: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

/* Prevent mobile zoom on input focus */
input, select, textarea {
    font-size: 16px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-tertiary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-tertiary);
}

*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media print {
    body {
        background: white !important;
        color: black !important;
    }
}

@media (prefers-contrast: high) {
    .text-secondary-text {
        color: #000000 !important;
    }
    
    .text-secondary {
        color: #ffffff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

img {
    content-visibility: auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Optimize scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior: none;
    }
    
    /* Prevent zoom on double tap */
    * {
        touch-action: manipulation;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .animate-spin {
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}