:root {
    --uae-red: #C8102E;
    --uae-green: #00843D;
    --uae-white: #FFFFFF;
    --uae-black: #000000;
    --uae-gold: #D4AF37;
    --primary-color: #00843D;
    --secondary-color: #C8102E;
    --accent-color: #D4AF37;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

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

.brand-subtitle {
    font-size: 0.7rem;
    margin-top: 2px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #006830 50%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

.hero-pattern {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.1;
}

.btn-primary-custom {
    background-color: var(--uae-gold);
    border-color: var(--uae-gold);
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #c9a227;
    border-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.features-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-icon.green {
    background: linear-gradient(135deg, var(--primary-color), #00a84a);
    color: white;
}

.feature-icon.red {
    background: linear-gradient(135deg, var(--secondary-color), #e8173d);
    color: white;
}

.feature-icon.gold {
    background: linear-gradient(135deg, var(--uae-gold), #e8c547);
    color: white;
}

.feature-icon.blue {
    background: linear-gradient(135deg, #0066cc, #0088ff);
    color: white;
}

.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-color), #16213e);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--uae-gold);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #006830 100%);
    padding: 4rem 0;
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.content-section {
    padding: 3rem 0;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.domain-type-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.domain-type-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.domain-type-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.domain-type-card .domain-extension {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uae-gold);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #666;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.query-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.query-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.query-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.query-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.query-input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.1);
}

.query-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #00a84a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 132, 61, 0.4);
}

.query-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    display: none;
}

.result-card.available {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 132, 61, 0.05), rgba(0, 168, 74, 0.05));
}

.result-card.taken {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(232, 23, 61, 0.05));
}

.result-card.error {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.05));
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-icon.success {
    color: var(--primary-color);
}

.result-icon.danger {
    color: var(--secondary-color);
}

.result-icon.warning {
    color: #ffc107;
}

.footer {
    background: linear-gradient(135deg, var(--dark-color), #16213e);
}

.footer a:hover {
    color: var(--uae-gold) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--uae-gold) !important;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .query-input-group {
        flex-direction: column;
    }
    
    .query-input-group input,
    .query-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .query-form {
        padding: 1.5rem;
    }
}

.uae-flag-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--uae-green) 0%, var(--uae-green) 25%, var(--uae-white) 25%, var(--uae-white) 50%, var(--uae-black) 50%, var(--uae-black) 75%, var(--uae-red) 75%, var(--uae-red) 100%);
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

[dir="rtl"] .feature-list li::before {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .domain-type-card {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .domain-type-card:hover {
    transform: translateX(-10px);
}
