/* ==================================================================
   AI Book Studio - Frontend Styles
   Professional, Modern, and Responsive Design
   ================================================================== */

/* ==================================================================
   1. CSS Variables & Root Configuration
   ================================================================== */
:root {
    /* Primary Colors */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    
    /* Secondary Colors */
    --secondary-50: #ecfdf5;
    --secondary-100: #d1fae5;
    --secondary-200: #a7f3d0;
    --secondary-300: #6ee7b7;
    --secondary-400: #34d399;
    --secondary-500: #10b981;
    --secondary-600: #059669;
    --secondary-700: #047857;
    --secondary-800: #065f46;
    --secondary-900: #064e3b;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-Index Scale - Organized hierarchy */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1030;
    --z-popover: 1040;
    --z-tooltip: 1050;
    --z-notification: 9000;
    --z-overlay: 9500;
    --z-max: 9999;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-50: #1e1b4b;
    --primary-900: #ede9fe;
    
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
}

/* ==================================================================
   2. Base Styles & Resets
   ================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', var(--font-primary);
}

/* Apply Arabic font to all headings in RTL mode */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .feature-title,
[dir="rtl"] .step-title,
[dir="rtl"] .pricing-name,
[dir="rtl"] .testimonial-title,
[dir="rtl"] .cta-title,
[dir="rtl"] .footer-heading,
[dir="rtl"] .page-title,
[dir="rtl"] .auth-title,
[dir="rtl"] .card-title,
[dir="rtl"] .modal-title {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif !important;
    font-weight: 700;
}

/* Specific font weights for Arabic heading hierarchy */
[dir="rtl"] h1,
[dir="rtl"] .hero-title {
    font-weight: 900;
}

[dir="rtl"] h2,
[dir="rtl"] .section-title {
    font-weight: 800;
}

[dir="rtl"] h3,
[dir="rtl"] .feature-title,
[dir="rtl"] .pricing-name {
    font-weight: 700;
}

[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-weight: 600;
}

/* Ensure subtitles and descriptions use regular weight */
[dir="rtl"] .section-subtitle,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .feature-description,
[dir="rtl"] .step-description,
[dir="rtl"] .testimonial-text {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif !important;
    font-weight: 400;
}

/* Navigation and buttons in Arabic */
[dir="rtl"] .nav-link,
[dir="rtl"] .nav-dropdown-toggle,
[dir="rtl"] .dropdown-item,
[dir="rtl"] .btn,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary,
[dir="rtl"] .btn-gradient,
[dir="rtl"] .sidebar-link-text,
[dir="rtl"] .footer-links a {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif !important;
    font-weight: 500;
}

/* ==================================================================
   3. Typography
   ================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================================================================
   4. Contact Page Specific Styles
   ================================================================== */

/* Hero Section */
.contact-hero {
    position: relative;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -30px) rotate(240deg); }
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-600);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-answer {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    max-height: 500px;
}

.faq-icon {
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Map Section */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-overlay {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    color: var(--gray-600);
}

.social-link:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-3px);
}

/* ==================================================================
   5. Animations & Interactions
   ================================================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================================================================
   6. Responsive Design
   ================================================================== */
@media (max-width: 768px) {
    .contact-hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: var(--spacing-lg);
    }
}

/* ==================================================================
   7. RTL Specific Styles
   ================================================================== */
[dir="rtl"] {
    .faq-question {
        flex-direction: row-reverse;
    }
    
    .contact-card-icon {
        margin-right: 0;
        margin-left: auto;
    }
    
    .social-links {
        direction: rtl;
    }
    
    .slide-in-left {
        animation: slideInRight 0.6s ease-out;
    }
    
    .slide-in-right {
        animation: slideInLeft 0.6s ease-out;
    }
}

/* ==================================================================
   8. Utility Classes
   ================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: var(--secondary-50);
    color: var(--secondary-800);
    border-left: 4px solid var(--secondary-500);
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

/* ==================================================================
   PAGE TEMPLATES - Privacy, Terms, About, etc.
   ================================================================== */

/* Page Header Section */
.page-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    padding: 120px 0 120px; /* Increased bottom padding for wave */
    margin-top: 80px; /* Add margin to account for fixed header */
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Cpath d=\"M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

/* Page Header Wave Bottom */
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Page Content Section */
.page-content-section {
    padding: 40px 0 80px; /* Reduced top padding to account for wave */
    background: var(--gray-50);
    min-height: 60vh; /* Ensure minimum height */
    margin-top: -60px; /* Overlap with wave for seamless transition */
    position: relative;
    z-index: 1;
}

.page-content-section .card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background: white;
}

.page-content-section .card-body {
    padding: 3rem;
}

/* Content Area Typography */
.content-area {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.content-area h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--gray-900);
    border-bottom: 3px solid var(--primary-100);
    padding-bottom: 0.75rem;
}

