/* Midnight Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-bg: #1a252f;
  --light-text: #ecf0f1;
  --accent-light: #f39c12;
}

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  color: #ffffff !important;
}

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.98) !important;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

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

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

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

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

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

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  border-width: 2px !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
}

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.85rem !important;
}

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

.btn-primary:hover {
  background-color: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4) !important;
}

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

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

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

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

.filter-btn {
  transition: all 0.3s ease !important;
}

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

.position-absolute.w-100.h-100 {
  z-index: 0;
  opacity: 0.15;
}

.object-fit-cover {
  object-fit: cover;
  filter: grayscale(30%) brightness(0.7);
}

.min-vh-100 {
  z-index: 1;
  position: relative;
}

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

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

/* Cards */
.card {
  background-color: rgba(44, 62, 80, 0.9) !important;
  border: none !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

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

.shadow-lg {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
}

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

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

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

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

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

.fs-1 {
  font-size: 3rem !important;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
}

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

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

.portfolio-item:hover .portfolio-card img {
  transform: scale(1.15);
  filter: brightness(0.6);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff !important;
}

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

.project-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color) !important;
}

.project-item:hover {
  background: rgba(230, 126, 34, 0.1);
  transform: translateX(10px);
}

/* Forms */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(44, 62, 80, 0.3) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  font-weight: 500 !important;
}

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

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

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

.form-check-input {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--secondary-color) !important;
  cursor: pointer;
}

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

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

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

/* Progress Bars */
.progress {
  background-color: rgba(255, 255, 255, 0.1) !important;
  height: 12px !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-light) 100%) !important;
  transition: width 1.5s ease !important;
}

/* List Group */
.list-group-item {
  background-color: rgba(44, 62, 80, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--light-text) !important;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem !important;
}

.list-group-item:hover {
  background-color: rgba(230, 126, 34, 0.2) !important;
  transform: translateX(5px);
  border-color: var(--secondary-color) !important;
}

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--light-text) !important;
}

/* Alert */
.alert {
  background-color: rgba(230, 126, 34, 0.15) !important;
  border: 2px solid var(--secondary-color) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
}

/* Borders */
.border-bottom {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.border-start {
  border-left: 3px solid var(--secondary-color) !important;
}

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

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

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

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

/* Text Colors */
.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.text-decoration-none {
  text-decoration: none !important;
  color: var(--light-text) !important;
  transition: all 0.3s ease;
}

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

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

/* Ratio (Video/Image containers) */
.ratio {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.ratio-21x9::before {
  padding-top: 42.857143%;
}

/* Navigation Variants */
.nav {
  display: flex;
}

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

.nav-link {
  color: var(--light-text) !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(230, 126, 34, 0.1) !important;
  border-left-color: var(--secondary-color) !important;
}

/* Container Variations */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

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

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

.p-5 {
  padding: 3rem !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-3 {
  padding: 1.5rem !important;
}

.m-4 {
  margin: 2rem !important;
}

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

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

/* Sticky Positioning */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

/* Image Styling */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

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

@keyframes fadeInDown {
  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);
  }
}

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

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

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

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

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #16202a 100%);
  color: var(--light-text) !important;
  border-top: 3px solid var(--secondary-color);
}

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

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

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .fs-4 {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .ps-5 {
    padding-left: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    border-left: 3px solid transparent;
    padding-left: 1rem !important;
  }
  
  .nav-link:hover,
  .nav-link.active {
    border-left-color: var(--secondary-color) !important;
    background: rgba(230, 126, 34, 0.1);
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 1rem !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-0 {
  margin-right: 0;
  margin-left: 0;
}

.g-0 > * {
  padding-right: 0;
  padding-left: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

/* Utility Classes */
.d-none {
  display: none !important;
}

.d-inline-block {
  display: inline-block !important;
}

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

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

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

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

.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

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

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

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

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

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

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

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

.ms-3 {
  margin-left: 1rem !important;
}

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

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !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;
}

.mt-lg-0 {
  margin-top: 0 !important;
}

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

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

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

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

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

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

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

.small {
  font-size: 0.875rem !important;
}

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

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

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

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

/* Selection Styling */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--secondary-color);
  color: #ffffff;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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