/* BookSwap - Main CSS */

:root {
  /* Primary Color Palette - Pastel High Contrast */
  --primary-color: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4338ca;
  
  --secondary-color: #10b981;
  --secondary-light: #6ee7b7;
  --secondary-dark: #047857;
  
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  
  --neutral-color: #6b7280;
  --neutral-light: #d1d5db;
  --neutral-dark: #374151;
  
  --background-color: #f8fafc;
  --background-light: #ffffff;
  --background-dark: #1f2937;
  
  /* Typography */
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-large: 1.125rem;
  --line-height-base: 1.6;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: var(--line-height-base);
  color: var(--neutral-dark);
  background-color: var(--background-color);
    overflow-x: hidden;
}

/* Respect reduced motion preference */
@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;
  }
}

/* Header Styles */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--neutral-dark);
  transition: color 0.3s ease;
}

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

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--background-light) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: var(--accent-light);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: var(--primary-dark);
  font-size: 2.5rem;
}

#hero .lead {
  color: var(--secondary-dark);
  font-size: 1.25rem;
}

/* Section Styles */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

/* Card Styles */
.card {
  border: 1px solid var(--neutral-light);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Text Colors */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-muted {
  color: var(--neutral-color);
}

/* Icon Styles */
.fa-3x {
  font-size: 2.5rem;
}

.fa-2x {
  font-size: 1.75rem;
}

/* Team Member Images */
.rounded-circle {
  border: 3px solid var(--primary-light);
}

/* Gallery Styles */
#gallery img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

#gallery img:hover {
  transform: scale(1.05);
}

/* Form Styles */
.form-control {
  border: 1px solid var(--neutral-light);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Footer Styles - High Contrast */
footer {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

footer h5, footer h6 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

footer .text-muted {
  color: #f0f0f0 !important;
}

footer p {
  color: #f0f0f0 !important;
}

footer small {
  color: #e0e0e0 !important;
}

footer a {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

footer a:hover {
  color: #dbeafe !important;
  text-decoration: underline !important;
}

footer a:focus {
  outline: 2px solid #93c5fd !important;
  outline-offset: 2px !important;
}

footer ul li {
  margin-bottom: 0.5rem !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  footer {
    background-color: #000000 !important;
    color: #ffffff !important;
  }
  
  footer .text-muted {
    color: #ffffff !important;
  }
  
  footer a {
    color: #ffffff !important;
    background-color: #0066cc !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
  }
}

/* Process Steps */
.bg-primary {
  background-color: var(--primary-color);
}

/* Pricing Cards */
.border-primary {
  border-color: var(--primary-color);
}

/* Statistics Section */
#coreinfo .text-primary {
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb-nav {
  background-color: var(--background-light);
  border-bottom: 1px solid var(--neutral-light);
}

/* Animation Classes for Sal.js */
.sal-animate {
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

/* Conservative Typography */
h1, .display-4 {
  font-size: 2.25rem;
}

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

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

h4, .h4 {
  font-size: 1.25rem;
}

h5, .h5 {
  font-size: 1.1rem;
}

h6, .h6 {
  font-size: 1rem;
}

.lead {
  font-size: 1.125rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
} 


/* Team Social Links - Glass Style */
.team-social-links {
    margin-top: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.facebook-link {
    background: rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 0.5);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.3);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 0.5);
}

.instagram-link {
    background: rgba(228, 64, 95, 0.3);
}

.instagram-link:hover {
    background: rgba(228, 64, 95, 0.5);
}

.x-link {
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Footer Forced Visibility Rules */
footer#footer {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

footer#footer * {
    visibility: visible !important;
    opacity: 1 !important;
}

footer#footer h5,
footer#footer h6,
footer#footer .h5,
footer#footer .h6 {
    color: #ffffff !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer#footer p,
footer#footer .text-muted,
footer#footer span,
footer#footer div {
    color: #f0f0f0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer#footer small {
    color: #e0e0e0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer#footer a,
footer#footer a:link,
footer#footer a:visited {
    color: #93c5fd !important;
    text-decoration: underline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer#footer a:hover,
footer#footer a:active {
    color: #dbeafe !important;
    text-decoration: underline !important;
}

footer#footer ul,
footer#footer li {
    visibility: visible !important;
    opacity: 1 !important;
    color: #f0f0f0 !important;
}

footer#footer ul li {
    margin-bottom: 0.5rem !important;
    padding: 0.25rem 0 !important;
}
