* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
}

header {
  background: #000000;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222222;
}

nav {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

nav h1 {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav ul li a,
nav > a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: #cccccc;
}

nav > a {
  border: 1px solid #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
}

nav > a:hover {
  background: #ffffff;
  color: #000000;
}

section {
  padding: 90px 10%;
}

#home {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 1.2s ease-in-out;
}

#home h2 {
  max-width: 850px;
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 24px;
}

#home p {
  max-width: 650px;
  font-size: 18px;
  color: #dddddd;
  margin-bottom: 34px;
}

#home a {
  display: inline-block;
  width: fit-content;
  margin-right: 14px;
  margin-bottom: 12px;
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

#home a:first-of-type {
  background: #ffffff;
  color: #000000;
}

#home a:last-of-type {
  color: #ffffff;
  border: 1px solid #ffffff;
}

#home a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

section h2 {
  font-size: 40px;
  margin-bottom: 24px;
  color: #000000;
}

section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #000000;
  margin-top: 12px;
}

#about {
  background: #ffffff;
}

#about p {
  max-width: 900px;
  font-size: 17px;
  margin-bottom: 18px;
  color: #333333;
}

#about ul {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
}

#about ul li {
  border: 1px solid #dddddd;
  padding: 22px;
  border-radius: 12px;
  background: #fafafa;
  font-weight: 600;
  transition: 0.3s ease;
}

#about ul li:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-6px);
}

#services {
  background: #f5f5f5;
}

#services > div,
#team > div {
  display: inline-block;
  vertical-align: top;
  width: 31%;
  min-height: 220px;
  margin: 1%;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 14px;
  transition: 0.35s ease;
}

#services > div:hover,
#team > div:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

#services h3,
#team h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

#services p,
#team p {
  color: #444444;
}

#services > div:hover p,
#team > div:hover p {
  color: #dddddd;
}

#team {
  background: #ffffff;
}

#team > div {
  min-height: 260px;
}

#team > div p:first-of-type {
  font-weight: 700;
  color: #000000;
  margin-bottom: 14px;
}

#team > div:hover p:first-of-type {
  color: #ffffff;
}

#cases {
  background: #000000;
  color: #ffffff;
}

#cases h2,
#cases h3 {
  color: #ffffff;
}

#cases h2::after {
  background: #ffffff;
}

#cases > p {
  max-width: 760px;
  color: #dddddd;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0 50px;
  background: #ffffff;
  color: #000000;
  border-radius: 14px;
  overflow: hidden;
}

table th {
  background: #111111;
  color: #ffffff;
  padding: 16px;
  text-align: left;
}

table td {
  padding: 15px;
  border-bottom: 1px solid #dddddd;
}

table tr:hover {
  background: #f0f0f0;
}

form {
  max-width: 760px;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

#cases input,
#cases select {
  background: #111111;
  color: #ffffff;
  border-color: #444444;
}

button {
  width: fit-content;
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

#cases button {
  background: #ffffff;
  color: #000000;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

#contact {
  background: #f7f7f7;
}

#contact > p {
  max-width: 700px;
  color: #333333;
  margin-bottom: 24px;
}

address {
  font-style: normal;
  margin-bottom: 34px;
  padding: 24px;
  border-left: 5px solid #000000;
  background: #ffffff;
}

address p {
  margin-bottom: 10px;
}

footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 30px 10%;
}

footer p {
  color: #dddddd;
  margin-bottom: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about,
#services,
#team,
#cases,
#contact {
  animation: sectionFade 1s ease both;
}

@keyframes sectionFade {
  from {
    opacity: 0;
    transform: translateY(45px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  nav {
    flex-direction: column;
    padding: 18px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #home h2 {
    font-size: 42px;
  }

  #about ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #services > div,
  #team > div {
    width: 47%;
  }
}

@media (max-width: 600px) {
  section {
    padding: 70px 6%;
  }

  nav h1 {
    text-align: center;
    font-size: 17px;
  }

  nav ul {
    gap: 14px;
  }

  nav ul li a {
    font-size: 13px;
  }

  #home h2 {
    font-size: 34px;
  }

  section h2 {
    font-size: 30px;
  }

  #about ul {
    grid-template-columns: 1fr;
  }

  #services > div,
  #team > div {
    width: 100%;
    margin: 12px 0;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* Lawyer profile section */
