/* Architectural Studio - Slate & Amber Theme */

:root {
  --primary: #2C3E50;
  --secondary: #E67E22;
  --slate-dark: #1a252f;
  --slate-light: #34495e;
  --amber-dark: #d35400;
  --amber-light: #f39c12;
  --white: #ffffff;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: var(--primary) !important;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--slate-dark) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1050;
}

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

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

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

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

.navbar-toggler:hover {
  background-color: var(--amber-dark) !important;
  transform: scale(1.05);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  text-decoration: none !important;
}

.nav-link:hover {
  color: var(--secondary) !important;
  background-color: rgba(230, 126, 34, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary) !important;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

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

.nav-link:hover::after {
  width: 60%;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none !important;
}

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

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
}

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

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

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

.btn-light:hover {
  color: var(--white) !important;
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4) !important;
}

.btn:not(.btn-close):not(.filter-btn) {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  border-color: var(--secondary) !important;
}

.btn:not(.btn-close):not(.filter-btn):not(.btn-outline-light):not(.btn-light):hover {
  background-color: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4) !important;
}

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

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3) !important;
}

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

.position-absolute {
  z-index: 1;
}

.position-relative .container {
  position: relative;
  z-index: 10;
}

.object-fit-cover {
  object-fit: cover;
  filter: brightness(0.5);
}

/* Text with Dark Background */
.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-1,
.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: var(--white) !important;
}

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

/* Stats Section */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.border-end {
  border-right: 1px solid var(--light-gray) !important;
}

.border-secondary {
  border-color: rgba(230, 126, 34, 0.2) !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

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

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

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

.card-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

.card-text {
  color: var(--dark-gray) !important;
  line-height: 1.7;
}

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

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

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

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

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

.portfolio-item:hover .portfolio-overlay h5,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
  transform: translateX(-50%);
}

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

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

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

.modal-body {
  padding: 2rem !important;
  background-color: var(--primary) !important;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

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

.form-control,
.form-select {
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--white) !important;
  transition: var(--transition);
  font-size: 1rem !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

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

.form-select option {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

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

.bi-lightbulb,
.bi-building,
.bi-trophy,
.bi-arrows-angle-expand,
.bi-recycle,
.bi-star-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-arrow-right,
.bi-train-front-fill,
.bi-car-front-fill,
.bi-bicycle-fill,
.bi-house-door,
.bi-tree,
.bi-palette,
.bi-clipboard-check,
.bi-sun,
.bi-droplet,
.bi-speedometer2,
.bi-award-fill,
.bi-house-heart-fill,
.bi-building-check,
.bi-lightning-charge-fill,
.bi-tree-fill,
.bi-droplet-half,
.bi-gear-fill,
.bi-bricks,
.bi-brightness-high,
.bi-wind,
.bi-lightbulb-fill,
.bi-arrow-right-short,
.bi-stack,
.bi-gem {
  color: var(--secondary);
  transition: var(--transition);
}

.text-white .bi,
.text-white-50 .bi,
.modal-body .bi {
  color: var(--secondary) !important;
}

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

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

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

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

/* Shadow */
.shadow-lg {
  box-shadow: 0 15px 50px rgba(44, 62, 80, 0.15) !important;
}

.shadow {
  box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08) !important;
}

/* Opacity */
.opacity-10 {
  opacity: 0.1 !important;
}

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

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

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

/* Border */
.border {
  border: 1px solid var(--light-gray) !important;
}

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

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

/* Text Colors */
.text-muted {
  color: var(--dark-gray) !important;
}

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

.text-decoration-none:hover {
  color: var(--secondary) !important;
}

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

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

.list-unstyled a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
  font-weight: 500;
}

.list-unstyled a:hover {
  color: var(--secondary) !important;
  padding-left: 10px;
}

/* Utilities */
.min-vh-50 {
  min-height: 50vh !important;
}

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

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

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

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

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

/* Grid */
.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

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

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

.g-5 {
  --bs-gutter-x: 3rem !important;
  --bs-gutter-y: 3rem !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);
  }
}

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

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

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

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

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--slate-dark) 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

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

/* Responsive Typography */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.75rem !important;
  }
  
  .fs-3 {
    font-size: 1.5rem !important;
  }
}

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem;
  }
  
  .border-end {
    border-right: none !important;
    border-bottom: 1px solid var(--light-gray) !important;
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .timeline-container::before {
    left: 30px;
  }
}

/* Desktop Optimization */
@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
  }
  
  .position-sticky {
    position: sticky !important;
    top: 100px;
  }
}

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

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

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

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

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

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

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

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