/* css/style.css - الملف الرئيسي للأنماط */
:root {
  --primary: #143759;
  --secondary: #143759;
  --accent: #2DB4AC;
  --light: #FFFFFF;
  --text: #212529;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text);
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* تيبوغرافيا */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent);
}

.bg-dark-navy {
  background-color: var(--primary);
}

.bg-secondary-navy {
  background-color: var(--secondary);
}

/* أزرار */
.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(233, 196, 106, 0.3);
}

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 500;
  border-radius: 50px;
  padding: 0.5rem 1.8rem;
  transition: var(--transition);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background-color: var(--light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 0.5rem 0;
  background-color: rgba(13, 27, 42, 0.98) !important;
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  margin-left: 10px;
  transition: var(--transition);
}

.logo-light {
  display: none;
}

.navbar-scrolled .logo-dark {
  display: none;
}

.navbar-scrolled .logo-light {
  display: block;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-logo {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 0.85rem;
  }

  .navbar-logo {
    height: 28px;
    margin-left: 5px;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Fix for potential row overflow */
.row {
  margin-left: 0;
  margin-right: 0;
}

.row>* {
  padding-left: 10px;
  padding-right: 10px;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  margin: 0 0.3rem;
  padding: 0.5rem 1rem !important;
  border-radius: 30px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(45, 180, 172, 0.08);
}

.navbar-scrolled .nav-link {
  color: white !important;
}

.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .navbar-brand span {
  color: white !important;
}

.navbar-scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-scrolled .navbar-toggler-icon {
  filter: invert(1) brightness(100%);
}

/* Hero */
.hero {
  min-height: 95vh;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 38, 59, 0.85) 100%), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0;
  padding-top: 80px;
}

/* Services Hero */
.services-hero {
  height: 400px;
  background: linear-gradient(rgba(20, 55, 89, 0.85), rgba(20, 55, 89, 0.85)), url('https://images.unsplash.com/photo-1503387762-592dea58ef23?q=80&w=2070&auto=format&fit=crop') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}

.services-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.breadcrumb-custom a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-custom span {
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* Service preview cards inside hero */
.service-preview-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.service-preview-card i {
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-preview-card h4 {
  color: white;
  font-size: 1.4rem;
}

.service-preview-card:hover {
  transform: translateY(-15px);
  background: rgba(233, 196, 106, 0.15);
  border-color: var(--accent);
}

/* Section titles */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--accent);
  margin-top: 10px;
  border-radius: 10px;
}

.text-center .section-title:after {
  margin-left: auto;
  margin-right: auto;
}

/* Why choose us card */
.why-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 30px;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid #eee;
  height: 100%;
  text-align: center;
}

.why-card i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.why-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 40px -10px rgba(233, 196, 106, 0.3);
  border-color: var(--accent);
}

/* Statistics */
.stat-item {
  text-align: center;
  color: white;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stat-item h2 {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
}

.stat-item p {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* Past works */
.past-work-item {
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.past-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.past-work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 27, 42, 0.95));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(70%);
  transition: var(--transition);
}

.past-work-item:hover .past-work-overlay {
  transform: translateY(0);
}

.past-work-item:hover img {
  transform: scale(1.1);
}

.past-work-overlay h4 {
  font-size: 1.6rem;
  font-weight: 700;
}

.past-work-overlay p {
  opacity: 0.9;
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: #ddd;
  padding-top: 4rem;
  border-top: 5px solid var(--accent);
}

.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.footer .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 0.8rem;
  color: white;
}

.footer .form-control::placeholder {
  color: #aaa;
}

.footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: none;
}

.footer .btn-accent {
  border-radius: 15px;
  width: 100%;
}

.footer a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent);
  padding-right: 5px;
}

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: 10px;
  transition: var(--transition);
  font-size: 1.4rem;
}

.footer .social-icon:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1);
}

.footer-bottom {
  background-color: white;
  color: black;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.footer-bottom p {
  color: black !important;
  font-weight: 500;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary) !important;
  font-weight: 700;
}

.footer-bottom .footer-logo {
  /* filter: brightness(0); Removed to show actual colors */
}

/* Phone number direction fix */
.footer-phone {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

[dir="rtl"] .footer-phone {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

hr {
  opacity: 0.2;
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Projects filter */
.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  margin: 0 5px;
  border-radius: 30px;
  padding: 8px 25px;
  font-weight: 500;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* Service cards */
.service-card {
  transition: var(--transition);
  border-radius: 20px;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 25px 35px -10px rgba(0, 0, 0, 0.2) !important;
}

/* Modern Service Cards */
.modern-service-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modern-service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px -12px rgba(20, 55, 89, 0.15);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-service-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-icon-overlay {
  position: absolute;
  bottom: -25px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(45, 180, 172, 0.3);
  z-index: 2;
}

.modern-service-card .card-body {
  padding: 35px 25px 25px;
  text-align: right;
}

.modern-service-card h4 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.modern-service-card p {
  color: #6c757d;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.social-icon2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon2:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Footer Credits Styles */
.footer-logo {
  height: 24px;
  width: auto;
  margin: 0 5px;
  vertical-align: middle;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Our Process Section */
.process-section {
  background-color: #f8f9fa;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 25px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--accent);
  transition: var(--transition);
}

.process-step:hover .step-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.step-number {
  position: absolute;
  top: 0;
  right: 15px;
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid white;
}

.process-step h4 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--accent) 0, var(--accent) 10px, transparent 10px, transparent 20px);
    z-index: -1;
    opacity: 0.3;
  }
  
    .process-step:first-child::after {
    display: none;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(20, 55, 89, 0.9), rgba(20, 55, 89, 0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
  padding: 100px 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.3rem;
  }
}

/* Projects Page Redesign */
.project-row {
  background: white;
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
}

.project-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.project-gallery-grid .main-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition);
}

.project-gallery-grid .side-img {
  width: calc(50% - 10px);
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

.project-gallery-grid .side-img:hover {
  transform: scale(1.05);
}

.project-features li {
  font-size: 1.1rem;
  color: #555;
}

.project-features i {
  color: var(--accent);
}

[dir="rtl"] .project-features i {
  margin-left: 15px;
}

[dir="ltr"] .project-features i {
  margin-right: 15px;
}

hr.opacity-10 {
  opacity: 0.1;
}

/* Contact Info Styles */
.contact-icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--primary) !important;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-info-list .d-flex:hover .contact-icon-box {
  background-color: var(--accent) !important;
  color: var(--primary) !important;
  transform: scale(1.1);
}