/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve text rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

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

*:focus:not(:focus-visible) {
    outline: none;
}

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

/* ========================================
   COMPREHENSIVE RTL SUPPORT
   ======================================== */

[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* RTL Navigation */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-logo img {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* RTL Hero Section */
[dir="rtl"] .hero-container {
    direction: rtl;
}

[dir="rtl"] .download-buttons {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* RTL Grid Layouts */
[dir="rtl"] .features-grid {
    direction: rtl;
}

[dir="rtl"] .screenshots-grid {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

/* RTL Text Alignment */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .screenshot-item {
    text-align: right;
}

[dir="rtl"] .download-content {
    text-align: right;
}

[dir="rtl"] .footer-section {
    text-align: right;
}

/* RTL Responsive Adjustments */
@media (max-width: 767px) {
    [dir="rtl"] .hero-content {
        text-align: center;
    }
    
    [dir="rtl"] .feature-card {
        text-align: center;
    }
    
    [dir="rtl"] .screenshot-item {
        text-align: center;
    }
    
    [dir="rtl"] .download-content {
        text-align: center;
    }
    
    [dir="rtl"] .footer-section {
        text-align: center;
    }
}

/* RTL Button Adjustments */
[dir="rtl"] .lang-btn {
    text-align: center;
}

[dir="rtl"] .download-btn {
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    border-radius: var(--border-radius);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn img {
    height: 60px;
    width: auto;
}

.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup.small {
    width: 200px;
    height: 400px;
    border-radius: 20px;
    padding: 15px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot::after {
    content: '📱';
    font-size: 4rem;
    opacity: 0.3;
}

.hero-screenshot {
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
}

.screenshot-1 {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
}

.screenshot-2 {
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
}

.screenshot-3 {
    background: linear-gradient(45deg, #f3e8ff, #e9d5ff);
}

/* App Features Section */
.app-features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.screenshot-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .phone-mockup {
        width: 350px;
        height: 700px;
    }
    
    .phone-mockup.small {
        width: 250px;
        height: 500px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .phone-mockup {
        width: 300px;
        height: 600px;
    }
}

/* Large Tablet (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-container {
        padding: 0 30px;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .phone-mockup.small {
        width: 220px;
        height: 440px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .hero {
        padding: 110px 0 70px;
        min-height: 90vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 25px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .download-buttons {
        justify-content: center;
        gap: 1.2rem;
    }
    
    .download-btn img {
        height: 55px;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
        margin: 0 auto;
    }
    
    .phone-mockup.small {
        width: 200px;
        height: 400px;
    }
    
    .section-title {
        font-size: 2.1rem;
        margin-bottom: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .feature-card {
        padding: 1.8rem;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 70px 0;
    }
    
    .download-content h2 {
        font-size: 2.2rem;
    }
    
    .download-content p {
        font-size: 1.1rem;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 65px;
    }
    
    .nav-logo h1 {
        font-size: 1.6rem;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: 85vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .download-buttons {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn img {
        height: 50px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }
    
    .phone-mockup.small {
        width: 180px;
        height: 360px;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshot-item h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 60px 0;
    }
    
    .download-content h2 {
        font-size: 1.9rem;
    }
    
    .download-content p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 50px 0 15px;
    }
    
    .footer-content {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Medium (480px - 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .nav-container {
        padding: 0 18px;
        height: 60px;
    }
    
    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-logo img {
        height: 32px;
        margin-right: 8px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: 80vh;
    }
    
    .hero-container {
        padding: 0 18px;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .download-btn img {
        height: 45px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .phone-mockup.small {
        width: 160px;
        height: 320px;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .screenshot-item h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.6rem;
    }
    
    .screenshot-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 50px 0;
    }
    
    .download-content h2 {
        font-size: 1.7rem;
    }
    
    .download-content p {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 55px;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 28px;
        margin-right: 6px;
    }
    
    .lang-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: 75vh;
    }
    
    .hero-container {
        padding: 0 15px;
        gap: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .download-buttons {
        gap: 0.8rem;
    }
    
    .download-btn img {
        height: 40px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 15px;
    }
    
    .phone-mockup.small {
        width: 140px;
        height: 280px;
        padding: 10px;
    }
    
    .phone-mockup::before {
        width: 50px;
        height: 3px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .screenshots-grid {
        gap: 1.5rem;
    }
    
    .screenshot-item h3 {
        font-size: 1rem;
        margin: 0.8rem 0 0.5rem;
    }
    
    .screenshot-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 40px 0;
    }
    
    .download-content h2 {
        font-size: 1.5rem;
    }
    
    .download-content p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 35px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section img {
        height: 25px;
        margin-right: 6px;
    }
}

/* Extra Small Mobile (max-width: 319px) */
@media (max-width: 319px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 0 12px;
        height: 50px;
    }
    
    .nav-logo h1 {
        font-size: 1rem;
    }
    
    .nav-logo img {
        height: 24px;
        margin-right: 4px;
    }
    
    .lang-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 70px 0 30px;
        min-height: 70vh;
    }
    
    .hero-container {
        padding: 0 12px;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .download-btn img {
        height: 35px;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
        padding: 12px;
    }
    
    .phone-mockup.small {
        width: 120px;
        height: 240px;
        padding: 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 0.8rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .screenshot-item h3 {
        font-size: 0.9rem;
        margin: 0.6rem 0 0.4rem;
    }
    
    .screenshot-item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 30px 0;
    }
    
    .download-content h2 {
        font-size: 1.3rem;
    }
    
    .download-content p {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .footer-section img {
        height: 22px;
        margin-right: 4px;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 30px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .phone-mockup.small {
        width: 120px;
        height: 240px;
    }
    
    .app-features,
    .screenshots,
    .download-section {
        padding: 30px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .download-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .download-btn:hover {
        transform: none;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .download-btn img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .nav-logo img,
    .footer-section img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Privacy Policy Specific Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    line-height: 1.8;
}

/* Footer Navigation */
.footer-section nav {
    margin-top: 1rem;
}

.footer-section nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: inline-block;
}

.footer-section nav a:hover {
    color: white;
    text-decoration: underline;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Improved loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Better image loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

img[data-src].loaded {
    filter: blur(0);
}

/* Message toast styles */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-weight: 500;
}

.message-info {
    background: #3b82f6;
    color: white;
}

.message-error {
    background: #ef4444;
    color: white;
}

.message-show {
    transform: translateX(0);
}

.message-hide {
    transform: translateX(100%);
}

/* Navbar scroll state */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Loading states */
body.loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* RTL message positioning */
[dir="rtl"] .message-toast {
    right: auto;
    left: 20px;
    transform: translateX(-100%);
}

[dir="rtl"] .message-show {
    transform: translateX(0);
}

[dir="rtl"] .message-hide {
    transform: translateX(-100%);
}

.privacy-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.privacy-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.privacy-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem;
    color: var(--text-primary);
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.privacy-content .last-updated {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 100px 15px 60px;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-content h3 {
        font-size: 1.2rem;
    }
}
