/* =========================================
   Nordic Stone & Amber Architecture Studio
   Modern CSS with Bootstrap 5 Overrides
   ========================================= */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E8B04B;
  --dark-stone: #1a252f;
  --light-stone: #f5f5f0;
  --amber-light: #f4c56d;
  --amber-dark: #d69a35;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --transition-speed: 0.3s;
  --shadow-soft: 0 10px 40px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 15px 50px rgba(44, 62, 80, 0.15);
  --shadow-strong: 0 20px 60px rgba(44, 62, 80, 0.25);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  background-color: var(--light-stone) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3, .text-white .display-4, .text-white .display-5, .text-white .display-6 {
  color: #ffffff !important;
}

.text-light, .text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6 {
  color: var(--light-stone) !important;
}

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--dark-stone) 0%, var(--primary-color) 100%);
}

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

.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 37, 47, 0.85) 0%, rgba(44, 62, 80, 0.75) 100%);
  z-index: 1;
}

.object-fit-cover {
  object-fit: cover;
  opacity: 0.3;
}

.hero-wrapper .container-fluid,
.hero-wrapper .position-absolute.top-50 {
  z-index: 10;
}

/* ===== NAVIGATION ===== */
.navbar {
  transition: all var(--transition-speed) ease;
  background-color: transparent !important;
}

.navbar.scrolled,
.navbar-dark {
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow-soft);
}

.sticky-top {
  top: 0;
  z-index: 1020;
}

.position-sticky {
  position: sticky;
}

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

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

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

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

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-decoration: none !important;
}

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

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

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

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

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

.btn-primary,
.btn.btn-lg:not(.btn-outline-dark):not(.btn-outline-light) {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(232, 176, 75, 0.3);
}

.btn-primary:hover,
.btn.btn-lg:not(.btn-outline-dark):not(.btn-outline-light):hover {
  background-color: var(--amber-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(232, 176, 75, 0.4);
}

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

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

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

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

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

.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem !important;
}

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-light);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

.scroll-indicator:hover {
  border-color: var(--secondary-color);
}

@keyframes scrollDown {
  0%, 100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 30px;
    opacity: 0.3;
  }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
}

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

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

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

.mt-2 { margin-top: 0.75rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mt-5 { margin-top: 4rem !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 0.75rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2.5rem !important; }
.mb-5 { margin-bottom: 4rem !important; }
.mb-0 { margin-bottom: 0 !important; }

.ms-2 { margin-left: 0.75rem !important; }
.ms-4 { margin-left: 2.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-2 { margin-right: 0.75rem !important; }
.me-3 { margin-right: 1.5rem !important; }
.me-4 { margin-right: 2.5rem !important; }

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

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

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

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

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

.shadow-sm {
  box-shadow: 0 5px 20px rgba(44, 62, 80, 0.08) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-strong) !important;
  border-radius: 1rem;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.shadow-lg:hover {
  box-shadow: 0 25px 70px rgba(44, 62, 80, 0.3) !important;
  transform: translateY(-5px);
}

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

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff !important;
  height: 100%;
}

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

.card-body {
  padding: 2rem !important;
}

/* ===== PORTFOLIO ITEMS ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  height: 100%;
  transition: all var(--transition-speed) ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(232, 176, 75, 0.8) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item img {
  transition: all 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .position-absolute {
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
}

.portfolio-item:hover .position-absolute {
  opacity: 1;
  transform: translateY(0);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50px;
  width: 2px;
  height: calc(100% - 50px);
  background-color: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item .rounded-circle {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  box-shadow: 0 0 0 10px var(--light-stone), 0 0 0 12px var(--secondary-color);
}

/* ===== ACCORDION ===== */
.accordion {
  border-radius: 1rem;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  border-bottom: 1px solid rgba(44, 62, 80, 0.1) !important;
  background-color: transparent !important;
}

.accordion-item:last-child {
  border-bottom: none !important;
}

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

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.5rem !important;
  font-size: 1.1rem !important;
  border: none !important;
  box-shadow: none !important;
}

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

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232C3E50'%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") !important;
}

.accordion-button:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(232, 176, 75, 0.25) !important;
}

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

.accordion-collapse {
  border: none !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(44, 62, 80, 0.2) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  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.2rem rgba(232, 176, 75, 0.25) !important;
  background-color: #ffffff !important;
}

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

.form-check-input {
  width: 1.5rem !important;
  height: 1.5rem !important;
  border: 2px solid var(--primary-color) !important;
  margin-top: 0 !important;
}

.form-check-input:checked {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 176, 75, 0.25) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-dark) !important;
}

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

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

.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

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

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

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

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

.fw-medium {
  font-weight: 500 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 300;
  line-height: 1.8;
}

.small {
  font-size: 0.875rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.justify-content-end {
  justify-content: flex-end !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.gap-4 {
  gap: 2rem !important;
}

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

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

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

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

/* ===== RESPONSIVE GRID ===== */
.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 1rem);
  padding-left: var(--bs-gutter-x, 1rem);
  margin-right: auto;
  margin-left: auto;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
  margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

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

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

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

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

.col-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

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

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

.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease forwards;
}

/* ===== MEDIUM DEVICES (tablets, 768px and up) ===== */
@media (min-width: 768px) {
  .d-md-inline {
    display: inline !important;
  }

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

  .flex-md-row {
    flex-direction: row !important;
  }

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

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

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

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

  .col-md-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .order-md-1 {
    order: 1 !important;
  }

  .order-md-2 {
    order: 2 !important;
  }

  .order-md-3 {
    order: 3 !important;
  }

  .timeline-item::before {
    left: 50%;
  }
}

/* ===== LARGE DEVICES (desktops, 992px and up) ===== */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

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

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

  .gap-lg-4 {
    gap: 2rem !important;
  }

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

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

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

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

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

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

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

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

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

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

  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }

  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

  .offset-lg-1 {
    margin-left: 8.33333333%;
  }

  .offset-lg-2 {
    margin-left: 16.66666667%;
  }

  .order-lg-1 {
    order: 1 !important;
  }

  .order-lg-2 {
    order: 2 !important;
  }
}

/* ===== EXTRA LARGE DEVICES (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== EXTRA EXTRA LARGE DEVICES (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===== MOBILE SPECIFIC (max-width: 767px) ===== */
@media (max-width: 767px) {
  .display-2 {
    font-size: 2.5rem !important;
  }

  .display-3 {
    font-size: 2.2rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.8rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .h2, h2 {
    font-size: 1.8rem !important;
  }

  .h4, h4 {
    font-size: 1.3rem !important;
  }

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

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

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

  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }

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

  .timeline-item::before {
    left: 30px;
  }

  .timeline-item .col-md-2 {
    margin-bottom: 1rem;
  }

  .order-1 {
    order: 1 !important;
  }

  .order-2 {
    order: 2 !important;
  }
}

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

  body {
    background-color: white !important;
    color: black !important;
  }
}

/* ===== 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 styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

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

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

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

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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