:root {
  --primary-color: #c9a100;
  --secondary-color: #1a1a1a;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --card-shadow: 0 6px 15px rgba(0,0,0,0.08);
  --header-bg: #ffffff;
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* تحسينات الهيدر الجديدة */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--header-bg);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: relative;
  z-index: 100;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 80px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.logo:hover {
  transform: scale(1.1) rotate(-5deg);
  animation: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover:after {
  width: 100%;
  left: 0;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(201, 161, 0, 0.2);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(201, 161, 0, 0.3);
}

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

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

.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  animation: fadeIn 1s ease-out;
}

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

.hero h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin: 1.5rem auto;
  max-width: 700px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  grid-column: 1 / -1;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

.service {
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(201, 161, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.service:hover .service-icon {
  background: var(--primary-color);
  color: #fff;
  transform: rotate(10deg) scale(1.1);
}

.service h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* تحسينات نموذج التواصل */
.contact {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
}

.contact-form-container {
  max-width: 600px;
  margin: 2rem auto 0;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 161, 0, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.service-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  background: #fff;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  border: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201, 161, 0, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--secondary-color);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.form-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo {
    height: 70px;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .services {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 65px;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .contact-form {
    gap: 1rem;
  }
}

