@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400..700&display=swap');

:root {
  --primary: #ff6b00;
  --secondary: #e65a00;
  --dark: #222;
  --light: #ffffff;
  --white: #fff;
  --text: #444;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', 'Noto Naskh Arabic', sans-serif;
  line-height: 1.6;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background-color: #e65a00;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary:hover {
  background-color: #ff8c00;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 1rem 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
  padding-left: 2rem;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5% 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), #ffb273);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Hero Slider Section */
.hero-slider-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
}

.hero-slider-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 5%;
  text-align: center;
  margin-top: 4rem;
}

.hero-slider-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: none;
  -webkit-text-fill-color: var(--white);
}

.hero-slider-content p {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-slider-content .hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Cards */
.services {
  padding: 5rem 5%;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.3);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card .btn {
  align-self: center;
  margin-top: auto;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Stats Section */
.stats {
  padding: 4rem 5%;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.stat-box {
  padding: 1.5rem;
}
.stat-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffa366;
}
.stat-box h3 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.stat-box p {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Inner Page Hero */
.page-hero {
  padding: 12rem 5% 6rem;
  background-color: var(--dark); /* Fallback, overridden by HTML inline styles */
  color: var(--white);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: var(--white);
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Service Details */
.service-details {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.service-features ul {
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-features li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary);
}

/* Why Choose Us */
.why-us {
  padding: 5rem 5%;
  background: var(--light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.why-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-section {
  padding: 5rem 5%;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(10px);
  border-left: 4px solid var(--primary);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
}

.contact-card h4 {
  margin-bottom: 0.2rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

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

/* CTA Section */
.cta {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--primary) 0%, #ffa366 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
footer {
  background: var(--dark);
  color: #aaa;
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col p {
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--transition);
}

.float-call {
  left: 2rem;
  background-color: var(--primary);
  animation: pulse-blue 2s infinite;
}

.float-whatsapp {
  right: 2rem;
  background-color: #25D366;
  animation: pulse-green 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .contact-container, .service-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 300px;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem 0;
    transition: left 0.4s ease;
    border-radius: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: var(--dark);
  }

  .nav-links a:hover, .nav-links a.active {
    background: #f8f9fa !important;
    color: var(--primary) !important;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.03);
    width: 100%;
    display: none;
    background: #fafafa;
    padding: 0;
  }
  
  .dropdown-menu a {
    padding: 14px 25px 14px 45px !important; /* Indent sub items */
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Rotate chevron when active */
  .dropdown > a i {
    transition: transform 0.3s ease;
  }
  .dropdown.active > a i {
    transform: rotate(180deg);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-slider-content h2 {
    font-size: 1rem !important;
    padding: 0 10px;
  }
  .hero-slider-content h2 span {
    font-size: 1.15rem !important;
  }
  .hero-slider-content h1 {
    font-size: 2rem;
    padding: 0 10px;
  }
  
  .hero-slider-content {
    margin-top: 5rem;
    padding: 0 10%;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }
  
  /* Compact Service Cards for Mobile */
  .services {
    padding: 3rem 5%;
  }
  .services-grid {
    gap: 1rem;
  }
  .service-card {
    padding: 1.2rem 1.5rem;
  }
  .service-card img {
    height: 140px;
    margin-bottom: 1rem;
  }
  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  .service-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1rem;
  }
  
  .float-call { left: 1rem; }
  .float-whatsapp { right: 1rem; }
  
  /* Mobile Border Bug Fixes / Responsive Enhancements */
  .top-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px 5%;
  }
  .contact-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    padding: 0 10px;
  }
  .hero-btns .btn {
    width: 90%;
    margin: 0 auto;
  }
}
