/* =================================== */

/*  Modern CSS - 2025 Standards
/* =================================== */

/* Import CSS Reset */
@import url("https://unpkg.com/modern-css-reset/dist/reset.min.css");

/* =================================== */

/*  CSS Variables
/* =================================== */

:root {
  /* Colors - Modern Palette - WCAG AA Compliant */
  --primary: #bcbaec;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #0891b2;
  --accent: #d97706;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;

  /* Neutral Colors */
  --white: #fff;
  --black: #000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Theme Colors - Light Mode */
  --bg-primary: #fff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --border-color: #e5e7eb;

  /* Button-specific colors */
  --btn-primary-bg: #4f46e5;
  --btn-primary-bg-dark: #4338ca;

  /* Typography */
  --font-primary: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 25%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Dark Mode Variables - WCAG AA Compliant */
[data-bs-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #878d93;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;

  /* Adjusted colors for better dark mode contrast */
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #c7d2fe;
  --secondary: #22d3ee;
  --accent: #fbbf24;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  /* Button-specific colors (dark enough for white text on dark backgrounds) */
  --btn-primary-bg: #4f46e5;
  --btn-primary-bg-dark: #4338ca;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 20%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 30%), 0 2px 4px -2px rgb(0 0 0 / 30%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 40%), 0 4px 6px -4px rgb(0 0 0 / 40%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 50%), 0 8px 10px -6px rgb(0 0 0 / 50%);
}

/* =================================== */

/*  Base Styles
/* =================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.display-1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

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

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

.display-4 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* =================================== */

/*  Modern Preloader
/* =================================== */

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-container {
  text-align: center;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loader-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* =================================== */

/*  Navigation
/* =================================== */

#navigation {
  background: rgb(255 255 255 / 1%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  transition: all var(--transition-base);
  padding: 1rem 0;
  z-index: var(--z-sticky);
}

#navigation.scrolled {
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}

[data-bs-theme="dark"] #navigation.scrolled {
  background: rgb(15 23 42 / 95%);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  color: var(--gray-80);
}

.brand-accent {
  color: var(--primary);
  font-weight: 400;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

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

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

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* =================================== */

/*  Hero Section
/* =================================== */

.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(0 0 0 / 50%) 0%,
    rgb(0 0 0 / 30%) 50%,
    rgb(0 0 0 / 50%) 100%
  );
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
}

.slide-content .lead {
  color: white;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Swiper Customization */
.swiper-pagination-bullet {
  background: rgb(255 255 255 / 50%);
  opacity: 1;
  transition: all var(--transition-fast);
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.5);
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(10px);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgb(255 255 255 / 20%);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: white;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid white;
  border-radius: 13px;
  margin: 10px auto;
  position: relative;
}

.wheel {
  width: 3px;
  height: 8px;
  background: white;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 20px;
  }
}

/* =================================== */

/*  Section Styles
/* =================================== */

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* =================================== */

/*  About Section
/* =================================== */

.about-section {
  background: var(--bg-secondary);
  position: relative;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
}

.about-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.about-image-grid img:hover {
  transform: scale(1.05);
}

.grid-img-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  height: 300px;
}

.grid-img-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  height: 400px;
}

.grid-img-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  height: 200px;
  margin-top: -100px;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* =================================== */

/*  Gallery Section
/* =================================== */

.gallery-section {
  background: var(--bg-primary);
  padding: var(--spacing-3xl) 0;
}

.gallery-section .container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  transition: all var(--transition-base);
  cursor: pointer;
  height: 300px;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 70%) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.overlay-content h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.overlay-content p {
  color: rgb(255 255 255 / 80%);
  font-size: 0.875rem;
}

/* Gallery Filters */
.gallery-filters {
  margin-bottom: 2rem;
}

.gallery-filters .btn-group {
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
}

.filter-btn i {
  font-size: 0.875rem;
}

