/* =========================================
   تصميمات صفحة التواصل وقسم الخدمات
   آخر تحديث: 11 ديسمبر 2025
   ========================================= */

/* =================== CONTACT PAGE STYLES =================== */

/* Contact Hero Section */
.contact-ultra-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0066cc 0%, #ffc107 100%);
  padding-top: 120px;
}

.contact-ultra-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  opacity: 0.5;
  z-index: 0;
}

.contact-ultra-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.contact-ultra-particles::before,
.contact-ultra-particles::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.contact-ultra-particles::before {
  top: -200px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.contact-ultra-particles::after {
  bottom: -200px;
  right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.contact-ultra-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.contact-ultra-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: pulse-icon 3s ease-in-out infinite;
}

.contact-ultra-icon-wrapper i {
  font-size: 3rem;
  color: white;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
}

.contact-ultra-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.contact-ultra-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.contact-ultra-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.contact-badge-item {
  padding: 0.7rem 1.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
}

.contact-badge-item i {
  font-size: 1.1rem;
}

/* Contact Cards Section */
.contact-ultra-section {
  padding: 5rem 0;
  background: #f9fafb;
}

.contact-ultra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-ultra-card {
  position: relative;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: calc(var(--card-index) * 0.1s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-ultra-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.contact-ultra-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066cc 0%, #ffc107 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contact-ultra-card:hover .contact-ultra-card-bg {
  opacity: 0.05;
}

.contact-ultra-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,102,204,0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-ultra-card:hover .contact-ultra-icon {
  transform: rotateY(360deg) scale(1.1);
}

.contact-ultra-icon i {
  font-size: 2rem;
  color: white;
}

.contact-ultra-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.contact-ultra-card a,
.contact-ultra-card p {
  color: #0066cc;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-ultra-card:hover a {
  color: #ffc107;
}

.contact-ultra-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  opacity: 0.05;
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: 0;
}

.contact-ultra-card:hover .contact-ultra-decoration {
  transform: scale(1.5);
  opacity: 0.1;
}

/* Contact Form & Map Wrapper */
.contact-ultra-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.contact-form-ultra {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.08);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 90% 100%, 0 100%);
}

.form-ultra-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-ultra-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  box-shadow: 0 10px 30px rgba(0,102,204,0.2);
}

.form-ultra-icon i {
  font-size: 1.8rem;
  color: white;
  transform: rotate(-45deg);
}

.form-ultra-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 800;
}

.form-ultra-header p {
  color: #6b7280;
  font-size: 1.05rem;
}

.form-ultra-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-ultra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-ultra-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-ultra-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.form-ultra-group label i {
  color: #0066cc;
  font-size: 1rem;
}

.form-ultra-group input,
.form-ultra-group textarea {
  padding: 1rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-ultra-group input:focus,
.form-ultra-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  background: white;
  box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

.form-ultra-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-ultra-submit {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 60px;
  box-shadow: 0 10px 30px rgba(0,102,204,0.2);
  transition: all 0.4s ease;
}

.btn-ultra-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  transition: transform 0.4s ease;
}

.btn-ultra-submit:hover::before {
  transform: scale(1.05);
}

.btn-ultra-submit:hover {
  box-shadow: 0 15px 40px rgba(0,102,204,0.3);
  transform: translateY(-2px);
}

.btn-ultra-text {
  position: relative;
  z-index: 1;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.btn-ultra-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

[dir="rtl"] .btn-ultra-icon {
  right: auto;
  left: 2rem;
}

.btn-ultra-submit:hover .btn-ultra-icon {
  transform: translateY(-50%) translateX(5px);
}

[dir="rtl"] .btn-ultra-submit:hover .btn-ultra-icon {
  transform: translateY(-50%) translateX(-5px);
}

/* Contact Map */
.contact-map-ultra {
  background: white;
  padding: 2rem;
  border-radius: 25px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.08);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 5%);
}

.map-ultra-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.map-ultra-header i {
  font-size: 2rem;
  color: #0066cc;
  background: linear-gradient(135deg, rgba(0,102,204,0.1), rgba(255,193,7,0.1));
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.map-ultra-header h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 700;
}

.map-ultra-container {
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-ultra-container iframe {
  border: 0;
}

/* =================== SERVICES SECTION (Homepage) =================== */

.services-ultra-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, white 0%, #f9fafb 100%);
  position: relative;
  overflow: hidden;
}

.services-ultra-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(0,102,204,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.section-header-ultra {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-icon-ultra {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  box-shadow: 0 10px 40px rgba(0,102,204,0.2);
  animation: float 3s ease-in-out infinite;
}

.section-icon-ultra i {
  font-size: 2.5rem;
  color: white;
  transform: rotate(-45deg);
}

.section-subtitle-ultra {
  font-size: 1.2rem;
  color: #6b7280;
  margin-top: 1rem;
  font-weight: 500;
}

.services-ultra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-ultra-card {
  position: relative;
  background: white;
  padding: 2.5rem 1.8rem;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 85% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-ultra-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  transition: top 0.5s ease;
  z-index: 0;
}

.service-ultra-card:hover::before {
  top: 0;
}

.service-ultra-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0,102,204,0.2);
}

.service-ultra-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,102,204,0.05) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: 0;
}

.service-ultra-card:hover .service-ultra-bg {
  transform: scale(1.5);
  opacity: 0;
}

.service-ultra-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,102,204,0.05);
  transition: all 0.5s ease;
  z-index: 0;
}

[dir="rtl"] .service-ultra-number {
  right: auto;
  left: 1.5rem;
}

.service-ultra-card:hover .service-ultra-number {
  color: rgba(255,255,255,0.15);
  transform: scale(1.2);
}

.service-ultra-icon-wrapper {
  width: 85px;
  height: 85px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.service-ultra-icon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0066cc, #ffc107);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,102,204,0.2);
  transition: all 0.5s ease;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.service-ultra-card:hover .service-ultra-icon {
  background: white;
  transform: rotate(90deg);
  clip-path: circle(50%);
}

.service-ultra-icon i {
  font-size: 2.2rem;
  color: white;
  transition: all 0.5s ease;
}

.service-ultra-card:hover .service-ultra-icon i {
  color: #0066cc;
  transform: rotate(-90deg) scale(1.1);
}

.service-ultra-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 800;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  transition: color 0.5s ease;
}

.service-ultra-card:hover h3 {
  color: white;
}

.service-ultra-card p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: color 0.5s ease;
}

.service-ultra-card:hover p {
  color: rgba(255,255,255,0.9);
}

.service-ultra-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.service-ultra-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0066cc;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.service-ultra-card:hover .service-ultra-link {
  color: white;
  gap: 1rem;
}

.service-ultra-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.service-ultra-card:hover .service-ultra-link i {
  transform: translateX(5px);
}

[dir="rtl"] .service-ultra-card:hover .service-ultra-link i {
  transform: translateX(-5px);
}

/* =================== RESPONSIVE DESIGN =================== */

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .contact-ultra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-ultra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-ultra-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .contact-ultra-hero {
    min-height: 50vh;
    padding-top: 100px;
  }
  
  .contact-ultra-content h1 {
    font-size: 2rem;
  }
  
  .contact-ultra-content p {
    font-size: 1.1rem;
  }
  
  .contact-ultra-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-ultra-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-ultra {
    padding: 2rem 1.5rem;
  }
  
  .form-ultra-row {
    grid-template-columns: 1fr;
  }
  
  .map-ultra-container {
    height: 350px;
  }
  
  .service-ultra-number {
    font-size: 2rem;
  }
}
