/* Midnight Copper Architecture Studio Theme */
/* Primary Color: #2C3E50 | Secondary Color: #E67E22 */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --midnight-dark: #1A252F;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  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;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--midnight-dark) 0%, var(--primary-color) 100%);
  position: relative !important;
}

.hero-image {
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(20%);
  transition: var(--transition-smooth);
}

.hero-section:hover .hero-image {
  opacity: 0.4;
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  background: rgba(26, 37, 47, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(26, 37, 47, 1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition-smooth);
  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-color: var(--secondary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.3) !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;
}

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

.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-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--copper-dark) !important;
  border-color: var(--copper-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4) !important;
  color: #ffffff !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4) !important;
}

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

.btn-light:hover {
  background-color: var(--text-light) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-light:hover {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

/* Typography */
.display-1,
.display-3,
.display-4,
.display-5 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  line-height: 1.2;
}

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

.text-muted {
  color: #7f8c8d !important;
}

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

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

.lead {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-light);
}

/* Cards */
.card {
  border-radius: 0 !important;
  transition: var(--transition-smooth);
  border: none !important;
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
}

.card-img {
  transition: var(--transition-smooth);
}

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

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

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

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

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

/* Forms */
.form-control,
.form-select {
  border-radius: 0 !important;
  border: 2px solid #dfe6e9 !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-smooth);
  color: var(--text-dark) !important;
  background-color: #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.15) !important;
  background-color: #ffffff !important;
}

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

.form-check-input {
  border-radius: 0 !important;
  border: 2px solid #dfe6e9 !important;
}

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

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

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

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--copper-light));
}

.timeline-item:last-child::before {
  bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
  z-index: 1;
}

.timeline-content {
  background: #ffffff;
  padding: 1.5rem;
  border-left: 3px solid var(--secondary-color);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.95), rgba(44, 62, 80, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  flex-direction: column;
  padding: 2rem;
}

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

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

.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-overlay .btn {
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay h3 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
  color: #ffffff !important;
}

.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
  color: #ffffff !important;
}

.portfolio-item:hover .portfolio-overlay .btn {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.5rem !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Icons */
.bi {
  transition: var(--transition-smooth);
}

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

a:hover .bi {
  transform: scale(1.2);
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500;
}

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

.bg-success {
  background-color: #27ae60 !important;
  color: #ffffff !important;
}

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

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

/* Links */
a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--copper-dark) !important;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

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

/* Rounded */
.rounded {
  border-radius: 0.25rem !important;
}

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

/* Sticky & Position */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

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

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

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

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

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
}

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

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

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

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

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

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

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

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .fs-3 {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

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

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

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

/* Focus States */
*:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.3) !important;
}

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

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

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