/* Midnight Amber Architecture Studio Theme CSS */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-accent: #1a252f;
  --light-accent: #ecf0f1;
  --amber-glow: #f39c12;
  --text-light: #ffffff;
  --text-dark: #2c3e50;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.lead {
  font-size: 1.25rem !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

.nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(230, 126, 34, 0.15) !important;
  font-weight: 600 !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.5rem 0.75rem !important;
}

.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") !important;
}

/* Hero Section */
.position-relative.overflow-hidden {
  background: linear-gradient(135deg, var(--dark-accent) 0%, var(--primary-color) 50%, #34495e 100%);
  min-height: 100vh;
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0 300L50 280L100 290L150 270L200 285L250 275L300 295L350 280L400 290L450 275L500 285L550 295L600 280L650 290L700 275L750 285L800 295L850 280L900 290L950 275L1000 285L1050 295L1100 280L1150 290L1200 275V600H0Z" fill="rgba(230,126,34,0.05)"/></svg>') repeat-x bottom;
  animation: wave 20s linear infinite;
}

@keyframes wave {
  0% { background-position-x: 0; }
  100% { background-position-x: 1200px; }
}

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

.display-1 {
  animation: fadeInUp 1s ease-out;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

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

.lead {
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all var(--transition-speed) ease !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
  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;
  z-index: -1;
}

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

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-glow) 100%) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-glow) 0%, var(--secondary-color) 100%) !important;
  border-color: var(--amber-glow) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: var(--text-light) !important;
  background: transparent !important;
}

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

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

.btn-light:hover {
  background: var(--light-accent) !important;
  border-color: var(--light-accent) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease !important;
  overflow: hidden;
  background: var(--text-light) !important;
}

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

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

.card-img-top {
  transition: transform 0.5s ease;
}

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

.shadow {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

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

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

/* Portfolio */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
}

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

.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: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

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

.portfolio-content {
  transform: translateY(30px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.masonry-item {
  position: relative;
}

.masonry-item.tall {
  grid-row: span 2;
}

.masonry-item.wide {
  grid-column: span 2;
}

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

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4) !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background: var(--text-light) !important;
  color: var(--text-dark) !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;
  background: var(--text-light) !important;
  color: var(--text-dark) !important;
}

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

.form-check-input {
  border: 2px solid #d0d0d0 !important;
  transition: all var(--transition-speed) ease !important;
}

.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 {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

/* Icons */
.bi {
  vertical-align: middle;
  transition: all var(--transition-speed) ease;
}

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

/* Table */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1rem !important;
}

.table tbody td {
  padding: 1rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
  color: var(--text-dark) !important;
}

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

/* Alert */
.alert {
  border: none !important;
  border-left: 4px solid var(--secondary-color) !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
  background: rgba(230, 126, 34, 0.1) !important;
  color: var(--text-dark) !important;
}

/* Privacy Content */
.privacy-content {
  background: var(--text-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4,
.privacy-content h5,
.privacy-content h6 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

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

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

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

.bg-opacity-75 {
  opacity: 0.75;
}

/* Border Utilities */
.border {
  border: 1px solid #e0e0e0 !important;
}

.border-top {
  border-top: 1px solid #e0e0e0 !important;
}

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

.border-start {
  border-left: 1px solid #e0e0e0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-accent) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 4rem 0 1rem;
  margin-top: 5rem;
}

footer h5,
footer h6 {
  color: var(--text-light) !important;
  font-weight: 600 !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem !important;
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
  margin: 0 0.5rem;
}

.bi-facebook:hover {
  color: #3b5998 !important;
  transform: translateY(-5px);
}

.bi-instagram:hover {
  color: #E4405F !important;
  transform: translateY(-5px);
}

.bi-linkedin:hover {
  color: #0077B5 !important;
  transform: translateY(-5px);
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
  transform: translateY(-5px);
}

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

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

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

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

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

  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
  }

  .masonry-item.wide {
    grid-column: span 1;
  }
}

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

  .display-5 {
    font-size: 1.5rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .masonry-item.tall {
    grid-row: span 1;
  }

  footer {
    text-align: center;
  }

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

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

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

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

  .display-1 {
    font-size: 2rem !important;
  }

  .h2, h2 {
    font-size: 1.75rem !important;
  }

  .btn-lg {
    width: 100%;
    margin-bottom: 1rem !important;
  }
}

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

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }
}

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

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 1rem;
  text-decoration: none;
  z-index: 10000;
}

.skip-to-main:focus {
  top: 0;
}

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

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

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

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

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