:root {
  /* Color Palette - Pastel High-Contrast Colors */
  --primary-blue: #5B9BD5;
  --primary-blue-light: #A8D0F0;
  --primary-blue-dark: #2E5F8C;
  
  --secondary-purple: #8B7EC8;
  --secondary-purple-light: #B8ADE6;
  --secondary-purple-dark: #5A4B8A;
  
  --accent-green: #7FB069;
  --accent-green-light: #B2D49B;
  --accent-green-dark: #4E7A3B;
  
  --warm-orange: #E07A5F;
  --warm-orange-light: #F0A691;
  --warm-orange-dark: #B84D2F;
  
  --soft-pink: #F2A7CA;
  --soft-pink-light: #F8C8E0;
  --soft-pink-dark: #D27AA0;
  
  /* Typography */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --element-margin: 2rem;
}

/* Typography Overrides - Conservative Sizes */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: #333;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--secondary-purple-dark);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

h4, h5, h6 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--secondary-purple);
}

p {
  font-size: var(--font-size-base);
  color: #555;
  margin-bottom: 1rem;
}

/* Section Styling */
.section-padding {
  padding: var(--section-padding);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--secondary-purple-light) 100%);
  display: flex;
  align-items: center;
}

.hero-decorative {
  position: relative;
  overflow: hidden;
}

.hero-decorative img {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-filter: none !important;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

.hero-decorative::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--soft-pink-light);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
}

.hero-decorative::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: var(--accent-green-light);
  border-radius: 50%;
  opacity: 0.4;
  z-index: 1;
}

/* Services Cards */
.service-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-orange);
}

/* Team Cards */
.team-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem auto;
}

/* Review Cards */
.review-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  height: 100%;
}

/* FAQ Cards */
.faq-card {
  background: white;
  border: 1px solid var(--primary-blue-light);
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #666;
  margin: 0;
}

/* Price Plan Cards */
.price-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--warm-orange);
}

/* Features Section */
.feature-item {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
}

/* Case Study Cards */
.case-study-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  height: 100%;
}

/* Process Steps */
.process-step {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  height: 100%;
}

/* Timeline Items */
.timeline-item {
  background: white;
  border-left: 4px solid var(--primary-blue);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 10px 10px 0;
}

/* Career Cards */
.career-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  height: 100%;
}

/* Core Info Items */
.core-info-item {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  height: 100%;
}

/* Contact Form */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-control {
  border: 2px solid var(--primary-blue-light);
  border-radius: 8px;
  padding: 0.75rem;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.25);
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
}

/* Blog Cards */
.blog-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple-dark) 100%);
  color: white;
  padding: 3rem 0 1rem 0;
}

.footer h5 {
  color: var(--primary-blue-light);
}

.footer a {
  color: var(--primary-blue-light);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* Gallery */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Accessibility */
@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;
  }
  
  .hero-decorative::before,
  .hero-decorative::after,
  .space-container::before,
  .space-container::after {
    animation: none !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-decorative::before,
  .hero-decorative::after,
  .space-container::before,
  .space-container::after {
    display: none;
  }
  
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-scrolled .navbar-brand {
  color: var(--primary-blue-dark);
}

/* Animation Classes */
.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.lozad {
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
  color: white;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Enhancements */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Image Loading States */
.team-photo,
.gallery-item img,
.blog-card img,
.service-card img {
  transition: opacity 0.3s ease;
}

.team-photo.loaded,
.gallery-item img.loaded,
.blog-card img.loaded,
.service-card img.loaded {
  opacity: 1;
}

.team-photo[src*="placeholder"],
.gallery-item img[src*="placeholder"],
.blog-card img[src*="placeholder"],
.service-card img[src*="placeholder"] {
  opacity: 0.5;
  background-color: #f8f9fa;
}

/* Breadcrumb Styling */
.breadcrumb-section {
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-image {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.breadcrumb-image:hover {
  opacity: 1;
}

/* Enhanced Hover Effects */
.feature-item:hover,
.core-info-item:hover,
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.blog-card:hover,
.case-study-card:hover,
.career-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Space Page Styling */
.space-container {
  min-height: calc(100vh - 140px);
  padding-top: 80px;
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--secondary-purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.space-container::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 100px;
  height: 100px;
  background: var(--soft-pink-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.space-container::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 15%;
  width: 80px;
  height: 80px;
  background: var(--accent-green-light);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-blue);
}

.text-secondary-custom {
  color: var(--secondary-purple);
}

.bg-light-custom {
  background-color: #f8f9fa;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-blue-light), transparent);
  margin: 2rem 0;
}

/* Mobile animation override - ensure all elements are visible */
@media (max-width: 768px) {
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.hero-section h1 {
    padding-top: 125px;
}


/* Team Social Links - Square Style */
.team-social-links {
    margin-top: 18px;
    padding: 12px 0;
}

.social-icons-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: relative;
}

.social-link:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.facebook-link {
    background: #1877f2;
    border: 2px solid #1877f2;
}

.facebook-link:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.linkedin-link {
    background: #0a66c2;
    border: 2px solid #0a66c2;
}

.linkedin-link:hover {
    background: #0959aa;
    border-color: #0959aa;
}

.x-link {
    background: #000000;
    border: 2px solid #000000;
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: bold;
    font-size: 18px;
}

.x-link:hover {
    background: #333333;
    border-color: #333333;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 8px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}
