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

:root {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent-color: #0ea5e9; 
  --accent-gradient: linear-gradient(135deg, #0ea5e9, #4f46e5);
  --border-color: rgba(0, 0, 0, 0.08);
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
  --shadow-color: rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-en);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.lang-selector select {
  background: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  z-index: -1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
  animation: fadeUp 1s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s ease-out 0.4s both;
}

.btn-primary {
  background: var(--accent-gradient);
  padding: 15px 35px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  padding: 15px 35px;
  border-radius: 50px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 800;
}

.section-title span {
  color: var(--accent-color);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.service-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
}

/* Reviews */
.reviews-container {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.reviews-container::-webkit-scrollbar {
  height: 8px;
}
.reviews-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.review-card {
  min-width: 350px;
  background: var(--surface-color);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  scroll-snap-align: start;
}

.review-card .stars {
  color: #fbbf24;
  margin-bottom: 15px;
}

.review-card p {
  font-style: italic;
  margin-bottom: 20px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--border-color);
}

.reviewer-info h4 {
  font-size: 1.1rem;
}

.reviewer-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Blogs */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img {
  width: 100%;
  height: 200px;
  background: var(--border-color);
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.read-more {
  color: var(--text-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--accent-color);
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
}

.contact-info {
  background: var(--accent-gradient);
  padding: 60px 50px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 1.15rem;
}

.contact-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
}

.contact-item a { transition: opacity 0.3s; }
.contact-item a:hover { opacity: 0.8; }

.contact-form {
  padding: 60px 50px;
  background: #fff;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.contact-form button {
  padding: 18px;
  font-size: 1.15rem;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .cta-buttons a, .cta-buttons button {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
  
  /* Disable horizontal scroll for reviews */
  .reviews-container {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
    gap: 20px;
  }
  .review-card {
    min-width: 100%;
    scroll-snap-align: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }
  .contact-info, .contact-form {
    padding: 30px 20px;
  }
  .contact-info h3 {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 20px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 20px 0;
    gap: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-200%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    z-index: 999;
  }
  .nav-links li a {
    display: block;
    padding: 15px;
    font-size: 1.2rem;
  }
  .lang-selector {
    margin: 10px auto;
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 30px;
    bottom: 20px;
    right: 20px;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #fff;
}