.content-area h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    color: var(--gray-800);
    position: relative;
    padding-left: 1rem;
}

.content-area h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-500);
    border-radius: 2px;
}

.content-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--gray-800);
}

.content-area h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--gray-700);
}

.content-area p {
    margin-bottom: 1.25rem;
}

.content-area strong {
    font-weight: 600;
    color: var(--gray-900);
}

.content-area em {
    font-style: italic;
    color: var(--gray-600);
}

.content-area ul,
.content-area ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-area li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-area ul li::marker {
    color: var(--primary-500);
}

.content-area ol li::marker {
    color: var(--primary-600);
    font-weight: 600;
}

.content-area blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--gray-700);
}

.content-area code {
    padding: 0.2rem 0.4rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary-700);
}

.content-area pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-900);
    color: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.content-area pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.content-area table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--gray-200);
}

.content-area table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-200);
}

.content-area table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.content-area table tr:last-child td {
    border-bottom: none;
}

.content-area table tr:hover {
    background: var(--gray-50);
}

.content-area hr {
    margin: 3rem 0;
    border: none;
    height: 1px;
    background: var(--gray-200);
}

.content-area a {
    color: var(--primary-600);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.content-area a:hover {
    color: var(--primary-700);
    border-bottom-color: var(--primary-400);
}

/* Page Footer Info */
.page-footer-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.page-footer-info .small {
    font-size: 0.875rem;
}

/* Share Links */
.share-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all var(--transition-base);
}

.share-links a:hover {
    background: var(--primary-100);
    color: var(--primary-600);
    transform: translateY(-2px);
}

