/* Midnight Crimson Architecture Studio - Custom Styles */

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #e94560;
  --accent-light: #ff6b88;
  --dark-bg: #0f0f1e;
  --light-text: #f8f9fa;
  --transition-speed: 0.3s;
}

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

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

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

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

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

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

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

.lead {
  color: rgba(248, 249, 250, 0.9) !important;
  font-size: 1.25rem;
}

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

.text-white-50 {
  color: rgba(248, 249, 250, 0.6) !important;
}

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

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

/* Navigation */
.navbar {
  background-color: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 20px rgba(233, 69, 96, 0.1);
}

.navbar.scrolled {
  background-color: rgba(26, 26, 46, 0.98) !important;
  box-shadow: 0 4px 30px rgba(233, 69, 96, 0.2);
}

.navbar-dark .navbar-brand {
  color: var(--light-text) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.05em;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(248, 249, 250, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-decoration: none !important;
}

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

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 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='rgba%28233, 69, 96, 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;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  text-decoration: none !important;
}

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

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

.btn-outline-light:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

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

.btn-light:hover {
  background-color: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: var(--light-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 136, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

/* Hero Section */
.position-relative.min-vh-100 {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.position-relative.min-vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(233, 69, 96, 0.03) 10px,
    rgba(233, 69, 96, 0.03) 20px
  );
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20px) translateY(20px); }
}

.position-absolute.top-50 {
  z-index: 2;
}

/* Cards */
.card {
  background-color: rgba(26, 26, 46, 0.8) !important;
  border: 1px solid rgba(233, 69, 96, 0.2) !important;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3) !important;
  border-color: var(--secondary-color) !important;
}

.card.bg-dark {
  background-color: rgba(15, 15, 30, 0.9) !important;
}

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

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

.shadow-lg {
  box-shadow: 0 20px 60px rgba(233, 69, 96, 0.3) !important;
}

/* Images */
.img-fluid {
  transition: all var(--transition-speed) ease;
}

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

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

/* Bootstrap Icons */
.bi {
  color: var(--secondary-color) !important;
  transition: all var(--transition-speed) ease;
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.3);
}

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

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

.service-details h5 {
  color: var(--light-text) !important;
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--accent-light));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid var(--secondary-color);
  background: var(--primary-color);
  z-index: 1;
  transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.5);
  background: var(--secondary-color);
}

/* Gallery */
.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-card {
  transition: all var(--transition-speed) ease;
  position: relative;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(233, 69, 96, 0.9), transparent);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.gallery-item:hover .gallery-card {
  transform: scale(1.05);
}

/* Filter Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-btn {
  background-color: rgba(26, 26, 46, 0.8) !important;
  color: var(--light-text) !important;
  border: 2px solid rgba(233, 69, 96, 0.3) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

/* Forms */
.form-floating > .form-control,
.form-floating > .form-select {
  background-color: rgba(26, 26, 46, 0.8) !important;
  border: 2px solid rgba(233, 69, 96, 0.3) !important;
  color: var(--light-text) !important;
  transition: all var(--transition-speed) ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  background-color: rgba(26, 26, 46, 0.9) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25) !important;
  color: var(--light-text) !important;
}

.form-floating > label {
  color: rgba(248, 249, 250, 0.7) !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--secondary-color) !important;
}

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

/* Accordion */
.accordion-item {
  background-color: rgba(26, 26, 46, 0.8) !important;
  border: 1px solid rgba(233, 69, 96, 0.2) !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: rgba(26, 26, 46, 0.9) !important;
  color: var(--light-text) !important;
  font-weight: 600;
  border: none !important;
  transition: all var(--transition-speed) ease;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

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

.accordion-body {
  background-color: rgba(15, 15, 30, 0.6) !important;
  color: rgba(248, 249, 250, 0.9) !important;
  border-top: 1px solid rgba(233, 69, 96, 0.2);
}

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

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

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

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

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

.btn-close-white:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--secondary-color));
}

/* Lists */
.list-unstyled li {
  color: var(--light-text) !important;
  margin-bottom: 0.75rem;
  transition: all var(--transition-speed) ease;
}

.list-unstyled li:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

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

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

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

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

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

.bg-opacity-75 {
  background-color: rgba(26, 26, 46, 0.75) !important;
}

.bg-opacity-50 {
  background-color: rgba(26, 26, 46, 0.5) !important;
}

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

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

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

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

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

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

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

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

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

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  animation: fadeIn 0.8s ease forwards;
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

/* Containers */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

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

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

/* Position utilities */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

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

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

.min-vh-100 {
  min-height: 100vh !important;
}

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

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

/* Flex utilities */
.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 46, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Loading Animation */
.loading-spinner {
  border: 4px solid rgba(233, 69, 96, 0.2);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

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

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

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

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

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