/* SONO GROUP - Main Stylesheet */
/* Using Bootstrap 5 + Custom Styles */

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

/* CSS Variables */
:root {
  --primary: #1a5d1a;
  --primary-dark: #0f3d0f;
  --primary-light: #2e7d2e;
  --secondary: #d4a017;
  --secondary-light: #e8b84a;
  --accent: #f97316;
  --background: #fafaf5;
  --foreground: #1a1a1a;
  --muted: #6b7280;
  --muted-foreground: #9ca3af;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

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

body {
  font-family: 'Poppins', 'Tajawal', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: 'Tajawal', 'Poppins', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 93, 26, 0.3);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 160, 23, 0.3);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar a {
  color: white;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--secondary);
}

.top-bar i {
  margin-right: 5px;
}

body[dir="rtl"] .top-bar i {
  margin-right: 0;
  margin-left: 5px;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: var(--foreground) !important;
  font-weight: 500;
  padding: 10px 20px !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.lang-toggle {
  background: var(--background);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-toggle:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100px 100px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 50px 0;
}

.hero-content h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons .btn {
  margin: 5px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, rgba(26, 93, 26, 0.05), rgba(212, 160, 23, 0.05));
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* CEO Section */
.ceo-section {
  background: white;
}

.ceo-card {
  background: linear-gradient(135deg, rgba(26, 93, 26, 0.05), rgba(212, 160, 23, 0.05));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.ceo-image {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-section {
  background: var(--background);
}

.service-category {
  margin-bottom: 50px;
}

.service-category-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 93, 26, 0.15);
  border-color: var(--primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
}

.service-card h4 {
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.feature-card {
  text-align: center;
  padding: 30px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--secondary);
  transform: scale(1.1);
}

.feature-card h4 {
  color: white;
  margin-bottom: 10px;
}

.feature-card p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
  background: var(--background);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 93, 26, 0.9));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Reviews Section */
.reviews-section {
  background: linear-gradient(135deg, rgba(26, 93, 26, 0.05), rgba(212, 160, 23, 0.05));
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.review-info h5 {
  color: var(--primary);
  margin-bottom: 5px;
}

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

.review-stars {
  color: var(--secondary);
  margin-bottom: 15px;
}

.review-text {
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  background: white;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  padding: 40px;
  color: white;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.contact-info-item h5 {
  color: white;
  margin-bottom: 5px;
}

.contact-info-item p {
  opacity: 0.9;
  margin: 0;
}

.contact-form {
  background: var(--background);
  border-radius: 20px;
  padding: 40px;
}

.form-control {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

/* Map Section */
.map-section {
  height: 400px;
  width: 100%;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--secondary);
  margin-bottom: 20px;
}

.footer p {
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  opacity: 0.7;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
}

.stat-card {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Blog Section */
.blog-section {
  background: var(--background);
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
}

.blog-content h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.blog-meta {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

/* Values Section */
.values-section {
  background: white;
}

.value-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(26, 93, 26, 0.05), rgba(212, 160, 23, 0.05));
  border-radius: 15px;
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 120px 0 80px;
  text-align: center;
  color: white;
}

.page-header h1 {
  color: white;
  margin-bottom: 15px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.2rem;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  justify-content: center;
  margin-top: 20px;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
  color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 60px 0;
  color: white;
}

.newsletter-section h3 {
  color: white;
  margin-bottom: 10px;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
}

@media (max-width: 767px) {
  section {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .contact-info-card {
    margin-bottom: 30px;
  }
}

/* RTL Specific Styles */
body[dir="rtl"] {
  text-align: right;
}

body[dir="rtl"] .text-start {
  text-align: right !important;
}

body[dir="rtl"] .text-end {
  text-align: left !important;
}

body[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

body[dir="rtl"] .me-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(26, 93, 26, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

body[dir="rtl"] .scroll-top {
  right: auto;
  left: 30px;
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
