/* Architecture Studio - Bold Crimson & Charcoal Theme */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --transition: all 0.3s ease;
}

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

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

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(211, 47, 47, 0.1);
  transition: var(--transition);
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(33, 33, 33, 0.98) !important;
  box-shadow: 0 4px 30px rgba(211, 47, 47, 0.2);
}

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

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

.navbar-brand .bi {
  color: var(--primary-color) !important;
  margin-right: 10px;
  font-size: 1.8rem;
}

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

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

.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: 5px;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(211, 47, 47, 0.1) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23D32F2F" opacity="0.1"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.3) 0%, rgba(33, 33, 33, 0.8) 100%);
  z-index: 1;
}

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

.tool-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem !important;
}

.tool-icons .bi {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.5));
}

.tool-icons .bi:nth-child(2) {
  animation-delay: 0.5s;
}

.tool-icons .bi:nth-child(3) {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-tool {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-section .display-3 {
  font-weight: 800 !important;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem !important;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.3rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
}

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

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

.btn-primary:hover {
  background: #b71c1c !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(211, 47, 47, 0.6) !important;
}

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

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

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

.btn .bi {
  margin-left: 8px;
  transition: var(--transition);
}

.btn:hover .bi {
  transform: translateX(5px);
}

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

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

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

.card .bi {
  font-size: 3rem;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  transition: var(--transition);
}

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

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

.card p {
  color: var(--gray) !important;
  line-height: 1.8;
}

/* Service Cards */
.service-card {
  position: relative;
  height: 300px;
  perspective: 1000px;
  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;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.service-front {
  background: var(--white);
  border: 2px solid var(--light-bg);
}

.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(360deg);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrapper .bi {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
}

.service-back .bi {
  color: var(--white) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Section Styling */
section {
  padding: 80px 0;
}

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

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

.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 800 !important;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
}

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

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

/* Timeline Section */
.timeline-section {
  background: var(--light-bg);
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  border-left: 3px solid var(--primary-color);
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:hover::before {
  transform: scale(1.3);
  transition: var(--transition);
}

/* Team Section */
.team-section {
  background: var(--white);
}

.team-member {
  margin-bottom: 2rem;
}

.team-member img {
  width: 100%;
  border-radius: 12px;
  transition: var(--transition);
}

.team-member:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

/* Philosophy Section */
.philosophy-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.2) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Progress Bars */
.progress {
  height: 12px !important;
  border-radius: 10px !important;
  background: var(--light-bg) !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, #b71c1c 100%) !important;
  border-radius: 10px !important;
  transition: width 1.5s ease !important;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--light-bg) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  color: var(--secondary-color) !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.15) !important;
}

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

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

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

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

.form-range {
  accent-color: var(--primary-color) !important;
}

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

.alert-danger {
  background: rgba(211, 47, 47, 0.1) !important;
  color: var(--primary-color) !important;
}

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

.alert .bi {
  margin-right: 10px;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--light-bg) !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--white) !important;
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
}

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

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

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

/* Breadcrumb */
.breadcrumb {
  background: transparent !important;
  padding: 0 !important;
}

.breadcrumb-item {
  color: var(--gray) !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gray) !important;
}

/* Diagnostic Section */
.diagnostic-step {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid var(--light-bg);
  transition: var(--transition);
}

.diagnostic-step:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.1);
}

.vehicle-option {
  padding: 1.5rem;
  border: 2px solid var(--light-bg);
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.vehicle-option:hover {
  border-color: var(--primary-color);
  background: rgba(211, 47, 47, 0.05);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
}

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

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

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

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

footer a:hover {
  color: var(--primary-color) !important;
  padding-left: 10px;
}

footer .bi {
  margin-right: 10px;
  color: var(--primary-color) !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }

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

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

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

.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

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

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

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

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

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

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

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

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

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

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

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

  .nav-link {
    margin: 0.25rem 0;
  }

  .hero-section {
    min-height: 80vh;
    padding-top: 100px;
  }

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

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

  .tool-icons .bi {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }

  section {
    padding: 50px 0;
  }

  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2.2rem !important; }
  .display-5 { font-size: 2rem !important; }
  .display-6 { font-size: 1.8rem !important; }

  .service-card {
    height: 250px;
    margin-bottom: 2rem;
  }

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

  footer {
    text-align: center;
  }

  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

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

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

  .tool-icons {
    justify-content: center;
  }

  .tool-icons .bi {
    font-size: 1.8rem;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .service-card {
    height: 220px;
  }

  .timeline-item {
    padding-left: 30px;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-3 {
    font-size: 1.75rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  .btn-lg {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }

  .display-4 { font-size: 1.8rem !important; }
  .display-5 { font-size: 1.6rem !important; }
  .display-6 { font-size: 1.4rem !important; }

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

  .navbar-brand {
    font-size: 1.2rem !important;
  }

  .navbar-brand .bi {
    font-size: 1.5rem;
  }
}

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

  body {
    color: #000 !important;
  }

  .card {
    break-inside: avoid;
  }
}