/* Crimson Steel Architecture Studio - Custom Styles */

/* ===========================
   CSS Variables & Base Styles
   =========================== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --dark-gray: #424242;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

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

/* ===========================
   Navigation Styles
   =========================== */
.navbar {
  padding: 1.5rem 0;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.95) 0%, rgba(33, 33, 33, 0.8) 100%) !important;
  backdrop-filter: blur(10px);
}

.navbar.position-absolute {
  top: 0;
  left: 0;
}

.navbar.position-sticky {
  position: sticky !important;
  top: 0;
  background: var(--secondary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color var(--transition-speed) ease;
}

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

.navbar-dark .navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===========================
   Hero Video Section
   =========================== */
.hero-video-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23D32F2F" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.3;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

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

.hero-video-section .display-2 {
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-video-section .lead {
  animation: fadeInUp 1.2s ease-out;
}

.hero-video-section .d-flex.gap-3 {
  animation: fadeInUp 1.4s ease-out;
}

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

/* ===========================
   Button Styles
   =========================== */
.btn {
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  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.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

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

.btn-primary:hover,
.btn.px-5:hover {
  background: #B71C1C !important;
  border-color: #B71C1C !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

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

.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 33, 33, 0.4);
}

.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(--secondary-color) !important;
  transform: translateY(-2px);
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.3) !important;
}

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

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

.card-body {
  position: relative;
}

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

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

.shadow-lg {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

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

/* ===========================
   Service Card Styles
   =========================== */
.service-card {
  border-left: 4px solid var(--primary-color);
  background: var(--white);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.service-card:hover {
  background: var(--light-gray);
  border-left-width: 8px;
}

.service-header {
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.service-header:hover .bi-chevron-down {
  color: var(--primary-color);
}

.service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 1.5rem;
}

.service-card.active .service-body {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.service-card.active .bi-chevron-down {
  transform: rotate(180deg);
  transition: transform var(--transition-speed) ease;
}

.bi-chevron-down {
  transition: transform var(--transition-speed) ease;
}

/* ===========================
   Pricing Tier Styles
   =========================== */
.pricing-tier {
  border: 3px solid var(--light-gray);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.pricing-tier:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(211, 47, 47, 0.2);
}

.pricing-tier.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.05) 0%, rgba(33, 33, 33, 0.05) 100%);
}

.pricing-tier .badge {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* ===========================
   Gallery Styles
   =========================== */
.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  transition: all var(--transition-speed) ease;
}

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

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

.gallery-item {
  opacity: 1;
  transition: all 0.5s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  height: 350px;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--white);
}

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

/* ===========================
   Timeline Styles
   =========================== */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -3.75rem;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(211, 47, 47, 0.1);
  }
}

/* ===========================
   Certification Badge Styles
   =========================== */
