/* Midnight Steel & Copper Architecture Studio CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-overlay: rgba(44, 62, 80, 0.85);
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --copper-light: #f39c12;
  --steel-dark: #1a252f;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  color: var(--primary-color) !important;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark) !important;
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--steel-dark) 100%);
}

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

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-overlay);
  z-index: 2;
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-content .text-white,
.hero-content h1,
.hero-content .display-2 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.25rem;
  font-weight: 300;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: relative;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent !important;
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: var(--shadow-medium);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.navbar-brand {
  font-size: 1.75rem !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

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

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-smooth);
  font-size: 1rem !important;
}

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

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

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

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

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  transition: var(--transition-smooth) !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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;
  z-index: -1;
}

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

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

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

.btn-primary {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--copper-light) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

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

.btn-outline-primary:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

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

.btn-light:hover {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  transform: translateY(-3px);
}

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

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

.btn-filter {
  background: var(--light-bg) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--light-bg) !important;
  padding: 0.6rem 1.5rem !important;
  margin: 0.25rem;
}

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: var(--transition-smooth) !important;
  background: var(--white) !important;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy) !important;
}

.card-img,
.card-img-top {
  border-radius: 15px 15px 0 0 !important;
  transition: var(--transition-smooth);
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 1.5rem !important;
  background: var(--white) !important;
}

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

.card-text {
  color: var(--text-light) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.card.bg-white {
  background: var(--white) !important;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 350px;
  background: var(--primary-color);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 2rem;
  text-align: center;
}

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

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

.portfolio-overlay h3,
.portfolio-overlay h4 {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  background: var(--secondary-color) !important;
  color: var(--white) !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

/* ===== TEXT UTILITIES ===== */
.text-white {
  color: var(--white) !important;
}

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light) !important;
}

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

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

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

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition-smooth) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

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

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

.form-check-input {
  border: 2px solid var(--primary-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(--text-dark) !important;
  cursor: pointer;
}

/* ===== ACCORDION ===== */
.accordion {
  --bs-accordion-bg: var(--white);
  --bs-accordion-border-color: #e0e0e0;
}

.accordion-item {
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}

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

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

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

.accordion-button::after {
  filter: brightness(0.5);
}

.accordion-body {
  padding: 1.5rem !important;
  color: var(--text-dark) !important;
  background: var(--white) !important;
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: var(--shadow-heavy) !important;
}

.modal-header {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
  border-radius: 20px 20px 0 0 !important;
}

.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5 {
  color: var(--white) !important;
}

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

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

.btn-close:hover {
  opacity: 0.8 !important;
}

/* ===== SHADOWS ===== */
.shadow-sm {
  box-shadow: var(--shadow-soft) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-heavy) !important;
}

/* ===== BOOTSTRAP ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi::before {
  display: inline-block;
  vertical-align: middle;
}

/* ===== ROUNDED ===== */
.rounded {
  border-radius: 15px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* ===== BORDERS ===== */
.border-top {
  border-top: 1px solid #e0e0e0 !important;
}

.border-bottom {
  border-bottom: 1px solid #e0e0e0 !important;
}

.border-end {
  border-right: 1px solid #e0e0e0 !important;
}

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

.border-opacity-25 {
  opacity: 0.25;
}

/* ===== POSITION UTILITIES ===== */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-sticky,
.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
}

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

.top-50 {
  top: 50% !important;
}

.start-0 {
  left: 0 !important;
}

.start-50 {
  left: 50% !important;
}

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

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-y {
  transform: translateY(-50%) !important;
}

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

/* ===== DISPLAY ===== */
.d-block {
  display: block !important;
}

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

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

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

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

.flex-fill {
  flex: 1 1 auto !important;
}

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

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

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

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

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

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

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

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

/* ===== IMAGE UTILITIES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !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-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ===== LIST ===== */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.8s ease-out forwards;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

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

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

/* ===== LINK HOVER EFFECTS ===== */
a.text-decoration-none {
  color: var(--text-dark) !important;
  transition: var(--transition-smooth);
}

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

/* ===== SMALL TEXT ===== */
.small,
small {
  font-size: 0.875rem !important;
  color: var(--text-light) !important;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 991.98px) {
  .d-lg-block {
    display: none !important;
  }
  
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: var(--shadow-medium);
  }
  
  .gap-lg-4 {
    gap: 0.5rem !important;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  section {
    padding: 3rem 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;
  }
  
  .hero-content {
    padding-top: 80px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .portfolio-item {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .d-md-block {
    display: none !important;
  }
  
  .hero-wrapper {
    min-height: 100vh;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.75rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-img,
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.95rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 992px) {
  .d-none.d-lg-block {
    display: block !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-4 {
    padding-left: 1.5rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-4 {
    padding-right: 1.5rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
  
  .p-lg-5 {
    padding: 3rem !important;
  }
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .p-md-5 {
    padding: 3rem !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
  background: var(--secondary-color);
  color: var(--white);
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ===== LOADING ANIMATION ===== */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
}

footer h3,
footer h4,
footer h5,
footer h6 {
  color: var(--white) !important;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

/* ===== SPECIFIC ICON SIZES ===== */
.fs-1 {
  font-size: 2.5rem !important;
}

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

.fs-5 {
  font-size: 1.25rem !important;
}

/* ===== ENHANCED CONTRAST ===== */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: var(--white) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: var(--white) !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
  color: var(--white) !important;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid rgba(230, 126, 34, 0.4) !important;
  outline-offset: 2px;
}

a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== FINAL OVERRIDES ===== */
.text-white,
.text-white * {
  color: var(--white) !important;
}

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

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

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

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