/* Midnight Copper Architecture Studio - CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --copper-light: #f39c12;
  --copper-dark: #d35400;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%) !important;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(44, 62, 80, 0.98) !important;
  padding: 0.5rem 0 !important;
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

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

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

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

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.slideshow-container {
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.75) 50%, rgba(230, 126, 34, 0.65) 100%);
  z-index: 2;
}

.hero-slideshow .container {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out;
}

.hero-slideshow .display-2 {
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-slideshow .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 3;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--secondary-color) !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-width: 2px !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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-outline-light {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background: transparent !important;
}

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

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

/* ===== SECTIONS ===== */
section {
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.text-uppercase.small,
.text-uppercase.badge {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
}

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

/* ===== SERVICE CARDS ===== */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-dark) 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-icon:hover {
  transform: rotate(10deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.p-4 {
  transition: var(--transition);
}

.p-4:hover {
  transform: translateY(-10px);
  background: #ffffff !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 100%;
  transition: var(--transition);
}

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

.project-card:hover img {
  transform: scale(1.15) rotate(2deg);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.7) 50%, rgba(230, 126, 34, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

.project-overlay h4,
.project-overlay p {
  color: #ffffff !important;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  transition-delay: 0.1s;
}

.project-card:hover .project-overlay h4,
.project-card:hover .project-overlay p {
  transform: translateY(0);
}

.project-item {
  transition: var(--transition);
  opacity: 1;
}

.project-item.hidden {
  display: none;
  opacity: 0;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.5rem;
  transition: var(--transition);
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  transition: var(--transition);
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.card-body {
  padding: 2rem;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.shadow,
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
  border-radius: 8px;
}

/* ===== FORMS ===== */
.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 4px !important;
  transition: var(--transition);
  background-color: #ffffff !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;
  outline: none;
}

.form-control::placeholder {
  color: #6c757d !important;
  opacity: 0.7;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

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

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 8px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.overflow-hidden {
  border-radius: 8px;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

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

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

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

/* ===== TEXT COLORS ===== */
.text-muted {
  color: #6c757d !important;
}

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

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

.card-text,
.small {
  color: #6c757d !important;
}

/* ===== LISTS ===== */
.list-unstyled li {
  padding: 0.5rem 0;
}

.list-unstyled li a {
  color: #6c757d !important;
  transition: var(--transition);
  display: inline-block;
}

.list-unstyled li a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
  text-decoration: none !important;
}

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

.bi-chat-dots,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-arrow-right,
.bi-envelope,
.bi-map,
.bi-telephone,
.bi-geo-alt,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-building,
.bi-calendar3,
.bi-twitter {
  font-size: 1.2rem;
  color: var(--secondary-color) !important;
}

/* ===== MODAL ===== */
.modal-content {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--primary-color) !important;
}

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

.modal-header h5 {
  color: #ffffff !important;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1 !important;
}

.modal-body {
  padding: 0 !important;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
}

/* ===== PRIVACY CONTENT ===== */
.privacy-content {
  line-height: 1.8;
  color: var(--text-dark) !important;
}

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

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--text-dark) !important;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@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;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer h6 {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

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

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

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

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

/* ===== CONTACT CARD ===== */
.sticky-lg-top {
  top: 100px !important;
}

.card.border-0 {
  border-radius: 8px;
}

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

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .hero-slideshow {
    height: 80vh;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .project-card img {
    height: 250px;
  }
  
  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-slideshow {
    height: 70vh;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .project-card img {
    height: 220px;
  }
  
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem !important;
    margin: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .btn {
    font-size: 0.875rem !important;
    padding: 0.5rem 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.75rem !important;
  }
  
  .project-card img {
    height: 200px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .modal,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ===== ACCESSIBILITY ===== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ===== CUSTOM UTILITIES ===== */
.rounded {
  border-radius: 8px !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ms-auto {
  margin-left: auto !important;
}

.text-end {
  text-align: right !important;
}

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

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

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

.justify-content-end {
  justify-content: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

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

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

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

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

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

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

.start-0 {
  left: 0 !important;
}

.end-0 {
  right: 0 !important;
}

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

.top-50 {
  top: 50% !important;
}

.start-50 {
  left: 50% !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

/* ===== LOADING ANIMATION ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}