/* Forge Fire Red & Carbon Steel - Architectural Studio Theme */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --light-gray: #f5f5f5;
  --dark-gray: #212121;
  --white: #ffffff;
  --transition-speed: 0.3s;
}

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

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

/* Typography */
.display-1, .display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -1px;
}

.lead {
  font-weight: 400;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(33, 33, 33, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 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='%23D32F2F' 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(--dark-gray) 0%, var(--secondary-color) 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(211, 47, 47, 0.03) 10px,
    rgba(211, 47, 47, 0.03) 20px
  );
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.15;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

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

.hero-section .text-white {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) 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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.btn-lg {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-lg:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
  color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #666 !important;
}

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

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

/* Service Cards with Flip Effect */
.service-card {
  perspective: 1000px;
  height: 350px;
  cursor: pointer;
}

.service-front,
.service-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.service-front {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border: 2px solid #e0e0e0;
}

.service-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  color: var(--white) !important;
  transform: rotateY(180deg);
}

.service-card:hover .service-front {
  transform: rotateY(180deg);
}

.service-card:hover .service-back {
  transform: rotateY(0);
}

.service-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-back .service-icon {
  color: var(--white) !important;
}

/* Bootstrap Icons */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-fire,
.bi-speedometer2,
.bi-wrench-adjustable,
.bi-shield-check,
.bi-chat-dots,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-clock-fill,
.bi-info-circle-fill,
.bi-telephone-fill,
.bi-tools,
.bi-heart-fill,
.bi-cpu,
.bi-lightning-charge,
.bi-soundwave,
.bi-disc,
.bi-arrows-angle-expand,
.bi-check-circle-fill,
.bi-arrow-right,
.bi-wrench-adjustable-circle-fill,
.bi-calendar3,
.bi-star-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-send-fill {
  font-size: inherit;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

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

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

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

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

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

.text-muted {
  color: #757575 !important;
}

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

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

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

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

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

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-color) 100%);
  color: rgba(255, 255, 255, 0.8) !important;
}

footer h4,
footer h5 {
  color: var(--white) !important;
}

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

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

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

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

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

/* Opacity Classes */
.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !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-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.25;
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

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

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

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

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

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

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.end-0 {
  right: 0 !important;
}

/* Spacing */
.m-3 {
  margin: 1rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

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

.ms-4 {
  margin-left: 1.5rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.p-md-5 {
  padding: 3rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

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

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

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

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

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

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

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

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

.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

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

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

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

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

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

/* Text Alignment */
.text-center {
  text-align: center !important;
}

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

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

/* Width & Height */
.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-dark .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

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

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

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

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

  .lead {
    font-size: 1.1rem !important;
  }

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

  .fs-5 {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.75rem 2rem !important;
  }

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

  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }

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

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

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

  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .order-lg-1 {
    order: 1 !important;
  }

  .order-lg-2 {
    order: 2 !important;
  }

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

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }

  .flex-lg-row {
    flex-direction: row !important;
  }

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

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

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

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

@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .card-body {
    padding: 1.5rem;
  }

  .service-card {
    height: 300px;
  }

  .p-md-5 {
    padding: 2rem !important;
  }
}

/* Small Utility Classes */
.small {
  font-size: 0.875rem;
}

.h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.h4 {
  font-size: 1.5rem;
  font-weight: 700;
}

.h5 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Grid System */
.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

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

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
  transition: all var(--transition-speed) ease;
  border: none;
}

.scroll-to-top:hover {
  background-color: #B71C1C !important;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.scroll-to-top.show {
  display: flex;
}

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

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.6s linear infinite;
}

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

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

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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