:root {
    /* Dubai-inspired color palette */
    --bg: #FAFAFA;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --muted: #6B7280;
    --border: #E5E7EB;
    
    /* Accent colors inspired by Dubai skyline & luxury */
    --accent: #0EA5E9; /* Sky blue */
    --accent-hover: #0284C7;
    --gold: #D4AF37; /* Dubai gold */
    --gold-light: #F3E5AB;
    
    /* Semantic colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.8;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.12);
}

.lang {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
}

.lang a {
    padding: 6px 12px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang a:hover {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
}

.lang a.active {
    color: var(--card);
    background: var(--accent);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    background-image: 
        var(--gradient-overlay),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

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

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.12);
    color: #B8860B;
    border-color: rgba(212, 175, 55, 0.3);
}

/* Service Cards */
.service-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.service-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.service-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Filters */
.filters {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.chip:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

.chip input {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--accent);
}

.chip input:checked + span,
.chip:has(input:checked) {
    color: var(--accent);
    font-weight: 600;
}

.chip:has(input:checked) {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--accent);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Utility Classes */
.muted {
    color: var(--muted);
}

.small {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .nav-inner {
        flex-wrap: wrap;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .service-top {
        flex-direction: column;
    }
}

/* Article Styles */
.article {
    max-width: 800px;
    margin: 40px auto;
}

.article h1 {
    font-size: 40px;
    margin-bottom: 12px;
    font-weight: 800;
}

.article-md {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.article-md h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

.article-md h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.article-md p {
    margin-bottom: 16px;
}

.article-md a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-md a:hover {
    border-bottom-color: var(--accent);
}

.article-md img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.article-md ul,
.article-md ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-md li {
    margin-bottom: 8px;
}

.article-md code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent);
}

.article-md pre {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.article-md pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.article-md blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    color: var(--muted);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
