/* ===================================
   Industrial Steel Architecture Studio
   Theme Colors: #2C3E50 (Primary), #E67E22 (Secondary)
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-gray: #1a252f;
  --light-gray: #95a5a6;
  --steel-gray: #7f8c8d;
  --bg-light: #ecf0f1;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 40px rgba(44, 62, 80, 0.15);
  --steel-gradient: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
}

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

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

html {
  scroll-behavior: smooth;
}

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 6rem) !important;
  line-height: 1.1 !important;
}

.display-3 {
  font-size: clamp(2rem, 5vw, 4rem) !important;
}

.display-4 {
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.display-6 {
  font-size: clamp(1.2rem, 2.5vw, 2rem) !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.4rem) !important;
  color: var(--steel-gray) !important;
  font-weight: 400 !important;
}

.h3, h3 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

.h4, h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem) !important;
}

.h5, h5 {
  font-size: clamp(1rem, 2vw, 1.5rem) !important;
}

.h6, h6 {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem) !important;
}

/* === NAVIGATION === */
.navbar {
  background: var(--steel-gradient) !important;
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px);
}

.navbar.fixed-top {
  z-index: 1030 !important;
}

.navbar-dark {
  background: var(--steel-gradient) !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
}

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

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease !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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

.btn-primary,
.btn.btn-lg.px-5.py-3:first-of-type {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-primary:hover,
.btn.btn-lg.px-5.py-3:first-of-type:hover {
  background: #d35400 !important;
  border-color: #d35400 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3) !important;
}

.btn-outline-primary,
.btn.btn-lg.px-5.py-3:last-of-type {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
}

.btn-outline-primary:hover,
.btn.btn-lg.px-5.py-3:last-of-type:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3) !important;
}

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

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

.filter-btn {
  margin: 0.5rem;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem !important;
}

.filter-btn.active {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

/* === HERO SECTION === */
.position-relative.vh-100 {
  background: var(--steel-gradient);
  position: relative;
  overflow: hidden;
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
}

.position-relative.vh-100 .display-1,
.position-relative.vh-100 .lead,
.position-relative.vh-100 .h1,
.position-relative.vh-100 .h2,
.position-relative.vh-100 .h3,
.position-relative.vh-100 .h4,
.position-relative.vh-100 .h5,
.position-relative.vh-100 .h6 {
  color: var(--white) !important;
}

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

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

/* === SECTIONS === */
section {
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding: 5rem 0 !important;
}

.my-5 {
  margin: 5rem 0 !important;
}

.container,
.container-fluid {
  position: relative;
  z-index: 1;
}

/* === IMAGES === */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: all var(--transition-speed) ease;
}

.shadow-lg {
  box-shadow: var(--box-shadow) !important;
  border-radius: 2px;
  overflow: hidden;
}

.shadow-sm {
  box-shadow: 0 2px 15px rgba(44, 62, 80, 0.1) !important;
}

img:hover {
  transform: scale(1.02);
}

/* === CARDS === */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: all var(--transition-speed) ease !important;
  overflow: hidden;
  background: var(--white) !important;
}

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

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

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

/* === PORTFOLIO === */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  height: 350px;
  background: var(--dark-gray);
}

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

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

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

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

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

.portfolio-overlay p {
  color: var(--light-gray) !important;
}

/* === FORMS === */
.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background: var(--white) !important;
  color: var(--primary-color) !important;
}

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

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

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

.form-check-input {
  border: 2px solid var(--light-gray) !important;
  border-radius: 0 !important;
  width: 1.2em !important;
  height: 1.2em !important;
}

.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.2rem rgba(230, 126, 34, 0.25) !important;
}

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

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--steel-gray) !important;
  transition: all var(--transition-speed) ease;
}

.list-unstyled li:hover {
  color: var(--secondary-color) !important;
  padding-left: 10px;
}

.list-unstyled a {
  color: var(--steel-gray) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease !important;
}

.list-unstyled a:hover {
  color: var(--secondary-color) !important;
}

/* === FOOTER === */
footer {
  background: var(--steel-gradient) !important;
  color: var(--white) !important;
  padding: 3rem 0 1rem !important;
  margin-top: 5rem;
}

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

footer a {
  color: var(--light-gray) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease !important;
}

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

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

/* === ICONS === */
.bi,
.fas,
.fa {
  transition: all var(--transition-speed) ease;
}

.bi:hover,
.fas:hover,
.fa:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.1);
}

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

/* === UTILITY CLASSES === */
.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

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

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

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

.opacity-50 {
  opacity: 0.5 !important;
}

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

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

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

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

.text-start {
  text-align: left !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.pb-3 {
  padding-bottom: 1rem !important;
}

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

.ps-lg-4 {
  padding-left: 1.5rem !important;
}

.ps-lg-5 {
  padding-left: 3rem !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;
}

.mt-0 {
  margin-top: 0 !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;
}

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

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

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

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

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

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

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

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

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

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

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

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

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav {
    gap: 0 !important;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-1 {
    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;
  }
  
  .vh-100 {
    min-height: 100vh !important;
    height: auto !important;
    padding: 120px 0 80px !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .col-lg-8.offset-lg-1,
  .col-lg-5,
  .col-lg-4,
  .col-lg-6,
  .col-lg-7,
  .col-lg-3,
  .col-lg-2,
  .col-lg-10 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .ps-lg-4,
  .ps-lg-5 {
    padding-left: 15px !important;
  }
  
  .text-lg-start {
    text-align: center !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .justify-content-lg-end {
    justify-content: center !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .portfolio-item {
    height: 280px;
  }
  
  .card-body.p-md-5 {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .col-md-6,
  .col-md-3,
  .col-md-4,
  .col-md-12 {
    margin-bottom: 1.5rem;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  .mt-md-0 {
    margin-top: 1rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
  
  .flex-wrap {
    flex-wrap: wrap !important;
  }
  
  .btn.btn-lg {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  footer {
    text-align: center !important;
  }
  
  footer .col-md-6 {
    text-align: center !important;
  }
}

/* === LOADING ANIMATION === */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* === SCROLL ANIMATIONS === */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

/* === BACKGROUND PATTERNS === */
.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(44, 62, 80, 0.02) 10px,
      rgba(44, 62, 80, 0.02) 20px
    );
  pointer-events: none;
}

/* === HOVER EFFECTS === */
.hover-lift {
  transition: all var(--transition-speed) ease !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.2) !important;
}

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

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

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

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

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

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