/* ===========================
   المستقبل السريع للخدمات النفطية والغاز
   Fast Future Oil & Gas Services
   نظام التصميم - CSS3
   =========================== */

/* === المتغيرات (CSS Variables) === */
:root {
  /* ألوان الهوية البصرية من الشعار */
  --primary-blue: #1E3A5F;
  --primary-blue-dark: #152A45;
  --primary-blue-light: #2A4A73;
  --accent-orange: #D94E1F;
  --accent-orange-light: #F97316;
  --accent-orange-dark: #B83D14;

  /* ألوان محايدة */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* خطوط */
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-english: 'Poppins', 'Segoe UI', sans-serif;

  /* ظلال */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* انتقالات */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === إعادة تعيين الأساسيات === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.7;
  direction: rtl;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* === الحاوية الرئيسية === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === الهيدر (Header) === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.header__logo:hover .header__logo-img {
  transform: scale(1.05);
}

/* === قائمة التنقل === */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-normal);
}

.nav__link:hover {
  color: var(--accent-orange);
}

.nav__link:hover::after {
  width: 100%;
}

/* زر القائمة للموبايل */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* === قسم Hero Slider === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(30, 58, 95, 0.85) 0%,
      rgba(30, 58, 95, 0.6) 50%,
      rgba(217, 78, 31, 0.3) 100%);
}

.slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1.5rem;
  z-index: 2;
}

.slide__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.slide.active .slide__title {
  opacity: 1;
  transform: translateY(0);
}

.slide__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.5s;
}

.slide.active .slide__subtitle {
  opacity: 0.95;
  transform: translateY(0);
}

.slide .hero__btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.7s, background 0.3s ease, transform 0.3s ease;
}

.slide.active .hero__btn {
  opacity: 1;
  transform: translateY(0);
}

.hero__btn {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
}

.hero__btn:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-xl);
}

/* أزرار التنقل */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__btn:hover {
  background: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

.slider__btn svg {
  width: 24px;
  height: 24px;
}

.slider__btn--prev {
  right: 2rem;
}

.slider__btn--next {
  left: 2rem;
}

/* نقاط التنقل */
.slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.slider__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider__dot.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slider__btn {
    width: 40px;
    height: 40px;
  }

  .slider__btn--prev {
    right: 1rem;
  }

  .slider__btn--next {
    left: 1rem;
  }
}

/* === الأقسام العامة === */
.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--gray-100);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* === قسم من نحن === */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.4), transparent);
}

.about__content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.about__content p {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
  line-height: 1.9;
}

/* === قسم الخدمات === */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  --delay: 0;
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation-delay: calc(var(--delay) * 0.1s);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(30, 58, 95, 0.25);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.service-card__icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed var(--accent-orange-light);
  opacity: 0;
  transition: all 0.4s ease;
  animation: spin 8s linear infinite paused;
}

.service-card:hover .service-card__icon::after {
  opacity: 1;
  animation-play-state: running;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.service-card:hover .service-card__icon {
  transform: rotateY(360deg);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1);
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
  color: var(--accent-orange);
}

.service-card__desc {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* === قسم الأسطول === */
.fleet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.fleet-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
}

.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.fleet-item:hover img {
  transform: scale(1.1);
}

.fleet-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background var(--transition-normal);
}

.fleet-item:hover .fleet-item__overlay {
  background: rgba(0, 0, 0, 0.15);
}

/* === قسم الاتصال === */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-info__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 24px;
  height: 24px;
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__text {
  font-size: 1rem;
}

.contact-info__text strong {
  display: block;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.contact-info__text span {
  font-family: var(--font-english);
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* نموذج الاتصال */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-arabic);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(217, 78, 31, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-submit:hover {
  background: var(--primary-blue-dark);
}

/* === الفوتر === */
.footer {
  background: var(--primary-blue);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-orange-light);
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* === التوافق مع الجوال === */
@media (max-width: 992px) {

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav__toggle {
    display: flex;
  }

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* === أنيميشن للظهور عند التمرير === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}