/* Midnight Copper Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-bg: #1a252f;
  --light-bg: #f8f9fa;
  --copper-light: #f39c12;
  --copper-dark: #d35400;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== 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);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark) !important;
  opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  border: 2px solid transparent;
  padding: 0.75rem 2rem;
}

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

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

.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;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

/* ===== NAVIGATION ===== */
.navbar {
  transition: var(--transition-base);
  background-color: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  z-index: 1030;
}

.navbar.scrolled {
  background-color: rgba(44, 62, 80, 0.98) !important;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--transition-base);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-base);
}

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

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

.nav-link:hover::after {
  width: 80%;
}

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

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

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

.position-sticky {
  position: sticky;
  top: 80px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

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

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

.hero-section .container,
.hero-section .container-fluid {
  position: relative;
  z-index: 3;
}

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

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease-out;
}

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-dark) !important;
  opacity: 0.85;
}

/* ===== SHADOWS ===== */
.shadow {
  box-shadow: var(--shadow-md) !important;
}

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

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

/* ===== IMAGES ===== */
.img-fluid {
  transition: var(--transition-base);
}

.img-fluid:hover {
  transform: scale(1.02);
}

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

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

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

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

/* ===== BACKGROUNDS ===== */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

/* ===== TEXT COLORS ===== */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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

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

.bg-secondary.badge {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 4px solid;
}

.alert-info {
  background-color: rgba(230, 126, 34, 0.1) !important;
  border-left-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

.alert-warning {
  background-color: rgba(230, 126, 34, 0.15) !important;
  border-left-color: var(--copper-dark) !important;
  color: var(--primary-color) !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  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.25rem rgba(230, 126, 34, 0.25) !important;
  outline: none;
}

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

.form-text {
  color: #6c757d !important;
  font-size: 0.875rem;
}

.form-check-input {
  border: 2px solid #dee2e6;
  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.25) !important;
}

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

.form-range {
  height: 0.5rem;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--secondary-color) !important;
}

.form-range::-moz-range-thumb {
  background-color: var(--secondary-color) !important;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545;
}

.needs-validation .form-control:valid {
  border-color: #198754;
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-overlay {
  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.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
  padding: 2rem;
  text-align: center;
}

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

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay h5 {
  color: #ffffff !important;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
  margin: 0.25rem;
}

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

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
}

.timeline-container .row {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-container .row::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--secondary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

/* ===== FLOATING CONSULTATION WIDGET ===== */
.floating-consultation-widget {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-width: 300px;
  animation: slideInRight 0.5s ease-out;
}

.floating-consultation-widget h5,
.floating-consultation-widget h6 {
  color: #ffffff !important;
}

.floating-consultation-widget .btn {
  width: 100%;
}

/* ===== SOCIAL LINKS ===== */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff !important;
  transition: var(--transition-base);
  margin: 0 0.25rem;
}

.social-links a:hover {
  background-color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* ===== BOOTSTRAP ICONS ===== */
.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

/* ===== 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-4x3 {
  --bs-aspect-ratio: 75%;
}

/* ===== PRIVACY CONTAINER ===== */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.privacy-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--secondary-color);
}

.privacy-content {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.privacy-section {
  margin-bottom: 2.5rem;
}

.privacy-section h3 {
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* ===== CONTACT HIGHLIGHT ===== */
.contact-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: #ffffff !important;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
}

.contact-highlight h2,
.contact-highlight h3,
.contact-highlight h4 {
  color: #ffffff !important;
}

.contact-highlight a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
}

.contact-highlight a:hover {
  color: var(--copper-light) !important;
  text-decoration: underline;
}

/* ===== UTILITIES ===== */
.opacity-10 {
  opacity: 0.1 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: var(--transition-base);
}

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

/* ===== BORDERS ===== */
.border {
  border: 1px solid #dee2e6 !important;
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero-section h1,
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .floating-consultation-widget {
    right: 1rem;
    bottom: 1rem;
    max-width: 250px;
    padding: 1rem;
  }
  
  .timeline-container::before {
    left: 30px;
  }
  
  .timeline-container .row::before {
    left: 30px;
  }
  
  .d-lg-block {
    display: none !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
  
  .contact-highlight {
    padding: 2rem 1.5rem;
  }
  
  .floating-consultation-widget {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .display-4 {
    font-size: 1.35rem !important;
  }
  
  h1, .h1 {
    font-size: 1.75rem !important;
  }
  
  h2, .h2 {
    font-size: 1.5rem !important;
  }
  
  h3, .h3 {
    font-size: 1.25rem !important;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .floating-consultation-widget,
  .btn {
    display: none !important;
  }
  
  .hero-overlay {
    opacity: 0.5;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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

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

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

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

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

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