/* Architectural Studio - Slate & Terracotta Theme */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --slate-dark: #1a252f;
  --slate-light: #34495E;
  --terracotta-light: #F39C12;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

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

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

html {
  scroll-behavior: smooth;
}

/* ==================== TYPOGRAPHY ==================== */
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  color: var(--primary-color) !important;
}

.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: var(--white) !important;
}

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

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

h1, .h1 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

h3, .h3 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

h4, .h4 {
  color: var(--primary-color) !important;
}

h5, .h5 {
  color: var(--slate-light) !important;
}

h6, .h6 {
  color: var(--slate-light) !important;
  font-weight: 600;
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
  transition: var(--transition);
  z-index: 1000;
  background-color: transparent !important;
}

.navbar.scrolled {
  background-color: rgba(44, 62, 80, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
  background-color: var(--primary-color) !important;
}

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

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

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

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

.sticky-top {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== BUTTONS ==================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:hover::before {
  left: 0;
}

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

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--terracotta-light) !important;
  border-color: var(--terracotta-light) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3) !important;
}

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

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: var(--slate-light) !important;
  border-color: var(--slate-light) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3) !important;
}

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

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: transparent !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

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

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

.card:hover {
  transform: translateY(-5px);
}

.hover-card {
  cursor: pointer;
  position: relative;
}

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

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

.hover-card:hover .card-title,
.hover-card:hover .card-text {
  color: var(--white) !important;
  position: relative;
  z-index: 2;
}

.card-img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-img-overlay {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

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

.card-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-body {
  padding: 2rem;
}

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
  border-bottom: 3px solid var(--secondary-color) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

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

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ==================== PROJECT CARDS ==================== */
.project-item {
  margin-bottom: 2rem;
  transition: var(--transition);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  height: 350px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.project-overlay h4,
.project-overlay h5,
.project-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.project-card:hover .project-overlay h4,
.project-card:hover .project-overlay h5,
.project-card:hover .project-overlay p {
  transform: translateY(0);
}

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

.form-control,
.form-select {
  border: 2px solid #ddd !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  color: var(--text-dark) !important;
  background-color: var(--white) !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.15) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control::placeholder {
  color: #999 !important;
}

.form-check-input {
  border: 2px solid #ddd !important;
  border-radius: 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(230, 126, 34, 0.15) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  font-weight: 500;
}

.needs-validation .invalid-feedback {
  display: none;
  color: #dc3545 !important;
  font-weight: 500;
}

.needs-validation .was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

/* ==================== ALERTS ==================== */
.alert {
  border-radius: 0 !important;
  border: none !important;
  border-left: 4px solid var(--secondary-color) !important;
  background-color: rgba(230, 126, 34, 0.1) !important;
  color: var(--primary-color) !important;
}

.alert-info {
  border-left-color: #3498db !important;
  background-color: rgba(52, 152, 219, 0.1) !important;
}

/* ==================== BADGES ==================== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ==================== TABLES ==================== */
.table {
  color: var(--text-dark) !important;
}

.table thead th {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none !important;
}

.table-hover tbody tr {
  transition: var(--transition);
}

.table-hover tbody tr:hover {
  background-color: rgba(230, 126, 34, 0.05) !important;
}

.table-responsive {
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== ACCORDION ==================== */
.accordion-item {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.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-body {
  background-color: var(--white);
  color: var(--text-dark) !important;
  padding: 1.5rem;
}

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

/* ==================== MODAL ==================== */
.modal-content {
  border-radius: 0 !important;
  border: none !important;
  overflow: hidden;
}

.modal-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--secondary-color) !important;
  padding: 1.5rem;
}

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

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

.modal-xl {
  max-width: 90%;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex-grow-1 {
  flex-grow: 1 !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;
}

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

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

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

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

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

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

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

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-telephone,
.bi-envelope,
.bi-geo-alt {
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
}

.bi-collection,
.bi-person-badge,
.bi-file-earmark-text,
.bi-globe,
.bi-chat-dots,
.bi-gear,
.bi-share,
.bi-tools,
.bi-cloud,
.bi-building,
.bi-shield-check,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-pause-circle,
.bi-shield-lock,
.bi-check-circle-fill,
.bi-clock-history,
.bi-question-circle {
  font-size: 2rem;
  color: var(--secondary-color) !important;
}

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

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.slide-down {
  animation: slideDown 0.6s ease-out forwards;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(230, 126, 34, 0.8));
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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="%23ffffff" 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;
}

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

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

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

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

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

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

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

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

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

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

.mb-4 {
  margin-bottom: 2rem !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin-top: 2rem;
  padding-top: 2rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }

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

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

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

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

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

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

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

  .modal-xl {
    max-width: 95%;
  }

  .project-card {
    height: 300px;
  }

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

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

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

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

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

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

  .flex-lg-row-reverse {
    flex-direction: column !important;
  }

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

  .mb-lg-0 {
    margin-bottom: 1.5rem !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;
  }

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

  .card-body {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

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

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

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

  .project-card {
    height: 250px;
  }

  .col-md-4,
  .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

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

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

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

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

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

  .card-body {
    padding: 1rem;
  }

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

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

  .project-card {
    height: 200px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-color) !important;
  transform: translateY(-5px);
}

/* ==================== LOADING ANIMATION ==================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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

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

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--secondary-color) !important;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .scroll-to-top,
  footer {
    display: none !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }

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