/* Industrial Flame Architecture Studio - Custom Styles */

:root {
  --primary-color: #D84315;
  --primary-dark: #BF360C;
  --primary-light: #FF5722;
  --secondary-color: #37474F;
  --secondary-dark: #263238;
  --secondary-light: #546E7A;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #212121;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.navbar.sticky-top {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  border: none !important;
  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.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(216, 67, 21, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(216, 67, 21, 0.4) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(55, 71, 79, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(55, 71, 79, 0.4) !important;
}

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

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 50%, var(--primary-dark) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(216, 67, 21, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 87, 34, 0.2) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556 15.858 12.14 28 0zm-6.485 19.8L.828 44.485 2.243 45.9l24.686-24.686-1.414-1.414zm12.97 0L13.03 45.314l1.414 1.414L40 21.214l-1.414-1.414zM0 5.373l-.828.83L.828 7.627 3.657 4.8 5.072 6.216 0 11.03V5.374zm60 0v5.656l-5.072-4.813L53.513 4.8l2.83 2.828 1.414-1.414L60 5.372zM32 30l12.142 12.142-1.414 1.414L30 30.828l-12.728 12.728-1.414-1.414L28 30zm0 12l12.142 12.142-1.414 1.414L30 42.828 17.272 55.556 15.858 54.142 28 42zm0 12l12.142 12.142L42.728 60H17.272l-1.414-1.414L28 54z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% { background-position: 0 0, 100% 100%, 0 0; }
  100% { background-position: 100% 100%, 0 0, 60px 60px; }
}

.text-white {
  color: var(--white) !important;
  position: relative;
  z-index: 2;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

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

.card-body {
  padding: 2rem !important;
}

.card-footer {
  background-color: transparent !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 1.5rem 2rem !important;
}

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

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

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

/* Icons */
.bi {
  vertical-align: middle;
  transition: var(--transition);
}

.bi-fire,
.bi-lightning-fill,
.bi-lightning-charge-fill {
  color: var(--primary-color) !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--dark-gray) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(216, 67, 21, 0.15) !important;
  background-color: var(--white) !important;
}

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

.form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  cursor: pointer;
}

.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(216, 67, 21, 0.15) !important;
}

.form-check-label {
  cursor: pointer;
  color: var(--dark-gray) !important;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
  background: var(--secondary-dark);
}

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(216, 67, 21, 0.95) 0%, rgba(55, 71, 79, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.portfolio-content {
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

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

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  color: var(--dark-gray) !important;
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  border-radius: 25px !important;
  transition: var(--transition);
  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);
}

/* Modal */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
  padding: 1.5rem 2rem !important;
  border-bottom: none !important;
}

.modal-title {
  font-weight: 700 !important;
  color: var(--white) !important;
}

.modal-body {
  padding: 2rem !important;
}

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

.btn-close:hover {
  transform: rotate(90deg);
}

/* Alert */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1) !important;
  color: #2E7D32 !important;
}

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

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--dark-gray) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
}

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

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

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

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

/* Table */
.table {
  color: var(--dark-gray) !important;
}

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

.table-bordered {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.table-bordered td,
.table-bordered th {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 1rem !important;
}

.bg-success {
  background-color: #4CAF50 !important;
  color: var(--white) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  color: rgba(255, 255, 255, 0.8) !important;
}

footer h5,
footer h6 {
  color: var(--white) !important;
  font-weight: 700 !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

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

/* Utility Classes */
.text-muted {
  color: rgba(0, 0, 0, 0.5) !important;
}

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

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

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

.opacity-10 {
  opacity: 0.1 !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.rounded {
  border-radius: 12px !important;
}

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

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

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

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

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

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

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

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

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

/* 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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Responsive Image */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

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

/* Privacy Content */
.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--secondary-dark) !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.privacy-content p {
  color: var(--dark-gray) !important;
  margin-bottom: 1rem !important;
  line-height: 1.8;
}

/* Icon Backgrounds */
.bi-fire,
.bi-lightning-charge-fill,
.bi-droplet-fill {
  font-size: 2.5rem !important;
}

/* Hero Specific */
.position-relative .col-lg-8 {
  animation: fadeInUp 1s ease;
}

/* Section Backgrounds */
section {
  position: relative;
  overflow: hidden;
}

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

/* Feature Icons */
.d-inline-block.mb-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 2rem !important;
  box-shadow: 0 8px 25px rgba(216, 67, 21, 0.3);
  transition: var(--transition);
}

.d-inline-block.mb-3:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 12px 35px rgba(216, 67, 21, 0.4);
}

/* Stats Counter */
.display-3,
.display-4 {
  color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--secondary-dark);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item.wide,
  .portfolio-item.tall {
    grid-column: span 1;
    grid-row: span 1;
    height: 350px;
  }
  
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .p-lg-5 {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .d-inline-block.mb-3 {
    width: 60px;
    height: 60px;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

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

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Z-index */
.z-3 {
  z-index: 3 !important;
}

/* Width utilities */
.w-50 {
  width: 50% !important;
}

/* Position utilities */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

/* Flex utilities */
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

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

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