/* Nordic Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E3440;
  --secondary-color: #D08770;
  --light-bg: #ECEFF4;
  --dark-text: #2E3440;
  --light-text: #E5E9F0;
  --accent-color: #88C0D0;
  --success-color: #A3BE8C;
  --steel-gray: #4C566A;
  --warm-steel: #5E81AC;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

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

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--steel-gray);
}

.fs-4, .fs-5 {
  line-height: 1.6;
}

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

/* Navbar Styles */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(46, 52, 64, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(46, 52, 64, 0.2);
}

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

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(208, 135, 112, 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%28255, 255, 255, 0.8%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: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

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

.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--secondary-color);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: calc(100% - 2rem);
    left: 1rem;
  }
}

/* Button Styles */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  border: 2px solid transparent !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: left 0.3s ease;
  z-index: -1;
}

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

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

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

.btn:not([class*="btn-outline"]) {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
}

.btn:not([class*="btn-outline"]):hover {
  background-color: #bf7659 !important;
  border-color: #bf7659 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(208, 135, 112, 0.4) !important;
}

.btn:not([class*="btn-outline"]):active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(208, 135, 112, 0.3) !important;
}

.btn-group .btn {
  margin: 0 0.25rem;
}

.filter-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--steel-gray) !important;
  padding: 0.5rem 1.5rem !important;
}

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

/* Hero Section */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.top-0 { top: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }
.bottom-0 { bottom: 0; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.min-vh-50 {
  min-height: 50vh;
}

.d-flex {
  display: flex;
}

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

.justify-content-between {
  justify-content: space-between;
}

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

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

.flex-row-reverse {
  flex-direction: row-reverse;
}

/* Container & Grid */
.container {
  max-width: 1200px;
}

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.gap-2 {
  gap: 0.5rem !important;
}

/* Spacing Utilities */
.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; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-4 { padding-top: 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-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; }
.mt-lg-0 { margin-top: 0 !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.m-3 { margin: 1rem !important; }

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

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

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.shadow {
  box-shadow: 0 8px 30px rgba(46, 52, 64, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(46, 52, 64, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 15px 50px rgba(46, 52, 64, 0.2) !important;
}

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

.overflow-hidden {
  overflow: hidden !important;
}

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

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

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

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

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

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

.small {
  font-size: 0.875rem;
}

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

/* Card Styles */
.card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #ffffff;
  border: 1px solid rgba(46, 52, 64, 0.1) !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(46, 52, 64, 0.15) !important;
}

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

.card-body {
  padding: 1.5rem;
}

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

.portfolio-item {
  opacity: 1;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(46, 52, 64, 0.1);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(46, 52, 64, 0.2);
}

.portfolio-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95), rgba(46, 52, 64, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.portfolio-content {
  color: #ffffff;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

.portfolio-category {
  font-size: 0.875rem;
  color: var(--secondary-color) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.portfolio-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6;
}

/* Badge Styles */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 0.25rem;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  border: 2px solid rgba(46, 52, 64, 0.2) !important;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
  color: var(--dark-text);
}

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

.form-control::placeholder {
  color: rgba(46, 52, 64, 0.5);
}

.form-check {
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid rgba(46, 52, 64, 0.3) !important;
  cursor: pointer;
}

.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(208, 135, 112, 0.25) !important;
}

.form-check-label {
  cursor: pointer;
  color: var(--dark-text);
}

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-clock-history,
.bi-hand-thumbs-up,
.bi-shield-check,
.bi-building,
.bi-hammer,
.bi-gear,
.bi-bricks,
.bi-lamp {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

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

.bi.fs-1 {
  font-size: 3rem !important;
}

/* Display Utilities */
.d-block {
  display: block !important;
}

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

/* Sticky Navigation */
.sticky-lg-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Column Utilities */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

/* Responsive Grid */
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .text-lg-end { text-align: right !important; }
}

/* Collapse */
.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* Custom Section Styling */
section {
  padding: 5rem 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(46, 52, 64, 0.1), transparent);
}

/* Link Styles */
a {
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: #bf7659;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 1s ease-in;
}

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

/* Slide Up Animation */
.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), #bf7659);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(208, 135, 112, 0.3);
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: translateY(-10px) rotate(5deg);
  box-shadow: 0 15px 40px rgba(208, 135, 112, 0.4);
}

/* Testimonial Styles */
.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(46, 52, 64, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

.testimonial-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(46, 52, 64, 0.15);
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .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;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .mt-5.mt-lg-0 {
    margin-top: 3rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    margin: 0.25rem 0;
    width: 100%;
  }
  
  .flex-wrap {
    flex-direction: column;
  }
  
  .gap-2 {
    gap: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background-color: #ffffff;
    color: #000000;
  }
}

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

/* Focus Styles */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border-width: 3px !important;
  }
  
  .nav-link {
    font-weight: 700 !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}