/* Crimson Shadow - Architecture Studio Theme */

:root {
  --primary-color: #B71C1C;
  --secondary-color: #212121;
  --dark-red: #8B0000;
  --light-gray: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #212121;
  --transition-speed: 0.3s;
  --shadow-soft: 0 4px 6px rgba(183, 28, 28, 0.1);
  --shadow-hard: 0 10px 30px rgba(183, 28, 28, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  letter-spacing: -1px;
}

.h3, .h4, .h5, .h6 {
  font-weight: 600;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar-dark .navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
}

.navbar-brand .bi {
  color: var(--primary-color) !important;
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

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

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 4px;
  transition: all var(--transition-speed);
  position: relative;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(183, 28, 28, 0.5) !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='%23B71C1C' 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(--secondary-color) 0%, #000000 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

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

.hero-section .position-absolute {
  z-index: 0;
  opacity: 0.3;
}

.hero-section .object-fit-cover {
  object-fit: cover;
  filter: grayscale(50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light) !important;
  animation: fadeInUp 1s ease-out;
}

.hero-content .display-1 {
  color: var(--text-light) !important;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem !important;
}

.hero-content .h3 {
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 300;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.3rem;
  max-width: 600px;
}

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

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

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--dark-red) !important;
  border-color: var(--dark-red) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(183, 28, 28, 0.4) !important;
}

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

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

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

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

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

/* Sections */
section {
  padding: 5rem 0;
}

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

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

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

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

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

.text-dark {
  color: var(--text-dark) !important;
}

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

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

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(183, 28, 28, 0.2) !important;
}

.card-body {
  padding: 2rem;
}

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

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

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

/* Service Cards */
.service-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed);
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(183, 28, 28, 0.3) !important;
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(183, 28, 28, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-speed);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

/* Team Cards */
.team-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.team-card .rounded-circle {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  margin: 0 auto;
}

.team-card:hover {
  transform: scale(1.05);
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.cert-badge {
  background: var(--text-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-speed);
}

.cert-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hard);
}

.testimonial-badge {
  background: var(--text-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-soft);
}

/* Icons */
.bi {
  vertical-align: middle;
}

.fs-2 {
  font-size: 2rem !important;
}

.fs-3 {
  font-size: 1.75rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.bi-speedometer2, .bi-tools, .bi-award,
.bi-lightning-charge, .bi-gem, .bi-hourglass-split,
.bi-disc, .bi-soundwave, .bi-gear-wide-connected,
.bi-shop-window, .bi-people-fill, .bi-trophy-fill,
.bi-wrench-adjustable, .bi-wrench-adjustable-circle,
.bi-wrench-adjustable-circle-fill {
  color: var(--primary-color) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Progress Bars */
.progress {
  height: 10px;
  border-radius: 5px;
  background-color: rgba(183, 28, 28, 0.1) !important;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 1s ease;
}

/* Gallery */
.gallery-masonry {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: all var(--transition-speed);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(183, 28, 28, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-speed);
}

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

/* Filter Buttons */
.filter-btn {
  margin: 0.25rem;
  padding: 0.5rem 1.5rem;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(183, 28, 28, 0.25) !important;
  outline: none;
}

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

.alert {
  border-radius: 4px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* Contact Section */
.contact-split-container {
  display: flex;
  min-height: 600px;
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.map-section {
  flex: 1;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.form-section {
  flex: 1;
  padding: 3rem;
}

.contact-info-cards .card {
  border-left: 4px solid var(--primary-color) !important;
  margin-bottom: 1rem;
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

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

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

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

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

.accordion-body {
  padding: 1.5rem;
  background-color: var(--text-light);
}

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

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
  color: var(--text-light) !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

footer .h6 {
  color: var(--text-light) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

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

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

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

footer .bi-facebook,
footer .bi-instagram,
footer .bi-youtube {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  transition: all var(--transition-speed);
}

footer .bi-facebook:hover,
footer .bi-instagram:hover,
footer .bi-youtube:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

/* Scroll to Top Button */
.bi-arrow-up-circle-fill,
.bi-arrow-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 3rem;
  color: var(--primary-color) !important;
  background: var(--text-light);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bi-arrow-up-circle-fill.show,
.bi-arrow-up.show {
  opacity: 1;
  visibility: visible;
}

.bi-arrow-up-circle-fill:hover,
.bi-arrow-up:hover {
  transform: translateY(-5px);
  color: var(--dark-red) !important;
}

/* Utility Classes */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

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

.text-decoration-none {
  text-decoration: none !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(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@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);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
  .display-1 {
    font-size: 3.5rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .contact-split-container {
    flex-direction: column;
  }
  
  .map-section {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .gallery-masonry {
    column-count: 1;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .form-section {
    padding: 2rem 1.5rem;
  }
  
  .bi-arrow-up-circle-fill,
  .bi-arrow-up {
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  
  footer {
    text-align: center;
  }
  
  .text-md-end,
  .text-md-start {
    text-align: center !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .bi-arrow-up-circle-fill,
  .bi-arrow-up {
    display: none !important;
  }
  
  body {
    color: #000;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
}