/* Architectural Studio - Navy Justice Gold Theme */

:root {
  --primary-color: #1A365D;
  --secondary-color: #B8860B;
  --primary-light: #2D4A7C;
  --secondary-light: #D4A017;
  --text-dark: #0F1419;
  --text-light: #F7FAFC;
  --gold-glow: rgba(184, 134, 11, 0.3);
  --navy-glow: rgba(26, 54, 93, 0.3);
}

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

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

/* Typography */
.display-2, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-weight: 400;
  opacity: 0.95;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0F2847 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

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

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

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--gold-glow) !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='%23B8860B' 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: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0A1929 100%);
  position: relative;
  overflow: hidden;
}

.diagonal-split {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(212, 160, 23, 0.05) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-section .container-fluid {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

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

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

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1.2s ease;
}

.justice-scale-icon {
  font-size: 15rem;
  color: var(--secondary-color);
  opacity: 0.3;
  animation: scaleFloat 3s ease-in-out infinite;
}

.scale-container {
  animation: fadeIn 1.5s ease;
}

/* CTA Bridge */
.cta-bridge {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.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;
}

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

.btn-lg {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-lg:hover {
  background: var(--secondary-light) !important;
  border-color: var(--secondary-light) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--gold-glow) !important;
}

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

.btn-light:hover {
  background: transparent !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

.btn-outline-light {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-outline-light:hover {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  border-color: #FFFFFF !important;
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary.active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color) !important;
}

.btn-sm {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--secondary-color) !important;
}

.btn-sm:hover {
  background: var(--secondary-light) !important;
  border-color: var(--secondary-light) !important;
  color: #FFFFFF !important;
}

/* Cards */
.card {
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 54, 93, 0.1) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15) !important;
}

.card-body {
  background: #FFFFFF;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 3px solid var(--secondary-color) !important;
  font-weight: 600;
}

.service-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #FFFFFF !important;
}

.service-card:hover .service-icon,
.service-card:hover .h5,
.service-card:hover .service-description {
  color: #FFFFFF !important;
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover::after {
  opacity: 0.7;
}

.hover-lift {
  transition: all 0.3s ease;
}

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

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-building,
.bi-file-text,
.bi-diagram-3,
.bi-shield-check,
.bi-lightbulb,
.bi-people {
  font-size: 3rem;
  color: var(--secondary-color);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(184, 134, 11, 0.05) 100%);
  border-radius: 10px;
}

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

.bi-circle-fill {
  font-size: 0.5rem;
  color: var(--secondary-color);
}

/* Counter Section */
.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

/* Step Circle */
.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 5px 15px var(--gold-glow);
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(26, 54, 93, 0.2) !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #FFFFFF !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem var(--gold-glow) !important;
  background: #FFFFFF !important;
}

.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

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

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem var(--gold-glow) !important;
}

.form-check-label {
  color: var(--text-dark);
}

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:valid {
  border-color: #28a745 !important;
}

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.5em 0.8em;
}

/* Alerts */
.alert-info {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(26, 54, 93, 0.05) 100%) !important;
  border-left: 4px solid var(--secondary-color) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  color: var(--primary-color) !important;
}

/* List Groups */
.list-unstyled li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

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

.list-group-item {
  border: none !important;
  border-bottom: 1px solid rgba(26, 54, 93, 0.1) !important;
  padding: 1rem 0 !important;
}

.list-group-item:hover {
  background: rgba(184, 134, 11, 0.05);
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(26, 54, 93, 0.1) !important;
  margin-bottom: 1rem;
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem var(--gold-glow) !important;
}

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

.accordion-body {
  background: #FFFFFF;
  color: var(--text-dark);
}

/* Nav Tabs/Pills */
.nav-pills .nav-link {
  color: var(--primary-color) !important;
  border: 2px solid rgba(26, 54, 93, 0.2);
  margin: 0.25rem;
  transition: all 0.3s ease;
}

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

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color);
}

.nav .nav-link {
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.nav .nav-link:hover,
.nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(184, 134, 11, 0.1);
}

/* Tab Content */
.tab-content {
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid rgba(26, 54, 93, 0.1);
  border-radius: 0 0 10px 10px;
}

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

/* Filter Buttons */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

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

/* Blockquote */
.blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
}

.blockquote-footer {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Chat Button */
.position-fixed {
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.position-fixed .btn {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px var(--gold-glow);
  animation: pulse 2s infinite;
}

.position-fixed .btn:hover {
  transform: scale(1.1);
  background: var(--secondary-light) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0A1929 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

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

footer .bi {
  color: var(--secondary-color);
}

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

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(26, 54, 93, 0.1) !important;
}

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

/* Background Classes */
.bg-light {
  background: #F7FAFC !important;
}

.bg-white {
  background: #FFFFFF !important;
}

/* Text Colors */
.text-white {
  color: #FFFFFF !important;
}

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

.text-muted {
  color: rgba(15, 20, 25, 0.6) !important;
}

/* Opacity */
.opacity-90 {
  opacity: 0.9 !important;
}

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

/* Shadows */
.shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

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

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

@keyframes scaleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 5px 20px var(--gold-glow);
  }
  50% {
    box-shadow: 0 5px 30px rgba(184, 134, 11, 0.5);
  }
}

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

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

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-light);
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 54, 93, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .diagonal-split {
    display: none;
  }
  
  .justice-scale-icon {
    font-size: 8rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .cta-bridge {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
  }
  
  .position-fixed {
    bottom: 1rem;
    right: 1rem;
  }
  
  .position-fixed .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .display-2 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.9rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .step-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-icon,
  .bi-building,
  .bi-file-text,
  .bi-diagram-3,
  .bi-shield-check,
  .bi-lightbulb,
  .bi-people {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 575px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .justice-scale-icon {
    font-size: 5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .position-fixed,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* Utility Classes */
.text-decoration-none {
  text-decoration: none !important;
}

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

.fw-semibold {
  font-weight: 600 !important;
}

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

.rounded {
  border-radius: 0.5rem !important;
}

.rounded-3 {
  border-radius: 0.75rem !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-sticky {
  position: sticky !important;
  top: 80px;
  z-index: 100;
}

.overflow-hidden {
  overflow: hidden !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.d-block {
  display: block !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Accessibility */
.btn-close:focus {
  box-shadow: 0 0 0 0.2rem var(--gold-glow) !important;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}