@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Outfit:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --bg-main: #3a3a3a;
  --bg-footer: #252525;
  --text-primary: #ffffff;
  --text-secondary: #c0c0c0;
  --text-muted: #8e8e8e;
  --brand-green: #00b050; /* تم اختيار درجة لون مستوحاة من شعار التيمت باي الأخضر */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  font-family: 'Cairo', 'Outfit', sans-serif;
  color: var(--text-primary);
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* قسم الهيرو / الشعار وقريباً */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 2.5rem;
}

.logo-wrapper img {
  max-width: 850px;
  width: 90%;
  height: auto;
  display: block;
  margin-right: 80px; /* يدفع الشعار لليسار بشكل أكبر */
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.text-ar {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 176, 80, 0.2);
  margin-bottom: -5px;
}

.text-en {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-family: 'Outfit', sans-serif;
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px rgba(0, 176, 80, 0.2);
    opacity: 0.8;
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(0, 176, 80, 0.6);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .text-ar {
    font-size: 2.5rem;
  }
  .text-en {
    font-size: 1.3rem;
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .text-ar {
    font-size: 2rem;
  }
  .text-en {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }
}

.loading-icon-wrapper {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.loading-icon {
  fill: var(--brand-green);
  animation: rotateHourglass 4s infinite ease-in-out, pulseIcon 2s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(0, 176, 80, 0.4));
  transition: transform 0.3s ease;
  cursor: pointer;
}

.loading-icon:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 18px rgba(0, 176, 80, 0.8));
}

@keyframes rotateHourglass {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(180deg); }
  50% { transform: rotate(180deg); }
  95% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseIcon {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* مذيل الصفحة (Footer) */
.footer {
  background-color: var(--bg-footer);
  border-top: 4px solid var(--brand-green);
  padding: 3.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brand-green);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--brand-green);
  padding-right: 5px;
}

/* عمود التعريف بالشركة */
.about-col {
  gap: 0.2rem;
}

.about-col .footer-logo {
  max-width: 330px;
  height: auto;
  margin-bottom: 0;
}

.about-col .about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: -8px; /* يسحب النص للأعلى ليلتصق بالشعار مباشرة */
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  fill: var(--text-secondary);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  background-color: var(--brand-green);
  fill: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 176, 80, 0.3);
}

/* عمود التواصل */
.contact-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-icon {
  width: 18px;
  height: 18px;
  fill: var(--brand-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* شريط الحقوق */
.copyright-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-bar p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .copyright-bar {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   الترويسة الرئيسية للموقع (Header)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(37, 37, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.header-logo:hover {
  transform: scale(1.03);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.2rem 0;
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-green);
  transition: var(--transition);
}

.header-link:hover {
  color: var(--text-primary);
}

.header-link:hover::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, var(--brand-green), #009040);
  color: #ffffff;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 176, 80, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 176, 80, 0.45);
  color: #ffffff;
}

.header-cta:active {
  transform: translateY(0);
}

/* التجاوب للهواتف والشاشات الصغيرة للترويسة */
@media (max-width: 768px) {
  .header-link {
    display: none;
  }
  .header-nav {
    gap: 1rem;
  }
  .header-container {
    padding: 0.8rem 1.5rem;
  }
  .header-logo img {
    height: 36px;
  }
  .header-cta {
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
  }
}