.certification-badge {
  background: var(--white);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.certification-badge:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

.certification-badge .bi {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.floating-badge {
  animation: floating 3s ease-in-out infinite;
}

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

/* ===========================
   Hexagon Mask Styles
   =========================== */
.hexagon-mask {
  width: 200px;
  height: 200px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all var(--transition-speed) ease;
}

.hexagon-mask:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ===========================
   Clock Circle Styles
   =========================== */
.clock-circle {
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.clock-circle .bi-clock-fill {
  font-size: 2rem;
  color: var(--primary-color);
  animation: rotate 2s linear infinite;
}

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

/* ===========================
   Emergency Banner Styles
   =========================== */
.emergency-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  color: var(--white) !important;
  padding: 1rem;
  text-align: center;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.emergency-banner a {
  color: var(--white) !important;
  text-decoration: underline !important;
  font-weight: bold;
}

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

.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 0;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background: var(--white);
  color: var(--secondary-color);
}

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

.form-control.is-invalid {
  border-color: #DC3545 !important;
}

.invalid-feedback {
  color: #DC3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* ===========================
   Alert Styles
   =========================== */
.alert {
  border-radius: 0;
  border: none;
  border-left: 4px solid;
  padding: 1rem 1.5rem;
}

.alert-info {
  background: rgba(33, 150, 243, 0.1);
  border-left-color: #2196F3;
  color: #1976D2;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border-left-color: #4CAF50;
  color: #388E3C;
}

.alert-warning {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #FF9800;
  color: #F57C00;
}

.alert-danger {
  background: rgba(211, 47, 47, 0.1);
  border-left-color: var(--primary-color);
  color: #B71C1C;
}

/* ===========================
   Modal Styles
   =========================== */
.modal-content {
  border-radius: 0;
  border: none;
  background: var(--secondary-color);
  color: var(--white);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

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

.modal-body {
  padding: 2rem;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* ===========================
   Accordion Styles
   =========================== */
.accordion {
  --bs-accordion-border-color: #E0E0E0;
  --bs-accordion-btn-focus-border-color: var(--primary-color);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
}

.accordion-item {
  border: 1px solid #E0E0E0;
  margin-bottom: 1rem;
  border-radius: 0;
}

.accordion-header {
  margin-bottom: 0;
}

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

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

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15);
}

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

.accordion-collapse {
  border-top: 2px solid var(--primary-color);
}

/* ===========================
   Badge Styles
   =========================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

/* ===========================
   List Styles
   =========================== */
.list-unstyled li {
  margin-bottom: 0.5rem;
}

.list-unstyled a {
  color: inherit;
  transition: all var(--transition-speed) ease;
}

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

/* ===========================
   Image Styles
   =========================== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

/* ===========================
   Background Utilities
   =========================== */
.bg-dark {
  background-color: var(--secondary-color) !important;
}

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

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

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

.bi-award-fill,
.bi-shield-check,
.bi-star-fill,
.bi-calendar-check,
.bi-car-front,
.bi-people,
.bi-emoji-smile,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-history,
.bi-tools,
.bi-gear-wide-connected,
.bi-speedometer2,
.bi-box-seam,
.bi-disc,
.bi-lightning-charge,
.bi-clipboard-check,
.bi-send,
.bi-map,
.bi-info-circle-fill,
.bi-info-circle,
.bi-collection,
.bi-gear,
.bi-share,
.bi-cookie,
.bi-person-check,
.bi-link-45deg,
.bi-arrow-repeat,
.bi-envelope,
.bi-chevron-right {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

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

/* ===========================
   Privacy Content Styles
   =========================== */
.privacy-content h2,
.privacy-content h3,
.privacy-content .h5 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--dark-gray);
  line-height: 1.8;
}

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

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

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

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

.pt-5 {
  padding-top: 3rem !important;
}

.pb-4 {
  padding-bottom: 2rem !important;
}

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

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

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

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

.ps-lg-5 {
  padding-left: 3rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

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

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

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

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

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

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

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

/* ===========================
   Display Utilities
   =========================== */
.d-none {
  display: none !important;
}

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

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

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

/* ===========================
   Flexbox Utilities
   =========================== */
.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !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-end {
  justify-content: flex-end !important;
}

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

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

/* ===========================
   Position Utilities
   =========================== */
.position-relative {
  position: relative !important;
}

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

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

.top-0 {
  top: 0 !important;
}

.top-50 {
  top: 50% !important;
}

.start-0 {
  left: 0 !important;
}

.start-50 {
  left: 50% !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

/* ===========================
   Width & Height Utilities
   =========================== */
.w-100 {
  width: 100% !important;
}

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

/* ===========================
   Text Alignment Utilities
   =========================== */
.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

/* ===========================
   Overflow Utilities
   =========================== */
.overflow-hidden {
  overflow: hidden !important;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-video-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .gallery-card {
    height: 250px;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .d-lg-block {
    display: none !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9 {
    width: 100%;
  }
  
  .offset-lg-1 {
    margin-left: 0;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mt-lg-0 {
    margin-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .fs-5 {
    font-size: 0.95rem !important;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
  
  .timeline-marker {
    left: -2.6rem;
  }
  
  .certification-badge {
    width: 100px;
    height: 100px;
  }
  
  .certification-badge .bi {
    font-size: 2rem;
  }
  
  .hexagon-mask {
    width: 150px;
    height: 150px;
  }
  
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-12 {
    width: 100%;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .emergency-banner {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card,
  .shadow,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}

/* ===========================
   Accessibility Improvements
   =========================== */
*:focus {
  outline: 2px dashed var(--primary-color);
  outline-offset: 4px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px dashed var(--primary-color);
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

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

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

/* ===========================
   Selection Styles
   =========================== */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}