/* المتغيرات الجذرية */
:root {
    --primary: #dd8a3c;
    --secondary: #e69a4b;
    --accent1: #eaa153;
    --accent2: #f3b164;
    --accent3: #f7b96c;
    --brown-dark: #5c3d2e;
    --beige: #deb887;
    --text-dark: #333;
    --text-light: #fff;
    --gradient-bg: linear-gradient(135deg, #f7b96c, #e69a4b, #dd8a3c);
}

/* تنسيق عام */
body {
    font-family: "Rubik", sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: var(--gradient-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* الشريط العلوي */
.top-bar {
    background-color: var(--brown-dark);
    color: var(--text-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--beige);
}

.top-bar img {
    height: 70px;
    object-fit: contain;
}

.slogan {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent3);
}

.date-time {
    font-size: 1.1em;
    color: var(--beige);
}

.phone a, .support a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone a:hover, .support a:hover {
    color: var(--accent2);
}

/* الهيدر */
header {
    background: linear-gradient(to bottom, var(--brown-dark), var(--primary), var(--secondary));
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--beige);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo {
    font-size: 1.8em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    object-fit: contain;
}

/* Navigation */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  padding: 18px;
  transition: all 0.7s ease;
  border-radius: 5px;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 22px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}


nav ul li a:hover {
   background-color: var(--brown-dark);
  color: var(--text-light);
  transform: scale(1.05);
  border-radius: 20px;
}

nav ul li a.nav-link {
 background-color: var(--brown-dark);
  padding: 12px;
  border-radius: 12px;
  color: #ffffff;
  
}


.nav-link {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 22px;
}

.nav-link a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}


.nav-link a:hover {
   background-color: var(--brown-dark);
  color: var(--text-light);
  transform: scale(1.05);
  border-radius: 20px;
}

.nav-link a.active {
  background-color: var(--brown-dark);
  color: var(--text-light);
  padding: 12px;
  border-radius: 12px;
  
}




.quote-btn {
    background: var(--accent2);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
/* قسم العرض */
.testi-showcase {
    padding: 80px 50px;
    text-align: center;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
}

.testi-title {
    font-size: 2.5em;
    color: var(--brown-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 2s ease-in-out;
}

.testi-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
}

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

.stat-item h3 {
    font-size: 2em;
    color: var(--primary);
    margin: 0;
}

.stat-item p {
    font-size: 1em;
    color: var(--text-dark);
}

.testi-video {
    margin-bottom: 40px;
}

.testi-video iframe {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border-radius: 10px;
    border: 2px solid var(--beige);
}

.testi-video p {
    font-size: 1.1em;
    color: var(--brown-dark);
    margin-top: 10px;
}

.testi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.testi-quote {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testi-quote:hover {
    transform: translateY(-5px);
}

.testi-quote p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.testi-author {
    font-size: 0.9em;
    color: var(--brown-dark);
    font-style: italic;
    display: block;
}

.rating {
    margin-top: 5px;
}

.star {
    color: var(--primary);
}

/* قسم النموذج */
.testi-form {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-title {
    font-size: 1.8em;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

#testi-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--beige);
    border-radius: 5px;
    resize: vertical;
}

.rating-input {
    margin-bottom: 15px;
}

.rating-input label {
    font-size: 1em;
    color: var(--text-dark);
    margin-right: 10px;
}

.stars i {
    font-size: 1.5em;
    color: #ccc;
    cursor: pointer;
    margin-left: 5px;
}

.stars i:hover,
.stars i.active {
    color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent1);
}

/* قسم التواصل */
.testi-contact {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-title {
    font-size: 1.8em;
    color: var(--brown-dark);
    margin-bottom: 15px;
}

.contact-info {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--brown-dark);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    font-size: 1.5em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

/* أيقونات التواصل */
.contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.contact-button span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
    pointer-events: none;
}

.contact-button:hover span {
    opacity: 1;
    top: -30px;
}

.whatsapp-button {
    background: #25d366;
    color: var(--text-light);
    margin-right: 20px;
}

.whatsapp-button i {
    font-size: 1.5em;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    background: #1da851;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.2);
}

.call-button {
    background: var(--brown-dark);
    color: var(--text-light);
    margin-left: 20px;
}

.call-button i {
    font-size: 1.5em;
    color: var(--primary);
}

.call-button:hover {
    transform: translateY(-3px);
    background: #4a2f24;
    box-shadow: 0 6px 15px rgba(92, 61, 46, 0.2);
}

/* تحسين قسم الفيديو */
.video-placeholder {
    background-color: #0000003e;
    margin: 30px auto;
    max-width: 550px;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in-out;
}

.video-placeholder video {
    width: 100%;
    height: 500px;
    transition: transform 0.3s ease;
}

.video-placeholder video:hover {
    transform: scale(1.02);
}
.video-placeholder p {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


/* تحسين أيقونات التواصل في الأسفل كدوائر */
.contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%; /* جعلها دائرة */
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* لضبط النص داخل الدائرة */
    position: relative;
}


.contact-button:hover span {
    opacity: 1;
    right: -30px; /* ظهور النص فوق الدائرة */
}

.call-button {
    background: #ffffff;
    margin-left: 20px;
}

.call-button i {
    font-size: 1.5em;
    color: #dd8a3c;
}

.call-button:hover {
    transform: translateY(-3px);
    background: #ffffffbe;
    box-shadow: 0 6px 15px rgba(92, 61, 46, 0.2);
}


.whatsapp-button {
    background: #25d366;
    color: #fff;
    margin-right: 20px;
}

.whatsapp-button i {
    font-size: 1.5em;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    background: #1da851;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.2);
}


/* إضافة الرسوم المتحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* الفوتر */
footer {
    background: var(--brown-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent3);
}

/* الرسوم المتحركة */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 15px;
  height: 20px;
}

::-webkit-scrollbar-track {
  background: var(--brown-dark);
  border-radius: 1px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
      180deg,
      var(--accent1),
      var(--accent2),
      var(--accent3)
  );
  border-radius: 12px;
  border: 2px solid var(--beige);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
      45deg,
      var(--accent1),
      var(--accent2),
      var(--accent3)
  );
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
      45deg,
       var(--accent1),
      var(--accent2),
      var(--accent3)
  );
}
