/* Midnight Shadow Architecture Studio - Custom Styles */

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #e94560;
  --light-bg: #f5f5f5;
  --dark-overlay: rgba(26, 26, 46, 0.9);
  --shadow-color: rgba(233, 69, 96, 0.3);
  --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;
  color: var(--primary-color);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.display-2, .display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  letter-spacing: -1px;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 800 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

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

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

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

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

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

.navbar-toggler {
  border: 2px solid 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='%23e94560' 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(--primary-color) 0%, #0f0f1e 100%);
  position: relative;
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  opacity: 0.2;
  z-index: 1;
  filter: grayscale(30%);
}

.headlight-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  z-index: 2;
  animation: pulse 4s ease-in-out infinite;
}

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

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

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

.hero-section .display-2 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

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

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

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

.btn-outline-light {
  color: #ffffff !important;
  border-color: #ffffff !important;
  border-width: 2px !important;
}

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

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

.btn-primary:hover {
  background-color: #d63850 !important;
  border-color: #d63850 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(233, 69, 96, 0.4) !important;
}

.btn-outline-dark {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
}

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 26, 46, 0.3) !important;
}

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

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

.btn-outline-secondary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  border-width: 2px !important;
}

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

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.8rem !important;
}

/* Scroll Indicator */
.bi-chevron-down {
  font-size: 2rem;
  animation: bounce 2s infinite;
  color: var(--secondary-color) !important;
}

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

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

.card-text {
  color: #666666 !important;
  line-height: 1.7;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

.bi-speedometer2,
.bi-tools,
.bi-trophy,
.bi-lightning-charge-fill,
.bi-cpu-fill,
.bi-gem,
.bi-soundwave,
.bi-gear-wide-connected,
.bi-arrows-move,
.bi-award-fill,
.bi-wrench-adjustable-circle-fill,
.bi-trophy-fill,
.bi-star-fill,
.bi-shield-fill-check,
.bi-diagram-3-fill,
.bi-fire,
.bi-building,
.bi-clipboard-check-fill {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  display: inline-block;
  transition: all var(--transition-speed) ease;
}

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

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px rgba(233, 69, 96, 0.2) !important;
  transform: translateY(-5px);
}

/* About Hero */
.about-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f0f1e 100%);
  padding: 6rem 0 4rem;
  color: #ffffff !important;
}

.about-hero .display-3 {
  color: #ffffff !important;
  margin-bottom: 1rem;
}

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

/* Timeline Section */
.timeline-section {
  position: relative;
  padding-left: 3rem;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.timeline-section > div {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-section > div::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
}

/* Certification Cards */
.cert-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-speed) ease;
  border: 1px solid #e0e0e0;
}

.cert-card:hover {
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.15) !important;
  border-color: var(--secondary-color);
  transform: translateX(5px);
}

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25) !important;
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.form-control::placeholder {
  color: #999999 !important;
}

.form-text {
  color: #666666 !important;
  font-size: 0.875rem;
}

.invalid-feedback {
  display: none;
  color: var(--secondary-color) !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid {
  border-color: var(--secondary-color) !important;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e0e0e0;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

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

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

/* Gallery */
.gallery-item {
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-out;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 46, 0.8) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 2;
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card .card-img-top {
  transition: all 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.gallery-card .badge {
  z-index: 3;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Filter Buttons */
.filter-btn {
  margin: 0.25rem;
  transition: all var(--transition-speed) ease;
}

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

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.5rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

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

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Accordion */
.accordion-item {
  border: 2px solid #e0e0e0;
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  border: none !important;
}

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

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(11%) sepia(35%) saturate(1145%) hue-rotate(202deg) brightness(95%) contrast(92%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(324deg) brightness(104%) contrast(104%);
}

.accordion-body {
  padding: 1.5rem;
  background-color: #f8f9fa;
  color: var(--primary-color) !important;
  line-height: 1.8;
}

.accordion-collapse {
  border-top: 2px solid #e0e0e0;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

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

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

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

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

.text-light {
  color: #f8f9fa !important;
}

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

footer a:hover {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  padding-left: 5px;
}

footer .bi {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

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

/* Position Utilities */
.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

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

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

.gap-2 {
  gap: 0.5rem !important;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

/* Container Fluid */
.container-fluid {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Min Height */
.min-vh-100 {
  min-height: 100vh !important;
}

/* Display Utilities */
.d-none {
  display: none !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;
  }
  
  .navbar-nav {
    align-items: flex-start !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .timeline-section {
    padding-left: 2rem;
  }
  
  .timeline-section > div::before {
    left: -2.5rem;
  }
}

@media (max-width: 767.98px) {
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .about-hero {
    padding: 4rem 0 3rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer .list-unstyled {
    margin-bottom: 2rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .gallery-card .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .bi-speedometer2,
  .bi-tools,
  .bi-trophy {
    font-size: 2rem;
  }
}

/* Animations */
@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.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { 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(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-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: #d63850;
}

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