/* ===================================
   Architectural Studio - Judicial Navy & Authority Crimson Theme
   Primary: #1a237e (Judicial Navy)
   Secondary: #c62828 (Authority Crimson)
   =================================== */

/* Root Variables */
:root {
  --primary-color: #1a237e;
  --primary-dark: #0d1442;
  --primary-light: #3949ab;
  --secondary-color: #c62828;
  --secondary-dark: #8e0000;
  --secondary-light: #ff5f52;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --gray-light: #e0e0e0;
  --gray-medium: #9e9e9e;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(26, 35, 126, 0.1);
  --shadow-md: 0 4px 12px rgba(26, 35, 126, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 35, 126, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fafafa;
}

/* Typography */
.display-3,
.display-4,
.display-5 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dark) !important;
}

.tracking-wide {
  letter-spacing: 0.1em;
}

.lh-1 {
  line-height: 1.1 !important;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  transition: color var(--transition-speed) ease;
  letter-spacing: 0.05em;
}

.navbar-brand:hover {
  color: var(--secondary-light) !important;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
  opacity: 0.3;
}

.geometric-flame-overlay {
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.flame-path {
  fill: none;
  stroke: var(--secondary-color);
  stroke-width: 2;
  opacity: 0.3;
  animation: flameFlicker 3s ease-in-out infinite;
}

@keyframes flameFlicker {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-10px); }
}

.hero-section .text-white {
  color: #ffffff !important;
}

.hero-section .display-3 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease !important;
  border-radius: 0.375rem !important;
  padding: 0.625rem 1.5rem !important;
}

.btn-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.1rem !important;
}

.btn-outline-light {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

.btn-light {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
}

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  background: transparent !important;
}

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
}

.btn-outline-dark {
  color: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
}

.btn-outline-dark:hover {
  background: var(--text-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Testimonials Container */
.testimonials-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.testimonial-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  border: none !important;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  color: #ffffff !important;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Practice Areas Section */
.practice-areas-section {
  background: #ffffff;
  padding: 5rem 0 !important;
}

.practice-areas-section .display-4 {
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.practice-areas-section .text-muted {
  color: var(--gray-medium) !important;
  font-size: 1.1rem;
}

.practice-card {
  background: #ffffff;
  border: 2px solid var(--gray-light);
  border-radius: 1rem !important;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  height: 100%;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--text-dark) !important;
}

.practice-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
}

.practice-card:hover h4,
.practice-card:hover p {
  color: #ffffff !important;
}

.practice-card:hover .icon-wrapper {
  background: #ffffff !important;
  color: var(--primary-color) !important;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-speed) ease;
}

.icon-wrapper .bi {
  font-size: 2rem;
  color: #ffffff !important;
}

.practice-card h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.practice-card p {
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
}

.practice-card .bi-arrow-right {
  color: var(--secondary-color) !important;
  transition: transform var(--transition-speed) ease;
}

.practice-card:hover .bi-arrow-right {
  color: #ffffff !important;
  transform: translateX(5px);
}

/* Trust Indicators */
.trust-indicators {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  padding: 4rem 0;
  color: #ffffff;
}

.counter-box {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
}

.counter-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.counter-icon .bi {
  font-size: 3rem;
  color: var(--secondary-light) !important;
  margin-bottom: 1rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-box h4 {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}

.counter-box .small {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Consultation Booking */
.consultation-booking {
  padding: 5rem 0;
  background: #f5f5f5;
}

.benefits-list .bi {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.benefits-list h5 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.benefits-list p {
  color: var(--text-dark) !important;
}

.booking-widget {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-lg) !important;
}

.booking-widget h3 {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
}

/* Forms */
.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-light) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background: #ffffff !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  background: #ffffff !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

.form-check-input {
  border: 2px solid var(--gray-medium) !important;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--gray-medium) !important;
}

/* Input Group */
.input-group-text {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  padding: 4rem 0;
  color: #ffffff;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff !important;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: #ffffff;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

footer a:hover {
  color: var(--secondary-light) !important;
  transform: translateX(5px);
  display: inline-block;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: #ffffff !important;
  transform: translateY(-5px) !important;
}

footer .bi {
  color: var(--secondary-light) !important;
  margin-right: 0.5rem;
}

/* Sidebar Timeline */
.sidebar-timeline {
  position: relative;
  padding-left: 2rem;
}

.sidebar-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.timeline-item h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Biography Expand */
.biography-expand {
  position: relative;
}

.expand-bio-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: none !important;
}

.expand-bio-btn:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
}

/* Value Icons */
.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-icon .bi {
  font-size: 2rem;
  color: #ffffff !important;
}

/* Team Card */
.team-card {
  background: #ffffff;
  border: 2px solid var(--gray-light);
  border-radius: 1rem !important;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.team-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin-bottom: 1rem;
}

