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

/* ===========================
   ROOT VARIABLES & RESET
   =========================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-primary: #1a252f;
  --light-primary: #34495e;
  --dark-secondary: #d35400;
  --light-secondary: #f39c12;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

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

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(44, 62, 80, 0.98) !important;
}

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

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

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

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

.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(--secondary-color) !important;
}

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

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

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

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 0.3;
}

.geometric-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(230, 126, 34, 0.1) 30%, rgba(230, 126, 34, 0.1) 70%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(44, 62, 80, 0.2) 30%, rgba(44, 62, 80, 0.2) 70%, transparent 70%);
  background-size: 100px 100px;
  z-index: 1;
}

.float-shape {
  position: absolute;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.float-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.float-shape:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.rotate-shape {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(230, 126, 34, 0.3);
  animation: rotate 20s linear infinite;
}

.rotate-shape:nth-child(4) {
  top: 15%;
  right: 20%;
  border-radius: 20%;
}

.rotate-shape:nth-child(5) {
  bottom: 25%;
  right: 10%;
  border-radius: 30%;
}

.pulse-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.pulse-shape:nth-child(6) {
  top: 40%;
  left: 30%;
}

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

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.hero-section .container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-section .lead {
  color: var(--text-light) !important;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease;
}

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

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

@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 {
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

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

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

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

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

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

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

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

/* ===========================
   SECTIONS
   =========================== */
section {
  padding: 5rem 0;
  position: relative;
}

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

.bg-dark {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  color: var(--text-light) !important;
}

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

/* Section Headings */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  position: relative;
}

.text-uppercase {
  letter-spacing: 2px;
}

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

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

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

/* ===========================
   CARDS
   =========================== */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition) !important;
  overflow: hidden;
  background: var(--white);
}

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #6c757d;
  line-height: 1.8;
}

.card-img-top {
  transition: var(--transition);
}

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

/* Portfolio Card */
.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 126, 34, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover::after {
  opacity: 1;
}

.portfolio-item {
  margin-bottom: 2rem;
  transition: var(--transition);
}

/* Milestone Card */
.milestone-card {
  background: var(--white);
  border-left: 4px solid var(--secondary-color) !important;
  transition: var(--transition);
}

.milestone-card:hover {
  border-left-width: 8px !important;
  transform: translateX(10px);
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--secondary-color);
}

.timeline-container .milestone-card {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-container .milestone-card::before {
  content: '';
  position: absolute;
  left: -3.75rem;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary-color);
}

/* ===========================
   BADGES
   =========================== */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

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

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

.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

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

.form-control.is-valid {
  border-color: #28a745 !important;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===========================
   ACCORDION
   =========================== */
.accordion {
  --bs-accordion-border-color: #dee2e6;
}

.accordion-item {
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

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

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

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

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

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

.accordion-body {
  padding: 1.5rem;
  background-color: #f8f9fa;
  color: var(--text-dark) !important;
}

/* ===========================
   MODAL
   =========================== */
.modal-content {
  border-radius: 0 !important;
  border: none !important;
  background-color: var(--white) !important;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%) !important;
  color: var(--white) !important;
  border-bottom: none !important;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
  color: var(--text-dark) !important;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.75 !important;
}

/* ===========================
   CAROUSEL
   =========================== */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(44, 62, 80, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 0;
}

/* ===========================
   PORTFOLIO FILTER
   =========================== */
.filter-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  transition: var(--transition) !important;
  border-radius: 0 !important;
}

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

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

.bi-building,
.bi-hammer,
.bi-recycle,
.bi-people,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-info-circle,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-check-circle-fill,
.bi-trophy-fill,
.bi-check2,
.bi-graph-up-arrow,
.bi-sun-fill,
.bi-brightness-high-fill,
.bi-droplet-fill,
.bi-water,
.bi-tree-fill,
.bi-shield-check,
.bi-building-fill,
.bi-houses-fill,
.bi-lightning-charge-fill,
.bi-award-fill,
.bi-calendar-check,
.bi-graph-up,
.bi-chat-dots,
.bi-arrow-right {
  color: var(--secondary-color);
  transition: var(--transition);
}

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

/* Icon Circle */
.rounded-circle {
  border-radius: 50% !important;
}

.d-inline-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

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

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

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

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

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

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

footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: var(--white) !important;
}

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

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

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer .border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

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

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

/* ===========================
   SPACING
   =========================== */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !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; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.m-0 { margin: 0 !important; }
.m-3 { margin: 1rem !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; }

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

.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-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-auto { margin-left: auto !important; }

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

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

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

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

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

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

/* Scroll Animation Classes */
.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);
}

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

/* Tablets and below */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav {
    align-items: flex-start !important;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    width: 100%;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .display-1 { font-size: 3rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  .display-6 { font-size: 1.25rem; }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
  
  .timeline-container .milestone-card::before {
    left: -2.75rem;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-section .display-2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .display-1 { font-size: 2.5rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  .display-6 { font-size: 1.1rem; }
  
  .btn {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }
  
  .col-md-4,
  .col-md-6,
  .col-md-8,
  .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-12 {
    margin-bottom: 1.5rem;
  }
  
  .order-md-1,
  .order-md-2 {
    order: 0 !important;
  }
  
  .filter-btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .timeline-container {
    padding-left: 1.5rem;
  }
  
  .timeline-container .milestone-card::before {
    left: -2.25rem;
    width: 15px;
    height: 15px;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-lg-2,
  footer .col-lg-3,
  footer .col-lg-6 {
    margin-bottom: 2rem;
  }
}

/* Small mobile devices */
@media (max-width: 575px) {
  .hero-section .display-2 {
    font-size: 1.75rem;
  }
  
  .display-1 { font-size: 2rem; }
  .display-3 { font-size: 1.5rem; }
  .display-4 { font-size: 1.35rem; }
  .display-5 { font-size: 1.15rem; }
  
  .fs-1 { font-size: 2rem !important; }
  .fs-3 { font-size: 1.25rem !important; }
  .fs-4 { font-size: 1.1rem !important; }
  .fs-5 { font-size: 1rem !important; }
  
  .g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .g-5 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .navbar,
  .btn,
  .scroll-indicator,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card,
  section {
    page-break-inside: avoid;
  }
}

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

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

button:focus,
.btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border-width: 3px !important;
  }
  
  .card {
    border: 2px solid var(--primary-color) !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-secondary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--primary-color);
}