/* Midnight Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #263238;
  --secondary-color: #37474F;
  --accent-color: #546E7A;
  --light-color: #ECEFF1;
  --white: #FFFFFF;
  --transition-speed: 0.4s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--primary-color) !important;
  background-color: var(--light-color) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

.hero-image {
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(20%);
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(38, 50, 56, 0.85) 0%, rgba(55, 71, 79, 0.95) 100%);
  z-index: 1;
}

/* Navigation */
.navbar {
  transition: all var(--transition-speed) ease;
  background-color: transparent !important;
}

.navbar.scrolled {
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3) !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%28255, 255, 255, 1%29' 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.85) !important;
  font-weight: 500 !important;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease;
}

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

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

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

/* Hero Content */
.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.geometric-frame {
  width: 80px;
  height: 80px;
  border: 3px solid var(--white);
  border-radius: 50%;
  position: relative;
  animation: rotate 20s linear infinite;
}

.geometric-frame::before,
.geometric-frame::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.geometric-frame::before {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.geometric-frame::after {
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

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

.hero-content .display-3 {
  color: var(--white) !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem !important;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-width: 2px !important;
}

.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 ease, height 0.6s ease;
  z-index: -1;
}

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

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

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: var(--light-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

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

/* Scroll Indicator */
.scroll-indicator {
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
}

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

.scroll-indicator .small {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Service Cards */
.service-card {
  background-color: var(--white) !important;
  border: 1px solid rgba(38, 50, 56, 0.1);
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transition: height var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(38, 50, 56, 0.15) !important;
}

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

.service-card .h4 {
  color: var(--primary-color) !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem !important;
}

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

.service-card .bi {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover .bi {
  transform: scale(1.15);
}

/* Cards */
.card {
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
}

.card.border-0 {
  box-shadow: 0 5px 20px rgba(38, 50, 56, 0.08);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(38, 50, 56, 0.2) !important;
}

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

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

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

.card-img-top {
  border-radius: 0 !important;
  transition: transform var(--transition-speed) ease;
}

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

/* Portfolio */
.portfolio-masonry {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-masonry {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .portfolio-masonry {
    column-count: 3;
  }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-img-wrapper img {
  transition: transform 0.6s ease;
  width: 100%;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(38, 50, 56, 0.85) 0%, rgba(55, 71, 79, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay h3,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

.filter-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(38, 50, 56, 0.3) !important;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0 !important;
  border: 2px solid rgba(38, 50, 56, 0.2) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(38, 50, 56, 0.15) !important;
  background-color: var(--white) !important;
}

.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 50, 56, 0.15) !important;
}

.form-check-label {
  color: var(--secondary-color) !important;
  font-weight: 500;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:valid {
  border-color: #28a745 !important;
}

/* Badge */
.badge {
  border-radius: 0 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* Accordion */
.accordion-item {
  border: none !important;
  border-bottom: 1px solid rgba(38, 50, 56, 0.1) !important;
  background-color: transparent !important;
}

.accordion-button {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1.125rem;
  padding: 1.5rem 1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(38, 50, 56, 0.05) !important;
  color: var(--primary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.accordion-button:focus {
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
}

.accordion-body {
  padding: 1.5rem 1rem !important;
  color: var(--secondary-color) !important;
  line-height: 1.8;
}

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

.modal-header {
  background-color: var(--primary-color) !important;
  border-bottom: none !important;
  padding: 1.5rem 2rem !important;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700 !important;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1 !important;
}

.modal-body {
  padding: 2rem !important;
  color: var(--secondary-color) !important;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 3rem;
  width: 2px;
  height: calc(100% - 1rem);
  background-color: rgba(38, 50, 56, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item .rounded-circle {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color) !important;
  position: absolute;
  left: -3.4rem;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item .bi {
  color: var(--white) !important;
  font-size: 1.5rem;
}

/* Progress Bars */
.progress {
  height: 8px !important;
  border-radius: 0 !important;
  background-color: rgba(38, 50, 56, 0.1) !important;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 1.5s ease !important;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(38, 50, 56, 0.08) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(38, 50, 56, 0.12) !important;
}

.shadow-lg {
  box-shadow: 0 15px 40px rgba(38, 50, 56, 0.2) !important;
}

/* Background Colors */
.bg-white {
  background-color: var(--white) !important;
}

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

.bg-opacity-10 {
  background-color: rgba(38, 50, 56, 0.1) !important;
}

/* Text Colors */
.text-muted {
  color: var(--secondary-color) !important;
  opacity: 0.7;
}

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

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Borders */
.border {
  border: 1px solid rgba(38, 50, 56, 0.1) !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

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

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

.border-3 {
  border-width: 3px !important;
}

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

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

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

footer .h5 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

footer .bi {
  color: var(--white) !important;
  margin-right: 0.5rem;
}

/* Utilities */
.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

.z-2 {
  z-index: 2 !important;
}

.z-3 {
  z-index: 3 !important;
}

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

.object-fit-cover {
  object-fit: cover !important;
}

.rounded {
  border-radius: 0 !important;
}

.fst-italic {
  font-style: italic !important;
}

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

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

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

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

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

.pb-4 {
  padding-bottom: 3rem !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-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* Sticky Elements */
.sticky-top {
  position: sticky !important;
  top: 1rem !important;
  z-index: 1020 !important;
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Icon Styling */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-arrow-right-circle,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-tree-fill,
.bi-award-fill,
.bi-house-fill,
.bi-globe,
.bi-brightness-high-fill,
.bi-water,
.bi-box-seam {
  transition: transform var(--transition-speed) ease;
}

/* Hover Effects */
a:hover .bi,
.btn:hover .bi {
  transform: translateX(3px);
}

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

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

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

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

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

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

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(38, 50, 56, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0 !important;
  }
  
  .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero-content .display-3 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
  
  .timeline-item .rounded-circle {
    width: 50px;
    height: 50px;
    left: -2.9rem;
  }
  
  .timeline-item .bi {
    font-size: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  
  .geometric-frame {
    width: 60px;
    height: 60px;
  }
  
  .modal-body {
    padding: 1.5rem !important;
  }
}

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

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

*:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px;
}

/* Smooth Scrolling */
html.smooth-scroll {
  scroll-behavior: smooth;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(38, 50, 56, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}