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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  direction: rtl;
}
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #e0dad2;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Header Styles */
.header {
  background: linear-gradient(180deg, rgba(36, 35, 44, 0.76) 0%, #1e232b 100%),
    url("img/attorney-7.webp") !important;

  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #cab6a1;
}
.hero .title-hero {
  color: #fff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.burger {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

.logo {
  width: 100px;
  height: 75px;
  font-weight: bold;
  color: #cab6a1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d4af37;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #cab6a1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Departments Section */
.departments {
  padding: 5rem 5%;
  background: #e0dad2;
}

.departments h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.department-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e232b, #dde0e6);
}

.department-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.department-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.icon {
  width: 40px;
  height: 40px;
  background: #e0dad2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

a {
  text-decoration: none;
}

/* Services Section */
.services {
  padding: 5rem 5%;
  background: white;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

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

.service-card {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

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

.service-icon {
  font-size: 3rem;
  color: #e0dad2;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-sec {
  padding: 5rem 5%;
  background: linear-gradient(180deg, #444952 0%, #1e232b 100%);
  background-size: cover;
  position: relative;
  color: white;
  text-align: center;
}

.contact-sec::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.1) 0%,
    rgba(108, 117, 125, 0.3) 20%,
    rgba(52, 58, 64, 0.6) 50%,
    rgba(33, 37, 41, 0.8) 80%,
    rgba(33, 37, 41, 0.95) 100%
  );
}

.contact-sec > * {
  position: relative;
}

.contact-sec h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: linear-gradient(
      180deg,
      rgba(202, 182, 161, 0.7) 0%,
      rgba(202, 182, 161, 0.7) 100%
    ),
    url(img/paper-texture.webp);

  display: flex;
  flex-direction: column;
  justify-self: center;
  gap: 1rem;
  padding: 4rem 7rem;
  margin-bottom: 1rem;
  outline: 0.5px solid #e0dad2;
  outline-offset: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  color: #000;
}

.contact-btn {
  color: #000;
  padding: 0.8rem 3rem;
  border: 1px solid #000;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-btn:hover {
  background: #e0dad2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Testimonials */
.testimonials {
  padding: 5rem 5%;
  background: #1e232b;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

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

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stars {
  color: #d4af37;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: bold;
  color: #d4af37;
}

/* Footer */
.footer {
  background: #1e232b;
  color: white;
  padding: 3rem 5%;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #cab6a1;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #d4af37;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #cab6a1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  transition: background 0.3s;
}

.social-icon:hover {
  background: #b8941f;
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 2rem;
  margin-top: 2rem;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    gap: 1rem;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  ul.nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .departments-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}
