/* Steel Shadow Architecture Studio - Custom Styles */

:root {
  --primary-color: #263238;
  --secondary-color: #455A64;
  --light-gray: #ECEFF1;
  --medium-gray: #B0BEC5;
  --dark-gray: #37474F;
  --white: #FFFFFF;
  --accent-steel: #90A4AE;
  --shadow-color: rgba(38, 50, 56, 0.15);
  --transition-speed: 0.4s;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography Overrides */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--secondary-color) !important;
  line-height: 1.8;
}

/* Navbar Styles */
.navbar {
  background: transparent;
  transition: all var(--transition-speed) ease;
  padding: 1.5rem 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 1rem 0;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

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

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

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

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

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3) !important;
}

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

.hero-image {
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(20%);
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

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

.hero-section .display-2 {
  color: var(--white) !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.2;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-width: 2px !important;
}

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

.btn-light:hover {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  border-color: var(--light-gray) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.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;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.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;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

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

/* Badges */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 3px;
  padding: 0.5rem 1rem !important;
}

/* Images */
.img-fluid {
  transition: transform var(--transition-speed) ease;
}

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

.shadow-lg {
  box-shadow: 0 15px 40px var(--shadow-color) !important;
}

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

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

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

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

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

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

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

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

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

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

.text-decoration-none {
  text-decoration: none !important;
  color: var(--secondary-color) !important;
  transition: color var(--transition-speed) ease;
}

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

/* Opacity Classes */
.opacity-90 {
  opacity: 0.9 !important;
}

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

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

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 400px;
  transition: transform var(--transition-speed) ease;
}

.portfolio-item.tall {
  grid-row: span 2;
  height: 820px;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(38, 50, 56, 0.9) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.portfolio-content {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h3 {
  color: var(--white) !important;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
}

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--medium-gray) !important;
  padding: 0.75rem 2rem !important;
  margin: 0.5rem;
  transition: all var(--transition-speed) ease;
  font-weight: 600 !important;
}

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

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid var(--medium-gray) !important;
  border-radius: 4px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--primary-color) !important;
  background-color: var(--white) !important;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(69, 90, 100, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--medium-gray) !important;
}

.form-check-input {
  border: 2px solid var(--medium-gray) !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

.form-check-label {
  color: var(--secondary-color) !important;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Accordion */
.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  border-bottom: 1px solid var(--medium-gray) !important;
  background-color: transparent;
}

.accordion-button {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem 1.25rem;
  border: none;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(17%) sepia(12%) saturate(1342%) hue-rotate(152deg) brightness(95%) contrast(93%);
}

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

/* Bootstrap Icons */
.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bi::before {
  font-size: 1.5rem;
}

/* Icon Sizes */
.display-4 .bi::before {
  font-size: 3.5rem;
}

.display-5 .bi::before {
  font-size: 2.5rem;
}

.h2 .bi::before {
  font-size: 2rem;
}

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

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

.list-unstyled a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
}

footer h5,
footer h4 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

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

/* Spacing Utilities */
.gap-3 {
  gap: 1rem !important;
}

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

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

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

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

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

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

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

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

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

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

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

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

.d-block {
  display: block !important;
}

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

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

/* Flex Utilities */
.flex-column {
  flex-direction: column !important;
}

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

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

.justify-content-between {
  justify-content: space-between !important;
}

/* Viewport Units */
.vh-100 {
  height: 100vh !important;
}

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

.w-100 {
  width: 100% !important;
}

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

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out;
}

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

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1199.98px) {
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .portfolio-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .p-lg-5 {
    padding: 2rem !important;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .portfolio-item.tall {
    grid-row: span 1;
    height: 400px;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero-section .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;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn {
    font-size: 0.875rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

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

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

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

button:focus,
a:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.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(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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