/* Fortress Steel & Crimson - Architectural Studio Theme */

:root {
  --primary-color: #1B263B;
  --secondary-color: #E63946;
  --dark-accent: #0D1B2A;
  --light-accent: #F1FAEE;
  --text-light: #E0E1DD;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-3, .display-4, .display-5 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(27, 38, 59, 0.3);
  transition: all var(--transition-speed) ease;
}

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

.navbar-brand {
  font-size: 1.5rem;
  color: var(--light-accent) !important;
  font-weight: 700 !important;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.navbar-brand .bi {
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(230, 57, 70, 0.4));
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.3) !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='%23E63946' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(230, 57, 70, 0.1) !important;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-accent) 0%, var(--primary-color) 50%, #2d3e5f 100%);
  padding: 120px 0 80px;
  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='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='%23E63946' 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;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section .text-white {
  color: var(--light-accent) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section .display-3 {
  animation: fadeInUp 1s ease;
  margin-bottom: 1.5rem !important;
}

.hero-section .lead {
  color: var(--text-light) !important;
  animation: fadeInUp 1.2s ease;
  opacity: 0.95;
  max-width: 600px;
}

/* Hero Stats */
.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fadeInRight 1.4s ease;
}

.stat-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed) ease;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item:hover {
  background: rgba(230, 57, 70, 0.1);
  transform: translateX(10px);
  border-radius: 8px;
}

.stat-item .bi {
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all var(--transition-speed) ease !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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-primary,
.btn-dark {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c92d3a 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4) !important;
}

.btn-primary:hover,
.btn-dark:hover {
  background: linear-gradient(135deg, #c92d3a 0%, #a82531 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5) !important;
}

.btn-outline-primary,
.btn-outline-dark {
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4) !important;
}

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

/* Service Cards */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 40px rgba(230, 57, 70, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .bi {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(230, 57, 70, 0.3));
}

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

.service-card p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: white !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.15) !important;
  outline: none !important;
}

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

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

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

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

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

.form-range {
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  background: var(--secondary-color) !important;
}

.form-range::-moz-range-thumb {
  background: var(--secondary-color) !important;
}

/* Cards */
.card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card.shadow,
.card.shadow-sm,
.card.shadow-lg {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1.25rem !important;
}

.card-body {
  padding: 2rem !important;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}

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

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

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table-dark {
  background-color: var(--primary-color) !important;
  color: var(--light-accent) !important;
}

.table-dark thead {
  background-color: var(--dark-accent) !important;
}

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

.table-bordered th,
.table-bordered td {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

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

.table tbody tr:hover {
  background-color: rgba(230, 57, 70, 0.1) !important;
  transform: scale(1.01);
}

/* Sections */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

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

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

.bg-dark .text-white,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p {
  color: var(--light-accent) !important;
}

/* Images */
.img-fluid {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

[class*="bi-"] {
  transition: all var(--transition-speed) ease;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-accent) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
}

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

footer p,
footer a {
  color: var(--text-light) !important;
}

footer a {
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

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

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

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

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

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

.text-white {
  color: white !important;
}

.text-muted {
  color: #6c757d !important;
  opacity: 0.8;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

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

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

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

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

/* Position Utilities */
.position-relative {
  position: relative !important;
}

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

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

.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Small Utilities */
.small {
  font-size: 0.875rem !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }

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

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

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

/* Spacing Utilities */
.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

.g-3 {
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 27, 42, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(230, 57, 70, 0.3);
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .hero-section {
    padding: 80px 0 60px;
  }

  .display-3 {
    font-size: 2.5rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

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

  .service-card {
    padding: 2rem;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .display-5 {
    font-size: 1.5rem !important;
  }

  .lead {
    font-size: 1.1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .btn-lg {
    width: 100%;
  }

  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .display-3 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.5rem !important;
  }

  .display-5 {
    font-size: 1.25rem !important;
  }

  .service-card .bi {
    font-size: 2.5rem;
  }

  .stat-item {
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero-section {
    background: white;
    color: black;
  }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Loading Animation */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

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

/* Hover Effects for Interactive Elements */
.clickable,
[onclick],
[role="button"] {
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.clickable:hover,
[onclick]:hover,
[role="button"]:hover {
  transform: translateY(-2px);
}

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

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

/* Display Utilities */
.d-flex {
  display: flex !important;
}

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

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

/* Flexbox Utilities */
.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.ms-auto {
  margin-left: auto !important;
}

.mt-auto {
  margin-top: auto !important;
}

/* Enhanced Contrast for Accessibility */
a {
  color: var(--secondary-color) !important;
  font-weight: 500;
}

a:hover {
  color: var(--primary-color) !important;
}

.btn-primary,
.btn-danger,
.btn-dark {
  color: white !important;
  font-weight: 600 !important;
}

.bg-dark * {
  color: var(--light-accent) !important;
}

.bg-dark a:hover {
  color: var(--secondary-color) !important;
}

/* Ensure all text is readable */
.card,
.service-card {
  color: var(--primary-color) !important;
}

.text-center {
  text-align: center !important;
}

.text-lg-end {
  text-align: left !important;
}

@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }
}