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

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --steel-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
  --flame-gradient: linear-gradient(45deg, #E67E22 0%, #f39c12 100%);
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --transition-speed: 0.3s;
}

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

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

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-light) !important;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-light) !important;
  opacity: 0.95;
}

h4, .h4 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.98) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
  z-index: 1050;
}

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

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

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

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.3rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link::before {
  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::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

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

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

.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;
}

/* Hero Section */
.hero-wrapper {
  min-height: 100vh;
  background: var(--steel-gradient);
  position: relative;
  overflow: hidden;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(230, 126, 34, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.flame-accent {
  width: 300px;
  height: 300px;
  background: var(--flame-gradient);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: flameFloat 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes flameFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.2);
  }
}

.steel-beam-divider {
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  position: relative;
  animation: beamGlow 2s ease-in-out infinite;
}

@keyframes beamGlow {
  0%, 100% {
    box-shadow: 0 0 10px var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color);
  }
}

.steel-accent {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--secondary-color);
  color: var(--text-light) !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  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 {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem;
}

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

.btn-outline-light:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3);
}

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

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

/* Service Cards */
.service-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--flame-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.service-card .bi {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

/* Carousel Styles */
.carousel {
  height: 80vh;
  min-height: 600px;
}

.carousel-item {
  height: 80vh;
  min-height: 600px;
  background: var(--primary-color);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.3) 100%);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  z-index: 2;
  bottom: auto !important;
  top: 50%;
  transform: translateY(-50%);
  text-align: left !important;
  left: 10% !important;
  right: 50% !important;
}

.carousel-caption h2 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: var(--text-light) !important;
  font-size: 1.2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color) !important;
  background-color: transparent !important;
  opacity: 0.7;
}

.carousel-indicators button.active {
  background-color: var(--secondary-color) !important;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(230, 126, 34, 0.8);
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* Badge Styles */
.badge {
  background: var(--secondary-color) !important;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem !important;
}

/* Timeline Styles */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
  border-left: 3px solid var(--secondary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--secondary-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 0 4px #fff, 0 0 0 10px var(--secondary-color);
  }
}

/* Card Styles */
.card {
  border: none !important;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

/* Team Member Cards */
.team-member {
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--secondary-color);
  object-fit: cover;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-member:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(230, 126, 34, 0.3);
}

.team-member h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 1rem;
}

.team-member .small {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

/* Portfolio Styles */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.5) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

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

.portfolio-overlay h4 {
  color: #fff !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--text-light) !important;
  margin-bottom: 0;
}

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

.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;
}

.form-control-lg {
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem;
}

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

/* Alert Styles */
.alert {
  border: none;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.alert-info {
  background: #e8f4f8 !important;
  color: var(--primary-color) !important;
}

/* Progress Bar */
.progress {
  height: 1.5rem;
  border-radius: 10px;
  background: #e0e0e0;
  overflow: visible;
}

.progress-bar {
  background: var(--flame-gradient) !important;
  border-radius: 10px;
  position: relative;
  overflow: visible;
  box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

/* Footer Styles */
footer {
  background: var(--steel-gradient);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: var(--text-light) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

footer a {
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
  text-decoration: none !important;
}

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

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

footer .bi {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* Utility Classes */
.text-muted {
  color: #6c757d !important;
}

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

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

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

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

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

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

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

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

/* Privacy Content */
.privacy-content {
  background: #fff;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.privacy-content h3 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .carousel-caption {
    left: 5% !important;
    right: 5% !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 767.98px) {
  .hero-wrapper {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .carousel {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .privacy-content {
    padding: 1.5rem;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem !important;
  }
  
  .carousel-caption p {
    font-size: 0.9rem !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #d67118;
}

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

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Hover Effects */
.hover-lift {
  transition: transform var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Text Selection */
::selection {
  background: var(--secondary-color);
  color: #fff;
}

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