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

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-text: #ffffff;
  --steel-gray: #6d6d6d;
  --fire-orange: #FF5722;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
  transition: var(--transition-smooth);
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
  transition: var(--transition-smooth);
}

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

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

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--fire-orange));
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.3) !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='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 1;
}

.hero-section .position-absolute {
  z-index: 0;
  opacity: 0.3;
  filter: grayscale(30%);
}

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

.hero-section .display-1 {
  font-weight: 900 !important;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(211, 47, 47, 0.6);
  animation: fadeInUp 1s ease-out;
  color: var(--light-text) !important;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 300;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1.2s ease-out;
  line-height: 1.8;
}

.hero-section .bi-fire {
  color: var(--primary-color) !important;
  filter: drop-shadow(0 0 10px var(--primary-color));
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
  color: var(--primary-color) !important;
  font-size: 2rem !important;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Buttons */
.btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-danger,
.btn.btn-danger {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--fire-orange) 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-danger:hover,
.btn.btn-danger:hover {
  background: linear-gradient(135deg, var(--fire-orange) 0%, var(--primary-color) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 25px rgba(211, 47, 47, 0.6);
  transform: translateY(-2px);
}

.btn-outline-danger {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
}

.btn-outline-danger:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--secondary-color) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

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

.btn-light:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background: transparent !important;
}

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

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

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

/* Sections */
section {
  background-color: var(--dark-bg);
  position: relative;
}

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

.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--secondary-color) !important;
}

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

/* Cards */
.card {
  background: rgba(66, 66, 66, 0.4) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  border-radius: 0 !important;
  transition: var(--transition-smooth);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.4) !important;
  border-color: var(--primary-color) !important;
}

.card-body {
  color: rgba(255, 255, 255, 0.95) !important;
}

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

.card-text {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7;
}

.card-img-top {
  transition: var(--transition-smooth);
  filter: grayscale(20%);
}

.card:hover .card-img-top {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.portfolio-card {
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.95) 0%, rgba(66, 66, 66, 0.95) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

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

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

.filter-btn {
  background: transparent !important;
  border: 2px solid var(--secondary-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* Images */
.img-fluid {
  transition: var(--transition-smooth);
}

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

.rounded-circle {
  border: 3px solid var(--primary-color);
  padding: 0.2rem;
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3) !important;
}

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

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

/* Typography */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 800 !important;
  color: var(--light-text) !important;
  line-height: 1.2 !important;
}

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

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

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

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

.lead {
  font-size: 1.3rem !important;
  line-height: 1.8 !important;
}

.fs-2,
.fs-3,
.fs-4,
.fs-5 {
  color: rgba(255, 255, 255, 0.95) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Icons */
.bi {
  transition: var(--transition-smooth);
}

.bi-fire {
  color: var(--primary-color) !important;
}

.bi-check-circle-fill,
.bi-check-circle,
.bi-check2 {
  color: var(--primary-color) !important;
}

[class*="bi-"] {
  color: var(--primary-color);
  font-size: 2.5rem;
}

.card .bi,
.list-group-item .bi {
  font-size: 2rem;
}

/* Forms */
.form-control,
.form-select {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(66, 66, 66, 0.7) !important;
  border-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.form-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.form-check-input {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  border-radius: 0 !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border-left: 4px solid var(--primary-color) !important;
  background: rgba(66, 66, 66, 0.5) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.alert-light {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: rgba(255, 255, 255, 0.5) !important;
}

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

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

/* List Groups */
.list-group {
  border-radius: 0 !important;
}

.list-group-item {
  background: rgba(66, 66, 66, 0.3) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 0 !important;
  transition: var(--transition-smooth);
}

.list-group-item:hover {
  background: rgba(66, 66, 66, 0.6) !important;
  border-color: var(--primary-color) !important;
  transform: translateX(5px);
}

.list-unstyled li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

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

a:hover {
  color: var(--fire-orange) !important;
  text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

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

/* Breadcrumb */
.breadcrumb {
  background: rgba(66, 66, 66, 0.3) !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.7) !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Progress Bars */
.progress {
  background-color: rgba(66, 66, 66, 0.5) !important;
  height: 1.5rem !important;
  border-radius: 0 !important;
  overflow: visible;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--fire-orange) 100%) !important;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
  position: relative;
  overflow: visible;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Modal */
.modal-content {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.modal-header {
  border-bottom: 2px solid rgba(211, 47, 47, 0.3) !important;
}

.modal-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1 !important;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a0a 100%);
  border-top: 3px solid var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
  display: inline-block;
}

footer .bi {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: var(--transition-smooth);
}

footer .bi:hover {
  color: var(--primary-color) !important;
  transform: scale(1.2) rotate(5deg);
}

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

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

.opacity-90 {
  opacity: 0.9 !important;
}

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

.border {
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
}

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

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

/* Scroll to Top Button */
.btn.bi-arrow-up,
.btn-danger.bi-arrow-up {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border-radius: 0 !important;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.btn.bi-arrow-up.show,
.btn-danger.bi-arrow-up.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 26, 26, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section .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;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section .display-1 {
    font-size: 2.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  [class*="bi-"] {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* Animations */
@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 fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

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

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

/* Selection */
::selection {
  background: var(--primary-color);
  color: #ffffff;
}

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

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(211, 47, 47, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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