/* Deep Blue Steel Architecture Studio Theme */
:root {
  --primary-color: #1565C0;
  --secondary-color: #FF6F00;
  --dark-blue: #0D47A1;
  --light-blue: #1976D2;
  --steel-gray: #455A64;
  --light-steel: #607D8B;
  --white: #FFFFFF;
  --light-bg: #ECEFF1;
  --shadow: rgba(21, 101, 192, 0.15);
  --shadow-dark: rgba(13, 71, 161, 0.3);
}

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

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

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

.text-white.display-1,
.text-white.display-2,
.text-white.display-3,
.text-white.display-4,
.text-white.display-5,
.text-white.display-6 {
  color: var(--white) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

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

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

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  transition: transform 0.3s ease;
  letter-spacing: 0.5px;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--secondary-color) !important;
}

.navbar-brand .bi {
  margin-right: 0.5rem;
  color: var(--secondary-color) !important;
  font-size: 1.3rem;
}

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

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

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 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='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;
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.3s 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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--light-blue)) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-color)) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow-dark);
  color: var(--white) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #FF8F00) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #E65100, var(--secondary-color)) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 111, 0, 0.5);
  color: var(--white) !important;
}

.btn-light {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background-color: var(--light-bg) !important;
  color: var(--dark-blue) !important;
  transform: translateY(-3px);
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

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

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

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

.btn-danger {
  background: linear-gradient(135deg, #D32F2F, #F44336) !important;
  color: var(--white) !important;
}

.btn-success {
  background: linear-gradient(135deg, #388E3C, #4CAF50) !important;
  color: var(--white) !important;
}

.btn-warning {
  background: linear-gradient(135deg, #F57C00, #FFA726) !important;
  color: var(--white) !important;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 50%, var(--light-blue) 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,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

.position-relative.overflow-hidden .position-absolute {
  z-index: 0;
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  border-radius: 12px !important;
  transition: all 0.4s ease;
  border: none !important;
  background: var(--white);
  overflow: hidden;
}

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

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

.card-title {
  color: var(--dark-blue) !important;
  font-weight: 700 !important;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--steel-gray) !important;
  line-height: 1.7;
}

.card .bi {
  color: var(--secondary-color) !important;
  transition: all 0.3s ease;
}

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

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

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

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

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.9), rgba(255, 111, 0, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

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

.bi-gear-fill,
.bi-cpu,
.bi-gear-wide-connected,
.bi-clipboard-check,
.bi-wrench-adjustable,
.bi-shield-check,
.bi-cpu-fill,
.bi-disc,
.bi-lightning-charge-fill,
.bi-bezier2,
.bi-clipboard-data-fill {
  color: var(--secondary-color) !important;
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

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

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

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

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

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

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

/* Images */
.img-fluid {
  border-radius: 12px;
  transition: transform 0.4s ease;
}

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--light-steel) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  color: var(--steel-gray) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
  outline: none !important;
}

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

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

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

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

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

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

.alert-success {
  background-color: #D4EDDA !important;
  color: #155724 !important;
}

.alert-info {
  background-color: #D1ECF1 !important;
  color: #0C5460 !important;
}

.alert-warning {
  background-color: #FFF3CD !important;
  color: #856404 !important;
}

.alert-danger {
  background-color: #F8D7DA !important;
  color: #721C24 !important;
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #D32F2F, #F44336) !important;
  color: var(--white) !important;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Badges */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

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

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

.text-dark.badge {
  background-color: var(--steel-gray) !important;
  color: var(--white) !important;
}

/* Lists */
.list-unstyled li {
  padding: 0.5rem 0;
  transition: transform 0.3s ease;
}

.list-unstyled li:hover {
  transform: translateX(10px);
}

.list-unstyled .bi-check-circle-fill {
  color: #4CAF50 !important;
}

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

.table-hover tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}

.table-hover tbody tr:hover {
  background-color: rgba(21, 101, 192, 0.05) !important;
  transform: scale(1.01);
}

.table-responsive {
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
}

.accordion-button {
  background-color: var(--white) !important;
  color: var(--dark-blue) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color), var(--light-blue)) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25) !important;
}

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--light-bg) !important;
  color: var(--steel-gray) !important;
}

/* Carousel */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--secondary-color);
}

/* Input Group */
.input-group-text {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  font-weight: 600;
}

.input-group-lg .form-control {
  font-size: 1.25rem !important;
}

/* Navigation TOC */
.toc-link {
  color: var(--steel-gray) !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
  color: var(--primary-color) !important;
  border-left-color: var(--secondary-color);
  background-color: rgba(21, 101, 192, 0.05);
  transform: translateX(5px);
}

/* Sticky Elements */
.sticky-lg-top {
  top: 100px !important;
}

.position-sticky {
  top: 100px;
}

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

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

.text-muted {
  color: var(--light-steel) !important;
}

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

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

.text-success {
  color: #4CAF50 !important;
}

.text-danger {
  color: #F44336 !important;
}

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

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

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

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

.bg-success {
  background-color: #4CAF50 !important;
}

.bg-danger {
  background-color: #F44336 !important;
}

.bg-warning {
  background-color: #FFA726 !important;
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color) !important;
  text-decoration: underline;
}

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

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

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-twitter {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.bi-facebook:hover {
  color: #1877F2 !important;
  transform: scale(1.2);
}

.bi-instagram:hover {
  color: #E4405F !important;
  transform: scale(1.2);
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
  transform: scale(1.2);
}

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

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

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

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

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

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

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

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

.text-start {
  text-align: left !important;
}

.text-end {
  text-align: right !important;
}

/* Spacing Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.gap-5 {
  gap: 3rem !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .btn {
    width: 100%;
  }
  
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

/* Loading States */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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

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

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

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

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

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

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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

/* 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-width: 0;
}

/* Additional Utility Classes */
.text-uppercase {
  text-transform: uppercase !important;
}

.text-lowercase {
  text-transform: lowercase !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

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

.opacity-50 {
  opacity: 0.5 !important;
}

/* Border Utilities */
.border-primary {
  border-color: var(--primary-color) !important;
}

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

.border-0 {
  border: none !important;
}

/* Shadow Utilities */
.shadow-none {
  box-shadow: none !important;
}

/* Position Utilities */
.z-index-1 {
  z-index: 1 !important;
}

.z-index-10 {
  z-index: 10 !important;
}

.z-index-100 {
  z-index: 100 !important;
}