/* Arctic Professional Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-light: #D8DEE9;
  --accent-dark: #4C566A;
  --text-light: #ECEFF4;
  --text-dark: #2E3440;
  --background-light: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(46, 52, 64, 0.08);
  --shadow-md: 0 4px 16px rgba(46, 52, 64, 0.12);
  --shadow-lg: 0 8px 32px rgba(46, 52, 64, 0.16);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark) !important;
  background-color: var(--background-light) !important;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
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;
  line-height: 1.2 !important;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.display-3 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.display-4 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.display-6 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 400 !important;
  color: var(--accent-dark) !important;
  line-height: 1.7 !important;
}

.text-muted {
  color: var(--accent-dark) !important;
  opacity: 0.8;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(46, 52, 64, 0.98) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0 !important;
  transition: var(--transition-base);
  z-index: 1050;
}

.navbar.navbar-dark {
  background: rgba(46, 52, 64, 0.98) !important;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: var(--shadow-md);
  background: rgba(46, 52, 64, 0.99) !important;
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--background-light) !important;
  letter-spacing: -0.02em;
  transition: var(--transition-base);
  text-transform: uppercase;
}

.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 !important;
  transition: var(--transition-base);
}

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

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: var(--accent-light) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-base);
  letter-spacing: 0.02em;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 4px !important;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

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

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.8rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6FB0C0 !important;
  color: var(--primary-color) !important;
  border-color: #6FB0C0 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 192, 208, 0.4) !important;
}

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

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
  background-color: var(--background-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--background-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: var(--accent-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 192, 208, 0.3) !important;
}

.btn-close {
  filter: brightness(1.2);
  opacity: 0.8;
}

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

/* ===== CAROUSEL / HERO SECTION ===== */
.carousel {
  height: 100vh;
  min-height: 600px;
  position: relative;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.8) 0%, rgba(76, 86, 106, 0.6) 100%);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.85) contrast(1.1);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-caption {
  z-index: 2;
  text-align: center;
}

.carousel-caption .display-2 {
  color: var(--background-light) !important;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
  font-weight: 800 !important;
}

.carousel-caption .lead {
  color: var(--accent-light) !important;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.carousel-caption .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.bi-chevron-down {
  font-size: 2rem;
  color: var(--background-light) !important;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition-base);
}

.bi-chevron-down:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  background: var(--background-light) !important;
}

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

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

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

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

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

.service-card {
  transition: var(--transition-smooth);
  border: 1px solid rgba(46, 52, 64, 0.08) !important;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--secondary-color) !important;
  background: linear-gradient(135deg, rgba(136, 192, 208, 0.05) 0%, rgba(236, 239, 244, 0.05) 100%) !important;
}

.service-card .bi {
  color: var(--secondary-color) !important;
  transition: var(--transition-base);
}

.service-card:hover .bi {
  transform: scale(1.15) rotate(5deg);
}

/* ===== TEAM CARDS ===== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
  cursor: pointer;
}

.team-card img {
  transition: var(--transition-smooth);
  filter: grayscale(20%);
}

.team-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.7) 50%, transparent 100%);
  opacity: 1;
  transition: var(--transition-base);
}

.team-card:hover .team-overlay {
  background: linear-gradient(to top, rgba(46, 52, 64, 0.98) 0%, rgba(46, 52, 64, 0.85) 70%, rgba(46, 52, 64, 0.3) 100%);
}

.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  transform: translateY(0);
  transition: var(--transition-base);
}

.team-info h5,
.team-info h6 {
  color: var(--background-light) !important;
}

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

/* ===== PORTFOLIO / PROJECT ITEMS ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.85) 0%, rgba(136, 192, 208, 0.65) 100%);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 1;
}

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

.portfolio-item img {
  transition: var(--transition-smooth);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--accent-light) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 50px !important;
  transition: var(--transition-base);
  font-weight: 600 !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 192, 208, 0.3) !important;
}

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

.form-control,
.form-select {
  border: 2px solid var(--accent-light) !important;
  border-radius: 6px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transition: var(--transition-base);
  background: var(--background-light) !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(136, 192, 208, 0.15) !important;
  background: var(--background-light) !important;
}

.form-control::placeholder {
  color: var(--accent-dark) !important;
  opacity: 0.6;
}

.form-check-input {
  border: 2px solid var(--accent-light) !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.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.25rem rgba(136, 192, 208, 0.15) !important;
}

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

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

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

/* ===== ACCORDION ===== */
.accordion {
  --bs-accordion-border-color: rgba(46, 52, 64, 0.1);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.15);
}

