/* Custom CSS for ICT Prodigy LLP */
/* Base color: #4169e1 (purple) */

:root {
    --primary-color: #4169e1;
    --primary-dark: #8A1BCF;
    --primary-light: #B54DF4;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Primary color styling */
.bg-primary {
    background-color: #4169e1 !important;
}

.bg-primary.bg-gradient {
    background: linear-gradient(180deg, #4169e1, #8A1BCF) !important;
}

.btn-primary {
    background-color: #4169e1;
    border-color: #4169e1;
}

.btn-primary:hover {
    background-color: #8A1BCF;
    border-color: #8A1BCF;
}

.text-primary {
    color: #4169e1 !important;
}

/* Section styling */
section {
  scroll-margin-top: 70px; /* Account for fixed navbar */
}

/* Optimize images for faster loading */
img {
  max-width: 100%;
  height: auto;
  /* Prevent layout shift */
  display: block;
}

/* Logo styling */
.logo, .footer-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

/* Form styling */
.form-control, .form-select {
  border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    border-color: #4169e1;
    box-shadow: 0 0 0 0.25rem rgba(160, 32, 240, 0.25);
}

/* Button styling */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Card styling */
.card {
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

/* Service card specific styling */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,.1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,.15);
}

/* Improve text readability */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Floating social media and WhatsApp buttons */
.floating-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-button:hover {
  transform: scale(1.1);
}

.floating-whatsapp {
  background-color: #25D366;
}

.floating-facebook {
  background-color: #1877F2;
}

.floating-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc277f, #cc2366, #bc1888);
}

.floating-linkedin {
  background-color: #0077B5;
}

/* Responsive adjustments for floating buttons */
@media (max-width: 767px) {
  .floating-container {
    right: 15px;
    bottom: 15px;
  }
  
  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Optimize for low bandwidth - reduce visual complexity */
@media (max-width: 767px) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .service-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .floating-container {
    margin-bottom: 20px;
  }
}

/* Ensure content is accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Custom scrollbar for modern browsers */
@media (prefers-reduced-motion: no-preference) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
  }
}

/* Form success/error message styling */
.form-message {
  padding: 10px;
  margin: 15px 0;
  border-radius: 4px;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    color: #4169e1;
    background-color: #f3e5f5;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A020F0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
/* About Us icon background color */
.about-us-icon-bg {
    background-color: #721c24 !important;
}
/* SEO and accessibility improvements */
/* Add schema.org structured data classes */
[data-scope] {
    display: none;
}

/* Improve heading hierarchy for SEO */
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Ensure proper contrast for accessibility */
.text-white {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Add microdata for local business */
.local-business {
    display: none;
}

/* Improve link accessibility */
a {
    transition: color 0.2s ease;
}

a:hover, a:focus {
    text-decoration: underline;
    outline: none;
}

/* Add print styles */
@media print {
    .floating-container, .navbar, .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .card, .bg-white {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
    display: none !important;
}

/* Hero section full background image */
.hero-bg-section {
    background: linear-gradient(rgba(0, 60, 136, 0.7), rgba(0, 60, 136, 0.7)),
                url('../images/travel.jpg') center center/cover no-repeat;
    position: relative;
    min-height: 90vh; /* Increase height of hero section */
    display: flex;
    align-items: center;
}