/* Nordic Steel Architecture Studio - Custom Styles */

:root {
  --primary: #2E3440;
  --secondary: #88C0D0;
  --light: #ECEFF4;
  --dark: #2E3440;
  --white: #ffffff;
  --accent: #5E81AC;
  --success: #A3BE8C;
  --warning: #EBCB8B;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-1, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

h1, .h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h4, .h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5, .h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

.navbar.scrolled {
  background-color: rgba(46, 52, 64, 0.98) !important;
  box-shadow: 0 4px 30px rgba(46, 52, 64, 0.2);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

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

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

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

.navbar-toggler {
  border-color: var(--secondary) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 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%28136, 192, 208, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.vh-100 {
  min-height: 100vh;
}

.position-relative.vh-100 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 52, 64, 0.6);
  z-index: 1;
}

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

.position-relative.vh-100 .object-fit-cover {
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(30%);
}

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

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

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border-width: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-lg {
  font-size: 1rem;
  border-radius: 0.75rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: #6fb0c0 !important;
  border-color: #6fb0c0 !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.3) !important;
}

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

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

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

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(46, 52, 64, 0.3) !important;
}

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

.btn-light:hover,
.btn-light:focus {
  background-color: var(--light) !important;
  border-color: var(--light) !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

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

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

.card-body {
  background-color: var(--white);
}

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

/* Portfolio Items */
.portfolio-item {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  height: 100%;
}

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

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

.portfolio-overlay {
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

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

.portfolio-overlay h5,
.portfolio-overlay p {
  color: var(--white) !important;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  height: 100%;
}

.service-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(136, 192, 208, 0.2) !important;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
  transform: rotate(5deg) scale(1.1);
}

.icon-wrapper .bi {
  font-size: 2rem;
  color: var(--white) !important;
}

.service-content h4 {
  color: var(--primary) !important;
  margin-bottom: 1rem;
}

.service-content p {
  color: #6c757d;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background-color: var(--secondary) !important;
  color: var(--primary) !important;
}

/* Images */
.img-fluid {
  border-radius: 1rem;
  transition: all 0.3s ease;
}

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

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

.shadow {
  box-shadow: 0 5px 20px rgba(46, 52, 64, 0.1) !important;
}

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
  background-color: var(--white) !important;
}

.form-check-input {
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.25) !important;
}

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

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  color: var(--primary) !important;
}

.breadcrumb-item.active {
  color: var(--secondary) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary) !important;
}

.breadcrumb-item a {
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--secondary) !important;
}

/* Links */
a {
  color: var(--secondary) !important;
  transition: all 0.3s ease;
}

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

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

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

/* Text Colors */
.text-muted {
  color: #6c757d !important;
}

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

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

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

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

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

/* Sections */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

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

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

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

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

.mt-3 {
  margin-top: 1.5rem !important;
}

.mt-4 {
  margin-top: 2rem !important;
}

.mt-5 {
  margin-top: 4rem !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-5 {
  margin-bottom: 4rem !important;
}

/* Footer */
footer {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

footer h5,
footer h4 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

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

footer .small {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Position Utilities */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

.rounded-circle {
  border-radius: 50% !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);
  }
}

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

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

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

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

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

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .me-3 {
    margin-right: 0 !important;
  }
}

/* Utility Classes */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

/* Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

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

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

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

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

/* Selection */
::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

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