/* Crimson Forge Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-accent: #1a1a1a;
  --light-accent: #f5f5f5;
  --forge-gradient: linear-gradient(135deg, #D32F2F 0%, #8B1F1F 100%);
  --shadow-primary: 0 10px 40px rgba(211, 47, 47, 0.3);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.4s 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;
  color: var(--secondary-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.75rem;
  letter-spacing: 1px;
  position: relative;
  padding-left: 0.5rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--forge-gradient);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

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

.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, var(--dark-accent) 0%, var(--secondary-color) 100%);
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.7) 0%, rgba(26, 26, 26, 0.8) 100%);
  z-index: 1;
}

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

.hero-section .display-1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  color: #ffffff !important;
}

.hero-section .display-6 {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.hero-section .bi-chevron-down {
  font-size: 2.5rem;
  color: #ffffff !important;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-section .bi-chevron-down:hover {
  color: var(--primary-color) !important;
  transform: scale(1.2);
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.btn-lg {
  background: var(--forge-gradient) !important;
  color: #ffffff !important;
  border: 2px solid transparent;
  box-shadow: var(--shadow-primary);
}

.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(211, 47, 47, 0.4);
  color: #ffffff !important;
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%) !important;
}

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

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

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

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

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

/* Stats/Features Section */
.py-5 {
  padding: 4rem 0 !important;
}

.bi-trophy-fill,
.bi-gear-fill,
.bi-speedometer2,
.bi-tools,
.bi-lightning-fill,
.bi-shield-check,
.bi-fire {
  color: var(--primary-color) !important;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.col-md-4:hover .bi-trophy-fill,
.col-md-4:hover .bi-gear-fill,
.col-md-4:hover .bi-speedometer2,
.col-6:hover .bi-tools,
.col-6:hover .bi-lightning-fill,
.col-6:hover .bi-shield-check,
.col-6:hover .bi-fire {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 5px 15px rgba(211, 47, 47, 0.5));
}

.h4, .h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

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

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

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-card {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: var(--transition-smooth);
  position: relative;
  min-height: 400px;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3);
}

.service-card-inner {
  padding: 2.5rem;
  text-align: center;
}

.service-icon {
  font-size: 4rem;
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

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

.service-content h3 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-content p {
  color: #666 !important;
  line-height: 1.8;
}

/* Gallery */
.filter-buttons {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-filter {
  background: transparent !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: var(--transition-smooth);
}

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

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--forge-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 0.8;
}

.gallery-item .card-body {
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.gallery-item:hover .card-body {
  transform: translateY(-5px);
}

.card {
  border: none;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

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

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

.badge {
  background: var(--forge-gradient) !important;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0;
}

.badge-corner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 0;
  padding: 0.875rem 1.25rem;
  transition: var(--transition-smooth);
  color: var(--secondary-color) !important;
  background: #ffffff !important;
}

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

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

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

.invalid-feedback {
  color: var(--primary-color) !important;
  font-weight: 500;
}

/* Accordion */
.accordion {
  border-radius: 0;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
}

.accordion-button {
  background: #ffffff !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.5rem;
  border-radius: 0;
  font-size: 1.1rem;
}

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

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(25%) sepia(85%) saturate(3500%) hue-rotate(345deg) brightness(85%) contrast(85%);
}

.accordion-body {
  padding: 1.5rem;
  color: #666 !important;
  line-height: 1.8;
}

/* Alerts */
.alert {
  border-radius: 0;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
}

.alert-heading {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Modal */
.modal-content {
  border-radius: 0;
  border: none;
}

.modal-header {
  background: var(--forge-gradient);
  color: #ffffff !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
}

/* Footer */
footer {
  background: var(--dark-accent);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 4rem 0 2rem;
}

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: var(--forge-gradient);
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

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

footer .bi {
  color: var(--primary-color) !important;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

footer .bi:hover {
  transform: scale(1.3);
  color: #ffffff !important;
}

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

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

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

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

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

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

.text-muted {
  color: #999 !important;
}

.text-success {
  color: #4CAF50 !important;
}

/* Display */
.display-1,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  color: var(--secondary-color) !important;
}

.lead {
  font-size: 1.25rem;
  color: #666 !important;
  line-height: 1.8;
}

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

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

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

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

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

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

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

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

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(26, 26, 26, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 767px) {
  .py-5 {
    padding: 2.5rem 0 !important;
  }
  
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

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