/* Nordic Slate & Copper Architecture Studio Theme */

:root {
  --primary-color: #2E3440;
  --secondary-color: #D08770;
  --light-slate: #4C566A;
  --lighter-slate: #5E81AC;
  --copper-light: #E5A280;
  --white: #ECEFF4;
  --off-white: #E5E9F0;
  --dark: #2E3440;
  --transition: all 0.3s ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
}

.display-1 {
  font-size: 4.5rem !important;
  font-weight: 800 !important;
}

.display-2 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
}

.display-3 {
  font-size: 2.5rem !important;
}

.display-4 {
  font-size: 2rem !important;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--light-slate) !important;
}

.fs-4 {
  color: var(--light-slate) !important;
}

.fs-5 {
  color: var(--light-slate) !important;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0 !important;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(46, 52, 64, 0.1);
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(208, 135, 112, 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='%23D08770' 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(--off-white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition) !important;
  position: relative;
  text-decoration: none !important;
}

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

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

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

/* Buttons */
.btn {
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none !important;
  text-decoration: none !important;
}

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

.btn-link {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-link:hover {
  background-color: transparent !important;
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(208, 135, 112, 0.3) !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.filter-btn {
  margin: 0.25rem;
  border-radius: 0 !important;
}

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

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.85) 0%, rgba(76, 86, 106, 0.7) 100%);
  z-index: 1;
}

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

.carousel-caption {
  z-index: 2;
  bottom: 50% !important;
  transform: translateY(50%);
  text-align: center;
  padding: 2rem;
}

.carousel-caption h2,
.carousel-caption h3 {
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.carousel-caption p {
  color: var(--off-white) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(208, 135, 112, 0.5);
  border-radius: 50%;
  padding: 0.5rem;
}

/* Parallax Hero */
.parallax-hero {
  position: relative;
  height: 600px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.9) 0%, rgba(76, 86, 106, 0.8) 100%);
  z-index: 1;
}

.parallax-hero .container {
  position: relative;
  z-index: 2;
  color: var(--white) !important;
}

.parallax-hero h1,
.parallax-hero h2,
.parallax-hero p {
  color: var(--white) !important;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 52, 64, 0.7);
}

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

.py-4 {
  background-color: var(--off-white) !important;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  overflow: hidden;
  height: 100%;
}

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

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

.card img {
  transition: var(--transition);
  object-fit: cover;
  height: 250px;
  width: 100%;
}

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

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

/* Service Card */
.service-card {
  background-color: var(--white) !important;
  border-left: 4px solid var(--secondary-color) !important;
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  background-color: var(--primary-color) !important;
  transform: translateX(10px);
}

.service-card:hover * {
  color: var(--white) !important;
}

.service-details {
  color: var(--light-slate) !important;
  line-height: 1.8;
}

.service-collapse {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--off-white);
}

.toggle-service-btn {
  background: none;
  border: none;
  color: var(--secondary-color) !important;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  transition: var(--transition);
}

.toggle-service-btn:hover {
  color: var(--primary-color) !important;
}

/* Portfolio */
.portfolio-item {
  margin-bottom: 2rem;
  opacity: 1;
  transition: var(--transition);
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 350px;
  background-color: var(--primary-color);
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.95) 0%, rgba(208, 135, 112, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
  text-align: center;
}

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

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

.portfolio-overlay h4,
.portfolio-overlay p,
.portfolio-overlay .badge {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p,
.portfolio-card:hover .portfolio-overlay .badge {
  transform: translateY(0);
}

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  margin: 0.25rem;
}

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

.rounded {
  border-radius: 0 !important;
}

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

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

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

.rounded-circle {
  border-radius: 50% !important;
  border: 4px solid var(--secondary-color) !important;
}

/* Icons */
.bi {
  color: var(--secondary-color) !important;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bi-building,
.bi-rulers,
.bi-lamp,
.bi-tree,
.bi-clipboard-check,
.bi-badge-3d {
  font-size: 3rem !important;
  display: block;
}

.bi-search,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-calendar-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-chat-dots,
.bi-calendar-check,
.bi-check-circle,
.bi-send,
.bi-cup-hot-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin {
  color: var(--secondary-color) !important;
}

.bi-check2 {
  color: var(--secondary-color) !important;
  font-size: 1.2rem !important;
}

.bi-arrow-right-short {
  font-size: 1.5rem !important;
  transition: var(--transition);
}

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

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

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

.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;
  background-color: var(--white) !important;
}

.form-control::placeholder {
  color: var(--light-slate) !important;
}

.form-check-input {
  border: 2px solid var(--light-slate) !important;
  border-radius: 0 !important;
}

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

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

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: var(--off-white) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
}

footer p,
footer a,
footer li {
  color: var(--off-white) !important;
}

footer a {
  text-decoration: none !important;
  transition: var(--transition) !important;
  display: inline-block;
}

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

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

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

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

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

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

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

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

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

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

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

.d-flex {
  display: flex !important;
}

.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column !important;
}

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

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

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

.align-items-stretch {
  align-items: stretch !important;
}

.align-self-start {
  align-self: flex-start !important;
}

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

.justify-content-end {
  justify-content: flex-end !important;
}

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

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

.g-0 {
  gap: 0 !important;
}

.g-3 > * {
  padding: 0.75rem;
}

.g-4 > * {
  padding: 1rem;
}

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

.ms-auto {
  margin-left: auto !important;
}

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

.me-3 {
  margin-right: 1rem !important;
}

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

.mb-0 {
  margin-bottom: 0 !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;
}

.mb-lg-0 {
  margin-bottom: 0 !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;
}

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

.p-0 {
  padding: 0 !important;
}

.p-4 {
  padding: 1.5rem !important;
}

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

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !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;
}

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

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

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

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

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

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

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !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-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }

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

  .navbar-nav {
    gap: 0 !important;
  }

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

  .display-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.5rem !important;
  }

  .carousel {
    height: 70vh;
    min-height: 500px;
  }

  .parallax-hero,
  .parallax-section {
    background-attachment: scroll !important;
    height: auto;
    min-height: 400px;
  }

  section {
    padding: 3rem 0;
  }

  .pt-5,
  .py-5 {
    padding-top: 2rem !important;
  }

  .pb-5,
  .py-5 {
    padding-bottom: 2rem !important;
  }

  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .p-md-5 {
    padding: 1.5rem !important;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .portfolio-card {
    height: 300px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }

  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    margin-bottom: 2rem;
  }

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

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

  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0 !important;
  }

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

  .mt-lg-0 {
    margin-top: 1rem !important;
  }

  .flex-sm-row {
    flex-direction: row !important;
  }

  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }

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

  .sticky-lg-top {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-12 {
    margin-bottom: 1.5rem;
  }

  .flex-sm-row {
    flex-direction: column !important;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.5rem !important;
  }

  .carousel-caption p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }

  .display-2 {
    font-size: 1.75rem !important;
  }

  .display-3 {
    font-size: 1.5rem !important;
  }

  .display-4 {
    font-size: 1.25rem !important;
  }

  .col-6 {
    width: 100%;
  }

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

  .bi {
    font-size: 1.5rem;
  }

  .bi-building,
  .bi-rulers,
  .bi-lamp,
  .bi-tree,
  .bi-clipboard-check,
  .bi-badge-3d {
    font-size: 2rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  footer,
  .btn {
    display: none !important;
  }

  body {
    background-color: white !important;
    color: black !important;
  }

  .card {
    page-break-inside: avoid;
  }
}

/* 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 {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

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