/* Obsidian Ember Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-shade: #1a252f;
  --light-shade: #ecf0f1;
  --ember-glow: #d35400;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

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

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
}

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

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

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

.navbar-nav .nav-link::after {
  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-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%;
}

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

.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 {
  border-radius: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  border-width: 2px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ember-glow) !important;
  border-color: var(--ember-glow) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--text-light) !important;
  border-color: var(--text-light) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 62, 80, 0.3) !important;
}

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

.btn-light:hover,
.btn-light:focus {
  background-color: var(--text-light) !important;
  border-color: var(--text-light) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border-radius: 0.75rem;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

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

.card.shadow-lg {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

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

.card.shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2) !important;
}

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.7;
}

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

.position-absolute {
  position: absolute;
}

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

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.object-fit-cover {
  object-fit: cover;
}

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

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

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

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

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(230, 126, 34, 0.75) 100%);
  z-index: 1;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  height: 350px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 126, 34, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  color: var(--text-light) !important;
}

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

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

.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  transition: all var(--transition-speed) ease;
}

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

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

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

.bi-arrow-right,
.bi-arrow-right-short {
  transition: transform var(--transition-speed) ease;
}

.btn:hover .bi-arrow-right,
.btn:hover .bi-arrow-right-short,
a:hover .bi-arrow-right,
a:hover .bi-arrow-right-short {
  transform: translateX(5px);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.375rem;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
}

.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-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-check-input {
  border: 2px solid #e0e0e0;
  border-radius: 0.25rem;
  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);
}

/* Tables */
.table-responsive {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table {
  margin-bottom: 0;
}

.table-bordered {
  border: 1px solid #dee2e6;
}

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

.table tbody tr {
  transition: all var(--transition-speed) ease;
}

.table tbody tr:hover {
  background-color: rgba(230, 126, 34, 0.05) !important;
  transform: scale(1.01);
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 0.75rem !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.accordion-header {
  margin-bottom: 0;
}

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

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

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

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--light-shade);
  color: var(--text-dark);
}

.accordion-collapse.show {
  border-top: 3px solid var(--secondary-color);
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
  border: none;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-warning {
  background-color: #fff3cd;
  border-left-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
}

.alert-info {
  background-color: #cfe2ff;
  border-left-color: var(--primary-color) !important;
  color: var(--text-dark) !important;
}

.alert-danger {
  background-color: #f8d7da;
  border-left-color: #dc3545 !important;
  color: var(--text-dark) !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: all var(--transition-speed) ease;
}

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

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

.nav.flex-column {
  flex-direction: column;
}

.nav-link {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  padding: 0.5rem 1rem;
}

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

/* Border Utilities */
.border-0 {
  border: none !important;
}

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

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

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

/* Rounded Utilities */
.rounded {
  border-radius: 0.375rem !important;
}

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

/* Spacing Utilities */
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !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; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Gap Utilities */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Display Utilities */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-xl-block { display: block !important; }

/* Flex Utilities */
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-sm-row { flex-direction: row !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-lg-start { text-align: left !important; }
.text-lg-end { text-align: right !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.fst-italic { font-style: italic !important; }
.fw-bold { font-weight: 700 !important; }
.fs-1 { font-size: 2.5rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.small { font-size: 0.875rem !important; }

/* Background Utilities */
.bg-light {
  background-color: var(--light-shade) !important;
}

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

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

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

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

/* Footer Links */
footer a {
  color: var(--text-light) !important;
}

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

/* Image Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.object-fit-cover {
  object-fit: cover;
}

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

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
  color: var(--text-dark);
}

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

.privacy-content p {
  margin-bottom: 1rem;
}

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

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

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

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

/* Responsive Design */
@media (max-width: 1399px) {
  .d-xl-block {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10 {
    width: 100%;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    width: 100%;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .parallax-section {
    background-attachment: scroll;
  }
}

@media (max-width: 575px) {
  .col-sm-6 {
    width: 100%;
  }
  
  .flex-sm-row {
    flex-direction: column !important;
  }
  
  .col-6 {
    width: 100% !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    page-break-inside: avoid;
  }
}