/* ArchiDZ Stylesheet */

:root {
  --primary-color: #1a2530;
  --primary-light: #2c3e50;
  --secondary-color: #c89b51;
  --secondary-hover: #b38842;
  --text-dark: #222222;
  --text-gray: #666666;
  --bg-light: #f5f7f9;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
  --border-radius: 8px;
}

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

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

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

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
}

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

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

/* Section Headers */
.section-header { margin-bottom: 3rem; }
.subtitle {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
}
.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: 800;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-info {
  display: flex;
  gap: 20px;
}
.contact-info i { color: var(--secondary-color); margin-inline-end: 5px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: #fff; }
.social-links a:hover { color: var(--secondary-color); }

/* Header */
.header {
  background-color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--secondary-color); }
.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.logo-text p {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.nav-links { display: flex; gap: 25px; }
.nav-links a {
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary-color); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--secondary-color);
}

.nav-actions { display: flex; align-items: center; gap: 15px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  /* The inline background image will be set if available, but for now we rely on the overlay */
  background-image: url('images/hero_bg_1783183638664.png');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,37,48,0.2) 0%, rgba(26,37,48,0.9) 80%);
}
.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-text {
  max-width: 600px;
  color: #fff;
}
.hero-text h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text h2 span { color: var(--secondary-color); }
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero-btns { display: flex; gap: 15px; }

/* Features */
.features {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Projects */
.projects { padding: 80px 0; }
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-gray);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.project-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  group: hover;
}
.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}
.project-info h4 { font-size: 1rem; font-weight: 700; }
.project-info p { font-size: 0.8rem; opacity: 0.9; }

/* Services */
.bg-light { background-color: var(--bg-light); }
.services { padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary-color);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* About */
.about { padding: 80px 0; }
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}
.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
}
.about-content > p {
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.stat-item h4 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1;
}
.stat-item p { color: var(--text-gray); font-size: 0.9rem; font-weight: 600;}

/* Testimonials */
.testimonials { padding: 80px 0; overflow: hidden; }
.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 2;
}
.nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.testimonials-slider {
  display: flex;
  gap: 20px;
  flex: 1;
  transition: transform 0.5s ease;
}
.testimonial-card {
  flex: 1;
  min-width: calc(33.333% - 14px);
  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 0.8rem; }
.quote {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 25px;
  font-style: italic;
  min-height: 50px;
}
.client-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}
.client-details h4 { font-size: 1rem; color: var(--primary-color); }
.client-details span { font-size: 0.8rem; color: var(--text-gray); }
.client-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.hero .slider-dots { position: absolute; bottom: 30px; left: 0; right: 0; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.hero .dot { background: rgba(255,255,255,0.4); }
.dot.active { background: var(--secondary-color); width: 20px; border-radius: 5px; }

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 0;
  position: relative;
}
.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}
.cta-icon {
  font-size: 4rem;
  color: rgba(200, 155, 81, 0.1);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}
.cta-text h2 { font-size: 2rem; margin-bottom: 10px; font-weight: 800; }
.cta-text p { opacity: 0.9; }
.cta-btns { display: flex; gap: 15px; }

/* Footer */
.footer {
  background-color: #111820;
  color: #fff;
  padding: 80px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 50px;
}
.footer-about p {
  color: #aaa;
  margin-top: 15px;
  font-size: 0.9rem;
}
.footer h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #aaa; font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary-color); padding-inline-start: 5px; }
.footer-contact li {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact i { color: var(--secondary-color); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #777;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-container { grid-template-columns: 1fr; }
  .about-image { order: 2; }
  .about-content { order: 1; text-align: center; }
  .stats-grid { text-align: right; }
  .testimonial-card { min-width: calc(50% - 10px); }
  .cta-content { flex-direction: column; text-align: center; gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
  .contact-info { flex-direction: column; gap: 5px; }
  
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-actions .btn { display: none; }
  
  .hero-text h2 { font-size: 2.5rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { min-width: 100%; }
}

@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
