/* Crimson Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --dark-bg: #1a1a1a;
  --light-text: #f5f5f5;
  --accent-light: #ff5252;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navbar Styles */
.navbar {
  background: rgba(33, 33, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(211, 47, 47, 0.3);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
}

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

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

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

.nav-link {
  color: var(--light-text) !important;
  font-weight: 500 !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

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

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

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

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

/* Hero Section */
.position-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.position-absolute {
  position: absolute;
}

.object-fit-cover {
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.6);
}

.display-1 {
  font-weight: 800 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  color: #ffffff !important;
  letter-spacing: 3px;
}

.display-3,
.display-4,
.display-5 {
  font-weight: 700 !important;
  color: #ffffff !important;
}

.lead {
  font-size: 1.3rem;
  color: #f5f5f5 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

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

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  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(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

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

.btn-outline-light {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

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

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

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

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

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

.filter-btn {
  transition: all var(--transition-speed) ease;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

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

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

.bi-chevron-down {
  color: var(--primary-color) !important;
}

/* Cards */
.card {
  background: rgba(33, 33, 33, 0.9) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(10px);
}

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

.card-body {
  padding: 2rem;
}

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

/* Service Cards with Flip Effect */
.service-card {
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
}

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

.service-card-front {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c2c2c 100%);
  border: 2px solid rgba(211, 47, 47, 0.3);
}

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

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

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

/* Icons */
.bi {
  color: var(--primary-color) !important;
}

.bi-speedometer2,
.bi-wrench-adjustable,
.bi-gear-wide-connected,
.bi-cpu,
.bi-lightning-charge,
.bi-gem,
.bi-disc,
.bi-arrow-left-right,
.bi-soundwave,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-gear-fill,
.bi-hammer,
.bi-tools,
.bi-clock-history,
.bi-chat-dots,
.bi-award,
.bi-star-fill,
.bi-people-fill,
.bi-arrows-fullscreen,
.bi-send-fill,
.bi-clock-fill,
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-twitter,
.bi-chevron-right,
.bi-file-text,
.bi-shield-check,
.bi-lock,
.bi-people,
.bi-hand-thumbs-up,
.bi-browser-chrome,
.bi-megaphone,
.bi-pencil-square,
.bi-telephone {
  transition: all var(--transition-speed) ease;
}

.bi:hover {
  color: var(--accent-light) !important;
  transform: scale(1.2);
}

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

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

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

.rounded-circle {
  border-radius: 50% !important;
  border: 3px solid var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.2);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(211, 47, 47, 0.9) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  color: #ffffff !important;
  text-align: center;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

/* Modal */
.modal-content {
  background: var(--secondary-color) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 12px;
}

.modal-header {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
}

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

/* Forms */
.form-label {
  color: var(--light-text) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
  color: #ffffff !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.form-select option {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

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

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

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

.pb-3 {
  padding-bottom: 2rem !important;
}

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

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

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

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

.text-decoration-none:hover {
  color: var(--primary-color) !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: all var(--transition-speed) ease;
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--primary-color) !important;
}

/* Footer */
footer {
  background: #0a0a0a !important;
  border-top: 3px solid var(--primary-color);
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--light-text) !important;
  transition: all var(--transition-speed) ease;
}

footer a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

/* Spacing Utilities */
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }
.p-5 { padding: 3rem !important; }
.px-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-3 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-1 { margin-right: 0.5rem !important; }
.me-2 { margin-right: 1rem !important; }
.me-3 { margin-right: 1.5rem !important; }
.ms-3 { margin-left: 1.5rem !important; }
.ms-4 { margin-left: 2rem !important; }

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-block { display: block !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-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 1rem !important; }
.gap-3 { gap: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Button Group */
.btn-group {
  display: flex;
  gap: 0.5rem;
}

/* Sticky Top */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* 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 15px rgba(211, 47, 47, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
  }
  
  .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;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .service-card {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .fs-1 { font-size: 2rem !important; }
  .fs-2 { font-size: 1.75rem !important; }
  .fs-3 { font-size: 1.5rem !important; }
  .fs-5 { font-size: 1.1rem !important; }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .service-card {
    height: 200px;
  }
  
  .btn-group {
    flex-direction: column;
  }
}

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

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

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

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

/* Link Hover Effects */
a {
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-light) !important;
  text-decoration: none;
}

/* Hero Section Specific */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

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

/* H Tags */
.h2, .h4, .h5 {
  color: #ffffff !important;
  font-weight: 700;
}

.h2 { font-size: 2rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }

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

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

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

/* Hover Effects for Cards */
.text-center.p-4 {
  transition: all var(--transition-speed) ease;
}

.text-center.p-4:hover {
  transform: translateY(-5px);
  background: rgba(211, 47, 47, 0.1) !important;
}

/* Contrast Enhancements */
.bg-dark {
  background-color: var(--secondary-color) !important;
}

.text-bg-dark {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

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

/* Container Max Width */
.container {
  max-width: 1200px;
}

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

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