/* Arctic Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #ECF0F1;
  --accent-color: #3498DB;
  --dark-steel: #1a252f;
  --light-steel: #95a5a6;
  --white: #ffffff;
  --transition-speed: 0.3s;
}

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

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

html {
  scroll-behavior: smooth;
}

/* Typography Enhancements */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  color: var(--primary-color) !important;
}

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

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

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

/* Navigation Bar */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 15px rgba(44, 62, 80, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  background-color: rgba(44, 62, 80, 0.98) !important;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 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;
}

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

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

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

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

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

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

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

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

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

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

/* Hero Section */
.position-absolute.top-0.start-0.w-100.h-100 {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(26, 37, 47, 0.9) 100%);
  z-index: 1;
}

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

.position-relative > div {
  z-index: 2;
}

/* Containers */
.container,
.container-fluid {
  position: relative;
}

/* Images */
.img-fluid {
  transition: transform 0.5s ease;
}

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

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(44, 62, 80, 0.3) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(44, 62, 80, 0.1) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(44, 62, 80, 0.15) !important;
}

/* Background Colors */
.bg-light {
  background-color: var(--secondary-color) !important;
}

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

/* Cards and Sections */
.overflow-hidden {
  border-radius: 0 !important;
  transition: transform var(--transition-speed) ease;
}

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

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--white);
  transition: all 0.5s ease;
}

.portfolio-item::before {
  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.9) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

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

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

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

.portfolio-item .overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white) !important;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.5s ease;
}

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

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

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

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

/* Modal Customization */
.modal-content {
  background-color: var(--primary-color) !important;
  border: none !important;
  border-radius: 0 !important;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700 !important;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1 !important;
}

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

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
  width: 5% !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(44, 62, 80, 0.8);
  padding: 2rem;
  border-radius: 50%;
}

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

.form-control:focus,
.form-select:focus {
  border-color: var(--dark-steel) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25) !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  background-color: var(--white) !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25) !important;
}

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

.invalid-feedback {
  color: #e74c3c !important;
  font-weight: 600 !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #e74c3c !important;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-send,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter,
.bi-chat-dots-fill,
.bi-calendar-check-fill,
.bi-building-fill,
.bi-collection-fill,
.bi-award-fill,
.bi-house-door,
.bi-check2,
.bi-building,
.bi-tree,
.bi-arrow-right,
.bi-grid-3x3,
.bi-dot,
.bi-clock-history,
.bi-hammer,
.bi-telephone,
.bi-envelope,
.bi-geo-alt {
  font-size: inherit;
  transition: transform var(--transition-speed) ease;
}

.bi:hover {
  transform: scale(1.1);
}

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

a:hover {
  color: var(--dark-steel) !important;
}

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

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

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: transform var(--transition-speed) ease;
}

.list-unstyled li:hover {
  transform: translateX(5px);
}

/* Progress Bar */
.progress {
  height: 2rem !important;
  background-color: var(--secondary-color) !important;
  border-radius: 0 !important;
  overflow: visible;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 1.5s ease;
  position: relative;
}

.progress-bar::after {
  content: attr(data-value);
  position: absolute;
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: 700;
}

/* Borders */
.border-0 {
  border: 0 !important;
}

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

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

/* Rounded Elements */
.rounded {
  border-radius: 0.25rem !important;
}

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

/* Sticky Elements */
.sticky-top {
  position: sticky !important;
  top: 80px !important;
  z-index: 1020;
}

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

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

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !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-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !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-4 { padding-bottom: 1.5rem !important; }

.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }
.pe-5 { padding-right: 3rem !important; }

.m-0 { margin: 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; }

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

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-auto { margin-left: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Gap Utilities */
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.g-0 { gap: 0 !important; }
.g-4 { gap: 1.5rem !important; }
.g-5 { gap: 3rem !important; }

/* Text Alignment */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

/* Font Sizes */
.fs-1 { font-size: 2.5rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.h4 { font-size: 1.5rem !important; font-weight: 700 !important; }
.h5 { font-size: 1.25rem !important; font-weight: 700 !important; }
.h6 { font-size: 1rem !important; font-weight: 700 !important; }

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

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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);
  }
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--white);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .display-1 { font-size: 3rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  .display-6 { font-size: 1.5rem !important; }
  
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  .ps-5 { padding-left: 1rem !important; }
  .pe-5 { padding-right: 1rem !important; }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-top {
    top: 70px !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 { 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; }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .gap-4 { gap: 1rem !important; }
  
  .text-md-start { text-align: center !important; }
  .text-md-end { text-align: center !important; }
  
  .d-md-inline { display: inline !important; }
  
  .mb-md-0 { margin-bottom: 1rem !important; }
  
  .flex-md-row { flex-direction: column !important; }
  
  .order-lg-1,
  .order-lg-2 {
    order: unset !important;
  }
  
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 { font-size: 2rem !important; }
  .fs-1 { font-size: 2rem !important; }
  
  .col-sm-6 {
    width: 100% !important;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.3);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white) !important;
  border: none;
  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;
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

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

.scroll-to-top:hover {
  background-color: var(--dark-steel);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4);
}

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

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

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

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

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .scroll-to-top {
    display: none !important;
  }
}