#team .lawyer-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: stretch;
  width: 100%;
  min-height: 420px;
  margin: 28px 0 34px;
  padding: 0;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  border: 1px solid #111111;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

#team .lawyer-profile:hover {
  transform: translateY(-8px);
  background: #000000;
}

.lawyer-profile img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
}

.lawyer-details {
  padding: 44px;
}

.lawyer-details .profile-label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#team .lawyer-details h3 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 34px;
}

#team .lawyer-details p {
  max-width: 760px;
  color: #dddddd;
  margin-bottom: 16px;
}

.lawyer-details ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}

.lawyer-details li {
  padding: 14px 16px;
  border: 1px solid #333333;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 992px) {
  #team .lawyer-profile {
    grid-template-columns: 1fr;
  }

  .lawyer-profile img {
    height: 420px;
  }
}

@media (max-width: 600px) {
  .lawyer-details {
    padding: 30px 22px;
  }

  #team .lawyer-details h3 {
    font-size: 28px;
  }

  .lawyer-details ul {
    grid-template-columns: 1fr;
  }
}

/* Case schedule dashboard */
.case-note {
  max-width: 920px;
  margin: 24px 0 24px;
  padding: 20px 22px;
  border: 1px solid #333333;
  border-left: 5px solid #ffffff;
  border-radius: 12px;
  background: #111111;
  color: #dddddd;
}

.case-note strong {
  color: #ffffff;
}

.case-tools {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 28px 0 22px;
  max-width: 920px;
}

#case-search,
#status-filter {
  background: #111111;
  color: #ffffff;
  border-color: #444444;
}

#case-search::placeholder {
  color: #aaaaaa;
}

.reminder-badge,
.status-pill {
  display: inline-block;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.reminder-badge {
  background: #000000;
  color: #ffffff;
}

.status-pill {
  border: 1px solid #000000;
  color: #000000;
}

#case-form {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  padding: 28px;
  border: 1px solid #333333;
  border-radius: 16px;
  background: #0b0b0b;
}

#case-form label,
#case-form button {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .case-tools,
  #case-form {
    grid-template-columns: 1fr;
  }

  #case-form label,
  #case-form button {
    grid-column: span 1;
  }
}

/* Working admin system */
.admin-hidden {
  display: none !important;
}

.admin-panel,
#case-dashboard {
  max-width: 1100px;
  margin-top: 28px;
}

.admin-panel {
  padding: 28px;
  border: 1px solid #333333;
  border-radius: 16px;
  background: #0b0b0b;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin: 18px 0 24px;
}

.dashboard-heading p {
  color: #cccccc;
}

#logout-button {
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

#logout-button:hover {
  background: #ffffff;
  color: #000000;
}

#case-form label,
#document-form label,
#login-form label {
  margin-top: 4px;
}

#case-notes,
#document-form input,
#document-form select,
#login-form input {
  background: #111111;
  color: #ffffff;
  border-color: #444444;
}

#case-notes::placeholder,
#login-form input::placeholder {
  color: #aaaaaa;
}

#document-form {
  max-width: 920px;
  padding: 28px;
  border: 1px solid #333333;
  border-radius: 16px;
  background: #0b0b0b;
}

#document-list {
  max-width: 920px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #333333;
  border-radius: 14px;
  background: #111111;
}

#document-list h4 {
  margin-bottom: 14px;
  color: #ffffff;
}

#document-list ul {
  list-style: none;
}

#document-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #333333;
}

#document-list li:last-child {
  border-bottom: none;
}

#document-list a {
  color: #ffffff;
  font-weight: 700;
}

#document-list span,
#document-list p {
  color: #cccccc;
}

@media (max-width: 768px) {
  .dashboard-heading {
    flex-direction: column;
  }

  #document-list li {
    flex-direction: column;
  }
}

.account-settings {
  margin-bottom: 26px;
}

.account-settings p {
  color: #cccccc;
  margin-bottom: 18px;
}

#account-form {
  max-width: 760px;
}

#account-form input {
  background: #111111;
  color: #ffffff;
  border-color: #444444;
}
