/* ============================================
   ARCHITECTURAL STUDIO - RACING RED & STEEL GRAY
   Modern, Professional, High-Performance Design
   ============================================ */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --success: #4caf50;
  --danger: #f44336;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ============================================
   NAVBAR STYLING
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
  transition: var(--transition);
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.98) !important;
  box-shadow: 0 2px 30px rgba(211, 47, 47, 0.5);
}

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

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

.navbar-brand .bi {
  color: var(--primary-color) !important;
  margin-right: 0.5rem;
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  position: relative;
  transition: var(--transition);
  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(--primary-color);
  transform: translateX(-50%);
  transition: var(--transition);
}

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

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

.nav-link .bi {
  margin-right: 0.4rem;
  font-size: 1.1rem;
}

.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.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='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   CAROUSEL STYLING
   ============================================ */
.carousel {
  margin-top: 76px;
}

.carousel-item {
  height: 100vh;
  min-height: 500px;
  position: relative;
}

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

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

.carousel-caption {
  z-index: 2;
  bottom: 30% !important;
  text-align: left !important;
  left: 8% !important;
  right: auto !important;
}

.carousel-caption .display-3 {
  font-weight: 900 !important;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
  color: var(--white) !important;
  letter-spacing: -1px;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .lead {
  font-size: 1.4rem !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-indicators {
  z-index: 2;
}

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

.carousel-indicators button.active {
  background-color: var(--primary-color) !important;
  opacity: 1 !important;
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 2;
  width: 5%;
  opacity: 0.8 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

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

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

.btn-lg {
  padding: 1rem 3rem !important;
  font-size: 1.1rem !important;
  background-color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-lg:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
  color: var(--white) !important;
}

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

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

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

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

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

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

.btn-danger:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
  color: var(--white) !important;
}

/* ============================================
   CARBON FIBER BACKGROUND
   ============================================ */
.carbon-fiber-bg {
  background: linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
    linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
    linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
    linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-color: #131313;
  background-size: 20px 20px;
  position: relative;
}

.carbon-fiber-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.05) 0%, rgba(66, 66, 66, 0.05) 100%);
}

/* ============================================
   ABOUT HERO SECTION
   ============================================ */
.about-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.2) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.about-hero .display-3 {
  font-weight: 900 !important;
  color: var(--white) !important;
  letter-spacing: -1px;
}

.about-hero .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.3rem !important;
}

.tagline {
  color: var(--primary-color) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   SPLIT CONTAINER (TIMELINE & TEAM)
   ============================================ */
.split-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
  margin: 4rem 0;
}

.timeline-side,
.team-side {
  flex: 1;
  min-width: 300px;
  padding: 4rem 3rem;
}

.timeline-side {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
  position: relative;
}

.timeline-side::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 100px;
  bottom: 100px;
  width: 3px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
  animation: fadeInLeft 0.8s ease-out;
}

.timeline-marker {
  position: absolute;
  left: 39px;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid var(--secondary-color);
  z-index: 1;
}

.timeline-year {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

.timeline-content {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-side {
  background: var(--dark-bg);
}

.team-intro {
  margin-bottom: 3rem;
}

.team-intro h3 {
  color: var(--white) !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
}

.team-intro p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
}

.hexagon-frame {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 3px solid var(--primary-color);
  transition: var(--transition);
}

.team-member:hover .hexagon-frame {
  border-color: var(--white);
  transform: rotate(360deg);
}

.hexagon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h5 {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--primary-color) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
  background: var(--secondary-color);
  padding: 5rem 0;
}

.values-section h2 {
  color: var(--white) !important;
  font-weight: 900 !important;
  font-size: 2.5rem !important;
  margin-bottom: 3rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
  height: 100%;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
  border-left-width: 8px;
}

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

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

.value-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   CARDS & SERVICE CARDS
   ============================================ */
.card {
  background: rgba(66, 66, 66, 0.8) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  border-radius: 0 !important;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(211, 47, 47, 0.4) !important;
  border-color: var(--primary-color) !important;
}

.card-body {
  background: transparent !important;
}

.card-title {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

.card-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 2;
  opacity: 0.95;
}

.service-details {
  padding: 1.5rem;
}

