/* Crimson Thunder Architecture Studio - Custom Styles */

/* ===== Root Variables ===== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #FF5252;
  --dark-gray: #424242;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.navbar-brand .bi-lightning-charge-fill {
  color: var(--primary-color) !important;
  font-size: 1.8rem;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 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(211, 47, 47, 1)' 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%, var(--dark-gray) 50%, var(--secondary-color) 100%);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23D32F2F" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.hero-section .display-1 {
  color: var(--white) !important;
  font-weight: 800 !important;
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
  font-weight: 300 !important;
  margin-bottom: 2rem !important;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-section .btn {
  animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* ===== Buttons ===== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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;
  z-index: -1;
}

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

.btn-lg {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 1rem 2.5rem !important;
}

.btn-lg:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-outline-danger:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-light:hover {
  background-color: var(--light-gray) !important;
  border-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* ===== Sections ===== */
.py-5 {
  padding: 4rem 0 !important;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.display-4, .display-5 {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
}

/* ===== Feature Cards ===== */
.card {
  border: none !important;
  border-radius: 12px !important;
  transition: var(--transition) !important;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(211, 47, 47, 0.2) !important;
}

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

.card .bi {
  font-size: 3rem;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  transition: var(--transition);
}

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

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

.card-text {
  color: var(--dark-gray) !important;
  line-height: 1.8;
}

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

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

/* ===== Stats/Features Grid ===== */
.col-md-4 .p-4 {
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.col-md-4 .p-4:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
}

.col-md-4 .p-4:hover * {
  color: var(--white) !important;
}

/* ===== Timeline ===== */
.timeline-container {
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 2px;
}

.timeline-container .rounded-circle {
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  position: relative;
  z-index: 2;
}

.timeline-container .rounded-circle .bi {
  color: var(--white) !important;
  font-size: 1.5rem !important;
}

/* ===== Hexagon Grid ===== */
.hexagon-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.hex-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hex-card {
  width: 250px;
  height: 280px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}

.hex-front,
.hex-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hex-front {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border: 2px solid var(--primary-color);
}

.hex-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  transform: rotateY(180deg);
}

.hex-card:hover .hex-front {
  transform: rotateY(180deg);
}

.hex-card:hover .hex-back {
  transform: rotateY(360deg);
}

.hex-icon {
  font-size: 3rem !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.hex-back .hex-icon {
  color: var(--white) !important;
}

.hex-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color) !important;
  text-align: center;
  margin-bottom: 0.5rem;
}

.hex-back .hex-title {
  color: var(--white) !important;
}

.hex-brief {
  font-size: 0.9rem;
  color: var(--dark-gray) !important;
  text-align: center;
  line-height: 1.6;
}

.hex-back .hex-brief {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== Before/After Slider ===== */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  cursor: ew-resize;
}

.before-after-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Carousel ===== */
.carousel {
  background: var(--light-gray);
  padding: 3rem 0;
  border-radius: 12px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0.5);
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-item {
  padding: 2rem;
}

.carousel .card {
  background: var(--white) !important;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
}

.gallery-image {
  transition: var(--transition);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

.gallery-item .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
}

/* ===== Modal ===== */
.modal-content {
  background: var(--secondary-color) !important;
  border: none !important;
  border-radius: 12px !important;
}

.modal-header {
  border-bottom-color: var(--dark-gray) !important;
}

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

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

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

.modal-body img {
  border-radius: 8px;
}

/* ===== Forms ===== */
.form-label {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.form-control,
.form-select {
  border: 2px solid var(--light-gray) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
}

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

.form-control::placeholder {
  color: #999 !important;
}

/* ===== Hours Grid ===== */
.hours-grid {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
}

.hours-grid .border-bottom {
  border-color: var(--dark-gray) !important;
  padding: 0.75rem 0;
}

.hours-grid .border-bottom:last-child {
  border-bottom: none !important;
}

/* ===== Map Container ===== */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container::before {
  content: '\F3E5';
  font-family: 'bootstrap-icons';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
}

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

.accordion-button {
  background-color: var(--white) !important;
  color: var(--secondary-color) !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) !important;
}

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

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

/* ===== Breadcrumb ===== */
.breadcrumb {
  background-color: var(--light-gray) !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  margin-bottom: 2rem !important;
}

.breadcrumb-item {
  color: var(--dark-gray) !important;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--dark-gray) !important;
}

.breadcrumb-item a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===== Alert ===== */
.alert {
  border: none !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
  border-left: 4px solid var(--primary-color) !important;
}

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

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

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

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

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

/* ===== Badge ===== */
.badge {
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
}

/* ===== Text Utilities ===== */
.text-muted {
  color: #757575 !important;
}

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

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

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

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

/* ===== Sticky Elements ===== */
.sticky-top {
  top: 80px !important;
  z-index: 100;
}

.position-sticky {
  position: sticky !important;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

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

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

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

footer .border-top {
  border-color: var(--dark-gray) !important;
}

/* ===== Social Icons ===== */
.bi-facebook,
.bi-instagram,
.bi-youtube {
  font-size: 1.5rem;
  transition: var(--transition);
}

.bi-facebook:hover {
  color: #1877F2 !important;
  transform: scale(1.2);
}

.bi-instagram:hover {
  color: #E4405F !important;
  transform: scale(1.2);
}

.bi-youtube:hover {
  color: #FF0000 !important;
  transform: scale(1.2);
}

/* ===== 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(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@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-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--secondary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-container .rounded-circle {
    width: 40px !important;
    height: 40px !important;
  }
  
  .hex-card {
    width: 100%;
    max-width: 300px;
  }
  
  .before-after-slider {
    height: 300px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .sticky-top {
    top: 60px !important;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding: 2rem 0 !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .map-container {
    height: 300px;
  }
  
  .col-md-4 .p-4 {
    padding: 2rem 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .hero-section {
    padding-top: 80px;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}