@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');.error-boundary {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

.error-boundary__container {
  max-width: 500px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.error-boundary__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.error-boundary__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.error-boundary__message {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.error-boundary__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-boundary__button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.error-boundary__button--primary {
  background: white;
  color: #667eea;
}

.error-boundary__button--primary:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-boundary__button--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.error-boundary__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.error-boundary__details {
  margin-top: 2rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.error-boundary__details summary {
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 1rem;
  user-select: none;
}

.error-boundary__stack {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ffd700;
  margin: 0;
}

@media (max-width: 480px) {
  .error-boundary__container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .error-boundary__title {
    font-size: 1.5rem;
  }
  
  .error-boundary__actions {
    flex-direction: column;
  }
  
  .error-boundary__button {
    width: 100%;
  }
}.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.theme-toggle--button {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text);
  position: relative;
}

/* Sun icon should be orange/yellow in light mode */
.theme-toggle--button .theme-toggle__icon {
  color: #F59E0B;
}

/* Moon icon in dark mode - keep the gradient */
[data-theme="dark"] .theme-toggle--button .theme-toggle__icon {
  color: var(--color-text);
}

.theme-toggle--button:hover {
  background-color: transparent !important;
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
  color: inherit !important;
}

.theme-toggle--button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.theme-toggle--button:active {
  transform: translateY(0);
}

.theme-toggle__icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.theme-toggle--button:hover .theme-toggle__icon {
  transform: scale(1.1);
  color: #F59E0B !important;
}

[data-theme="dark"] .theme-toggle--button:hover .theme-toggle__icon {
  color: var(--color-text) !important;
}

.theme-toggle__label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* System mode indicator */
.theme-toggle__system-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.theme-toggle__dot--light {
  background-color: #fbbf24;
}

.theme-toggle__dot--dark {
  background-color: #6366f1;
}

/* Select variant */
.theme-toggle--select {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.theme-toggle__select {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle__select:hover {
  border-color: var(--color-border-hover);
}

.theme-toggle__select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

/* Compact variant */
.theme-toggle--compact {
  padding: 0.375rem;
}

.theme-toggle--compact .theme-toggle__label {
  display: none;
}

.theme-toggle--compact .theme-toggle__icon {
  width: 16px;
  height: 16px;
}

/* CSS Variables for theming */
:root {
  --color-bg: #ffffff;
  --color-text: #1f2937;
  --color-border: #d1d5db;
  --color-border-hover: #D97706;
  --color-hover: #f9fafb;
  --color-primary: #4A90E2;
}

[data-theme="dark"] {
  --color-bg: #1f2937;
  --color-text: #f9fafb;
  --color-border: #374151;
  --color-border-hover: #40E0D0;
  --color-hover: #374151;
  --color-primary: #40E0D0;
}


/* Animation for theme transitions */
.theme-toggle--button {
  position: relative;
  overflow: hidden;
}

.theme-toggle--button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  opacity: 0.1;
  z-index: -1;
}

.theme-toggle--button:active::before {
  width: 100px;
  height: 100px;
}

/* Loading state */
.theme-toggle--loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.theme-toggle--loading .theme-toggle__icon {
  animation: spin 1s linear infinite;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .theme-toggle--button {
    border-width: 2px;
    border-color: currentColor;
  }
  
  .theme-toggle__dot--light {
    background-color: #000000;
  }
  
  .theme-toggle__dot--dark {
    background-color: #ffffff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle--button,
  .theme-toggle__icon,
  .theme-toggle__dot,
  .theme-toggle__select,
  .theme-toggle--button::before {
    transition: none;
  }
  
  .theme-toggle--button:hover .theme-toggle__icon {
    transform: none;
  }
  
  .theme-toggle--loading .theme-toggle__icon {
    animation: none;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .theme-toggle__label {
    display: none;
  }
  
  .theme-toggle--button {
    padding: 0.5rem;
  }
  
  .theme-toggle__icon {
    width: 20px;
    height: 20px;
  }
}._header_1ximj_1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  transition: all 0.3s ease;
}

._header_1ximj_1._scrolled_1ximj_11 {
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-sm) 0;
}

._container_1ximj_17 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

._logo_1ximj_26 {
  display: flex;
  align-items: center;
}

._logoButton_1ximj_31 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

._name_1ximj_40 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode: keep orange gradient */
[data-theme="light"] ._name_1ximj_40 {
  background: linear-gradient(135deg, #D2691E, #CD853F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark mode: use blue gradient instead of orange */
[data-theme="dark"] ._name_1ximj_40 {
  background: linear-gradient(135deg, #40E0D0, #0080FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark mode navigation fixes */
[data-theme="dark"] ._navLink_1ximj_68 {
  color: #9CA3AF !important;
}

[data-theme="dark"] ._navLink_1ximj_68:hover {
  color: #F9FAFB !important;
}

[data-theme="dark"] ._navLink_1ximj_68::after {
  background: linear-gradient(135deg, #40E0D0, #0080FF) !important;
}

/* Dark mode mobile menu fixes */
[data-theme="dark"] ._mobileNavLink_1ximj_81 {
  color: #9CA3AF !important;
  border-bottom-color: rgba(64, 224, 208, 0.2) !important;
}

[data-theme="dark"] ._mobileNavLink_1ximj_81:hover,
[data-theme="dark"] ._mobileNavLink_1ximj_81._active_1ximj_87 {
  color: #40E0D0 !important;
  border-bottom-color: rgba(64, 224, 208, 0.4) !important;
}

._nav_1ximj_68 {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

._navLink_1ximj_68 {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

._navLink_1ximj_68:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

._navLink_1ximj_68::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

._navLink_1ximj_68:hover::after {
  width: 100%;
}

._themeToggle_1ximj_132 {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

._themeToggle_1ximj_132:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
._headerActions_1ximj_154 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

._mobileMenuButton_1ximj_160 {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--mobile-radius-md);
  padding: var(--mobile-spacing-sm);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: var(--mobile-touch-target);
  min-width: var(--mobile-touch-target);
  align-items: center;
  justify-content: center;
}

._mobileMenuButton_1ximj_160:hover {
  transform: translateY(-2px);
  box-shadow: var(--mobile-shadow-md);
}

/* Mobile Navigation Menu */
._mobileNav_1ximj_81 {
  position: fixed;
  top: var(--mobile-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  backdrop-filter: var(--glass-backdrop);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

._mobileNav_1ximj_81._open_1ximj_196 {
  transform: translateX(0);
}

._mobileNavContent_1ximj_200 {
  padding: var(--mobile-spacing-xl) var(--mobile-spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--mobile-spacing-lg);
}

._mobileNavLink_1ximj_81 {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--mobile-text-xl);
  font-weight: 500;
  cursor: pointer;
  padding: var(--mobile-spacing-md) 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: left;
  min-height: var(--mobile-touch-target);
  display: flex;
  align-items: center;
}

._mobileNavLink_1ximj_81:hover,
._mobileNavLink_1ximj_81._active_1ximj_87 {
  color: var(--accent-primary);
  padding-left: var(--mobile-spacing-md);
}

._mobileMenuBackdrop_1ximj_229 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

/* Mobile-specific styles using new system */
@media (max-width: 480px) {
  ._nav_1ximj_68 {
    display: none;
  }
  
  ._mobileMenuButton_1ximj_160 {
    display: flex;
  }
  
  ._container_1ximj_17 {
    padding: 0 var(--mobile-container-padding);
  }
  
  ._name_1ximj_40 {
    font-size: var(--mobile-text-xl);
  }
  
  ._header_1ximj_1 {
    height: var(--mobile-header-height);
    padding: var(--mobile-spacing-sm) 0;
  }
  
  ._themeToggle_1ximj_132 {
    width: var(--mobile-touch-target);
    height: var(--mobile-touch-target);
  }
}.footer {
  background: linear-gradient(135deg, var(--surface), var(--background));
  color: var(--text);
  margin-top: auto;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer__description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 400;
  position: relative;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--primary);
  transform: translateX(4px);
}

.footer__link--button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.footer__link--button:hover {
  color: #64b5f6;
}

.footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social-link:hover,
.footer__social-link:focus {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer__social-icon {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer__copyright p {
  color: var(--text-secondary);
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 1rem;
}

@media (max-width: 480px) {
  .footer__container {
    padding: 2rem 1rem 1rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer__social {
    justify-content: center;
  }
  
  .footer__nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__link,
  .footer__social-link {
    transition: none;
  }
  
  .footer__link:hover {
    transform: none;
  }
  
  .footer__social-link:hover {
    transform: none;
  }
}

/* Dark mode: blue styling for Footer components */
[data-theme="dark"] .footer__link:hover,
[data-theme="dark"] .footer__link:focus {
  color: #40E0D0;
}

[data-theme="dark"] .footer__social-link:hover,
[data-theme="dark"] .footer__social-link:focus {
  background: rgba(64, 224, 208, 0.2);
  color: #40E0D0;
  border-color: rgba(64, 224, 208, 0.3);
}.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.layout__main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.layout--scrolled {
  /* Add any global styles when scrolled */
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  font-size: 14px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.layout__loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Focus management */
*:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .layout {
    border: 2px solid;
  }
}.network-status {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  max-width: 400px;
  width: calc(100% - 2rem);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.network-status--top {
  top: 1rem;
}

.network-status--bottom {
  bottom: 1rem;
}

.network-status--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.network-status--hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.network-status--offline {
  background: var(--color-danger-light);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.network-status--slow {
  background: var(--color-warning-light);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.network-status--online {
  background: var(--color-success-light);
  border-color: var(--color-success);
  color: var(--color-success);
}

.network-status__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.network-status__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.network-status__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.network-status__message {
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
}

.network-status__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.network-status__detail {
  display: flex;
  align-items: center;
}

.network-status__detail--save-data {
  color: var(--color-warning);
  font-weight: 500;
}

.network-status__advice {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.4;
}

.network-status__dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  opacity: 0.6;
  transition: opacity var(--transition-normal);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.network-status__dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.network-status__dismiss:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.network-status__dismiss svg {
  width: 16px;
  height: 16px;
}

/* Dark theme adjustments */
[data-theme="dark"] .network-status--offline {
  background: rgba(248, 81, 73, 0.2);
  border-color: var(--color-danger);
}

[data-theme="dark"] .network-status--slow {
  background: rgba(210, 153, 34, 0.2);
  border-color: var(--color-warning);
}

[data-theme="dark"] .network-status--online {
  background: rgba(63, 185, 80, 0.2);
  border-color: var(--color-success);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .network-status {
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    max-width: none;
  }

  .network-status--visible {
    transform: translateY(0);
  }

  .network-status--hidden {
    transform: translateY(-20px);
  }

  .network-status__details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .network-status {
    transition: none;
  }

  .network-status--visible,
  .network-status--hidden {
    transform: translateX(-50%);
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .network-status {
    border-width: 2px;
  }

  .network-status--offline,
  .network-status--slow,
  .network-status--online {
    background: var(--color-bg-primary);
    color: currentColor;
  }
}.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

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

.loading-spinner__svg {
  animation: loading-spinner-rotate 2s linear infinite;
}

.loading-spinner__circle {
  animation: loading-spinner-dash 1.5s ease-in-out infinite;
}

/* Size variants */
.loading-spinner--small .loading-spinner__svg {
  width: 20px;
  height: 20px;
}

.loading-spinner--medium .loading-spinner__svg {
  width: 32px;
  height: 32px;
}

.loading-spinner--large .loading-spinner__svg {
  width: 48px;
  height: 48px;
}

/* Color variants */
.loading-spinner--primary {
  color: #4A90E2;
}

.loading-spinner--secondary {
  color: #6c757d;
}

.loading-spinner--light {
  color: #ffffff;
}

.loading-spinner__text {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  text-align: center;
}

/* Animations */
@keyframes loading-spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loading-spinner-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner__svg,
  .loading-spinner__circle {
    animation: none;
  }
  
  .loading-spinner__circle {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .loading-spinner--primary {
    color: #000000;
  }
  
  .loading-spinner--secondary {
    color: #000000;
  }
}:root {
  /* Core Design Tokens */
  --color-orange: #D97706;
  --color-orange-light: #F59E0B;
  --color-blue: #2563eb;
  --color-blue-light: #0080FF;
  --color-dark-bg: #1a1a1a;
  --color-light-bg: #FDF6E3;
  --color-dark-surface: #2a2a2a;
  --color-light-surface: #FFFEF7;
  
  /* Semantic Tokens - Light Mode */
  --bg-primary: var(--color-light-bg);
  --bg-surface: var(--color-light-surface);
  --text-primary: #3E2723;
  --text-secondary: #6D4C41;
  --accent-primary: var(--color-orange);
  --accent-secondary: var(--color-blue);
  
  /* Legacy Variable Aliases (for existing components) */
  --primary: var(--color-orange);
  --secondary: var(--color-orange-light);
  --accent: var(--color-orange-light);
  --text: var(--text-primary);
  --background: var(--bg-primary);
  --surface: var(--bg-surface);
  --border: rgba(210, 105, 30, 0.1);
  
  /* Component-Specific Tokens */
  --bubble-gradient-start: var(--color-orange);
  --bubble-gradient-end: var(--color-orange-light);
  --profile-border: var(--color-orange);
  --selection-bg: rgba(210, 105, 30, 0.3);
  --line-color: var(--color-orange);
  --title-gradient-start: var(--color-orange);
  --title-gradient-end: var(--color-orange-light);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);
}

[data-theme="dark"] {
  /* Dark Mode Semantic Tokens */
  --bg-primary: var(--color-dark-bg);
  --bg-surface: var(--color-dark-surface);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --accent-primary: var(--color-orange);
  --accent-secondary: var(--color-blue);
  
  /* Legacy Variable Aliases (for existing components) */
  --primary: var(--color-orange);
  --secondary: var(--color-orange-light);
  --accent: var(--color-orange-light);
  --text: var(--text-primary);
  --background: var(--bg-primary);
  --surface: var(--bg-surface);
  --border: rgba(217, 119, 6, 0.1);

  /* Dark Mode Component-Specific */
  --bubble-gradient-start: var(--color-blue);
  --bubble-gradient-end: var(--color-blue-light);
  --profile-border: var(--color-blue);
  --selection-bg: var(--color-blue);
  --line-color: var(--color-blue);
  --title-gradient-start: var(--color-blue);
  --title-gradient-end: var(--color-blue-light);
  
  /* Dark Mode Glassmorphism */
  --glass-bg: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: var(--selection-bg) !important;
  color: white !important;
}

::-moz-selection {
  background-color: var(--selection-bg) !important;
  color: white !important;
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Prevent white flash during theme changes */
  will-change: background-color, color;
}

#root {
  margin: auto;
  transition: background-color 0.3s ease;
}

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

/* Focus styles */

*:focus {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

/* Disable transitions during theme change for performance */

html.theme-changing * {
  transition: none !important;
}

/* Typography Classes */

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.heading-sm {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Utility Classes */

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-padding {
  padding: var(--spacing-2xl) 0;
}/* Component-Specific Styles */

/* Profile Image Container */
.profile-image-container {
  background-color: var(--bg-surface);
  border: 3px solid var(--profile-border);
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: border-color, background-color;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg-surface);
  transition: background-color 0.3s ease;
}

/* Bubble Shapes */
.bubble-shape {
  background: linear-gradient(
    135deg, 
    var(--bubble-gradient-start), 
    var(--bubble-gradient-end)
  );
  border-radius: 50%;
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  transition: background 0.3s ease;
}

.bubble-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: -1s;
}

.bubble-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: -3s;
}

.bubble-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 30%;
  animation-delay: -5s;
}

.bubble-floating-1 {
  width: 100px;
  height: 100px;
  top: -20px;
  right: -20px;
  animation-delay: -2s;
  opacity: 0.15;
}

.bubble-floating-2 {
  width: 60px;
  height: 60px;
  bottom: -10px;
  left: -10px;
  animation-delay: -4s;
  opacity: 0.15;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Lines and Dividers */
.footer-divider,
.trademark-border {
  border-color: var(--line-color);
  transition: border-color 0.3s ease;
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* Buttons */
.button {
  background-color: var(--accent-primary);
  color: white;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.button--secondary:hover {
  background-color: var(--glass-bg);
  border-color: var(--accent-secondary);
}

/* Links */
.link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.link:hover {
  color: var(--accent-secondary);
}

.link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s ease;
}

.link:hover::before {
  width: 100%;
}

/* Social Links */
.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

.social-link:hover {
  color: white;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent-secondary);
}

.theme-toggle:hover {
  background: var(--accent-secondary);
  color: white;
  transform: scale(1.1);
}/* CSS Custom Properties for Responsive Design */
:root {
  /* Breakpoints */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1280px;
  --breakpoint-xl: 1536px;

  /* Container max-widths */
  --container-xs: 100%;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
}

/* Container Classes */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container--xs { max-width: var(--container-xs); }
.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--xl { max-width: var(--container-xl); }
.container--2xl { max-width: var(--container-2xl); }

/* Responsive Grid System */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Responsive Flexbox Utilities */
.flex { display: flex; }
.flex--column { flex-direction: column; }
.flex--row { flex-direction: row; }
.flex--wrap { flex-wrap: wrap; }
.flex--nowrap { flex-wrap: nowrap; }

.justify--start { justify-content: flex-start; }
.justify--center { justify-content: center; }
.justify--end { justify-content: flex-end; }
.justify--between { justify-content: space-between; }
.justify--around { justify-content: space-around; }

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

/* Responsive Text Utilities */
.text--left { text-align: left; }
.text--center { text-align: center; }
.text--right { text-align: right; }

.text--xs { font-size: var(--text-xs); }
.text--sm { font-size: var(--text-sm); }
.text--base { font-size: var(--text-base); }
.text--lg { font-size: var(--text-lg); }
.text--xl { font-size: var(--text-xl); }
.text--2xl { font-size: var(--text-2xl); }
.text--3xl { font-size: var(--text-3xl); }
.text--4xl { font-size: var(--text-4xl); }
.text--5xl { font-size: var(--text-5xl); }
.text--6xl { font-size: var(--text-6xl); }

/* Responsive Spacing Utilities */
.p--1 { padding: var(--space-1); }
.p--2 { padding: var(--space-2); }
.p--3 { padding: var(--space-3); }
.p--4 { padding: var(--space-4); }
.p--6 { padding: var(--space-6); }
.p--8 { padding: var(--space-8); }
.p--12 { padding: var(--space-12); }
.p--16 { padding: var(--space-16); }
.p--20 { padding: var(--space-20); }
.p--24 { padding: var(--space-24); }

.m--1 { margin: var(--space-1); }
.m--2 { margin: var(--space-2); }
.m--3 { margin: var(--space-3); }
.m--4 { margin: var(--space-4); }
.m--6 { margin: var(--space-6); }
.m--8 { margin: var(--space-8); }
.m--12 { margin: var(--space-12); }
.m--16 { margin: var(--space-16); }
.m--20 { margin: var(--space-20); }
.m--24 { margin: var(--space-24); }

/* Hide/Show utilities */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Mobile First Responsive Breakpoints */

/* Small screens (480px and up) */
@media (min-width: 480px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .xs\:hidden { display: none !important; }
  .xs\:visible { display: block !important; }
  .xs\:grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .xs\:grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xs\:text--center { text-align: center; }
  .xs\:text--left { text-align: left; }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  .sm\:hidden { display: none !important; }
  .sm\:visible { display: block !important; }
  .sm\:grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex--row { flex-direction: row; }
  .sm\:flex--column { flex-direction: column; }
  .sm\:text--left { text-align: left; }
  .sm\:text--center { text-align: center; }
  .sm\:text--lg { font-size: var(--text-lg); }
  .sm\:text--xl { font-size: var(--text-xl); }
  .sm\:text--2xl { font-size: var(--text-2xl); }
}

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  .md\:hidden { display: none !important; }
  .md\:visible { display: block !important; }
  .md\:grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex--row { flex-direction: row; }
  .md\:text--left { text-align: left; }
  .md\:text--2xl { font-size: var(--text-2xl); }
  .md\:text--3xl { font-size: var(--text-3xl); }
  .md\:text--4xl { font-size: var(--text-4xl); }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
  .lg\:hidden { display: none !important; }
  .lg\:visible { display: block !important; }
  .lg\:grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:text--4xl { font-size: var(--text-4xl); }
  .lg\:text--5xl { font-size: var(--text-5xl); }
}

/* 2X large screens (1536px and up) */
@media (min-width: 1536px) {
  .xl\:hidden { display: none !important; }
  .xl\:visible { display: block !important; }
  .xl\:grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .xl\:text--5xl { font-size: var(--text-5xl); }
  .xl\:text--6xl { font-size: var(--text-6xl); }
}

/* Touch-friendly sizing */
@media (hover: none) and (pointer: coarse) {
  .touch\:p--6 { padding: var(--space-6); }
  .touch\:text--lg { font-size: var(--text-lg); }
  
  /* Increase tap targets for touch devices */
  button, .button, input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Print styles */
@media print {
  .print\:hidden { display: none !important; }
  .print\:visible { display: block !important; }
}/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Screen Reader Only Content that becomes visible on focus */
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.3s ease;
  border: 2px solid #fff;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* Focus Management */
:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
  outline-style: solid;
}

/* Hide outline for mouse users, show for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

/* Focus within containers */
.focus-within:focus-within {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

/* Keyboard Navigation Indicators */
.keyboard-user button:focus,
.keyboard-user a:focus,
.keyboard-user input:focus,
.keyboard-user select:focus,
.keyboard-user textarea:focus {
  background-color: rgba(74, 144, 226, 0.1);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :focus {
    outline: 3px solid;
    outline-offset: 2px;
  }

  .skip-link {
    background: ButtonText;
    color: ButtonFace;
    border: 2px solid ButtonText;
  }

  button,
  input,
  select,
  textarea {
    border: 2px solid ButtonText;
  }

  .card,
  .section {
    border: 1px solid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }
}

/* Large Text Support */
@media (min-resolution: 2dppx) and (min-width: 1200px) {
  .large-text {
    font-size: 1.25em;
    line-height: 1.6;
  }
}

/* Touch Target Sizing */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ARIA Live Regions */
[aria-live] {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Custom Focus Indicators for Components */
.nav-link:focus {
  background-color: rgba(74, 144, 226, 0.1);
  border-radius: 4px;
}

.card:focus-within {
  box-shadow: 0 0 0 2px #4A90E2, 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Error States for Accessibility */
[aria-invalid="true"] {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

[aria-invalid="true"]:focus {
  outline-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2), 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Loading States */
[aria-busy="true"] {
  cursor: wait;
}

/* Disabled States */
[aria-disabled="true"],
:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Modal and Dialog Support */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 1rem;
}

/* Expandable Content */
[aria-expanded="false"] + .expandable-content {
  display: none;
}

[aria-expanded="true"] + .expandable-content {
  display: block;
}

/* Form Labels and Required Fields */
.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Error Messages */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: "⚠";
  font-weight: bold;
}

/* Success Messages */
.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.success-message::before {
  content: "✓";
  font-weight: bold;
}

/* Print Accessibility */
@media print {
  .skip-link,
  .sr-only,
  [aria-hidden="true"] {
    display: none !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="mailto:"]:after,
  a[href^="tel:"]:after,
  a[href^="#"]:after {
    content: "";
  }
}/* Base animation classes */
.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
}

/* No animation class for reduced motion users */
.no-animation {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Initial states for animated elements */
.animate-in,
.animate-fade-in,
.animate-slide-in-left,
.animate-slide-in-right,
.animate-scale-in,
.animate-bounce-in {
  opacity: 0;
}

.animate-in,
.animate-slide-in-left {
  transform: translateY(20px);
}

.animate-slide-in-left {
  transform: translateX(-30px);
}

.animate-slide-in-right {
  transform: translateX(30px);
}

.animate-scale-in {
  transform: scale(0.9);
}

.animate-bounce-in {
  transform: scale(0.3);
}

/* Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover animations */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.2s ease;
}

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

.hover-glow {
  transition: box-shadow 0.2s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* Typing animation */
.typing-cursor {
  display: inline-block;
  width: 2px;
  background-color: currentColor;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 0px, rgba(229, 229, 229, 0.8) 40px, #f0f0f0 80px);
  background-size: 200px;
  animation: shimmer 1.5s infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, rgba(229, 229, 229, 0.8) 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

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

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Entrance animations with delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Rotate animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 2s linear infinite;
}

/* Gradient animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Parallax classes */
.parallax-slow {
  transform: translateZ(0);
  will-change: transform;
}

/* Page transition animations */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-in,
  .animate-fade-in,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-scale-in,
  .animate-bounce-in,
  .typing-cursor,
  .pulse,
  .shimmer,
  .skeleton,
  .float,
  .rotate,
  .animate-gradient {
    animation: none !important;
  }

  .hover-lift:hover,
  .hover-scale:hover {
    transform: none !important;
  }

  .parallax-slow {
    transform: none !important;
  }
}

/* High performance animations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.will-change-auto {
  will-change: auto;
}
/* Main CSS Architecture Entry Point */
/* Import mobile system first for mobile-first approach */
/* Mobile Architecture System - Centralized Mobile Controls */
:root {
  /* Mobile Breakpoints - Easy to change in one place */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-laptop: 1024px;
  --breakpoint-desktop: 1200px;
  
  /* Mobile-Specific Spacing */
  --mobile-spacing-xs: 0.25rem;
  --mobile-spacing-sm: 0.5rem;
  --mobile-spacing-md: 1rem;
  --mobile-spacing-lg: 1.5rem;
  --mobile-spacing-xl: 2rem;
  
  /* Mobile-Specific Typography */
  --mobile-text-xs: 0.75rem;
  --mobile-text-sm: 0.875rem;
  --mobile-text-md: 1rem;
  --mobile-text-lg: 1.125rem;
  --mobile-text-xl: 1.25rem;
  --mobile-text-2xl: 1.5rem;
  --mobile-text-3xl: 2rem;
  
  /* Mobile-Specific Layout */
  --mobile-container-padding: var(--mobile-spacing-md);
  --mobile-section-padding: var(--mobile-spacing-xl) 0;
  --mobile-header-height: 60px;
  --mobile-touch-target: 44px; /* Apple/Android recommended minimum */
  
  /* Mobile-Specific Border Radius */
  --mobile-radius-sm: 6px;
  --mobile-radius-md: 8px;
  --mobile-radius-lg: 12px;
  
  /* Mobile-Specific Shadows (lighter for performance) */
  --mobile-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --mobile-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.15);
  --mobile-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* === MOBILE-FIRST UTILITY CLASSES === */
/* Mobile Visibility Controls */
.mobile-only { display: block; }
.mobile-hidden { display: none; }
.tablet-only { display: none; }
.desktop-only { display: none; }
@media (min-width: 481px) {
  .mobile-only { display: none; }
  .mobile-hidden { display: block; }
  .tablet-only { display: block; }
}
@media (min-width: 769px) {
  .tablet-only { display: none; }
  .desktop-only { display: block; }
}
/* Mobile Layout Utilities */
.mobile-container {
  padding-left: var(--mobile-container-padding);
  padding-right: var(--mobile-container-padding);
}
.mobile-stack {
  display: flex;
  flex-direction: column;
  gap: var(--mobile-spacing-md);
}
.mobile-center {
  text-align: center;
}
.mobile-full-width {
  width: 100%;
}
.mobile-touch-target {
  min-height: var(--mobile-touch-target);
  min-width: var(--mobile-touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Mobile Typography Utilities */
.mobile-text-xs { font-size: var(--mobile-text-xs); }
.mobile-text-sm { font-size: var(--mobile-text-sm); }
.mobile-text-md { font-size: var(--mobile-text-md); }
.mobile-text-lg { font-size: var(--mobile-text-lg); }
.mobile-text-xl { font-size: var(--mobile-text-xl); }
.mobile-text-2xl { font-size: var(--mobile-text-2xl); }
.mobile-text-3xl { font-size: var(--mobile-text-3xl); }
/* Mobile Spacing Utilities */
.mobile-p-xs { padding: var(--mobile-spacing-xs); }
.mobile-p-sm { padding: var(--mobile-spacing-sm); }
.mobile-p-md { padding: var(--mobile-spacing-md); }
.mobile-p-lg { padding: var(--mobile-spacing-lg); }
.mobile-m-xs { margin: var(--mobile-spacing-xs); }
.mobile-m-sm { margin: var(--mobile-spacing-sm); }
.mobile-m-md { margin: var(--mobile-spacing-md); }
.mobile-m-lg { margin: var(--mobile-spacing-lg); }
/* === RESPONSIVE MIXINS (CSS Custom Properties) === */
/* Mobile-First Media Query Templates */
@media (max-width: 480px) {
  :root {
    --current-breakpoint: 'mobile';
  }
  
  /* Apply mobile-specific overrides */
  .responsive-text {
    font-size: var(--mobile-text-md);
    line-height: 1.4;
  }
  
  .responsive-container {
    padding: 0 var(--mobile-spacing-md);
    max-width: 100%;
  }
  
  .responsive-section {
    padding: var(--mobile-spacing-xl) 0;
  }
  
  .responsive-grid {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-spacing-lg);
  }
  
  .responsive-button {
    min-height: var(--mobile-touch-target);
    padding: var(--mobile-spacing-sm) var(--mobile-spacing-md);
    font-size: var(--mobile-text-md);
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --current-breakpoint: 'tablet';
  }
  
  .responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}
@media (min-width: 769px) {
  :root {
    --current-breakpoint: 'desktop';
  }
  
  .responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }
}
/* === MOBILE COMPONENT PATTERNS === */
/* Mobile Navigation Pattern */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--mobile-spacing-sm) var(--mobile-spacing-md);
  height: var(--mobile-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Mobile Card Pattern */
.mobile-card {
  background: var(--bg-surface);
  border-radius: var(--mobile-radius-lg);
  padding: var(--mobile-spacing-lg);
  box-shadow: var(--mobile-shadow-md);
  margin-bottom: var(--mobile-spacing-md);
}
/* Mobile Form Pattern */
.mobile-form-group {
  margin-bottom: var(--mobile-spacing-lg);
}
.mobile-input {
  width: 100%;
  min-height: var(--mobile-touch-target);
  padding: var(--mobile-spacing-sm) var(--mobile-spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--mobile-radius-md);
  font-size: var(--mobile-text-md);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.mobile-button {
  min-height: var(--mobile-touch-target);
  padding: var(--mobile-spacing-sm) var(--mobile-spacing-lg);
  border: none;
  border-radius: var(--mobile-radius-md);
  font-size: var(--mobile-text-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent-primary);
  color: white;
}
.mobile-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--mobile-shadow-lg);
}
/* Mobile Image Pattern */
.mobile-image {
  width: 100%;
  height: auto;
  border-radius: var(--mobile-radius-md);
  object-fit: cover;
}
/* === MOBILE PERFORMANCE OPTIMIZATIONS === */
/* Reduce animations on mobile for performance */
@media (max-width: 480px) {
  .reduce-motion {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
  
  .disable-hover:hover {
    transform: none !important;
  }
}
/* Mobile-specific scroll behavior */
@media (max-width: 480px) {
  .mobile-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}
/* === MOBILE ACCESSIBILITY === */
/* Ensure touch targets are large enough */
@media (max-width: 480px) {
  button, 
  .button, 
  [role="button"],
  input[type="submit"],
  input[type="button"],
  a {
    min-height: var(--mobile-touch-target);
    min-width: var(--mobile-touch-target);
  }
}
/* Mobile focus styles */
@media (max-width: 480px) {
  *:focus {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
  }
}
/* Import core styles in order */
:root {
  /* Core Design Tokens */
  --color-orange: #D97706;
  --color-orange-light: #F59E0B;
  --color-blue: #2563eb;
  --color-blue-light: #0080FF;
  --color-dark-bg: #1a1a1a;
  --color-light-bg: #FDF6E3;
  --color-dark-surface: #2a2a2a;
  --color-light-surface: #FFFEF7;
  
  /* Semantic Tokens - Light Mode */
  --bg-primary: var(--color-light-bg);
  --bg-surface: var(--color-light-surface);
  --text-primary: #3E2723;
  --text-secondary: #6D4C41;
  --accent-primary: var(--color-orange);
  --accent-secondary: var(--color-blue);
  
  /* Legacy Variable Aliases (for existing components) */
  --primary: var(--color-orange);
  --secondary: var(--color-orange-light);
  --accent: var(--color-orange-light);
  --text: var(--text-primary);
  --background: var(--bg-primary);
  --surface: var(--bg-surface);
  --border: rgba(210, 105, 30, 0.1);
  
  /* Component-Specific Tokens */
  --bubble-gradient-start: var(--color-orange);
  --bubble-gradient-end: var(--color-orange-light);
  --profile-border: var(--color-orange);
  --selection-bg: rgba(210, 105, 30, 0.3);
  --line-color: var(--color-orange);
  --title-gradient-start: var(--color-orange);
  --title-gradient-end: var(--color-orange-light);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);
}
[data-theme="dark"] {
  /* Dark Mode Semantic Tokens */
  --bg-primary: var(--color-dark-bg);
  --bg-surface: var(--color-dark-surface);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --accent-primary: var(--color-orange);
  --accent-secondary: var(--color-blue);
  
  /* Legacy Variable Aliases (for existing components) */
  --primary: var(--color-orange);
  --secondary: var(--color-orange-light);
  --accent: var(--color-orange-light);
  --text: var(--text-primary);
  --background: var(--bg-primary);
  --surface: var(--bg-surface);
  --border: rgba(217, 119, 6, 0.1);

  /* Dark Mode Component-Specific */
  --bubble-gradient-start: var(--color-blue);
  --bubble-gradient-end: var(--color-blue-light);
  --profile-border: var(--color-blue);
  --selection-bg: var(--color-blue);
  --line-color: var(--color-blue);
  --title-gradient-start: var(--color-blue);
  --title-gradient-end: var(--color-blue-light);
  
  /* Dark Mode Glassmorphism */
  --glass-bg: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::selection {
  background-color: var(--selection-bg) !important;
  color: white !important;
}
::-moz-selection {
  background-color: var(--selection-bg) !important;
  color: white !important;
}
html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Prevent white flash during theme changes */
  will-change: background-color, color;
}
#root {
  margin: auto;
  transition: background-color 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Focus styles */
*:focus {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}
/* Disable transitions during theme change for performance */
html.theme-changing * {
  transition: none !important;
}
/* Typography Classes */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.heading-sm {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}
.body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}
.body-md {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}
.body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}
/* Utility Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.section-padding {
  padding: var(--spacing-2xl) 0;
}
/* CSS Custom Properties for Theme System */
/* Base theme variables */
:root {
  /* Colors - Light Theme */
  --color-primary: #4A90E2;
  --color-primary-light: #64a5f6;
  --color-primary-dark: #2563eb;
  --color-secondary: #6c757d;
  --color-accent: #17a2b8;
  
  /* Background colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;
  --color-bg-card: #ffffff;
  --color-bg-modal: rgba(255, 255, 255, 0.95);
  
  /* Text colors */
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-tertiary: #9ca3af;
  --color-text-inverse: #ffffff;
  --color-text-muted: #8b949e;
  
  /* Border colors */
  --color-border-primary: #dee2e6;
  --color-border-secondary: #e9ecef;
  --color-border-hover: #adb5bd;
  --color-border-focus: var(--color-primary);
  
  /* Interactive states */
  --color-hover: #f8f9fa;
  --color-active: #e9ecef;
  --color-focus: rgba(74, 144, 226, 0.25);
  
  /* Status colors */
  --color-success: #28a745;
  --color-success-light: #d4edda;
  --color-warning: #ffc107;
  --color-warning-light: #fff3cd;
  --color-danger: #dc3545;
  --color-danger-light: #f8d7da;
  --color-info: #17a2b8;
  --color-info-light: #d1ecf1;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Spacing (already defined in responsive.css) */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Typography */
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Border radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Z-index scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}
/* Dark Theme */
[data-theme="dark"] {
  /* Background colors */
  --color-bg-primary: #0d1117;
  --color-bg-secondary: #161b22;
  --color-bg-tertiary: #21262d;
  --color-bg-card: #161b22;
  --color-bg-modal: rgba(13, 17, 23, 0.95);
  
  /* Text colors */
  --color-text-primary: #f0f6fc;
  --color-text-secondary: #8b949e;
  --color-text-tertiary: #6e7681;
  --color-text-inverse: #0d1117;
  --color-text-muted: #6e7681;
  
  /* Border colors */
  --color-border-primary: #30363d;
  --color-border-secondary: #21262d;
  --color-border-hover: #484f58;
  
  /* Interactive states */
  --color-hover: #21262d;
  --color-active: #262c36;
  --color-focus: rgba(96, 165, 250, 0.25);
  
  /* Primary colors adjusted for dark mode */
  --color-primary: #58a6ff;
  --color-primary-light: #79c0ff;
  --color-primary-dark: #1f6feb;
  
  /* Shadows adjusted for dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  
  /* Gradients adjusted for dark mode */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #5b21b6 100%);
  
  /* Status colors adjusted for dark mode */
  --color-success: #3fb950;
  --color-success-light: rgba(63, 185, 80, 0.15);
  --color-warning: #d29922;
  --color-warning-light: rgba(210, 153, 34, 0.15);
  --color-danger: #f85149;
  --color-danger-light: rgba(248, 81, 73, 0.15);
  --color-info: #58a6ff;
  --color-info-light: rgba(88, 166, 255, 0.15);
}
/* High contrast mode */
[data-theme="high-contrast"] {
  --color-bg-primary: #000000;
  --color-bg-secondary: #000000;
  --color-bg-tertiary: #000000;
  --color-bg-card: #000000;
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #ffffff;
  --color-text-tertiary: #ffffff;
  
  --color-border-primary: #ffffff;
  --color-border-secondary: #ffffff;
  --color-border-hover: #ffffff;
  
  --color-primary: #ffffff;
  --color-primary-light: #ffffff;
  --color-primary-dark: #ffffff;
  
  --color-hover: #333333;
  --color-active: #666666;
}
/* System theme detection and smooth transitions */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
  }
}
/* Theme transition animation */
html {
  transition: background-color var(--transition-normal), color var(--transition-normal);
}
* {
  transition: background-color var(--transition-normal), 
              border-color var(--transition-normal), 
              color var(--transition-normal),
              box-shadow var(--transition-normal);
}
/* Disable transitions during theme change for performance */
html.theme-changing * {
  transition: none !important;
}
/* Base styles using theme variables */
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-sans);
}
/* Component base styles */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.button {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}
.button:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button--secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-primary);
}
.button--secondary:hover {
  background-color: var(--color-hover);
  border-color: var(--color-border-hover);
}
.input {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-md);
}
.input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px var(--color-focus);
}
/* Theme-aware scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}
/* Selection colors */
::selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
::-moz-selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
/* Dark mode: blue selection colors */
[data-theme="dark"] ::selection {
  background-color: #40E0D0;
  color: white;
}
[data-theme="dark"] ::-moz-selection {
  background-color: #40E0D0;
  color: white;
}
/* Focus visible improvements */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  html {
    scroll-behavior: auto !important;
  }
}
/* Print styles */
@media print {
  :root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #ffffff;
    --color-bg-card: #ffffff;
    --color-text-primary: #000000;
    --color-text-secondary: #000000;
    --color-border-primary: #000000;
  }
  
  * {
    background: transparent !important;
    box-shadow: none !important;
  }
}
/* Component-Specific Styles */
/* Profile Image Container */
.profile-image-container {
  background-color: var(--bg-surface);
  border: 3px solid var(--profile-border);
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: border-color, background-color;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg-surface);
  transition: background-color 0.3s ease;
}
/* Bubble Shapes */
.bubble-shape {
  background: linear-gradient(
    135deg, 
    var(--bubble-gradient-start), 
    var(--bubble-gradient-end)
  );
  border-radius: 50%;
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  transition: background 0.3s ease;
}
.bubble-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: -1s;
}
.bubble-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: -3s;
}
.bubble-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 30%;
  animation-delay: -5s;
}
.bubble-floating-1 {
  width: 100px;
  height: 100px;
  top: -20px;
  right: -20px;
  animation-delay: -2s;
  opacity: 0.15;
}
.bubble-floating-2 {
  width: 60px;
  height: 60px;
  bottom: -10px;
  left: -10px;
  animation-delay: -4s;
  opacity: 0.15;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}
/* Lines and Dividers */
.footer-divider,
.trademark-border {
  border-color: var(--line-color);
  transition: border-color 0.3s ease;
}
/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
/* Buttons */
.button {
  background-color: var(--accent-primary);
  color: white;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.button:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--glass-border);
}
.button--secondary:hover {
  background-color: var(--glass-bg);
  border-color: var(--accent-secondary);
}
/* Links */
.link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.link:hover {
  color: var(--accent-secondary);
}
.link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.3s ease;
}
.link:hover::before {
  width: 100%;
}
/* Social Links */
.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}
.social-link:hover {
  color: white;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Theme Toggle */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent-secondary);
}
.theme-toggle:hover {
  background: var(--accent-secondary);
  color: white;
  transform: scale(1.1);
}
:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* CSS Architecture:
   - mobile.css (mobile-first utilities & breakpoints)
   - variables.css (design tokens & theme variables)
   - base.css (typography & base styles)  
   - themes.css (light/dark theme styles)
   - components.css (reusable component styles)
*/