/* Architectural Studio - Slate & Frost Theme CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E8F4F8;
  --accent-color: #34495E;
  --light-gray: #BDC3C7;
  --dark-gray: #7F8C8D;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --frost-gradient: linear-gradient(135deg, #E8F4F8 0%, #FFFFFF 100%);
  --slate-gradient: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --transition-base: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 8px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 16px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 12px 24px rgba(44, 62, 80, 0.25);
}

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

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

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: 600;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
}

.display-1 { font-size: clamp(2.5rem, 8vw, 5rem) !important; }
.display-3 { font-size: clamp(2rem, 6vw, 4rem) !important; }
.display-4 { font-size: clamp(1.75rem, 5vw, 3rem) !important; }
.display-5 { font-size: clamp(1.5rem, 4vw, 2.5rem) !important; }
.display-6 { font-size: clamp(1.25rem, 3vw, 2rem) !important; }

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dark-gray) !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; }

.text-white { color: var(--white) !important; }
.text-muted { color: var(--dark-gray) !important; }
.text-secondary { color: var(--light-gray) !important; }

.text-uppercase { letter-spacing: 2px; }
.fst-italic { font-style: italic !important; }

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--slate-gradient) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

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

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

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

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

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

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(232, 244, 248, 0.1) !important;
  border-radius: 4px;
}

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

.navbar-collapse {
  transition: var(--transition-base);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hero-section {
  min-height: 100vh;
  background: var(--slate-gradient);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23E8F4F8" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.3;
  animation: bgScroll 20s linear infinite;
}

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

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

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

/* ===== SPACING UTILITIES ===== */
.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-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

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

.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !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-auto { margin-left: auto !important; }

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

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

.container {
  max-width: 1200px;
}

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

.g-0 { gap: 0 !important; }
.g-3 > * { padding: 0.75rem; }
.g-4 > * { padding: 1rem; }
.g-5 > * { padding: 1.5rem; }

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

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

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

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

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

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

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

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

/* ===== CARDS ===== */
.card {
  border-radius: 8px;
  transition: var(--transition-base);
  border: 1px solid rgba(44, 62, 80, 0.1);
  background-color: var(--white) !important;
  overflow: hidden;
}

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

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--dark-gray) !important;
  line-height: 1.6;
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-base);
}

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

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.portfolio-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%;
}

.portfolio-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--slate-gradient);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.95;
}

.portfolio-overlay h4,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition-base);
  opacity: 0;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h4 {
  transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
  transition-delay: 0.2s;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0.25rem;
}

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

/* ===== BADGES ===== */
.badge {
  padding: 0.35em 0.65em;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--light-gray);
}

.form-check {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid var(--light-gray);
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.15) !important;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--dark-gray);
  transition: var(--transition-base);
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--primary-color) !important;
}

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

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-check-circle-fill,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-tools,
.bi-house-heart,
.bi-building,
.bi-globe-americas,
.bi-grid-3x3,
.bi-file-earmark-text,
.bi-badge-3d,
.bi-chat-dots,
.bi-tree,
.bi-people,
.bi-geo-alt,
.bi-telephone,
.bi-envelope {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

/* ===== BORDERS ===== */
.border-top {
  border-top: 1px solid var(--light-gray) !important;
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

.border-secondary {
  border-color: var(--light-gray) !important;
}

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

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

/* ===== BACKGROUNDS ===== */
.bg-white {
  background-color: var(--white) !important;
}

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

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
}

.carousel.slide {
  overflow: hidden;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 15;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.carousel-indicators button.active {
  background-color: var(--white);
  width: 30px;
  border-radius: 6px;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(44, 62, 80, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

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

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

a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}

/* ===== PRIVACY CONTENT ===== */
.privacy-content {
  line-height: 1.8;
}

.privacy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color) !important;
}

.privacy-content p {
  color: var(--dark-gray) !important;
  margin-bottom: 1rem;
}

/* ===== SMALL TEXT ===== */
.small,
small {
  font-size: 0.875rem;
  color: var(--dark-gray) !important;
}

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

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

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

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

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

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

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

section:nth-child(even) {
  background-color: var(--secondary-color);
}

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

/* Mobile First - Base styles above are mobile */

@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
  .flex-sm-row { flex-direction: row !important; }
}

@media (min-width: 768px) {
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
  
  .text-md-start { text-align: start !important; }
  .text-md-end { text-align: end !important; }
  
  .flex-md-row { flex-direction: row !important; }
  
  .d-md-block { display: block !important; }
}

@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  
  .col-lg-2 { width: 16.666667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-12 { width: 100%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  .offset-lg-3 { margin-left: 25%; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

/* ===== UTILITY CLASSES ===== */
.h2 { font-size: 2rem !important; }
.h3 { font-size: 1.75rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--slate-gradient);
  color: var(--white) !important;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

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

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  #scrollTopBtn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ===== FINAL POLISH ===== */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

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

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

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