/* Architectural Studio - Deep Slate & Terracotta Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-slate: #1a252f;
  --light-slate: #34495e;
  --terracotta-light: #f39c12;
  --terracotta-dark: #d35400;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.lead {
  font-size: 1.25rem;
  color: var(--text-light) !important;
  line-height: 1.8;
}

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

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

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

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-slate) 100%) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 5px;
}

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

.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(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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border-radius: 8px;
  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: var(--transition);
  z-index: -1;
}

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

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

.btn-primary:hover {
  background: var(--terracotta-dark) !important;
  border-color: var(--terracotta-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

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

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

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

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

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

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

.position-relative.w-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  animation: gridMove 30s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.position-absolute.top-50.start-50 {
  z-index: 2;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
  background: #ffffff;
}

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

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Shadows */
.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

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

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Borders */
.border-end {
  border-right: 1px solid rgba(44, 62, 80, 0.1) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(44, 62, 80, 0.1) !important;
}

/* Background */
.bg-light {
  background-color: #f8f9fa !important;
}

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

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

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

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

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

.portfolio-item .position-absolute {
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-item:hover .position-absolute {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item img {
  transition: var(--transition);
}

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

/* Filter Buttons */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  color: var(--text-dark) !important;
  background: #ffffff !important;
}

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

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

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-color) !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(230, 126, 34, 0.25) !important;
}

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

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

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

.bi-lightbulb,
.bi-award-fill,
.bi-building-check,
.bi-lightning-charge-fill,
.bi-tree-fill {
  color: var(--secondary-color);
  font-size: 2.5rem;
}

/* Social Icons */
.rounded-circle {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor !important;
  transition: var(--transition);
  color: var(--primary-color) !important;
}

.rounded-circle:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px) rotate(360deg);
}

/* Sticky Elements */
.position-sticky {
  position: sticky;
  top: 100px;
}

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

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

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

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

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

/* Link Styles */
a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--terracotta-dark);
}

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

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

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

.list-unstyled li {
  padding: 0.5rem 0;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
  border-radius: 12px;
}

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

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

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

/* Flex Utilities */
.flex-column {
  flex-direction: column !important;
}

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

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

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

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

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

/* Gap Utilities */
.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

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

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

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

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

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

.animate-slide-up {
  animation: slideInUp 1s ease;
}

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

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

/* Quote Styles */
.bi-quote {
  color: var(--secondary-color);
  opacity: 0.3;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h4,
footer h3 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition);
}

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

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

/* Contact Icons */
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .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;
  }
  
  .border-end {
    border-right: none !important;
  }
  
  .position-sticky {
    position: relative !important;
    top: auto !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .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: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  h1.display-1 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .position-relative.w-100 {
    min-height: 100vh;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

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

/* Service Icons Animation */
.bi-droplet-fill,
.bi-thermometer-half,
.bi-recycle,
.bi-sun-fill,
.bi-wind,
.bi-lightning-fill,
.bi-cpu-fill {
  transition: var(--transition);
  color: var(--secondary-color);
}

.p-4:hover .bi-droplet-fill,
.p-4:hover .bi-thermometer-half,
.p-4:hover .bi-recycle,
.p-4:hover .bi-sun-fill,
.p-4:hover .bi-wind,
.p-4:hover .bi-lightning-fill,
.p-4:hover .bi-cpu-fill {
  transform: scale(1.2) rotate(10deg);
}

/* Text Color Utilities */
.text-start {
  text-align: left !important;
}

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

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

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

/* Font Weight */
.fw-light {
  font-weight: 300 !important;
}

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

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

/* Margin Auto */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

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

/* Width Utilities */
.w-50 {
  width: 50% !important;
}

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

/* Height Utilities */
.h-100 {
  height: 100% !important;
}

/* Check Circle Icon */
.bi-check-circle-fill {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* Enhanced Button Hover States */
button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !important;
}

/* Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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