/* Obsidian Crimson Architecture Studio - Custom Styles */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #E94560;
  --accent-color: #FF6B9D;
  --dark-bg: #0F0F1E;
  --light-text: #FFFFFF;
  --gray-text: #B8B8D1;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(233, 69, 96, 0.1);
  --shadow-md: 0 4px 16px rgba(233, 69, 96, 0.15);
  --shadow-lg: 0 8px 32px rgba(233, 69, 96, 0.2);
  --shadow-xl: 0 16px 48px rgba(233, 69, 96, 0.25);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== Typography ===== */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--light-text) !important;
}

h1, h2, h3, h4, h5, h6, .h4 {
  color: var(--light-text) !important;
  font-weight: 600;
}

.lead {
  color: var(--gray-text) !important;
  font-size: 1.25rem;
}

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

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

.text-muted {
  color: var(--gray-text) !important;
}

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

/* ===== Navigation Bar ===== */
.navbar {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(233, 69, 96, 0.1);
  transition: var(--transition-smooth);
  padding: 1rem 0;
  z-index: 9999;
}

.navbar.scrolled {
  background: rgba(15, 15, 30, 0.98) !important;
  box-shadow: 0 4px 30px rgba(233, 69, 96, 0.2);
  padding: 0.5rem 0;
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: var(--light-text) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(233, 69, 96, 0.1);
}

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

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

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

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

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

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

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

.btn-primary,
.btn-danger {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%) !important;
  color: var(--light-text) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--light-text) !important;
}

.btn-primary:active,
.btn-danger:active {
  transform: translateY(-1px);
}

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

.btn-outline-light:hover {
  background: var(--light-text) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-3px);
}

.btn-light {
  background: var(--light-text) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.btn-light:hover {
  background: var(--gray-text) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, #1a1a3e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 6rem) !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.2s both;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
  color: var(--secondary-color) !important;
  font-size: 2rem;
}

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

/* ===== Cards ===== */
.card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  transition: var(--transition-smooth) !important;
  backdrop-filter: blur(10px);
  overflow: hidden;
  color: var(--light-text) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl) !important;
  border-color: var(--secondary-color) !important;
}

.card-body {
  color: var(--light-text) !important;
}

.card-header {
  background: rgba(233, 69, 96, 0.1) !important;
  border-bottom: 1px solid rgba(233, 69, 96, 0.2) !important;
  color: var(--light-text) !important;
}

.card-title {
  color: var(--light-text) !important;
  font-weight: 600;
}

.card-text {
  color: var(--gray-text) !important;
}

.class-card {
  transition: var(--transition-smooth);
  cursor: pointer;
}

.class-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ===== Icons ===== */
.bi,
[class^="bi-"],
[class*=" bi-"] {
  color: var(--secondary-color) !important;
  transition: var(--transition-fast);
}

.card:hover .bi,
.card:hover [class^="bi-"],
.card:hover [class*=" bi-"] {
  transform: scale(1.1) rotate(5deg);
}

.bi-fire,
.bi-lightning-charge,
.bi-lightning-charge-fill,
.bi-lightning-fill {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px var(--secondary-color));
  }
  50% {
    filter: drop-shadow(0 0 15px var(--secondary-color));
  }
}

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

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

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

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

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

/* ===== Images ===== */
.img-fluid {
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

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

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

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

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

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

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

/* ===== Forms ===== */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--light-text) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-fast) !important;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25) !important;
  color: var(--light-text) !important;
}

.form-control::placeholder {
  color: var(--gray-text) !important;
  opacity: 0.7;
}

.form-label {
  color: var(--light-text) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-select option {
  background: var(--primary-color) !important;
  color: var(--light-text) !important;
}

/* ===== Badges ===== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}

.bg-danger {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)) !important;
}

.bg-warning {
  background: linear-gradient(135deg, #FFA500, #FFD700) !important;
  color: var(--primary-color) !important;
}

.bg-success {
  background: linear-gradient(135deg, #00C851, #00E676) !important;
}

/* ===== Accordion ===== */
.accordion {
  --bs-accordion-bg: rgba(255, 255, 255, 0.05) !important;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1) !important;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}

.accordion-button {
  background: rgba(233, 69, 96, 0.1) !important;
  color: var(--light-text) !important;
  font-weight: 600 !important;
  border: none !important;
  transition: var(--transition-fast) !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(233, 69, 96, 0.2) !important;
  color: var(--light-text) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25) !important;
}

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

.accordion-body {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--gray-text) !important;
  padding: 1.5rem !important;
}

.accordion-collapse.show {
  border-top: 1px solid rgba(233, 69, 96, 0.2) !important;
}

/* ===== Carousel ===== */
.carousel {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item {
  min-height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
}

.carousel-caption {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  bottom: 2rem;
  left: 10%;
  right: 10%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(233, 69, 96, 0.8) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
  background: var(--secondary-color) !important;
}

.carousel-control-prev {
  left: 2rem;
}

.carousel-control-next {
  right: 2rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--secondary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--gray-text) !important;
  transition: var(--transition-fast);
}

