/* Architectural Studio - Judicial Deep Blue & Authority Red Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1A237E;
  --secondary-color: #C62828;
  --primary-dark: #0D1642;
  --primary-light: #3949AB;
  --secondary-dark: #8E0000;
  --secondary-light: #E53935;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #F5F5F7;
  --white: #FFFFFF;
  --shadow: rgba(26, 35, 126, 0.15);
  --shadow-hover: rgba(26, 35, 126, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 1rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 30px var(--shadow-hover);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

.navbar-dark .navbar-toggler {
  border-color: var(--white) !important;
  color: var(--white) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem 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;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: var(--transition);
  border-radius: 3px 3px 0 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 8px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

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

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

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

.btn-light:hover {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow);
}

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

.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: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

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

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  animation: backgroundScroll 60s linear infinite;
}

@keyframes backgroundScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.position-absolute.w-100.h-100 {
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.position-relative.overflow-hidden .d-flex {
  position: relative;
  z-index: 2;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* ===== SECTIONS ===== */
.py-5 {
  padding: 4rem 0 !important;
}

.py-4 {
  padding: 3rem 0 !important;
}

.display-4 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem !important;
  position: relative;
  display: inline-block;
}

.display-4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--text-light) !important;
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--white);
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-hover) !important;
  border-color: var(--primary-color);
}

.service-card:nth-child(1) {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white) !important;
}

.service-card:nth-child(2) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: var(--white) !important;
}

.service-card:nth-child(3) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
}

.service-card h3,
.service-card p,
.service-card a {
  color: var(--white) !important;
}

.bi {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card:hover .bi {
  transform: scale(1.2) rotate(5deg);
}

/* ===== PRACTICE AREAS / CASE CARDS ===== */
.practice-card,
.case-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.practice-card:hover,
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow-hover) !important;
  border-color: var(--primary-color);
}

.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  margin-bottom: 0.75rem !important;
}

.card-text {
  color: var(--text-light) !important;
  flex-grow: 1;
  margin-bottom: 1rem !important;
}

/* ===== BADGES ===== */
.badge {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  font-size: 0.875rem !important;
}

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 12px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
}

.shadow-lg {
  box-shadow: 0 20px 40px var(--shadow) !important;
}

.shadow {
  box-shadow: 0 10px 25px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px var(--shadow) !important;
}

/* ===== LISTS ===== */
.list-unstyled li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.list-unstyled li:hover {
  padding-left: 10px;
  background-color: var(--bg-light);
}

.list-unstyled li:last-child {
  border-bottom: none;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
  font-size: 1.25rem !important;
}

/* ===== STATISTICS SECTION ===== */
.bg-light {
  background: linear-gradient(135deg, var(--bg-light) 0%, #E8EAF6 100%) !important;
}

.col-md-6 .display-4 {
  color: var(--primary-color) !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(26, 35, 126, 0.2) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition);
  color: var(--text-dark) !important;
  background-color: var(--white) !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;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  margin-left: 0.5rem !important;
}

.invalid-feedback {
  color: var(--secondary-color) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  font-weight: 500 !important;
}

.alert-success {
  background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%) !important;
  color: var(--white) !important;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
  padding: 3rem 0 0 0;
}

footer h5,
footer h6 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: inline-block;
}

footer a:hover {
  color: var(--white) !important;
  transform: translateX(5px);
}

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

footer .text-decoration-none:hover {
  text-decoration: underline !important;
}

/* ===== UTILITIES ===== */
.text-white {
  color: var(--white) !important;
}

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

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

.rounded {
  border-radius: 8px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

.border-4 {
  border-width: 4px !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fst-italic {
  font-style: italic !important;
}

.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* ===== RATIO ===== */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: '';
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

/* ===== ICONS SPECIFIC STYLES ===== */
.bi-briefcase-fill,
.bi-file-text-fill,
.bi-shield-check,
.bi-building,
.bi-people,
.bi-diagram-3,
.bi-clipboard-check,
.bi-calendar-check,
.bi-telephone,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-arrow-right,
.bi-circle-fill,
.bi-send,
.bi-check-circle,
.bi-file-earmark-text-fill,
.bi-shield-lock-fill,
.bi-people-fill,
.bi-diagram-3-fill,
.bi-clipboard-check-fill,
.bi-funnel-fill,
.bi-clock,
.bi-search {
  display: inline-block;
  vertical-align: middle;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 35, 126, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .pe-5 {
    padding-right: 1.5rem !important;
  }
  
  .ps-5 {
    padding-left: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .bi {
    font-size: 2rem;
  }
  
  footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@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);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  border: 4px solid rgba(26, 35, 126, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ===== SELECTION ===== */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

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

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOCUS STYLES ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(26, 35, 126, 0.5);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}