/* Industrial Forge Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-accent: #1a252f;
  --light-accent: #34495e;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --metal-gray: #95a5a6;
  --forge-red: #c0392b;
  --steel-blue: #34495e;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f8f9fa;
}

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.8rem 1.2rem !important;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

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

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

.navbar-toggler {
  border: 2px solid #ffffff !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.5) !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;
}

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

.position-absolute.w-100.h-100 {
  z-index: 1;
  opacity: 0.3;
  filter: grayscale(30%);
}

.position-absolute.w-100.h-100::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.8) 100%);
}

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

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

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

.display-3.text-white {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.fs-4.text-white, .fs-5.text-white {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

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

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

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

.btn-primary {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
  background: #d35400 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
  color: #ffffff !important;
}

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

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

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

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 62, 80, 0.4);
}

.btn-secondary {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
}

.btn-secondary:hover {
  background: var(--dark-accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 62, 80, 0.6);
  color: #ffffff !important;
}

/* Badge */
.badge {
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.6rem 1.2rem !important;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Sections */
.py-5 {
  padding: 4rem 0;
}

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

.pb-4 {
  padding-bottom: 3rem;
}

section {
  position: relative;
  overflow: hidden;
}

/* Cards */
.card {
  border-radius: 12px;
  transition: all 0.4s ease;
  border: none !important;
  overflow: hidden;
}

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

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

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

.card-body {
  padding: 1.8rem;
  background: #ffffff;
}

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

.card-text {
  color: #666;
  line-height: 1.7;
}

.card.border-0 {
  background: #ffffff;
}

.shadow-sm {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

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

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

/* Icon Styles */
.bi {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card:hover .bi,
.p-4:hover .bi {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color);
}

.bi-arrow-right {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn:hover .bi-arrow-right {
  transform: translateX(5px);
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt,
.bi-envelope,
.bi-telephone {
  font-size: 1.2rem;
  color: var(--secondary-color) !important;
}

/* Feature Boxes */
.p-4 {
  transition: all 0.4s ease;
  border-radius: 12px;
  background: #ffffff;
}

.p-4:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: #ffffff !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.p-4:hover .h4,
.p-4:hover p,
.p-4:hover .bi {
  color: #ffffff !important;
}

.p-5 {
  background: #ffffff;
  border-radius: 12px;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff !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: #ffffff !important;
}

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

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

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

.needs-validation .form-control:valid {
  border-color: #198754;
}

/* Rounded Elements */
.rounded {
  border-radius: 8px !important;
}

.rounded-3 {
  border-radius: 12px !important;
}

.rounded-circle {
  border-radius: 50% !important;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d35400 100%);
  color: #ffffff !important;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
  transition: all 0.4s ease;
}

.rounded-circle:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 30px rgba(230, 126, 34, 0.5);
}

.rounded-circle .bi {
  font-size: 2rem;
  color: #ffffff !important;
  margin: 0;
}

/* Carousel */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-item {
  height: 500px;
  transition: transform 1s ease;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  background: rgba(44, 62, 80, 0.85);
  padding: 2rem;
  border-radius: 12px;
  bottom: 2rem;
  left: 10%;
  right: 10%;
  backdrop-filter: blur(10px);
}

.carousel-caption h5 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.1rem;
  color: #ffffff !important;
  opacity: 0.95;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 2rem;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-accent) 0%, var(--primary-color) 100%);
  color: #ffffff;
  margin-top: 4rem;
}

footer h5,
footer h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: all 0.3s ease;
}

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

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

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

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

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

/* Utilities */
.text-center {
  text-align: center !important;
}

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

.text-muted {
  color: #6c757d !important;
}

.small {
  font-size: 0.875rem;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

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

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

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

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !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; }

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

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

.pe-lg-4 { padding-right: 1.5rem !important; }

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

.g-0 { --bs-gutter-x: 0 !important; --bs-gutter-y: 0 !important; }
.g-3 { --bs-gutter-x: 1rem !important; --bs-gutter-y: 1rem !important; }
.g-4 { --bs-gutter-x: 1.5rem !important; --bs-gutter-y: 1.5rem !important; }
.g-5 { --bs-gutter-x: 3rem !important; --bs-gutter-y: 3rem !important; }

/* Animations */
@keyframes fadeInUp {
  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);
  }
}

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

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

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

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

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

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-dark .navbar-nav .nav-link::before {
    display: none;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .carousel-item {
    height: 350px;
  }
  
  .carousel-caption {
    padding: 1rem;
    left: 5%;
    right: 5%;
  }
  
  .carousel-caption h5 {
    font-size: 1.3rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .py-5 {
    padding: 2.5rem 0;
  }
  
  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .rounded-circle {
    width: 60px;
    height: 60px;
  }
  
  .rounded-circle .bi {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .position-relative.overflow-hidden {
    min-height: 70vh;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .fs-4 {
    font-size: 1.1rem !important;
  }
  
  .fs-5 {
    font-size: 1rem !important;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .bi {
    font-size: 2.5rem;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .display-3 {
    font-size: 1.8rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  .carousel-caption {
    display: none !important;
  }
  
  .p-4 {
    padding: 1.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #d35400;
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hover Effects for Images */
.img-fluid {
  transition: all 0.4s ease;
  border-radius: 12px;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

/* Display & Flex Utilities */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-column: column !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: end !important; }

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
}

@media (min-width: 992px) {
  .mt-lg-0 { margin-top: 0 !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

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

/* Width & Height */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Industrial Forge Specific Elements */
.forge-accent {
  position: relative;
}

.forge-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Metal texture overlay */
.metal-texture {
  position: relative;
  overflow: hidden;
}

.metal-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  pointer-events: none;
}

/* Container fluid */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}