/* Architectural Studio - Midnight Indigo & Amber Theme */

/* ========== ROOT VARIABLES ========== */
:root {
  --primary-color: #1a237e;
  --primary-dark: #0d1654;
  --primary-light: #534bae;
  --secondary-color: #ff6f00;
  --secondary-dark: #c43e00;
  --secondary-light: #ffa040;
  --midnight-indigo: #1a237e;
  --amber: #ff6f00;
  --text-light: #ffffff;
  --text-dark: #212529;
  --bg-light: #f8f9fa;
  --bg-dark: #0a0e3d;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(26, 35, 126, 0.1);
  --shadow-md: 0 4px 8px rgba(26, 35, 126, 0.15);
  --shadow-lg: 0 8px 16px rgba(26, 35, 126, 0.2);
  --shadow-xl: 0 16px 32px rgba(26, 35, 126, 0.25);
}

/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  z-index: 1030;
}

.navbar.fixed-top {
  padding: 1rem 0;
}

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

.navbar-dark .navbar-brand: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 {
  align-items: center;
}

.navbar-nav .nav-item {
  margin: 0 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #283593 100%);
  position: relative;
  padding-top: 100px;
  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="%23ff6f00" 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;
  animation: backgroundScroll 60s linear infinite;
}

@keyframes backgroundScroll {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

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

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== BUTTONS ========== */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-light) !important;
  border: none !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light) !important;
}

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

.btn-outline-light:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

/* ========== BADGE STYLES ========== */
.badge {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-light) !important;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl) !important;
  border-color: var(--secondary-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .bi {
  font-size: 3rem;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

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

.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

/* ========== TEAM CARDS ========== */
.team-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.team-overlay {
  background: linear-gradient(to top, rgba(26, 35, 126, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

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

.team-card img {
  transition: transform 0.5s ease;
}

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

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

/* ========== TIMELINE ========== */
.timeline-wrapper {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--secondary-color) !important;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:hover::before {
  animation: pulse 1s ease infinite;
}

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

.timeline-date {
  color: var(--secondary-color) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
  position: relative;
}

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

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

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

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

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

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

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #ffffff !important;
}

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

.bg-success {
  background-color: #198754 !important;
}

/* ========== DISPLAY HEADINGS ========== */
.display-2 {
  font-size: calc(1.575rem + 3.9vw);
  font-weight: 300;
  line-height: 1.2;
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-5 {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 300;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-6 {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 300;
  line-height: 1.2;
}

.h2, h2 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

.h3, h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  font-weight: 600;
}

.h4, h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.h5, h5 {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
}

.text-white {
  color: #ffffff !important;
}

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

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

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

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

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

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

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

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

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

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

/* ========== FORMS ========== */
.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff !important;
  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: #ffffff !important;
  color: var(--text-dark) !important;
}

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

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

.valid-feedback {
  display: none;
  color: #198754 !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;
}

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

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

/* ========== CARD STYLES ========== */
.card {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-bottom: none;
  padding: 1.25rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
}

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

.border {
  border: 1px solid #dee2e6 !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

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

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

.alert-success {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
}

/* ========== ACCORDION ========== */
.accordion-item {
  border: 1px solid rgba(26, 35, 126, 0.125);
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !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);
  border-color: var(--secondary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a237e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
}

.accordion-collapse {
  border: none;
}

/* ========== EMERGENCY BANNER ========== */
.emergency-banner {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: var(--text-light) !important;
  padding: 1rem 0;
  font-weight: 600;
}

.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}

/* ========== NAVIGATION & LIST STYLES ========== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

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

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

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

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

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

.sticky-lg-top {
  position: sticky;
  top: 100px;
  z-index: 1020;
}

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

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

.min-vh-100 {
  min-height: 100vh !important;
}

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

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

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

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

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

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

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

.flex-shrink-0 {
  flex-shrink: 0 !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-2 {
  gap: 0.5rem !important;
}

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

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

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

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

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

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

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

.ms-2 {
  margin-left: 0.5rem !important;
}

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

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

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

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

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

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

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

.p-2 {
  padding: 0.5rem !important;
}

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

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

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !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-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

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

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

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

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

.opacity-25 {
  opacity: 0.25 !important;
}

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

/* ========== FONT UTILITIES ========== */
.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

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

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

.small {
  font-size: 0.875rem;
}

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

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

.text-md-start {
  text-align: left !important;
}

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

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

/* ========== BOOTSTRAP ICONS ========== */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

.bi-wrench-adjustable,
.bi-wrench-adjustable-circle,
.bi-patch-check-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-send-fill,
.bi-check-circle-fill,
.bi-info-circle-fill,
.bi-check2,
.bi-exclamation-triangle-fill,
.bi-cpu,
.bi-arrow-right,
.bi-speedometer2,
.bi-gear-wide-connected,
.bi-star,
.bi-disc,
.bi-arrows-move,
.bi-calendar-check,
.bi-circle-fill,
.bi-exclamation-triangle,
.bi-clipboard-check,
.bi-x-circle-fill,
.bi-clock,
.bi-hdd,
.bi-cpu-fill,
.bi-activity,
.bi-graph-up,
.bi-lightning-charge-fill,
.bi-shield-check {
  font-size: 1.5rem;
  color: inherit;
}

/* ========== RESPONSIVE TYPOGRAPHY ========== */
@media (min-width: 1200px) {
  .display-2 { font-size: 4.5rem; }
  .display-4 { font-size: 3.5rem; }
  .display-5 { font-size: 3rem; }
  .display-6 { font-size: 2.5rem; }
}

/* ========== COLLAPSE ========== */
.collapse:not(.show) {
  display: none;
}

.collapse.show {
  display: block;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 35, 126, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .hero-section {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-section .display-2 {
    font-size: 2.5rem;
  }

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

  .sticky-lg-top {
    position: relative;
    top: 0;
  }

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

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

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

  section {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .display-5 {
    font-size: 1.5rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
  }

  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }

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

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

  section {
    padding: 40px 0;
  }

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

@media (min-width: 992px) {
  .text-lg-end {
    text-align: right !important;
  }

  .col-lg-1 { width: 8.33333333%; }
  .col-lg-2 { width: 16.66666667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.33333333%; }
  .col-lg-5 { width: 41.66666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.33333333%; }
  .col-lg-8 { width: 66.66666667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.33333333%; }
  .offset-lg-1 { margin-left: 8.33333333%; }
}

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.33333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.66666667%; }
}

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

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

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

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

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

/* ========== CONTAINER & GRID ========== */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col,
.col-6,
.col-12,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========== PRINT STYLES ========== */
@media print {
  .navbar,
  .btn,
  .emergency-banner,
  .fixed-bottom,
  .scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ========== ACCESSIBILITY ========== */
.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;
}

/* ========== FOCUS STATES ========== */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* ========== LOADING STATES ========== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== NAVBAR EXPAND UTILITIES ========== */
.navbar-expand-lg .navbar-nav {
  flex-direction: row;
}

@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

/* ========== BOTTOM UTILITIES ========== */
.bottom-0 {
  bottom: 0 !important;
}

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

/* ========== FINAL TWEAKS ========== */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

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

/* ========== END OF STYLES ========== */