.accordion-item {
  border: 1px solid rgba(46, 52, 64, 0.1) !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--background-light) !important;
}

.accordion-button {
  background: var(--background-light) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.05rem !important;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(136, 192, 208, 0.1) 0%, rgba(236, 239, 244, 0.1) 100%) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.15) !important;
  border-color: var(--secondary-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='%232E3440'%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:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2388C0D0'%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-body {
  padding: 1.5rem !important;
  color: var(--text-dark) !important;
  line-height: 1.7;
  background: var(--background-light) !important;
}

/* ===== MODAL ===== */
.modal-content {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
  background: var(--background-light) !important;
}

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

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

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

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

.modal .btn-close {
  filter: brightness(2) invert(1);
}

/* ===== BACKGROUNDS ===== */
.bg-light {
  background-color: #F5F7FA !important;
}

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

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

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

.bi-lightbulb,
.bi-tree,
.bi-people,
.bi-award,
.bi-trophy-fill,
.bi-chat-dots-fill,
.bi-building,
.bi-geo-alt,
.bi-calendar-check,
.bi-telephone,
.bi-envelope,
.bi-house-door,
.bi-check2,
.bi-map,
.bi-grid-3x3,
.bi-clock-history,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-arrow-right {
  transition: var(--transition-base);
}

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

/* ===== UTILITY CLASSES ===== */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

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

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

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

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

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

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

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

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

.border-top {
  border-top: 1px solid rgba(46, 52, 64, 0.1) !important;
}

.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
}

/* ===== SPACING ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ms-2 {
  margin-right: 1rem !important;
}

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

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

img {
  vertical-align: middle;
}

/* ===== STICKY ELEMENTS ===== */
.sticky-top {
  position: sticky;
  top: 100px;
  z-index: 1020;
}

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

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

/* ===== LIST STYLES ===== */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  margin-bottom: 0.75rem;
  transition: var(--transition-base);
}

.list-unstyled li:hover {
  transform: translateX(5px);
}

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
}

.list-unstyled a:hover {
  color: var(--secondary-color) !important;
}

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== SECTION STYLES ===== */
section {
  position: relative;
  overflow: hidden;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-color) !important;
  color: var(--accent-light) !important;
}

footer h5,
footer h6 {
  color: var(--background-light) !important;
}

footer a {
  color: var(--accent-light) !important;
  transition: var(--transition-base);
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(3px);
}

footer .bi {
  color: var(--secondary-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 52, 64, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .navbar-nav {
    gap: 0.5rem !important;
  }

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

  .carousel {
    height: 70vh;
    min-height: 500px;
  }

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

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

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

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

  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
  }

  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }

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

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

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

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

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .carousel {
    height: 60vh;
    min-height: 450px;
  }

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

  .carousel-caption .lead {
    font-size: 1rem !important;
  }

  .btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.9rem !important;
  }

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

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

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

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

  .modal-body {
    padding: 1.5rem !important;
  }

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

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 1.75rem !important;
  }

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

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

  .carousel {
    height: 50vh;
    min-height: 400px;
  }

  .btn.me-3 {
    margin-right: 0.5rem !important;
    margin-bottom: 0.75rem;
  }

  h1, .h1 {
    font-size: 1.75rem !important;
  }

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

  h3, .h3 {
    font-size: 1.35rem !important;
  }

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

  h5, .h5 {
    font-size: 1.1rem !important;
  }

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

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .carousel,
  footer {
    display: none !important;
  }

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

  a {
    text-decoration: underline !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 6px;
  transition: var(--transition-base);
}

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

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

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

/* ===== LOADING SPINNER ===== */
.spinner {
  border: 3px solid var(--accent-light);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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