body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('Images/Network_Racks.jpg') no-repeat center center/cover;
}

.page-header {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('Images/ServerStorage_Image.jpg') no-repeat center center/cover;
}

/* Removed unused .service-card hover */

/* New styles for enhanced sections */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.bg-primary {
  background-color: #0d6efd !important;
}

.text-primary {
  color: #0d6efd !important;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

/* Logo styling */
.navbar-brand img {
  filter: brightness(0) invert(1);
  transition: filter 0.6s ease;
}

.navbar-brand:hover img {
  animation: logoColorShift 3s ease-in-out infinite;
}

@keyframes logoColorShift {
  0% {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(0deg);
  }
  25% {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(90deg);
  }
  50% {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg);
  }
  75% {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(270deg);
  }
  100% {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(360deg);
  }
}

/* Icon styling */
.fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Footer enhancements */
footer a:hover {
  color: #0d6efd !important;
  text-decoration: underline !important;
}

/* Section spacing */
section {
  position: relative;
}

/* Assessment section styling */
.bg-primary .bg-white.bg-opacity-10 {
  backdrop-filter: blur(10px);
}

/* Ensure consistent text alignment on mobile */
@media (max-width: 768px) {
  .text-start {
    text-align: left !important;
  }
  
  .bg-primary .bg-white.bg-opacity-10 ul {
    text-align: left !important;
  }
  
  .bg-primary .bg-white.bg-opacity-10 li {
    text-align: left !important;
  }
  
  /* Fix text wrapping alignment for assessment section */
  .bg-primary .bg-white.bg-opacity-10 p,
  .bg-primary .bg-white.bg-opacity-10 li {
    text-align: left !important;
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Ensure list items maintain proper alignment */
  .bg-primary .bg-white.bg-opacity-10 ul li {
    padding-left: 1.5rem !important;
    text-indent: -1.5rem !important;
  }
  
  /* Ensure paragraphs maintain proper alignment */
  .bg-primary .bg-white.bg-opacity-10 p {
    padding-left: 0 !important;
    text-indent: 0 !important;
  }
}

/* Assessment section specific styling for mobile text alignment */
.assessment-list {
  text-align: left;
}

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

@media (max-width: 768px) {
  .assessment-list {
    text-align: left !important;
  }
  
  .assessment-list li {
    text-align: left !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
    display: block;
  }
  
  .assessment-description {
    text-align: left !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
  }
}

/* Addon services styling */
.addon-image {
  height: 200px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #f8f9fa;
  padding: 10px;
}

.addon-card {
  transition: all 0.3s ease;
}

.addon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.addon-card:hover .card-title {
  color: #0d6efd !important;
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
  border-radius: 15px 15px 0 0;
}

.modal-body img {
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Enhanced backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

/* Tailored proposal link styling */
.tailored-proposal-link {
  display: block;
  transition: all 0.3s ease;
}

.tailored-proposal-link:hover {
  transform: scale(1.02);
}

.tailored-proposal-link .bg-white {
  background-color: #4da6ff !important;
  color: white !important;
}

.tailored-proposal-link .bg-white p {
  color: white !important;
}

/* Core values cards */
.card-body {
  padding: 2rem;
}

/* Image enhancements */
.card img {
  transition: transform 0.3s ease;
}

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

/* Why Choose section image */
.why-choose-img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Service tier cards */
.service-tier-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-tier-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.service-tier-card.featured {
  border-color: #ffc107;
  transform: scale(1.02);
}

.service-tier-card.featured:hover {
  transform: scale(1.02) translateY(-10px);
}

.service-tier-card .card-header {
  border-bottom: none;
}

/* Service overview cards */
.service-overview-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.service-overview-card.featured {
  border-color: #198754;
  transform: scale(1.02);
}

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

/* Badge enhancements */
.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Enhanced buttons */
.btn-lg {
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Compliance section enhancements */
/* Removed unused bg-opacity-20 rule */

/* Value section icons */
.bg-primary.rounded-circle {
  transition: transform 0.3s ease;
}

.bg-primary.rounded-circle:hover {
  transform: scale(1.1);
}

/* Compliance badges styling */
.compliance-badges img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.compliance-badges img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.compliance-badges .text-center {
  transition: all 0.3s ease;
}

.compliance-badges .text-center:hover {
  transform: translateY(-5px);
}

.compliance-badges h5,
.compliance-badges h6 {
  color: white;
  margin-top: 0.5rem;
}

.compliance-badges p {
  color: white;
}

.compliance-badges small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Override text colors for light backgrounds */
.bg-light .compliance-badges h5,
.bg-light .compliance-badges h6 {
  color: #212529 !important;
}

.bg-light .compliance-badges p {
  color: #212529 !important;
}

.bg-light .compliance-badges small {
  color: #6c757d !important;
}

/* Enhanced badge section */
.compliance-badges {
  background: transparent;
  border-radius: 15px;
  padding: 2rem;
}

.compliance-badges img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

/* Social icons */
.social-icons a {
  display: inline-block;
  margin-left: 0.5rem;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.social-icons a:hover img {
  filter: grayscale(0%);
}

/* Cookie consent - CSS only approach */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1055;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner .btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-banner .btn-primary {
  background: #0d6efd;
  color: white;
}

.cookie-banner .btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
}

/* Hide cookie banner when cookie is set */
.cookie-banner[data-accepted="true"] {
  display: none;
}

/* Performance optimizations */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('Images/Network_Racks.jpg') no-repeat center center/cover;
  will-change: transform;
}

.page-header {
  height: 40vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('Images/ServerStorage_Image.jpg') no-repeat center center/cover;
  will-change: transform;
}

/* Optimize images */
img {
  max-width: 100%;
  height: auto;
}

/* Reduce unused CSS by removing duplicate rules */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Focus and Accessibility Styles */
.btn:focus,
.nav-link:focus,
.form-control:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.navbar-toggler:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Skip to content link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Improve focus visibility for interactive elements */
a:focus,
button:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Ensure sufficient contrast for all text elements */
.text-muted {
  color: #6c757d !important;
}

.text-dark {
  color: #212529 !important;
}

/* Ensure sufficient contrast for light backgrounds */
.bg-light .text-muted {
  color: #495057 !important;
}

.bg-light .text-dark {
  color: #000000 !important;
}

/* Improve button contrast */
.btn-outline-secondary {
  color: #495057 !important;
  border-color: #6c757d !important;
}

.btn-outline-secondary:hover {
  color: #ffffff !important;
  background-color: #6c757d !important;
}

/* Ensure form labels have sufficient contrast */
.form-label {
  color: #212529 !important;
  font-weight: 600;
}

/* Improve card text contrast */
.card-text {
  color: #212529 !important;
}

/* Ensure footer text has good contrast */
footer .text-light {
  color: #f8f9fa !important;
}

/* Improve modal text contrast */
.modal-body p {
  color: #212529 !important;
}

/* Ensure compliance badges text is readable */
.compliance-badges h6,
.compliance-badges p,
.compliance-badges small {
  color: #000000 !important;
}

/* Improve service tier card text contrast */
.service-tier-card .card-body p {
  color: #212529 !important;
}

.service-tier-card .card-body li {
  color: #212529 !important;
}

/* Ensure proper heading hierarchy */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Fix navbar height */
.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  height: 35px !important;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* Adjust page header to account for fixed navbar */
.page-header {
  padding-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-brand img {
    height: 30px !important;
  }
  
  .service-tier-card.featured,
  .service-overview-card.featured {
    transform: none;
  }
  
  .service-tier-card.featured:hover,
  .service-overview-card.featured:hover {
    transform: translateY(-5px);
  }
}

/* Additional Accessibility Improvements */
/* Ensure all interactive elements are keyboard accessible */
[tabindex]:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Improve focus visibility for form elements */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Ensure sufficient contrast for all text */
.text-white {
  color: #ffffff !important;
}

.text-primary {
  color: #0d6efd !important;
}

.text-success {
  color: #198754 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-info {
  color: #0dcaf0 !important;
}

/* Improve button accessibility */
.btn {
  position: relative;
}

.btn:focus {
  z-index: 1;
}

/* Ensure modal accessibility */
.modal-header .btn-close:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Improve card accessibility */
.card:focus-within {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Ensure sufficient contrast for background colors */
.bg-primary {
  background-color: #0d6efd !important;
}

.bg-success {
  background-color: #198754 !important;
}

.bg-warning {
  background-color: #ffc107 !important;
}

.bg-danger {
  background-color: #dc3545 !important;
}

.bg-info {
  background-color: #0dcaf0 !important;
}

.bg-secondary {
  background-color: #6c757d !important;
}

.bg-dark {
  background-color: #212529 !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}
