/* Midnight Copper Architecture Studio Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --accent-copper: #D4773C;
  --dark-slate: #1A252F;
  --light-copper: #F39C6B;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --shadow-dark: rgba(44, 62, 80, 0.3);
  --shadow-copper: rgba(230, 126, 34, 0.3);
}

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.lead {
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-slate) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px var(--shadow-dark);
  transition: all 0.4s ease;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: var(--primary-color) !important;
}

.navbar-brand {
  font-size: 1.8rem;
  color: var(--secondary-color) !important;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover {
  color: var(--light-copper) !important;
  transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
}

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(230, 126, 34, 0.1);
}

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

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

.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-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-section .object-fit-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.hero-section .text-white {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section .display-2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  color: var(--text-light) !important;
  opacity: 0.95;
  animation: fadeInUp 1.2s ease-out;
}

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

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

.btn-primary {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: white !important;
  box-shadow: 0 4px 15px var(--shadow-copper);
}

.btn-primary:hover {
  background: var(--accent-copper) !important;
  border-color: var(--accent-copper) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-copper);
}

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

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

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

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

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

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: white;
}

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

.card-body {
  padding: 2rem;
}

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

.shadow {
  box-shadow: 0 8px 30px var(--shadow-dark) !important;
}

.shadow-lg {
  box-shadow: 0 12px 40px var(--shadow-dark) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
}

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

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

.project-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.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-overlay h4,
.project-overlay p {
  color: white !important;
  margin: 0;
}

/* Team Card */
.team-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.team-card .card-img-top {
  height: 300px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.team-card:hover .card-img-top {
  filter: grayscale(0%);
}

.team-card .card-body {
  background: linear-gradient(to bottom, white 0%, #f8f9fa 100%);
}

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

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

.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.bg-white {
  background: white !important;
}

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

/* Text Colors */
.text-white {
  color: white !important;
}

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

.text-muted {
  color: #6c757d !important;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Filter Buttons */
.filter-btn {
  padding: 0.6rem 1.5rem;
  margin: 0.3rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color) !important;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

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

/* Portfolio Item */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  background: white;
}

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

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

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

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

/* Modal */
.modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-slate) 100%);
  color: white;
  border: none;
  padding: 1.5rem 2rem;
}

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

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.75;
}

.modal-body {
  padding: 2rem;
}

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

.bi::before {
  display: inline-block;
  line-height: 1;
}

/* Utility Classes */
.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

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

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

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

.opacity-50 {
  opacity: 0.5 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.min-vh-40 {
  min-height: 40vh !important;
}

.object-fit-cover {
  object-fit: cover !important;
}

.z-3 {
  z-index: 3 !important;
}

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

footer h5,
footer h6 {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.list-unstyled {
  padding: 0;
  list-style: none;
}

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

/* Responsive Typography */
@media (max-width: 992px) {
  .display-2 {
    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;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
  }
  
  .navbar-nav {
    padding: 1rem 0;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.8rem 1rem !important;
    margin: 0.2rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding: 2.5rem 0 !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
  }
  
  .project-card {
    height: 250px;
  }
  
  .team-card .card-img-top {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .display-2 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

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

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

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Loading Animation */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

/* Image Overlay */
.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(230, 126, 34, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
  opacity: 1;
}

/* Quote Styling */
.bi-quote {
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
}

/* Contact Icons */
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-telephone,
.bi-envelope,
.bi-geo-alt {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin {
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

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

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

@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }
}

.text-md-start {
  text-align: left !important;
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }
}

.text-md-end {
  text-align: left !important;
}

@media (min-width: 768px) {
  .text-md-end {
    text-align: right !important;
  }
}

/* Flex Utilities */
.d-flex {
  display: flex !important;
}

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

.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;
}

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

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

.justify-content-between {
  justify-content: space-between !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

.gap-3 {
  gap: 1rem !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;
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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