/* Midnight Blue & Amber Forge - Architectural Studio Theme */

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
  --primary-color: #1a237e;
  --secondary-color: #ff6f00;
  --dark-blue: #0d1642;
  --light-blue: #283593;
  --amber-light: #ffa726;
  --amber-dark: #e65100;
  --text-light: #ffffff;
  --text-dark: #212529;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
}

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

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

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

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(255, 111, 0, 0.1);
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
  overflow: hidden;
}

.hero-video-container {
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.3;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(13, 22, 66, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 6rem 0;
}

.hero-content .display-1 {
  font-weight: 800;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero-content .display-5 {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.25rem;
  font-weight: 400;
  animation: fadeInUp 1.4s ease;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  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 {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(255, 111, 0, 0.3);
}

.btn-lg:hover {
  background: var(--amber-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.4);
}

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

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

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

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

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

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

/* ============================================
   SECTIONS
   ============================================ */
.py-5 {
  padding: 4rem 0;
}

.py-4 {
  padding: 3rem 0;
}

.my-5 {
  margin: 4rem 0;
}

.my-3 {
  margin: 2rem 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border: none !important;
  border-radius: 15px;
  transition: var(--transition);
  background: var(--text-light);
  overflow: hidden;
  height: 100%;
}

.card.border-0 {
  box-shadow: var(--shadow);
}

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

.card-body {
  padding: 2rem;
}

.card-body.p-4 {
  padding: 2.5rem !important;
}

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

.card-text {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%) !important;
  color: var(--text-light) !important;
  border: none;
  padding: 1.5rem;
  font-weight: 600;
}

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

.bi-laptop,
.bi-speedometer2,
.bi-tools,
.bi-disc,
.bi-gear-wide-connected,
.bi-calendar-check,
.bi-award,
.bi-wrench-adjustable-circle,
.bi-people,
.bi-cpu,
.bi-gear-fill,
.bi-info-circle,
.bi-arrow-repeat,
.bi-shield-check,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-clock-history,
.bi-globe,
.bi-file-earmark-text,
.bi-check-circle,
.bi-wrench-adjustable,
.bi-clock,
.bi-file-text,
.bi-chat-dots,
.bi-wrench,
.bi-send-fill,
.bi-check-circle-fill,
.bi-info-circle-fill,
.bi-chevron-right {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

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

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

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

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

.bi.fs-6 {
  font-size: 1rem !important;
}

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.2;
}

.display-3 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
}

.display-4 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
}

.display-6 {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 600;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
}

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

.h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

.h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

.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;
}

.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;
}

.mt-auto {
  margin-top: auto !important;
}

.mt-lg-0 {
  margin-top: 0 !important;
}

/* ============================================
   TEXT COLORS
   ============================================ */
.text-white {
  color: var(--text-light) !important;
}

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

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

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-success {
  color: #28a745 !important;
}

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg-light {
  background-color: var(--bg-light) !important;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-inner {
  border-radius: 15px;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  opacity: 0.5;
  transition: var(--transition);
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--amber-dark);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

.card-img-top {
  border-radius: 15px 15px 0 0;
  height: 250px;
  object-fit: cover;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--text-light);
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 0.25) !important;
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

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

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

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

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

/* ============================================
   ALERTS
   ============================================ */
.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: none;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: var(--text-light) !important;
}

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

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  border-radius: 15px;
  overflow: hidden;
}

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

.accordion-header {
  border-radius: 10px;
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%) !important;
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-light) 100%) !important;
  color: var(--text-light) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 0.25) !important;
  border: none;
}

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

.accordion-button.collapsed {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
}

.accordion-button.collapsed::after {
  filter: none;
}

.accordion-body {
  padding: 1.5rem;
  background: var(--text-light);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

.accordion-collapse {
  border: none;
}

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

.service-card {
  perspective: 1000px;
  height: 400px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.service-card-front {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
  color: var(--text-light);
}

.service-card-back {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--amber-light) 100%);
  color: var(--text-light);
  transform: rotateY(180deg);
}

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

.service-card-front .service-icon {
  color: var(--secondary-color);
}

.service-card-back .service-icon {
  color: var(--text-light);
}

.service-card-front .h4,
.service-card-back .h5 {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
}

.service-card-back .small {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge.fs-6 {
  font-size: 0.875rem !important;
}

/* ============================================
   TABS
   ============================================ */
.nav-tabs {
  border: none;
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  background: transparent;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-tabs .nav-link:hover {
  background: var(--primary-color);
  color: var(--text-light) !important;
  border-color: var(--primary-color);
}

.nav-tabs .nav-link.active {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--secondary-color) !important;
}

.tab-content {
  padding: 2rem 0;
}

.tab-pane {
  animation: fadeIn 0.5s ease;
}

/* ============================================
   BORDERS
   ============================================ */
.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

footer a:hover {
  color: var(--secondary-color) !important;
  text-decoration: none;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.position-relative {
  position: relative !important;
}

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

.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

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

.d-flex {
  display: flex !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-between {
  justify-content: space-between !important;
}

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

.text-lg-end {
  text-align: left !important;
}

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.pe-lg-4 {
  padding-right: 1.5rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

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

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

.g-0 {
  gap: 0 !important;
}

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

.g-4 {
  gap: 1.5rem !important;
}

.g-5 {
  gap: 3rem !important;
}

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

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

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

.end-0 {
  right: 0 !important;
}

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

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

.opacity-75 {
  opacity: 0.75 !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

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

.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

.animate-fadeIn {
  animation: fadeIn 1s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease;
}

.animate-slideInLeft {
  animation: slideInLeft 1s ease;
}

.animate-slideInRight {
  animation: slideInRight 1s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-4 {
    padding-right: 1.5rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  .navbar-nav {
    background: rgba(13, 22, 66, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-content .display-1 {
    font-size: 2.5rem;
  }
  
  .hero-content .display-5 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    height: 350px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .display-1 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.g-3 > * {
  padding-right: 1rem;
  padding-left: 1rem;
}

.g-4 > * {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.g-5 > * {
  padding-right: 3rem;
  padding-left: 3rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 111, 0, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: var(--text-light) !important;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  .carousel,
  footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}