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

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: #fbfbfd;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* ===== HEADER & NAVBAR ===== */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-login-nav {
    background-color: #0071e3;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
}

/* ===== HERO SECTION ===== */
.hero-ads {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-ads h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-ads p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background-color: #0071e3;
    color: white;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1d1d1f;
}

/* ===== SERVICES/FEATURES ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ===== STATS ===== */
.ads-stats {
    background-color: #f5f5f7;
    width: 100%;
    max-width: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat {
    font-size: 40px;
    font-weight: 800;
    color: #667eea;
}

/* ===== ABOUT ===== */
.about {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.contact-btn {
    display: inline-block;
    margin-top: 15px;
    color: #0071e3;
    text-decoration: none;
    font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 40px 20px;
    text-align: center;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide menu on mobile for simplicity or use a burger menu */
    }
    
    .hero-ads h1 {
        font-size: 28px;
    }
    
    section h2 {
        font-size: 26px;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-cards, .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DASHBOARD & FORMS ===== */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 100px auto;
}

.input-group {
    margin-bottom: 20px;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