/* Page Navigation */
.page-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.related-pages {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-pages .btn-link {
    padding: 0.5rem 1rem;
    color: var(--primary-600);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.related-pages .btn-link:hover {
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: var(--radius-md);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-header {
        padding: 100px 0 60px;
        margin-top: 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .page-content-section {
        padding: 60px 0;
    }
    
    .page-content-section .card-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px;
        margin-top: 50px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-content-section {
        padding: 40px 0;
    }
    
    .page-content-section .card-body {
        padding: 1.5rem;
    }
    
    .content-area {
        font-size: 1rem;
    }
    
    .content-area h1 {
        font-size: 2rem;
    }
    
    .content-area h2 {
        font-size: 1.5rem;
    }
    
    .content-area h3 {
        font-size: 1.25rem;
    }
    
    .page-footer-info,
    .page-navigation {
        text-align: center;
    }
    
    .share-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .related-pages {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 70px 0 40px;
        margin-top: 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-content-section .card-body {
        padding: 1.25rem;
    }
    
    .content-area ul,
    .content-area ol {
        padding-left: 1.5rem;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .page-content-section {
    background: var(--gray-900);
}

[data-theme="dark"] .page-content-section .card {
    background: var(--gray-800);
}

[data-theme="dark"] .content-area {
    color: var(--gray-300);
}

[data-theme="dark"] .content-area h1,
[data-theme="dark"] .content-area h2,
[data-theme="dark"] .content-area h3,
[data-theme="dark"] .content-area h4 {
    color: var(--gray-100);
}

[data-theme="dark"] .content-area strong {
    color: var(--gray-100);
}

[data-theme="dark"] .content-area blockquote {
    background: var(--gray-700);
    border-left-color: var(--primary-400);
    color: var(--gray-300);
}

[data-theme="dark"] .content-area code {
    background: var(--gray-700);
    color: var(--primary-300);
}

[data-theme="dark"] .content-area table th {
    background: var(--gray-700);
    color: var(--gray-100);
}

[data-theme="dark"] .content-area table td {
    border-bottom-color: var(--gray-700);
}

[data-theme="dark"] .page-footer-info,
[data-theme="dark"] .page-navigation {
    border-top-color: var(--gray-700);
    color: var(--gray-400);
}

[data-theme="dark"] .share-links a {
    background: var(--gray-700);
    color: var(--gray-400);
}

[data-theme="dark"] .share-links a:hover {
    background: var(--primary-900);
    color: var(--primary-300);
}


/* ==================================================================
   FOOTER STYLES - Complete Redesign
   ================================================================== */

/* Main Footer Container */
.site-footer {
    background: #1a1a1a; /* Dark black background */
    color: #ffffff; /* White text */
    padding: 60px 0 0;
    margin-top: 0;
    position: relative;
    z-index: 100;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column.footer-about {
    grid-column: span 1;
}

@media (min-width: 992px) {
    .footer-column.footer-about {
        grid-column: span 1;
        max-width: 350px;
    }
}

/* Footer Title */
.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-title::after {
    content: "";
    height: 3px;
    width: 30px;
    background: var(--primary-500);
    border-radius: 2px;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Footer Headings */
.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-500);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 15px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1.125rem;
}

.social-link:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Specific Social Media Colors on Hover */
.social-link[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-link[aria-label="Twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    box-shadow: 0 5px 15px rgba(230, 104, 60, 0.3);
}

.social-link[aria-label="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.social-link[aria-label="YouTube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* Newsletter Section (Optional) */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.footer-newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.875rem;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-button {
    padding: 0.5rem 1.5rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer-newsletter-button:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column.footer-about {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] .footer-links a::before {
    content: "←";
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 15px;
}

[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

/* Dark Mode Adjustments (if site has light mode) */
[data-theme="light"] .site-footer {
    background: #2d2d2d;
}

[data-theme="light"] .footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .footer-description {
    color: rgba(255, 255, 255, 0.85);
}

/* ==================================================================
   Header Navigation Styles
   ================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-sticky);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 70px;
    position: relative;
}

/* Logo Styles */
.header-logo {
    flex-shrink: 0;
    order: 0;
}

/* Mobile adjustments for logo and menu layout */
@media (max-width: 1024px) {
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }
    
    /* LTR: Menu | Logo | Actions */
    .mobile-menu-toggle {
        grid-column: 1;
        position: static;
        transform: none;
    }
    
    .header-logo {
        grid-column: 2;
        justify-self: start;
    }
    
    .header-actions {
        grid-column: 3;
        justify-self: end;
    }
    
    /* RTL: Actions | Logo | Menu */
    html[dir="rtl"] .mobile-menu-toggle {
        grid-column: 3;
    }
    
    html[dir="rtl"] .header-logo {
        grid-column: 2;
        justify-self: end;
    }
    
    html[dir="rtl"] .header-actions {
        grid-column: 1;
        justify-self: start;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    transition: color 0.3s ease;
}

.logo-link:hover .logo-text {
    color: var(--primary-700);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-600);
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown.active .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
    padding-left: 1.5rem;
}

.dropdown-item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Language Selector - Fixed Position */
.language-selector {
    position: relative;
    z-index: var(--z-modal);
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.language-toggle:hover {
    color: var(--primary-600);
}

.language-code {
    font-weight: 600;
    font-size: 0.875rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: var(--z-popover);
    display: none;
    display: none;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.language-option.active {
    background: var(--primary-50);
    color: var(--primary-600);
    font-weight: 600;
}

.language-flag {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 1;
}

/* Adjust language selector for mobile but keep visible */
@media (max-width: 1024px) {
    .header-actions .language-selector {
        /* Keep visible on all devices */
        display: block;
    }
    
    .header-actions .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Very small screens adjustments */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
    
    .header-logo .logo-text {
        font-size: 1.1rem;
    }
    
    .header-actions .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .header-container {
        padding: 0.75rem 0;
        min-height: 60px;
    }
}

.auth-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-600);
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline-block;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    order: -1;
    transition: all 0.3s ease;
}

/* Show on mobile */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-toggle:hover {
    background: var(--gray-200);
    border-color: var(--primary-600);
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-bar {
    width: 100%;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.mobile-menu-toggle.active .menu-bar {
    background: white;
}

.mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================================================================
   Mobile Sidebar Menu
   ================================================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
}

.mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-sidebar.active .mobile-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* RTL Support */
[dir="rtl"] .sidebar-content {
    right: auto;
    left: -320px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .mobile-sidebar.active .sidebar-content {
    left: 0;
    right: auto;
}

.mobile-sidebar.active .sidebar-content {
    right: 0;
    pointer-events: all;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.sidebar-logo-image {
    height: 40px;
    width: auto;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: var(--primary-600);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-link,
.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-dropdown-toggle:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.sidebar-link-icon {
    width: 20px;
    color: var(--gray-500);
}

.sidebar-link-content {
    flex: 1;
}

.sidebar-link-text {
    display: block;
    font-weight: 500;
}

.sidebar-link-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Sidebar Dropdown */
.sidebar-dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.active .sidebar-dropdown-icon {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-50);
}

.sidebar-dropdown.active .sidebar-dropdown-menu {
    max-height: 500px;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-dropdown-item:hover {
    background: white;
    color: var(--primary-600);
}

.sidebar-item-icon {
    font-size: 0.5rem;
    margin-top: 0.5rem;
    color: var(--gray-400);
}

.sidebar-item-content {
    flex: 1;
}

.sidebar-item-title {
    display: block;
    font-weight: 500;
}

.sidebar-item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    background: var(--gray-50);
}

.sidebar-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.language-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-tile:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.language-tile.active {
    border-color: var(--primary-600);
    background: var(--primary-100);
}

.language-tile-code {
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.25rem;
}

.language-tile-name {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Sidebar Auth Buttons */
.sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    color: white;
    border: none;
}

.sidebar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.sidebar-btn-outline {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.sidebar-btn-outline:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    background: var(--primary-50);
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .sidebar-content {
        width: 100%;
        right: -100%;
    }
    
    .mobile-sidebar.active .sidebar-content {
        right: 0;
    }
}

/* ==================================================================
   Home Page Sections
   ================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    opacity: 0.05;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

@media (max-width: 1024px) {
    .hero-buttons {
        justify-content: center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-600);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-600);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-image-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.hero-image-placeholder i {
    font-size: 4rem;
    color: white;
}

/* Section Commons */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
}

.steps-wrapper {
    position: relative;
}

.steps-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    transform: translateY(-50%);
}

@media (min-width: 1024px) {
    .steps-line {
        display: block;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.step-number,
.step-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.step-number span,
.step-icon i {
    font-size: 1.75rem;
    color: white;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.step-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border: 2px solid var(--primary-600);
}

.pricing-badge {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-content {
    padding: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-right: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.price-period {
    color: var(--gray-600);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-feature {
    display: flex;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature i {
    color: var(--success-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 0.875rem;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
}

.testimonial-text {
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 3rem;
    height: 3rem;
    background: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0 8rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    position: relative;
    overflow: visible;
    margin-bottom: -2px; /* Slight negative margin to ensure no gap */
}

/* Wave Shape Clipping Path */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,100 480,100 720,60 C960,20 1200,20 1440,80 L1440,120 L0,120 Z' fill='%231a1a1a'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Larger wave for desktop */
@media (min-width: 768px) {
    .cta-section::after {
        height: 150px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q360,120 720,75 T1440,90 L1440,150 L0,150 Z' fill='%231a1a1a'/%3E%3C/svg%3E");
    }
}

/* Subtle pattern overlay */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q25,30 50,50 T100,50' stroke='rgba(255,255,255,0.05)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 200px 100px;
    opacity: 0.3;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Contact Cards */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-card-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.contact-card a:hover {
    color: #764ba2;
}

.contact-card a[data-copy]::after {
    content: 'Copy';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.contact-card a[data-copy]:hover::after {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-grid {
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #666;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Business Hours */
.business-hours-list {
    list-style: none;
    padding: 0;
}

.business-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.business-hours-list li:last-child {
    border-bottom: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: #f8f9fa;
}

.faq-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.faq-answer.show,
.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: #666;
    margin: 0;
}

/* Map Section */
.map-container {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact-map {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.info {
    border-left: 4px solid #17a2b8;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-widget a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
}

/* RTL Support */
[dir="rtl"] .contact-card a[data-copy]::after {
    right: auto;
    left: 0;
}

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

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

[dir="rtl"] .map-overlay {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 991px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .contact-hero {
        padding: 3rem 0 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-grid .col-md-6 {
        width: 100%;
    }
    
    .map-container {
        height: 350px;
    }
    
    .notification-container {
        left: 10px;
        right: 10px;
    }
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-animate="fade-in"] {
    animation: fadeIn 0.6s ease forwards;
}

[data-animate="slide-in-left"] {
    transform: translateX(-30px);
}

[data-animate="slide-in-right"] {
    transform: translateX(30px);
}

[data-animate].animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ================================================================== 
   Critical Contact Page Fixes - Language Selector Accessibility
   ================================================================== */

/* Ensure header is always on top and clickable */
.site-header {
    z-index: var(--z-sticky);
    pointer-events: auto;
}

.site-header * {
    pointer-events: auto;
}

/* Language selector must be above everything */
.language-selector {
    position: relative;
    z-index: var(--z-overlay);
}

.language-toggle {
    position: relative;
    z-index: var(--z-overlay);
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Removed duplicate language-dropdown rules that were conflicting */

/* Prevent contact page elements from interfering */
.contact-hero,
.contact-card,
.contact-form,
.contact-map,
.faq-section {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Ensure pseudo elements don't block interactions */
.contact-hero::before,
.contact-hero::after,
.contact-card::before,
.contact-card::after {
    pointer-events: none !important;
    z-index: -1;
}

/* Fix notification container */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.notification-container .alert {
    pointer-events: auto;
}

/* Ensure proper stacking on Contact page */
body#contact-page .site-header,
body.contact-page .site-header {
    z-index: var(--z-sticky);
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .language-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
    }
}

/* =========================================
   WhatsApp Widget Styles
   ========================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-widget a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
}

/* Contact Page Specific Overrides */
body.contact-page .site-header {
    z-index: var(--z-sticky);
    position: fixed;
    pointer-events: auto;
}

body.contact-page [data-language-toggle] {
    pointer-events: auto;
    cursor: pointer;
    z-index: var(--z-overlay);
}

/* Removed contact-page specific rules that were interfering */
