/* Accessibility Widget Styles */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.accessibility-widget button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-widget button:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.accessibility-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 180px;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.accessibility-menu.active {
    display: flex;
}

.accessibility-option button {
    width: 100%;
    height: auto;
    border-radius: 5px;
    padding: 10px;
    background: #f5f5f5;
    color: var(--dark-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.accessibility-option button:hover {
    background: #eeeeee;
}

.accessibility-option button.active {
    background: var(--primary-color);
    color: white;
}

/* High Contrast Mode */
.high-contrast-mode {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast-mode h1, 
.high-contrast-mode h2, 
.high-contrast-mode h3,
.high-contrast-mode p,
.high-contrast-mode a {
    color: #fff !important;
}

.high-contrast-mode .service-card,
.high-contrast-mode .project-card,
.high-contrast-mode header,
.high-contrast-mode footer {
    background-color: #000 !important;
    border: 2px solid #fff !important;
}

/* Dyslexic Font Mode */
.dyslexic-font-mode * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Comic Sans', cursive !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
    line-height: 1.8 !important;
}

/* RTL support for accessibility widget */
html[dir="rtl"] .accessibility-widget {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .accessibility-menu {
    left: 0;
    right: auto;
}