/* BACKGROUND IMAGE SECTIONS */
.bg-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}

.bg-overlay {
  background: rgba(0, 0, 0, 0.75);
  padding: 100px 20px;
}

/* SIDE BACKGROUND DECORATION */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 200px;
  height: 100%;
  background-image: url("/images/law-bg.jpg"); /* add your law image */
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
}

body::before { left: 0; }
body::after { right: 0; }

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 60px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}




/* GENERAL */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0b;
  color: #ffffff;
}

/* HEADER */
header {
  background: #000000;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f9d58;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #0f9d58;
}

nav a {
  color: #ffffff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #0f9d58;
}

/* HERO SECTION */
.hero {
  padding: 90px 20px;
  text-align: center;
  background: linear-gradient(to right, #000000, #111111);
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: auto;
  color: #dddddd;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 35px;
  background: #0f9d58;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #34a853;
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #0f9d58;
  font-size: 32px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: #111111;
  padding: 30px;
  border-radius: 12px;
  border-top: 4px solid #0f9d58;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
  color: #0f9d58;
  margin-bottom: 15px;
}

.card p {
  color: #dddddd;
  line-height: 1.6;
}

/* FORMS */
form {
  max-width: 600px;
  margin: 40px auto;
  background: #111111;
  padding: 30px;
  border-radius: 12px;
  border-top: 4px solid #0f9d58;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border-radius: 5px;
  border: 1px solid #333333;
  background: #000000;
  color: #ffffff;
  font-size: 16px;
}

input::placeholder, textarea::placeholder {
  color: #aaaaaa;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0f9d58;
}

/* TABLE (ADMIN DASHBOARD) */
table {
  width: 100%;
  border-collapse: collapse;
  background: #111111;
  color: #ffffff;
}

th {
  background: #0f9d58;
  color: #ffffff;
  padding: 12px;
}

td {
  padding: 10px;
  border: 1px solid #333333;
}

.high { color: #ff4c4c; font-weight: bold; }
.medium { color: #ffa500; font-weight: bold; }
.low { color: #34a853; font-weight: bold; }

/* FOOTER */
footer {
  background: #000000;
  text-align: center;
  padding: 25px;
  margin-top: 60px;
  color: #aaaaaa;
  border-top: 2px solid #0f9d58;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 10px;
    display: inline-block;
  }

  .hero h1 {
    font-size: 32px;
  }
}

* {
  transition: all 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  background: black;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  background: green;
  color: white;
  padding: 14px 25px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: darkgreen;
  transform: scale(1.05);
}

.service-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
