@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --hero-bg: #f5f5f5;
    --footer-bg: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --device-bg: #f5f5f5;
}

[data-theme="dark"] {
    --primary-color: #4da6ff;
    --secondary-color: #66b3ff;
    --text-color: #e0e0e0;
    --light-gray: #1a1a1a;
    --border-color: #404040;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --hero-bg: #0d1117;
    --footer-bg: #0d1117;
    --shadow: rgba(0, 0, 0, 0.3);
    --device-bg: #2d2d2d;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL support */
html[lang="ar"] body,
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Roboto', sans-serif;
}

html[lang="ar"] nav,
body[dir="rtl"] nav {
    flex-direction: row-reverse;
}

html[lang="ar"] .nav-links,
body[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[lang="ar"] .nav-links a,
body[dir="rtl"] .nav-links a {
    padding: 0.75rem 1.25rem;
}

html[lang="ar"] .header-controls,
body[dir="rtl"] .header-controls {
    flex-direction: row-reverse;
}

html[lang="ar"] .coming-soon-badge,
body[dir="rtl"] .coming-soon-badge {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

@media (max-width: 768px) {
    html[lang="ar"] .nav-links,
    body[dir="rtl"] .nav-links {
        left: auto;
        right: 0;
    }
}

/* Header and Navigation - Modern Design */
header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.logo img {
    display: block;
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1002;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-button {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-button:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.lang-arrow {
    font-size: 12px;
    opacity: 0.6;
}

.lang-options {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: var(--card-bg) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.lang-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Main Content */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 2rem;
}

#hero {
    background-color: var(--hero-bg);
    text-align: center;
    padding: 6rem 2rem;
    transition: background-color 0.3s ease;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
}

/* Section Headers */
section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Technical Documentation & User Manual Pages */
#technical-docs,
#user-manual {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#technical-docs h1,
#user-manual h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.device-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.device-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--device-bg);
    transition: background-color 0.3s ease;
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.device-info {
    padding: 1.5rem;
}

.device-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.device-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.last-updated {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #0056b3;
}

/* Section Headings */
h2 {
    margin: 2rem 0 1rem;
    color: var(--text-color);
    font-size: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }

    .device-image {
        height: 180px;
    }

    .device-info {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.75rem;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    height: 4px;
    width: 28px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
} /* Disabled
 Section Styling */
.disabled-section {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.disabled-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 8px;
}

.disabled-card {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    color: #6c757d !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.disabled-card:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.disabled-card h3 {
    color: #6c757d !important;
}

.disabled-card p {
    color: #868e96 !important;
}

.disabled-button {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.disabled-button:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dark Mode Toggle - Modern Design */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 1rem;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    top: 2px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

input:checked + .theme-slider {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

input:checked + .theme-slider:before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.theme-slider:after {
    content: '☀️';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

input:checked + .theme-slider:after {
    content: '🌙';
    transform: translateX(30px);
    filter: brightness(1.2);
}

.theme-toggle:hover .theme-slider {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active .theme-slider {
    transform: scale(0.98);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .nav-links {
    background: var(--card-bg);
}

[data-theme="dark"] #hero p {
    color: #b0b0b0;
}

[data-theme="dark"] .device-description {
    color: #b0b0b0;
}

[data-theme="dark"] .last-updated {
    color: #888;
}

[data-theme="dark"] .disabled-card {
    background: #2a2a2a !important;
    border: 1px solid #404040;
    color: #888 !important;
}

[data-theme="dark"] .disabled-card h3 {
    color: #888 !important;
}

[data-theme="dark"] .disabled-card p {
    color: #666 !important;
}

[data-theme="dark"] .disabled-section::before {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile responsive for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        margin: 0.5rem 0;
        width: 54px;
        height: 28px;
    }
    
    .theme-slider {
        border-radius: 14px;
    }
    
    .theme-slider:before {
        height: 20px;
        width: 20px;
        left: 2px;
        top: 2px;
    }
    
    input:checked + .theme-slider:before {
        transform: translateX(26px);
    }
    
    .theme-slider:after {
        font-size: 12px;
        left: 2px;
        top: 2px;
        width: 20px;
        height: 20px;
    }
    
    input:checked + .theme-slider:after {
        transform: translateX(26px);
    }
}
/*
* Modern Header Dark Mode Support */


[data-theme="dark"] .language-selector select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Header scroll effect */
.header-scrolled {
    background: rgba(var(--card-bg-rgb), 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.nav-links a:focus,
.theme-toggle:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/*
* Disabled Navigation Item */
.nav-disabled {
    color: var(--text-color);
    opacity: 0.5;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: not-allowed;
    transition: opacity 0.3s ease;
}

.nav-disabled:hover {
    opacity: 0.3;
}/* Dark M
ode Support for Custom Language Dropdown */
[data-theme="dark"] .language-arrow {
    fill: var(--text-color);
}

[data-theme="dark"] .language-options {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .language-option {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .language-option:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .language-option.selected {
    background: var(--primary-color);
    color: white;
}/* Dark M
ode Support for Language Selector */
[data-theme="dark"] .language-selector select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}/* Dark Mode
 Support for Custom Language Dropdown */
[data-theme="dark"] .dropdown-arrow {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu.show {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dropdown-option:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .dropdown-option.selected {
    background: var(--primary-color);
    color: white;
}