:root {
    --primary-color: #584058;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.language-switcher {
    color: white;
    cursor: pointer;
}

/* Hamburger for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
   

        background: linear-gradient(rgba(0, 0, 0, 0.1), #584058), url(../img/qq2.jpg) no-repeat center center / cover;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    height: 350px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-img {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
    background-color: var(--light-bg);
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    font-weight: bold;
}

/* ===== ADS ===== */
.ads-section {
    padding: 2rem 0;
    background-color: white;
}

.ads-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ad-placeholder {
    width: 300px;
    height: 250px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.developer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


.forms-container {
  display: flex;              /* البوكسات جنب بعض */
  justify-content: center;    /* توسيط البوكسات */
  gap: 20px;                  /* مسافة بين البوكسات */
  flex-wrap: wrap;            /* السماح بالانكسار على الشاشات الصغيرة */
  margin-top: 30px;
}

.form-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  width: 280px;               /* عرض ثابت لكل بطاقة */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.form-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  background: #f0f8ff;
}

.form-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.form-card h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.form-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.form-card .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.form-card .btn:hover {
  background: #0056b3;
}







/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.8rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    nav.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
