/* Variables */
:root {
  --primary-color: #ffc107;
  --secondary-color: #2d3748;
  --accent-color: #eaeaea;
  --text-color: #333;
  --light-text: #fff;
  --dark-text: #1a202c;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 8px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  direction: rtl;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-animation {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Layout & Common Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn .icon {
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-text);
}

.btn-primary:hover {
  background-color: #e6af06;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-secondary:hover {
  background-color: #3a4a61;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.icon {
  width: 24px;
  height: 24px;
}

.img-fluid {
  border-radius: var(--radius);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo h1 span {
  color: var(--primary-color);
}

.nav-list {
  display: flex;
}

.nav-list li {
  margin-right: 30px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 100px 0 100px;
  background-color: var(--accent-color);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #718096;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  width: 45%;
  animation-delay: 0.3s;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px var(--shadow-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 35px;
  height: 35px;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-text);
}

.service-description {
  color: #718096;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--accent-color);
}

.about-content {
  display: flex;
  align-items: center;

}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  color: #4a5568;
}

.about-features {
  margin-top: 30px;
}

.about-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-features .icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: #fff;
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-container {
  overflow: hidden;
  position: relative;
  height: 250px;
}

.testimonial {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.5s ease;
  visibility: hidden;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.testimonial-content {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  text-align: center;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #4a5568;
}

.testimonial-author {
  margin-top: 20px;
}

.author-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-text);
}

.author-title {
  font-size: 0.9rem;
  color: #718096;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.prev-btn, .next-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-color);
}

.prev-btn svg, .next-btn svg {
  width: 20px;
  height: 20px;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e0;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* Contact Section */
.contact {
  padding: 30px 0;
  background-color: var(--accent-color);
}


.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.contact-method {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary-color);
}

.contact-method h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.contact-method p {
  margin-bottom: 10px;
  color: #718096;
}

.contact-link {
  font-weight: 600;
  color: var(--secondary-color);
}

.contact-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}



.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Jobs Section */
.jobs {
  padding: 20px 0;
  padding-bottom: 90px;
  background-color: #fff;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.job-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

.job-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.job-card p {
  margin-bottom: 15px;
  color: #718096;
}

.job-card ul {
  margin-bottom: 20px;
  text-align: right;
}

.job-card ul li {
  margin-bottom: 8px;
  color: #4a5568;
  position: relative;
  padding-right: 20px;
}

.job-card ul li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  right: 0;
  top: 0;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-info p {
  margin-bottom: 20px;
  color: #cbd5e0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-right: 5px;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #cbd5e0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-image {
    width: 80%;
    margin-top: 50px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 20px var(--shadow-color);
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    margin: 10px 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    padding: 100px 0 80px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .services, 
  .about, 
  .testimonials, 
  .contact,
  .jobs {
    padding: 30px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
