/* Architecture Studio - Charcoal & Amber Theme */
/* Base Colors & Variables */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --charcoal: #1a252f;
  --light-charcoal: #34495e;
  --amber-dark: #d35400;
  --white: #ffffff;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

.display-2, .display-3, .display-4, .display-5 {
  font-weight: 800;
  letter-spacing: -1px;
}

/* Navigation */
.navbar {
  background: rgba(28, 40, 51, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

.nav-link {
  color: var(--light-gray) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

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

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

/* Hero Section */
.hero-container {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.75) 100%);
  z-index: 1;
}

.hero-container .position-absolute {
  z-index: 2;
}

.hero-container h1 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-container p {
  color: var(--light-gray) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease;
}

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

/* Buttons */
.btn {
  border-radius: 4px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  background: var(--amber-dark) !important;
  border-color: var(--amber-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-outline-primary:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-secondary:hover {
  background: var(--light-charcoal) !important;
  border-color: var(--light-charcoal) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3) !important;
}

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

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

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

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

/* Cards & Content Sections */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}

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

.card-body {
  padding: 2rem;
}

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

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

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

/* Images */
.img-fluid {
  transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

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

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

.bi-lightbulb,
.bi-tree,
.bi-people,
.bi-gear,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-arrow-right,
.bi-train-front,
.bi-car-front,
.bi-bicycle,
.bi-check-circle-fill,
.bi-calendar-check,
.bi-chat-dots,
.bi-pencil-square,
.bi-clipboard-check,
.bi-hammer,
.bi-house-door,
.bi-building,
.bi-columns-gap,
.bi-map,
.bi-clock-history,
.bi-award-fill,
.bi-building-fill-check,
.bi-droplet-fill,
.bi-globe-americas,
.bi-lightning-charge-fill,
.bi-water,
.bi-tree-fill,
.bi-recycle {
  color: var(--secondary-color);
  transition: var(--transition);
}

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

/* Service/Feature Boxes */
.col-md-6:hover .bi,
.col-lg-4:hover .bi,
.col-md-4:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
}

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

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

.portfolio-overlay h4 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--light-gray) !important;
}

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #dfe6e9;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--primary-color);
}

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

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

.form-check-input {
  border: 2px solid #dfe6e9;
  width: 1.25rem;
  height: 1.25rem;
}

.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.25rem rgba(230, 126, 34, 0.15) !important;
}

.form-check-label {
  color: var(--primary-color);
  margin-left: 0.5rem;
}

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

/* Alert */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1.5rem;
}

.alert-info {
  background: rgba(230, 126, 34, 0.1) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--secondary-color) !important;
}

/* Tables */
.table {
  color: var(--primary-color);
}

.table thead {
  background: var(--primary-color);
  color: var(--white) !important;
}

.table thead th {
  color: var(--white) !important;
  font-weight: 600;
  border: none;
}

.table-bordered {
  border: 1px solid #dfe6e9;
}

.table-bordered td,
.table-bordered th {
  border: 1px solid #dfe6e9;
}

.table tbody tr:hover {
  background: rgba(230, 126, 34, 0.05);
}

/* Accordion */
.accordion-item {
  border: 1px solid #dfe6e9;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}

.accordion-button::after {
  filter: brightness(0) invert(0);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: var(--primary-color);
}

.accordion-collapse {
  border: none;
}

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

/* Footer */
footer {
  background: var(--charcoal) !important;
  color: var(--light-gray) !important;
}

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

footer a {
  color: var(--light-gray) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

footer .bi {
  color: var(--secondary-color);
}

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

/* Social Icons */
.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover,
.bi-twitter:hover {
  color: var(--white) !important;
  transform: scale(1.2);
}

/* Border Utilities */
.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

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

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

/* Rounded Circle */
.rounded-circle {
  border-radius: 50% !important;
}

/* Flex Utilities */
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

/* Section Spacing */
section {
  padding: 5rem 0;
}

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

/* Privacy Content */
.privacy-content {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
}

/* Animations */
@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;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(28, 40, 51, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !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;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .hero-container {
    min-height: 500px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .hero-container {
    min-height: 400px;
  }
}

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

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(230, 126, 34, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--amber-dark);
  transform: translateY(-5px);
}

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

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

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

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

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

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