.service-details ul li {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-details ul li:last-child {
  border-bottom: none;
}

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

/* ============================================
   GALLERY STYLING
   ============================================ */
.filter-btn {
  padding: 0.75rem 2rem !important;
  margin: 0.5rem !important;
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  opacity: 1;
}

.gallery-item.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.gallery-overlay h5 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition) 0.3s;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: var(--transition) 0.3s 0.1s;
}

.gallery-card:hover .gallery-overlay h5,
.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

.view-details {
  transform: translateY(20px);
  transition: var(--transition) 0.3s 0.2s;
}

.gallery-card:hover .view-details {
  transform: translateY(0);
}

/* ============================================
   MODAL STYLING
   ============================================ */
.modal-content {
  background: var(--dark-bg) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
}

.modal-header {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
}

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

.modal-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  color: var(--white) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  transition: var(--transition);
}

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

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

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

.form-check-input {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
}

.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(211, 47, 47, 0.25) !important;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.invalid-feedback {
  color: #ff5252 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  border-radius: 0 !important;
  border: none !important;
  border-left: 4px solid !important;
  font-weight: 600 !important;
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.15) !important;
  border-left-color: var(--danger) !important;
  color: #ff5252 !important;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.15) !important;
  border-left-color: var(--success) !important;
  color: #69f0ae !important;
}

.alert-light {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.alert .bi {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  background-color: rgba(66, 66, 66, 0.5) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem !important;
}

.accordion-button {
  background-color: rgba(66, 66, 66, 0.7) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.1rem !important;
}

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

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

.accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.accordion-body {
  background-color: rgba(26, 26, 26, 0.6) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1.5rem !important;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
  border-top: 3px solid var(--primary-color);
}

footer h5 {
  color: var(--white) !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.2rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

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

.copyright {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(211, 47, 47, 0.2);
}

.copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7) !important;
}

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

.copyright a:hover {
  color: var(--white) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-danger {
  color: var(--primary-color) !important;
}

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

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

.text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

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

.border-secondary {
  border-color: rgba(211, 47, 47, 0.3) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
}

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

.shadow {
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2) !important;
}

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

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

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .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(211, 47, 47, 0.2);
  }
  
  .carousel-caption {
    left: 5% !important;
    bottom: 20% !important;
  }
  
  .carousel-caption .display-3 {
    font-size: 2rem !important;
  }
  
  .carousel-caption .lead {
    font-size: 1.1rem !important;
  }
  
  .gallery-masonry {
    column-count: 2;
  }
  
  .split-container {
    flex-direction: column;
  }
  
  .timeline-side::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 19px;
  }
}

@media (max-width: 767.98px) {
  .gallery-masonry {
    column-count: 1;
  }
  
  .carousel-item {
    height: 70vh;
  }
  
  .carousel-caption .display-3 {
    font-size: 1.75rem !important;
  }
  
  .carousel-caption .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .service-card .card-img-top {
    height: 200px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  
  .hexagon-frame {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .carousel-caption .display-3 {
    font-size: 1.5rem !important;
  }
  
  .carousel-caption .lead {
    font-size: 0.9rem !important;
  }
  
  .about-hero {
    padding: 80px 0 60px;
  }
  
  .about-hero .display-3 {
    font-size: 2rem !important;
  }
  
  .timeline-side,
  .team-side {
    padding: 2rem 1.5rem;
  }
  
  .value-card {
    padding: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .carousel,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 0;
}

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

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* ============================================
   RATIO UTILITIES
   ============================================ */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ============================================
   POSITION UTILITIES
   ============================================ */
.position-sticky {
  position: sticky !important;
  top: 90px;
}

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

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

/* ============================================
   HOVER EFFECTS
   ============================================ */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3) !important;
}

/* ============================================
   TEXT DECORATIONS
   ============================================ */
.text-decoration-none {
  text-decoration: none !important;
}

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

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

/* ============================================
   SPACING OVERRIDES
   ============================================ */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

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

.py-3 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-2 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.my-4 {
  margin-top: 2.5rem !important;
  margin-bottom: 2.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 2.5rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 2.5rem !important;
}

/* ============================================
   FINAL ENHANCEMENTS
   ============================================ */
.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

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

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

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

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

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

.rounded {
  border-radius: 0.25rem !important;
}

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

.overflow-hidden {
  overflow: hidden !important;
}

.h-100 {
  height: 100% !important;
}

.w-100 {
  width: 100% !important;
}