/* Midnight Champion Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1A237E;
  --secondary-color: #FF6F00;
  --dark-bg: #0D1642;
  --light-bg: #f8f9fa;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --accent-gold: #FFD54F;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%) !important;
  box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: 0 6px 30px rgba(26, 35, 126, 0.5);
}

.navbar-brand {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
  transform: translateY(-2px);
}

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

.navbar-toggler {
  border-color: var(--text-primary) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

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

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

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,0 L0,0 Z" fill="rgba(255,111,0,0.05)"/></svg>') no-repeat center;
  background-size: cover;
  animation: heroPattern 20s ease-in-out infinite;
}

@keyframes heroPattern {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.display-1,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  border-radius: 50px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border-width: 2px !important;
}

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

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

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

.btn-outline-light:hover {
  color: var(--primary-color) !important;
  background-color: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-light:hover {
  background-color: #E65100 !important;
  border-color: #E65100 !important;
  color: var(--text-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 111, 0, 0.4);
}

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

/* ===== CARDS ===== */
.card {
  border-radius: 15px;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  background: #ffffff;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(26, 35, 126, 0.2) !important;
}

.card-img-top {
  transition: all 0.5s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem;
}

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(26, 35, 126, 0.1) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(26, 35, 126, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(26, 35, 126, 0.25) !important;
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
}

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

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

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

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

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

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

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

.bi-trophy-fill,
.bi-award,
.bi-trophy,
.bi-lightning,
.bi-person-arms-up {
  color: var(--secondary-color) !important;
  filter: drop-shadow(2px 2px 4px rgba(255, 111, 0, 0.3));
}

.d-flex.align-items-start .bi {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
}

.d-flex.align-items-start:hover .bi {
  color: var(--secondary-color) !important;
  transform: scale(1.1) rotate(5deg);
}

/* ===== FORMS ===== */
.form-floating {
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff !important;
  color: #333 !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  background-color: #ffffff !important;
  color: #333 !important;
}

.form-floating > label {
  color: #666 !important;
  padding: 1rem !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--primary-color) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  padding: 1.5rem !important;
  font-size: 1.1rem !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--dark-bg) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25) !important;
  border-color: var(--primary-color) !important;
}

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

.accordion-body {
  padding: 2rem;
  background-color: #ffffff;
  color: #333 !important;
}

.accordion-collapse.show {
  border-top: 3px solid var(--secondary-color);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background-color: transparent !important;
  padding: 1rem 0;
}

.breadcrumb-item {
  color: #666 !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary-color) !important;
  content: '→';
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  margin: 0.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

/* ===== FACILITY ITEMS ===== */
.facility-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 300px;
  cursor: pointer;
}

.facility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(255, 111, 0, 0.9));
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-primary) !important;
  padding: 2rem;
}

.facility-item:hover .facility-overlay {
  opacity: 1;
}

.facility-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(26, 35, 126, 0.3);
}

/* ===== FLOOR ZONE ===== */
.floor-zone {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  border-radius: 15px;
  padding: 2rem;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
  border: 3px solid transparent;
}

.floor-zone:hover {
  border-color: var(--secondary-color);
  transform: translateX(10px);
  box-shadow: -5px 5px 20px rgba(255, 111, 0, 0.3);
}

/* ===== BADGE ===== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
}

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

/* ===== TABLES ===== */
.table {
  color: #333 !important;
}

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

.table-hover tbody tr:hover {
  background-color: rgba(26, 35, 126, 0.05) !important;
  transform: scale(1.01);
}

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg)) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  padding: 1.5rem !important;
  border: none !important;
}

/* ===== RATIO (VIDEO EMBED) ===== */
.ratio {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.2);
}

.ratio-21x9::before {
  padding-top: 42.857143%;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: all var(--transition-speed) ease;
}

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

.text-decoration-none {
  text-decoration: none !important;
  color: #333 !important;
  transition: all var(--transition-speed) ease;
}

.text-decoration-none:hover {
  color: var(--primary-color) !important;
}

/* ===== TEXT UTILITIES ===== */
.text-muted {
  color: #6c757d !important;
}

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

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

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

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

/* ===== SPACING UTILITIES ===== */
.p-4 { padding: 2rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !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.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; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 2rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 2rem !important; }
.ps-lg-4 { padding-left: 2rem !important; }
.m-3 { margin: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.my-4 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 2rem !important; }
.ms-auto { margin-left: auto !important; }

/* ===== POSITION UTILITIES ===== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; z-index: 1030; }
.position-sticky { position: sticky !important; }
.sticky-lg-top { position: sticky !important; top: 0; z-index: 1020; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

/* ===== DISPLAY UTILITIES ===== */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }

/* ===== SIZE UTILITIES ===== */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.h-100 { height: 100% !important; }

/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden !important; }

/* ===== BORDER ===== */
.border-0 { border: 0 !important; }
.border-3 { border-width: 3px !important; }
.border-white { border-color: #ffffff !important; }
.rounded { border-radius: 0.375rem !important; }

/* ===== OPACITY ===== */
.opacity-25 { opacity: 0.25 !important; }

/* ===== GAPS ===== */
.gap-3 { gap: 1rem !important; }
.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 2rem !important; }
.g-5 { gap: 3rem !important; }

/* ===== FONT SIZES ===== */
.fs-1 { font-size: 3rem !important; }
.fs-2 { font-size: 2.5rem !important; }
.fs-3 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.small { font-size: 0.875rem !important; }

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

footer a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

footer .bi {
  color: var(--text-primary) !important;
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.2) rotate(5deg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 22, 66, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-2 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .facility-item {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .w-75 {
    width: 100% !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .fs-3 {
    font-size: 1.5rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .p-5 {
    padding: 1.5rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !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-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 3px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--dark-bg), var(--secondary-color));
}

/* ===== IMAGE OPTIMIZATION ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

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

/* ===== LOADING ANIMATION ===== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 5px solid var(--text-primary);
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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