.list-unstyled li:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

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

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

/* ===== Navigation Sidebar ===== */
.nav {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
}

.nav-link {
  color: var(--gray-text) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition-fast);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--light-text) !important;
  background: rgba(233, 69, 96, 0.1) !important;
}

/* ===== Filters ===== */
.filter-day,
.filter-intensity {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--light-text) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50rem !important;
  transition: var(--transition-fast) !important;
  cursor: pointer;
}

.filter-day:hover,
.filter-intensity:hover,
.filter-day.active,
.filter-intensity.active {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  transform: translateY(-2px);
}

/* ===== Pricing Toggle ===== */
.pricing-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50rem !important;
  padding: 0.5rem;
  display: inline-flex;
  gap: 0.5rem;
}

.pricing-toggle .btn {
  border-radius: 50rem !important;
  padding: 0.5rem 2rem !important;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
}

.pricing-period {
  color: var(--gray-text) !important;
}

/* ===== Position Utilities ===== */
.position-relative {
  position: relative !important;
}

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

.position-fixed {
  position: fixed !important;
  z-index: 9998;
}

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

.sticky-bottom {
  position: sticky !important;
  bottom: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}

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

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

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

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

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

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

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

/* ===== Floating Action Button ===== */
.position-fixed.end-0.m-4 {
  background: var(--secondary-color) !important;
  color: var(--light-text) !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 9997;
}

.position-fixed.end-0.m-4:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.4);
}

/* ===== Footer ===== */
footer {
  background: var(--dark-bg) !important;
  border-top: 1px solid rgba(233, 69, 96, 0.2);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

footer h5 {
  color: var(--light-text) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer p,
footer a,
footer li {
  color: var(--gray-text) !important;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

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

/* ===== Social Media Icons ===== */
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-twitter-x {
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.bi-facebook:hover {
  color: #1877F2 !important;
}

.bi-instagram:hover {
  color: #E4405F !important;
}

.bi-youtube:hover {
  color: #FF0000 !important;
}

.bi-twitter-x:hover {
  color: #000000 !important;
}

/* ===== Spacing Utilities ===== */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !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; }

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

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }

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

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.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-0 { padding-top: 0 !important; padding-bottom: 0 !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-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

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

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

/* ===== Display Utilities ===== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !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; }

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

.flex-grow-1 { flex-grow: 1 !important; }

/* ===== Size Utilities ===== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.min-vh-100 { min-height: 100vh !important; }

/* ===== Gap Utilities ===== */
.gap-3 { gap: 1rem !important; }

.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

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

/* ===== Font Size Utilities ===== */
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }

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

.small { font-size: 0.875rem !important; }

/* ===== Story Content ===== */
.story-content {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Grid System Overrides ===== */
.container,
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}

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

[class^="col-"],
[class*=" col-"] {
  padding-right: 15px;
  padding-left: 15px;
}

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

/* Mobile First - Base styles above */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section .display-1 {
    font-size: 5rem !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .col-md-2,
  .col-md-4,
  .col-md-5,
  .col-md-6 {
    flex: 0 0 auto;
  }
  
  .col-md-2 { width: 16.666667%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .d-lg-none {
    display: none !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10 {
    flex: 0 0 auto;
  }
  
  .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-9 { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  
  .offset-lg-1 { margin-left: 8.333333%; }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  .hero-section {
    padding: 100px 20px 50px;
  }
  
  .hero-section .display-1 {
    font-size: 2.5rem !important;
  }
  
  .navbar-collapse {
    background: rgba(15, 15, 30, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-caption {
    padding: 1rem;
    bottom: 1rem;
    left: 5%;
    right: 5%;
  }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section .display-1 {
    font-size: 4rem !important;
  }
  
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 6px;
  border: 2px solid var(--primary-color);
}

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

/* ===== Selection Styling ===== */
::selection {
  background: var(--secondary-color);
  color: var(--light-text);
}

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

/* ===== Loading Animation ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(233, 69, 96, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
}

/* ===== Smooth Transitions ===== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a, button, .btn, .nav-link, .card {
  transition: var(--transition-smooth);
}

/* ===== Accessibility ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  footer,
  .position-fixed {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/* ===== Additional Utility Classes ===== */
.cursor-pointer {
  cursor: pointer;
}

.user-select-none {
  user-select: none;
}

.pointer-events-none {
  pointer-events: none;
}

.transition-none {
  transition: none !important;
}

.opacity-50 {
  opacity: 0.5 !important;
}

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

/* ===== Custom Backgrounds ===== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%) !important;
}

/* ===== Order Utilities ===== */
.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }

/* ===== Border Utilities ===== */
.border-0 { border: 0 !important; }

/* ===== Additional Column Sizes ===== */
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* ===== Final Polish ===== */
html, body {
  scroll-padding-top: 80px;
}

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

a {
  color: var(--secondary-color) !important;
  text-decoration: none;
}

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

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Add focus outline for keyboard users */
:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}