.team-card h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.team-card p {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

/* Award Card */
.award-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  border-radius: 1rem !important;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.award-card:hover {
  transform: translateX(-10px);
  box-shadow: var(--shadow-lg);
}

.award-card h5 {
  color: #ffffff !important;
  font-weight: 700;
}

.award-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Modal */
.modal-content {
  border: none !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  border-bottom: none !important;
  border-radius: 1rem 1rem 0 0 !important;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-light) !important;
  padding: 1.5rem 2rem;
}

/* Scroll to Top Button */
.position-fixed.bottom-0.end-0 {
  margin: 2rem;
  z-index: 1000;
}

.position-fixed.bottom-0.end-0 .btn {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.position-fixed.bottom-0.end-0 .btn.show {
  opacity: 1;
  visibility: visible;
}

.position-fixed.bottom-0.end-0 .btn:hover {
  background: var(--secondary-dark) !important;
  transform: translateY(-5px);
}

/* Cards */
.card {
  border: 2px solid var(--gray-light) !important;
  border-radius: 1rem !important;
  transition: all var(--transition-speed) ease;
}

.card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-lg) !important;
}

.card-header {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-bottom: none !important;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.card-text {
  color: var(--text-dark) !important;
}

/* Alerts */
.alert {
  border-radius: 0.75rem !important;
  border: 2px solid !important;
}

.alert-light {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-color: var(--gray-light) !important;
}

.alert .bi {
  color: var(--primary-color) !important;
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

/* Dropdown */
.dropdown-toggle {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: none !important;
}

.dropdown-toggle:hover {
  background: var(--primary-dark) !important;
}

.dropdown-menu {
  border: 2px solid var(--gray-light) !important;
  border-radius: 0.75rem !important;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: var(--text-dark) !important;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Accordion */
.accordion-item {
  border: 2px solid var(--gray-light) !important;
  margin-bottom: 1rem;
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: #ffffff;
  color: var(--text-dark) !important;
}

/* Nav Pills */
.nav-pills .nav-link {
  color: var(--primary-color) !important;
  border: 2px solid var(--gray-light);
  border-radius: 0.5rem !important;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
}

.nav-pills .nav-link:hover {
  background: rgba(26, 35, 126, 0.1) !important;
  border-color: var(--primary-color);
}

.nav-pills .nav-link.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
  padding: 2rem;
  background: #ffffff;
  border: 2px solid var(--gray-light);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.tab-pane {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

.badge.bg-white {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

/* Hover Lift Effect */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Filter Buttons */
.filter-btn {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--gray-light) !important;
  padding: 0.625rem 1.5rem !important;
  margin: 0.25rem;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Case Items */
.case-item {
  perspective: 1000px;
}

.case-card {
  background: #ffffff;
  border: 2px solid var(--gray-light);
  border-radius: 1rem !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  height: 100%;
}

.case-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.case-card-inner {
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.case-card-front,
.case-card-back {
  backface-visibility: hidden;
  padding: 2rem;
}

.case-card-front {
  background: #ffffff;
}

.case-card-front h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.case-card-front p {
  color: var(--text-dark) !important;
}

.case-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
  transform: rotateY(180deg);
}

.case-card:hover .case-card-inner {
  transform: rotateY(180deg);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-container .timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-container .timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 3px var(--primary-color);
}

/* Table */
.table {
  border: 2px solid var(--gray-light) !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.table thead {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

.table thead th {
  color: #ffffff !important;
  font-weight: 700;
  border: none !important;
  padding: 1rem;
}

.table tbody tr {
  transition: all var(--transition-speed) ease;
}

.table tbody tr:hover {
  background: rgba(26, 35, 126, 0.05) !important;
}

.table tbody td {
  padding: 1rem;
  color: var(--text-dark) !important;
  border-color: var(--gray-light) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(26, 35, 126, 0.03) !important;
}

.table-bordered {
  border: 2px solid var(--gray-light) !important;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--gray-light) !important;
}

/* List Group */
.list-group-item {
  border: 2px solid var(--gray-light) !important;
  padding: 1rem 1.5rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  color: var(--text-dark) !important;
}

.list-group-item:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.list-group-item .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.75rem;
}

.list-group-item:hover .bi {
  color: #ffffff !important;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-secondary {
  border-color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 20, 66, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
  
  .testimonials-container {
    margin-top: 2rem;
  }
  
  .timeline-container::before {
    left: 0;
  }
  
  .timeline-container .timeline-item::before {
    left: 0;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .practice-card,
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  .counter-box {
    margin-bottom: 1.5rem;
  }
  
  .booking-widget {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .position-fixed.bottom-0.end-0 {
    margin: 1rem;
  }
  
  .social-links a {
    margin: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .practice-areas-section,
  .trust-indicators,
  .consultation-booking,
  .cta-section {
    padding: 3rem 0 !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .icon-wrapper,
  .value-icon {
    width: 60px;
    height: 60px;
  }
  
  .icon-wrapper .bi,
  .value-icon .bi {
    font-size: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .position-fixed {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .hero-section,
  .cta-section {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth Scrolling */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: var(--primary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary-color);
  color: #ffffff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--secondary-light);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}