/* Filter button responsive behavior */
@media (width <= 768px) {
  .gallery-filters .btn-group {
    gap: 0.375rem;
  }

  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* =================================== */

/*  Projects Section
/* =================================== */

.projects-section {
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  height: 400px;
  background: #333;
  min-height: 400px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.project-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(99 102 241 / 90%) 0%, rgb(6 182 212 / 90%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.project-overlay .overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.project-category {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.project-title {
  font-size: 2rem;
  margin: 1rem 0;
}

.project-description {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

/* =================================== */

/*  Prints Section
/* =================================== */

.prints-section {
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.print-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
}

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

.print-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.print-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.print-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.print-details {
  padding: 1.5rem;
}

.print-details h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.print-size {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.print-price {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* =================================== */

/*  Footer
/* =================================== */

.footer-section {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.newsletter-form .input-group {
  max-width: 400px;
}

.footer-divider {
  margin: var(--spacing-2xl) 0 var(--spacing-xl);
  border-color: var(--border-color);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.copyright a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.copyright a:hover {
  color: var(--primary);
}

/* =================================== */

/*  Back to Top Button
/* =================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* =================================== */

/*  Buttons
/* =================================== */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-primary-bg), var(--btn-primary-bg-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-light {
  background: white;
  color: var(--text-primary);
}

.btn-light:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* =================================== */

/*  Animations
/* =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

/* =================================== */

/*  Responsive Design
/* =================================== */

@media (width >= 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item {
    height: 300px;
  }
}

@media (width <= 991px) {
  .navbar-nav {
    padding: 1rem 0;
  }

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

  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .grid-img-1,
  .grid-img-2,
  .grid-img-3 {
    grid-column: 1;
    grid-row: auto;
    height: 300px;
    margin-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-btn {
    padding: 0.875rem 1.25rem;
  }
}

@media (width <= 768px) {
  .display-1 {
    font-size: 2.5rem;
  }

  .display-2 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    height: 100vh;
    min-height: 600px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .gallery-grid {
    gap: 1rem;
  }

  .gallery-pagination {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .pagination-info {
    min-width: 120px;
  }

  .page-numbers {
    font-size: 0.875rem;
  }

  .footer-section .row {
    text-align: center;
  }

  .social-links {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .newsletter-form .input-group {
    margin: 0 auto;
  }
}

@media (width <= 575px) {
  body {
    font-size: 0.875rem;
  }

  .container {
    padding: 0 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* =================================== */

/*  Utilities
/* =================================== */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.pt-1 {
  padding-top: var(--spacing-xs);
}

.pt-2 {
  padding-top: var(--spacing-sm);
}

.pt-3 {
  padding-top: var(--spacing-md);
}

.pt-4 {
  padding-top: var(--spacing-lg);
}

.pt-5 {
  padding-top: var(--spacing-xl);
}

.pb-1 {
  padding-bottom: var(--spacing-xs);
}

.pb-2 {
  padding-bottom: var(--spacing-sm);
}

.pb-3 {
  padding-bottom: var(--spacing-md);
}

.pb-4 {
  padding-bottom: var(--spacing-lg);
}

.pb-5 {
  padding-bottom: var(--spacing-xl);
}

.py-1 {
  padding-top: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
}

.py-2 {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.py-3 {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.py-4 {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.py-5 {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Albums Page */
.albums-page {
  min-height: 100vh;
  padding-top: 100px;
}

.album-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.album-cover {
  height: 250px;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.album-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-tertiary);
}

.album-details {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.album-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.album-details p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.album-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.album-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =================================== */

/*  Album Page Styles
/* =================================== */

/* Hero Section */
.album-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 56px;
}

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

.album-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 30%) 0%, rgb(0 0 0 / 60%) 100%);
  display: flex;
  align-items: flex-end;
}

.album-hero-content {
  padding: 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.album-project-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 70%);
  margin-bottom: 15px;
  font-weight: 600;
}

.album-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0;
  text-shadow: 2px 2px 20px rgb(0 0 0 / 50%);
}

.back-button {
  position: absolute;
  top: 80px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  z-index: 10;
}

.back-button:hover {
  background: rgb(255 255 255 / 20%);
  border-color: rgb(255 255 255 / 40%);
  transform: translateX(-5px);
  color: #fff;
}

/* Description Section */
.album-description-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 60px;
}

.album-description-content {
  max-width: 900px;
}

.album-description-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: 40px;
  font-weight: 300;
}

.album-description-title strong {
  font-weight: 700;
}

.album-description-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgb(255 255 255 / 60%);
  max-width: 500px;
}

[data-bs-theme="light"] .album-description-text {
  color: rgb(0 0 0 / 60%);
}

[data-bs-theme="light"] .album-meta {
  color: rgb(0 0 0 / 50%);
}

/* Gallery Grid */
.album-gallery-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px 100px;
}

.album-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.album-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.album-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-gallery-item:hover img {
  transform: scale(1.08);
}

/* Navigation Controls */
.gallery-nav {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 15px;
  z-index: 100;
}

.gallery-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 20%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-nav-btn:hover {
  background: rgb(255 255 255 / 20%);
  transform: translateY(-2px);
}

/* Loading & Empty States */
.loading-spinner {
  text-align: center;
  padding: 100px 20px;
}

.loading-spinner i {
  font-size: 3rem;
  color: #007bff;
  animation: spin 1s linear infinite;
}

.empty-album {
  text-align: center;
  padding: 100px 20px;
  color: rgb(255 255 255 / 50%);
}

[data-bs-theme="light"] .empty-album {
  color: rgb(0 0 0 / 50%);
}

.empty-album i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

/* =================================== */

/*  Login Page Styles
/* =================================== */

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  padding: var(--spacing-md);
}

.login-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--spacing-2xl);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.login-logo i {
  font-size: 2.5rem;
  color: var(--white);
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 10%);
  outline: none;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.form-control.has-icon {
  padding-left: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: color var(--transition-base);
}

.password-toggle:hover {
  color: var(--primary);
}

.btn-login {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-login .spinner {
  display: none;
}

.btn-login.loading .spinner {
  display: inline-block;
}

.btn-login.loading .btn-text {
  display: none;
}

.alert {
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border: none;
  animation: slideDown 0.3s ease;
}

.alert-danger {
  background: rgb(239 68 68 / 10%);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

.alert-success {
  background: rgb(16 185 129 / 10%);
  color: var(--success);
  border-left: 3px solid var(--success);
}

.back-link {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.back-link a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.back-link a:hover {
  color: var(--primary);
}

.form-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Dark mode adjustments for login */
[data-bs-theme="dark"] .login-card {
  background: rgb(30 41 59 / 90%);
  backdrop-filter: blur(20px);
}

[data-bs-theme="dark"] .form-control {
  background: var(--bg-secondary);
}

/* =================================== */

/*  Project Page Styles
/* =================================== */

.project-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
  margin-top: 80px;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-xl);
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-intro {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-primary);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: var(--spacing-2xl) 0;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.featured-section {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-section {
  padding: var(--spacing-3xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  color: rgb(255 255 255 / 90%);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

/* =================================== */

/*  Responsive Adjustments for Album Page
/* =================================== */

@media (width <= 1200px) {
  .album-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .album-hero-content,
  .album-description-section,
  .album-gallery-section {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (width <= 768px) {
  .album-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

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

  .album-hero-content {
    padding: 40px 30px;
  }

  .album-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .back-button {
    top: 70px;
    left: 20px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .album-description-section,
  .album-gallery-section {
    padding: 60px 30px;
  }

  .gallery-nav {
    bottom: 20px;
    right: 20px;
  }

  .gallery-nav-btn {
    width: 45px;
    height: 45px;
  }
}

@media (width <= 480px) {
  .album-gallery {
    grid-template-columns: 1fr;
  }

  .album-meta {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================
   DYNAMIC STATS SECTION
========================== */

.stats-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Stat card styles - see line 563 */

/* Stat icon styles - see line 2022 */

/* Stat number styles - see line 580 */

/* Stat label styles - see line 588 */

.storage-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
}

/* ==========================
   RECENT PHOTOS SECTION
========================== */

.recent-photos-section {
  background: var(--bg-primary);
}

.recent-photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.recent-photo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recent-photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.recent-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 1.5rem;
}

.recent-photo:hover .recent-overlay {
  opacity: 1;
}

.recent-info {
  padding: 0.5rem 0;
  text-align: center;
}

/* =================================== */

/*  LOADING STATES & SPINNERS
/* =================================== */

/* Global Loading Overlay */
.loading-overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 50%);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-modal);
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-base);
}

.loading-overlay.show {
	opacity: 1;
	visibility: visible;
}

/* Modern Spinner */
.spinner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-xs);
}

.spinner-ring {
	width: 2rem;
	height: 2rem;
	border: 2px solid var(--border-color);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.spinner-ring.lg {
	width: 3rem;
	height: 3rem;
	border-width: 3px;
}

.spinner-ring.sm {
	width: 1rem;
	height: 1rem;
	border-width: 1px;
}

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

/* Dots Spinner */
.spinner-dots {
	display: inline-flex;
	gap: 0.25rem;
}

.spinner-dot {
	width: 0.5rem;
	height: 0.5rem;
	background: var(--primary);
	border-radius: 50%;
	animation: bounce 1.4s infinite;
}

.spinner-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes bounce {
	0%,
	80%,
	100% {
		transform: scale(0);
	}

	40% {
		transform: scale(1);
	}
}

/* Pulse Spinner */
.spinner-pulse {
	width: 2rem;
	height: 2rem;
	background: var(--primary);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0);
		opacity: 1;
	}

	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/* Loading States for Content Areas */
.loading-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-xl);
	text-align: center;
	min-height: 200px;
}

.loading-state .spinner-ring {
	margin-bottom: var(--spacing-md);
}

.loading-state p {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin: 0;
}

/* Skeleton Loading */
.skeleton {
	background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
	border-radius: var(--radius-md);
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

.skeleton-text {
	height: 1rem;
	margin-bottom: var(--spacing-xs);
}

.skeleton-text.lg {
	height: 1.5rem;
}

.skeleton-text.sm {
	height: 0.75rem;
}

.skeleton-avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
}

.skeleton-image {
	width: 100%;
	height: 200px;
}

/* Button Loading States */
.btn.loading {
	position: relative;
	color: transparent !important;
	cursor: not-allowed;
	pointer-events: none;
}

.btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 1rem;
	height: 1rem;
	border: 2px solid currentcolor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	opacity: 0.8;
}

/* Progress Bar */
.progress-bar {
	width: 100%;
	height: 0.5rem;
	background: var(--bg-secondary);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin: var(--spacing-sm) 0;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--primary-light));
	border-radius: var(--radius-full);
	transition: width var(--transition-base);
	position: relative;
}

.progress-fill::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / 40%), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

/* Image Loading Placeholder */
.image-placeholder {
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-tertiary);
	font-size: 2rem;
	aspect-ratio: 16/9;
	border-radius: var(--radius-md);
}

.image-loading {
	position: relative;
	overflow: hidden;
}

.image-loading img {
	opacity: 0;
	transition: opacity var(--transition-base);
}

.image-loading.loaded img {
	opacity: 1;
}

/* Inline Loading States */
.loading-inline {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.loading-inline .spinner-ring {
	width: 1rem;
	height: 1rem;
	border-width: 1px;
}

/* Loading Animation Utilities */
.fade-in {
	animation: fadeIn var(--transition-base) ease-in-out;
}

.slide-in {
	animation: slideIn var(--transition-base) ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}

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

/* =================================== */

/*  Enhanced Responsive Design
/* =================================== */

/* Mobile-First Improvements */

/* Touch-Friendly Interface Elements */
@media (width <= 768px) {
	/* Ensure all interactive elements are at least 44px for touch */
	.btn, button, a.nav-link, .social-link, .filter-btn {
		min-height: 44px;
		min-width: 44px;
		padding: 0.75rem 1rem;
	}

	/* Navigation Improvements */
	.navbar-brand {
		font-size: 1.25rem;
	}

	.navbar-toggler {
		min-width: 44px;
		min-height: 44px;
		border: none;
		padding: 0.5rem;
	}

	.navbar-nav .nav-link {
		padding: 1rem 0;
		font-size: 1.1rem;
		border-bottom: 1px solid var(--border-color);
	}

	/* Typography Scaling */
	h1, .h1 {
		font-size: 2rem;
	}

	h2, .h2 {
		font-size: 1.75rem;
	}

	h3, .h3 {
		font-size: 1.5rem;
	}

	/* Content Spacing */
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	section {
		padding: 3rem 0;
	}

	/* Gallery and Grid Improvements */
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.gallery-item {
		height: 250px;
	}

	/* Card Layout Improvements */
	.card {
		margin-bottom: 1.5rem;
	}

	.card-body {
		padding: 1.25rem;
	}

	/* Form Elements */
	.form-control, .form-select {
		min-height: 44px;
		font-size: 1rem;
		padding: 0.75rem 1rem;
	}

	/* Button Groups */
	.btn-group .btn {
		flex: 1;
		min-width: auto;
	}

	/* Filter Buttons */
	.gallery-filters {
		justify-content: center;
		margin-bottom: 2rem;
	}

	.filter-btn {
		margin: 0.25rem;
		font-size: 0.9rem;
	}

	/* Modal Improvements */
	.modal-dialog {
		margin: 1rem;
	}

	/* Table Responsiveness */
	.table-responsive {
		font-size: 0.875rem;
	}

	/* Prevent Horizontal Scrolling */
	img, video, iframe {
		max-width: 100%;
		height: auto;
	}

	/* Text Content */
	.lead {
		font-size: 1.125rem;
	}

	/* Hero Section Mobile */
	.hero-section {
		min-height: 100vh;
		padding: 2rem 0;
	}

	.hero-section h1 {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.hero-section .lead {
		font-size: 1rem;
		margin-bottom: 2rem;
	}
}

/* Tablet Specific (576px to 991px) */
@media (width >= 576px) and (width <= 991px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-item {
		height: 280px;
	}

	.container {
		max-width: 540px;
	}

	/* Projects grid for tablets */
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

/* Small Mobile (up to 575px) */
@media (width <= 575px) {
	.container {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	/* Even smaller touch targets adjustment */
	.btn-sm, .btn-group .btn {
		min-height: 40px;
		padding: 0.5rem 0.75rem;
		font-size: 0.9rem;
	}

	/* Navigation adjustments for very small screens */
	.navbar-brand .brand-text {
		font-size: 1.1rem;
	}

	.navbar-brand .brand-accent {
		font-size: 1.1rem;
	}

	/* Card spacing for small screens */
	.row > [class*="col-"] {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	/* Hero content for small screens */
	.hero-section h1 {
		font-size: 2rem;
	}

	.hero-section .btn {
		width: 100%;
		margin: 0.5rem 0;
	}

	/* Gallery filters stack on small screens */
	.gallery-filters .btn-group {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.filter-btn {
		width: 100%;
		margin: 0.25rem 0;
	}

	/* Improve readability on small screens */
	body {
		line-height: 1.6;
	}

	p {
		margin-bottom: 1.25rem;
	}

	/* Social icons adjustment */
	.social-icons {
		justify-content: center;
		gap: 0.75rem;
	}

	/* Footer content stacking */
	.footer .row > div {
		text-align: center;
		margin-bottom: 2rem;
	}
}

/* Large Mobile Landscape (480px to 767px) */
@media (width >= 480px) and (width <= 767px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-section h1 {
		font-size: 2.25rem;
	}

	/* Better use of landscape orientation */
	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Accessibility and Touch Improvements */
@media (any-hover: none) and (any-pointer: coarse) {
	/* Touch device specific styles */
	.btn:hover, .card:hover, .gallery-item:hover {
		transform: none; /* Disable hover animations on touch devices */
	}

	/* Larger touch targets for touch devices */
	.nav-link, .btn, button, a {
		min-height: 48px;
	}

	/* Better touch feedback */
	.btn:active, .nav-link:active {
		background-color: var(--gray-200);
	}
}

/* Landscape Mobile Optimization */
@media (orientation: landscape) and (height <= 480px) {
	.hero-section {
		height: auto;
		min-height: auto;
		padding: 1rem 0;
	}

	.hero-section h1 {
		font-size: 1.75rem;
	}

	.navbar {
		padding: 0.25rem 0;
	}

	section {
		padding: 2rem 0;
	}
}

/* Print Styles for Mobile */
@media print {
	.navbar, .offcanvas, .btn, .social-icons {
		display: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.4;
	}

	.container {
		max-width: none !important;
		width: 100% !important;
	}
}
