/* Steel & Copper Architecture Studio - Custom Styles */

/* ===========================
   ROOT VARIABLES & RESET
   =========================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --steel-gray: #95A5A6;
  --copper-light: #F39C12;
  --dark-steel: #1A252F;
  --light-bg: #ECF0F1;
  --white: #FFFFFF;
  --black: #000000;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%) !important;
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
  z-index: 1000 !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

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

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  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: scale(1.05);
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem 0.75rem !important;
}

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: 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;
}

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

.btn-outline-light:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3) !important;
}

.btn-outline-dark {
  color: var(--primary-color) !important;
  border-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: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3) !important;
}

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

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

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

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

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23E67E22" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.1;
  z-index: 1;
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 2;
}

.display-2 {
  font-weight: 800 !important;
  color: var(--white) !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.display-3 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-4 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-5 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

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

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

.fs-4 {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  animation: fadeInUp 1.2s ease;
}

.fs-5 {
  font-size: 1.15rem !important;
}

/* ===========================
   SECTIONS
   =========================== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

section {
  position: relative;
  overflow: hidden;
}

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

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

/* ===========================
   CARDS
   =========================== */
.card {
  border: none !important;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
  height: 100%;
}

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

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

.border-0 {
  border: 0 !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;
}

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

/* ===========================
   ICONS (Bootstrap Icons)
   =========================== */
.bi {
  color: var(--secondary-color) !important;
  transition: all var(--transition-speed) ease;
}

.card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-house-door,
.bi-building,
.bi-tree,
.bi-palette,
.bi-clock-history,
.bi-map,
.bi-rulers,
.bi-check-circle-fill,
.bi-patch-check-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-award-fill,
.bi-house-check-fill,
.bi-lightning-charge-fill,
.bi-heart-pulse-fill {
  font-size: 2rem;
}

.fs-1 {
  font-size: 3rem !important;
}

.fs-2 {
  font-size: 2.5rem !important;
}

.fs-3 {
  font-size: 2rem !important;
}

/* ===========================
   HEADINGS
   =========================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--steel-gray) !important;
}

.text-muted {
  color: var(--steel-gray) !important;
}

/* ===========================
   IMAGES
   =========================== */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: all var(--transition-speed) ease;
}

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

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

.rounded {
  border-radius: 0.5rem !important;
}

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

/* ===========================
   FORMS
   =========================== */
.form-control,
.form-select {
  border: 2px solid var(--steel-gray) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !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;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

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

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

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

/* ===========================
   BADGES
   =========================== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 0.25rem !important;
}

/* ===========================
   ACCORDION
   =========================== */
.accordion-item {
  border: 1px solid rgba(44, 62, 80, 0.1) !important;
  margin-bottom: 1rem !important;
  border-radius: 0.5rem !important;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--light-bg) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem !important;
  transition: all var(--transition-speed) ease !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C3E50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

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

.opacity-50 {
  opacity: 0.5 !important;
}

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

.position-sticky {
  position: sticky !important;
  top: 100px !important;
}

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

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

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

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

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

.list-unstyled a {
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
}

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

/* ===========================
   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-21x9 {
  --bs-aspect-ratio: calc(9 / 21 * 100%);
}

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

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

@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-fade-in {
  animation: fadeIn 1s ease;
}

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

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

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

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

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

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

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

/* ===========================
   BORDERS
   =========================== */
.border {
  border: 1px solid rgba(44, 62, 80, 0.1) !important;
}

/* ===========================
   FLEXBOX UTILITIES
   =========================== */
.d-flex {
  display: flex !important;
}

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

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

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

.flex-grow-1 {
  flex-grow: 1 !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-end {
  justify-content: flex-end !important;
}

/* ===========================
   TEXT ALIGNMENT
   =========================== */
.text-center {
  text-align: center !important;
}

.text-lg-start {
  text-align: left !important;
}

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

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%);
  color: var(--white) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23E67E22" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.05;
}

footer h3,
footer h4,
footer h5,
footer h6 {
  color: var(--white) !important;
}

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

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

footer .small {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7) !important;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .display-2 {
    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;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--copper-light) 100%);
}

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

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

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* ===========================
   CUSTOM UTILITIES
   =========================== */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-steel) 100%) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--copper-light) 100%) !important;
}

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

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

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

/* ===========================
   LINK STYLES
   =========================== */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color) !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-visible:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

/* ===========================
   CUSTOM COMPONENT STYLES
   =========================== */
.nav-pills .nav-link {
  color: var(--primary-color) !important;
  background-color: transparent;
  border: 2px solid var(--steel-gray);
  margin: 0.25rem;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color);
  color: var(--white) !important;
}