/* Additional custom styles for Rich Doughnut */

/* Ensure proper spacing for fixed navigation */
section {
    scroll-margin-top: 80px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 3px solid #f2c76e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Custom selection color */
::selection {
    background-color: #f2c76e;
    color: #3d2a24;
}

/* Print styles */
@media print {
    nav, .btn-primary, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .float-animation,
    .float-delayed {
        animation: none;
    }
}

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .donut-card {
        transform-style: preserve-3d;
    }
    
    .donut-card:hover {
        transform: translateY(-8px) translateZ(20px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (optional, for future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Could add dark mode styles here if needed */
}
