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

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-overlay: rgba(44, 62, 80, 0.85);
  --light-overlay: rgba(230, 126, 34, 0.1);
  --transition-smooth: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

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

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

/* Typography Enhancements */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.5px;
}

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

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  z-index: 1050;
}

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

.navbar-brand {
  font-size: 1.75rem;
  color: #ffffff !important;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition-fast);
  border-radius: 4px;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(230, 126, 34, 0.2) !important;
}

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.5) !important;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

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

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

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

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

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

.hero-section .img-fluid {
  animation: fadeInRight 1s ease;
  border: 4px solid rgba(230, 126, 34, 0.3);
  transition: var(--transition-smooth);
}

.hero-section .img-fluid:hover {
  transform: scale(1.02) translateY(-5px);
  border-color: var(--secondary-color);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-lg {
  padding: 0.875rem 2rem !important;
  font-size: 1.1rem !important;
}

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

.btn:active {
  transform: translateY(-1px);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: #d67118 !important;
  border-color: #d67118 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
}

.btn-outline-light {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

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

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

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

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #1a252f !important;
  border-color: #1a252f !important;
  color: #ffffff !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

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

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

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

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

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

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

.bg-light {
  background-color: #f8f9fa !important;
}

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

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

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

/* Statistics Section */
.text-center .display-4 {
  color: var(--secondary-color) !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
  counter-reset: number;
  animation: countUp 2s ease;
}

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.portfolio-item .position-absolute {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .position-absolute {
  opacity: 1;
}

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  border-radius: 25px !important;
  transition: var(--transition-fast);
}

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

/* 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: var(--transition-fast);
  font-size: 1rem;
}

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

.form-control::placeholder {
  color: #adb5bd;
}

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

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

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

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

.rounded-circle {
  border-radius: 50% !important;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1.25rem;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* Tables */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  margin-bottom: 0;
}

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

.table thead {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

/* Accordion */
.accordion-item {
  border: 1px solid rgba(0,0,0,.125);
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: #f8f9fa !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: var(--transition-fast);
}

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

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

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

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

/* Progress Bars */
.progress {
  height: 25px;
  border-radius: 12px;
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  transition: width 1.5s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  margin-top: 80px;
}

footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

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

footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-block;
}

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

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

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

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

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

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

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

/* Spacing Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

.g-5 {
  gap: 3rem !important;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
}

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

/* Animations */
@keyframes fadeInUp {
  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 countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Scroll Animations */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Rounded Corners */
.rounded {
  border-radius: 8px !important;
}

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

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

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

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

.position-sticky {
  position: sticky !important;
  top: 0;
  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;
}

.end-0 {
  right: 0 !important;
}

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

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

/* Display Utilities */
.d-none {
  display: none !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-row-reverse {
  flex-direction: row-reverse !important;
}

.flex-wrap {
  flex-wrap: wrap !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;
}

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

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

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

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

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

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
  color: #495057;
}

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

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

.privacy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Contact Info */
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-chat-dots,
.bi-chat-dots-fill,
.bi-camera-fill,
.bi-calendar-check,
.bi-calendar-check-fill,
.bi-rulers,
.bi-check-circle-fill,
.bi-house-heart,
.bi-hard-hat,
.bi-clipboard-check,
.bi-tree,
.bi-facebook,
.bi-house-fill,
.bi-building,
.bi-buildings,
.bi-house-door-fill,
.bi-water,
.bi-shop,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-5-circle-fill,
.bi-6-circle-fill {
  font-size: 1.25rem;
  color: var(--secondary-color);
}

/* 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;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
  }
  
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .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: 1fr;
  }
  
  section {
    padding: 60px 0;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .d-lg-block {
    display: none !important;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .portfolio-item img {
    height: 250px;
  }
  
  .rounded-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

@media (max-width: 575.98px) {
  .container,
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .navbar-toggler {
    display: none !important;
  }
  
  body {
    color: #000;
  }
  
  .card,
  .shadow,
  .shadow-sm,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

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

/* Width and Height */
.w-100 {
  width: 100% !important;
}

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

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

.p-0 {
  padding: 0 !important;
}

/* Hover Effects for Links */
a {
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

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

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

::-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: #ffffff;
}

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

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

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