/* Architecture Studio - Steel & Crimson Theme */
/* Primary Color: #2C3E50 | Secondary Color: #E74C3C */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --light-gray: #ECF0F1;
  --dark-gray: #34495E;
  --white: #FFFFFF;
  --shadow: rgba(44, 62, 80, 0.15);
  --transition: all 0.3s ease;
}

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

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

/* Navbar Styles */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px var(--shadow);
}

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

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

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

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  color: var(--white) !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='%23E74C3C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: var(--light-gray) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Buttons */
.btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
}

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

.btn-lg:hover {
  background-color: transparent !important;
  color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(231, 76, 60, 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;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.875rem !important;
}

/* Hero Section */
.position-relative {
  position: relative;
}

.min-vh-30 {
  min-height: 30vh;
}

.position-relative.w-100.h-100 {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
  overflow: hidden;
}

.position-relative.w-100.h-100::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="%23E74C3C" 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.5;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.position-absolute.top-50.start-50.translate-middle {
  z-index: 2;
}

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

.text-white .display-1,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5 {
  color: var(--white) !important;
}

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

/* Badge */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
}

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

/* Cards */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition) !important;
  overflow: hidden;
}

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

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

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

.card-body {
  padding: 2rem !important;
  background-color: var(--white);
}

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

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

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 1.25rem !important;
  border: none !important;
}

.card-footer {
  border-top: 2px solid var(--light-gray) !important;
  padding: 1.25rem !important;
}

.card-footer.bg-transparent {
  background-color: transparent !important;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}

.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.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.portfolio-item img {
  transition: var(--transition);
}

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

/* Shadows */
.shadow {
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px var(--shadow) !important;
}

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

.bg-opacity-10 {
  background-color: rgba(44, 62, 80, 0.1) !important;
}

.bg-opacity-25 {
  background-color: rgba(44, 62, 80, 0.25) !important;
}

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

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

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

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

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

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

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

.pb-3 {
  padding-bottom: 2rem !important;
}

/* Text Colors */
.text-white {
  color: var(--white) !important;
}

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

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

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

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

.text-success {
  color: #27AE60 !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

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

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
  outline: none !important;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
}

.form-check-input:checked {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

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

/* Tables */
.table {
  color: var(--primary-color) !important;
}

.table-bordered {
  border: 2px solid var(--light-gray) !important;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--light-gray) !important;
  padding: 1rem !important;
}

.table thead {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border: none !important;
  padding: 1.5rem !important;
}

.alert-light {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
}

.alert-info {
  background-color: #D6EAF8 !important;
  color: var(--primary-color) !important;
}

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

.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

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

/* Borders */
.border {
  border: 1px solid var(--light-gray) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--light-gray) !important;
}

.border-top {
  border-top: 1px solid var(--light-gray) !important;
}

.border-end {
  border-right: 1px solid var(--light-gray) !important;
}

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

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

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

.fs-1 {
  font-size: 3rem !important;
  color: var(--secondary-color) !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

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

/* Headings */
.h2, .h4, .h5 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

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

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

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

.mb-4 {
  margin-bottom: 2rem !important;
}

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

.mb-md-0 {
  margin-bottom: 0 !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

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

.mt-4 {
  margin-top: 2rem !important;
}

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

.mt-lg-0 {
  margin-top: 0 !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

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

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

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

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

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

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

/* Padding */
.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.p-md-5 {
  padding: 3rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

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

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

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

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

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

.ps-3 {
  padding-left: 1rem !important;
}

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

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

.pt-4 {
  padding-top: 2rem !important;
}

/* Display */
.d-flex {
  display: flex !important;
}

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

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

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

.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

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

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

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

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--light-gray) !important;
}

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

footer .bi {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  transition: var(--transition);
}

footer .bi:hover {
  transform: scale(1.2) translateY(-3px);
  color: var(--white) !important;
}

/* Text Utilities */
.text-center {
  text-align: center !important;
}

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

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

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

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

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

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

.small {
  font-size: 0.875rem !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  .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;
  }
  
  .fs-3 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 1rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 2rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 2rem !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .p-md-5 {
    padding: 2rem !important;
  }
  
  .position-relative.w-100.h-100 {
    min-height: 60vh;
  }
  
  .project-card,
  .portfolio-item {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.875rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-3 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

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

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

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

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

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

/* Position Utilities */
.position-sticky {
  position: sticky !important;
}

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

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

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

/* Grid Utilities */
.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;
}

/* Quote Styling */
.bi-quote {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  opacity: 0.3;
}

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  transition: var(--transition);
}

.bi-facebook:hover {
  color: #1877F2 !important;
}

.bi-instagram:hover {
  color: #E4405F !important;
}

.bi-linkedin:hover {
  color: #0A66C2 !important;
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
}

/* Container Fluid */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Offset */
@media (min-width: 992px) {
  .offset-lg-1 {
    margin-left: 8.333333% !important;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667% !important;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  
  .col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Navigation Utilities */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

/* Order Utilities */
.order-1 {
  order: 1 !important;
}

.order-2 {
  order: 2 !important;
}

@media (min-width: 992px) {
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

/* 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;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}