/* Industrial Heritage Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E4A62;
  --secondary-color: #C07854;
  --primary-dark: #1a2938;
  --secondary-dark: #a05d3e;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #212529;
  --transition-speed: 0.3s;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-gray);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #ffffff;
}

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-dark) !important;
  line-height: 1.2;
}

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

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

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

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

.text-uppercase {
  letter-spacing: 0.1em;
}

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

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

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(30%);
  z-index: 0;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(46, 74, 98, 0.7) 0%, rgba(46, 74, 98, 0.9) 100%);
  z-index: 1;
}

.hero-wrapper .container {
  position: relative;
  z-index: 2;
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: all var(--transition-speed) ease;
  background-color: transparent !important;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

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

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  border-radius: 0.375rem;
  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-outline-light {
  color: #ffffff !important;
  border-color: #ffffff !important;
  border-width: 2px !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.btn-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.125rem !important;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
}

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

.card-body {
  padding: 1.5rem;
}

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

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  background-color: var(--primary-dark);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 74, 98, 0.95) 0%, rgba(46, 74, 98, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
}

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

.portfolio-card:hover img {
  transform: scale(1.15);
  filter: blur(2px);
}

.portfolio-item {
  transition: all var(--transition-speed) ease;
}

.portfolio-item.hidden {
  display: none;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Backgrounds */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

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

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

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

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

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

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

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

.bi-compass::before,
.bi-recycle::before,
.bi-people::before,
.bi-lightning::before,
.bi-building::before,
.bi-clipboard-check::before,
.bi-chat-dots::before,
.bi-info-circle::before,
.bi-geo-alt::before,
.bi-telephone::before,
.bi-envelope::before,
.bi-geo-alt-fill::before,
.bi-telephone-fill::before,
.bi-envelope-fill::before,
.bi-check-circle-fill::before,
.bi-arrow-right::before,
.bi-thermometer-half::before,
.bi-droplet-half::before,
.bi-tree::before,
.bi-award-fill::before,
.bi-graph-up-arrow::before,
.bi-lightning-charge-fill::before,
.bi-cloud-fill::before,
.bi-droplet-fill::before,
.bi-boxes::before,
.bi-bar-chart-fill::before,
.bi-pie-chart-fill::before {
  font-size: inherit;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
  color: var(--dark-gray);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(192, 120, 84, 0.25) !important;
  background-color: #ffffff;
}

.form-control::placeholder {
  color: var(--medium-gray);
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid #dee2e6;
  width: 1.25rem;
  height: 1.25rem;
  transition: all var(--transition-speed) ease;
}

.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(192, 120, 84, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--dark-gray);
}

/* Progress Bars */
.progress {
  height: 1.5rem;
  border-radius: 0.5rem;
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  transition: width 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #ffffff;
}

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

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

.modal-body {
  padding: 2rem;
  background-color: #ffffff;
  color: var(--dark-gray);
}

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

/* List */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

/* Links */
a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-dark);
}

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

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

/* Spacing Utilities */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* Position Utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; top: 0; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }
.translate-middle-x { transform: translateX(-50%) !important; }

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

/* Border */
.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !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%;
}

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

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

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

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

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

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--secondary-color);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  border: none;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-5px);
}

/* Section Styling */
section {
  position: relative;
  overflow: hidden;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Feature Icons Styling */
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.feature-icon .bi {
  color: #ffffff !important;
  font-size: 2rem;
}

/* Stats Section */
.stats-item {
  padding: 2rem;
  text-align: center;
  background-color: #ffffff;
  border-radius: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.stats-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

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

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

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

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

/* Contact Info */
.contact-info-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  transition: all var(--transition-speed) ease;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.contact-info-item .bi {
  font-size: 1.5rem;
  color: var(--secondary-color) !important;
  margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-wrapper {
    min-height: 80vh;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .scroll-to-top {
    width: 3rem;
    height: 3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  section {
    padding: 3rem 0 !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-wrapper {
    min-height: 70vh;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Hover Effects for Interactive Elements */
.interactive-hover {
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.interactive-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

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

/* Focus States */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-to-top,
  footer {
    display: none !important;
  }
  
  body {
    color: #000000;
  }
  
  a {
    text-decoration: underline;
  }
}