/* Midnight Copper Architecture Studio - Custom CSS */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --copper-light: #F39C12;
  --copper-dark: #D35400;
  --midnight: #1a252f;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --transition-speed: 0.4s;
  --box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
}

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

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

/* ==================== TYPOGRAPHY ==================== */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

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

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

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

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

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

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
}

.h3, .h5, .h6 {
  color: var(--primary-color) !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

/* ==================== NAVBAR ==================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--midnight) 100%) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
  background: rgba(44, 62, 80, 0.95) !important;
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
}

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

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 50%, var(--midnight) 100%);
  min-height: 90vh;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23E67E22" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.4;
}

.hero-section .position-absolute {
  z-index: 0;
}

.hero-section .row {
  position: relative;
  z-index: 1;
}

.hero-section .badge {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-section .display-3 {
  color: #ffffff !important;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1.2s ease-out;
}

.hero-section .img-fluid {
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInRight 1.4s ease-out;
  transition: transform var(--transition-speed) ease;
}

.hero-section .img-fluid:hover {
  transform: scale(1.05) translateY(-10px);
}

/* ==================== BUTTONS ==================== */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  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-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.1rem;
}

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

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2) !important;
}

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

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

.filter-btn {
  margin: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

.filter-btn.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

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

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

.card-img-top {
  transition: transform var(--transition-speed) ease;
  height: 250px;
  object-fit: cover;
}

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

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

.card.border-0 {
  background: #ffffff;
}

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

.card.shadow-lg {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

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

/* ==================== BADGES ==================== */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ==================== PORTFOLIO GRID ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(230, 126, 34, 0.8));
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
}

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

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease;
  background: #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.25rem rgba(230, 126, 34, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: #999 !important;
}

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  cursor: pointer;
}

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

/* ==================== TABLES ==================== */
.table {
  color: var(--text-dark) !important;
}

.table-bordered {
  border-color: #dee2e6 !important;
}

.table-bordered th,
.table-bordered td {
  border-color: #dee2e6 !important;
}

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

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

/* ==================== ALERTS ==================== */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

/* ==================== MODAL ==================== */
.modal-content {
  border-radius: 15px !important;
  border: none !important;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--midnight));
  color: #ffffff !important;
  border-bottom: none !important;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
}

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

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

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

.bi-send,
.bi-telephone,
.bi-calendar-check,
.bi-chat-dots,
.bi-file-earmark-text,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-rulers,
.bi-award,
.bi-geo-alt,
.bi-envelope,
.bi-check-circle-fill,
.bi-arrow-right-circle-fill,
.bi-building,
.bi-tools,
.bi-file-text,
.bi-bezier2,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-box,
.bi-house-door,
.bi-camera-video,
.bi-layers,
.bi-award-fill,
.bi-tree-fill,
.bi-sun-fill,
.bi-linkedin,
.bi-instagram,
.bi-facebook {
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

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

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

/* ==================== BORDERS ==================== */
.border-start {
  border-left: 3px solid var(--secondary-color) !important;
}

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

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

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

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

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

/* ==================== SHADOWS ==================== */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ==================== POSITION UTILITIES ==================== */
.position-relative {
  position: relative !important;
}

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

.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020;
}

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

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

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

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

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

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

/* ==================== OBJECT FIT ==================== */
.object-fit-cover {
  object-fit: cover !important;
}

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

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

/* ==================== SCROLL ANIMATIONS ==================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

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

.hover-scale {
  transition: transform var(--transition-speed) ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ==================== LINK STYLES ==================== */
.text-decoration-none {
  text-decoration: none !important;
}

a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

.nav-link {
  color: var(--text-dark) !important;
}

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

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

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

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

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

/* ==================== SPACING UTILITIES ==================== */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

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

.my-4 {
  margin-top: 2.5rem !important;
  margin-bottom: 2.5rem !important;
}

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

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

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 37, 47, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .hero-section {
    padding: 5rem 0 3rem;
    min-height: auto;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 4rem 0 2rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.95rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

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

/* ==================== ACCESSIBILITY ==================== */
:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

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

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

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

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

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

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

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

/* ==================== UTILITY CLASSES ==================== */
.text-justify {
  text-align: justify !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

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

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

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

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

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

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

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

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

.flex-row-reverse {
  flex-direction: row-reverse !important;
}

.flex-lg-row-reverse {
  flex-direction: row-reverse !important;
}

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

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

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

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

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

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

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

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

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

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

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

.fst-italic {
  font-style: italic !important;
}

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