/* Smart City Bike-Lane Analytics Dashboard - Main CSS */

/* Color Variables */
:root {
  --primary-blue: #3b77ec;
  --secondary-green: #6fc21f;
  --accent-orange: #fe9f3a;
  --neutral-gray: #989898;
  --dark-navy: #324455;
  
  /* Light shades */
  --light-blue: #f2faff;
  --light-green: #f9f9f9;
  --light-orange: #fff9eb;
  --light-gray: #F5F5F5;
  --light-navy: #ECF0F1;
  
  /* Dark shades */
  --dark-blue: #0754af;
  --dark-green: #499554;
  --dark-orange: #d72a00;
  --dark-gray: #474241;
  --darker-navy: #1b2f3c;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--dark-navy);
  background-color: #ffffff;
}

/* 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;
  }
}

/* Conservative font sizes */
h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.89rem; font-weight: 600; }
h3 { font-size: 1.58rem; font-weight: 500; }
h4 { font-size: 1.36rem; font-weight: 500; }
h5 { font-size: 1.18rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p { font-size: 14px; margin-bottom: 1rem; }

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  padding: 0.75rem 0;
  box-shadow: 0 7px 10px rgba(85, 154, 221, 0.10);
}

.navbar-brand {
  font-size: 1.19rem;
  font-weight: 600;
  color: white !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-blue) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-blue), var(--light-green));
  background-image: url('../CYB_images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 155, 222, 0.70), rgba(133, 209, 17, 0.50));
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  color: white;
  text-shadow: 4px 2px 4px rgba(0,0,0,0.3);
}

#hero p {
  color: white;
  font-size: 1.14rem;
}

/* About Section */
#about {
  padding: 4rem 0;
  background: var(--light-gray);
}

.feature-card {
  background: white;
  border-radius: 11px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-9px);
}

.feature-card i {
  font-size: 2.63rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Services Section */
#services {
  padding: 4rem 0;
  background: white;
}

.service-card {
  background: white;
  border: 2px solid var(--light-blue);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
  transition: left 0.3s ease;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 28px rgba(74, 122, 230, 0.15);
}

.service-price {
  font-size: 1.58rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin: 1rem 0;
}

/* Features Section */
#eae6a1tures {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-blue), var(--light-green));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 19px rgba(0,0,0,0.1);
}

.feature-item i {
  color: var(--secondary-green);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Price Plan Section */
#priceplan {
  padding: 4rem 0;
  background: white;
}

.price-card {
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 19px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.price-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(63, 139, 210, 0.15);
}

.price-card.featured {
  border-color: var(--secondary-green);
  background: linear-gradient(135deg, var(--light-green), white);
}

.price-value {
  font-size: 2.61rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin: 1rem 0;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.price-features li:last-child {
  border-bottom: none;
}

/* Team Section */
#team {
  padding: 4rem 0;
  background: var(--light-gray);
}

.team-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--light-blue);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-role {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.94rem;
}

/* Reviews Section */
#reviews {
  padding: 4rem 0;
  background: white;
}

.review-card {
  background: var(--light-blue);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-blue);
}

.review-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  color: var(--dark-blue);
}

/* Case Study Section */
#casestudy {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-orange), var(--light-blue));
}

.case-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
}

.case-card h4 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

/* Process Section */
#process {
  padding: 4rem 0;
  background: white;
}

.process-step {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--secondary-green);
  border-radius: 50%;
  border: 4px solid white;
}

/* Timeline Section */
#timeline {
  padding: 4rem 0;
  background: var(--light-navy);
}

.timeline-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-orange);
}

/* Career Section */
#career {
  padding: 4rem 0;
  background: white;
}

.career-card {
  background: var(--light-green);
  border-radius: 10px;
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid var(--secondary-green);
}

.career-role {
  color: var(--dark-green);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Core Info Section */
#coreinfo {
  padding: 4rem 0;
  background: var(--light-gray);
}

.info-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 10px rgba(0,0,0,0.1);
  height: 100%;
}

.info-card i {
  font-size: 2rem;
  color: var(--neutral-gray);
  margin-bottom: 1rem;
}

/* Contact Section */
#contacts {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
}

.contact-form {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-control {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  background: white;
  box-shadow: 0 0 0 7px rgba(97, 195, 37, 0.30);
}

.btn-primary {
  background: var(--secondary-green);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.btn-primary:focus {
  background: var(--dark-green);
  box-shadow: 0 0 0 3px rgba(119, 194, 29, 0.30);
}

.form-check-input:checked {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
}

/* Form validation styles */
.is-invalid {
  border-color: #c53141;
}

.is-valid {
  border-color: var(--secondary-green);
}

.invalid-feedback {
  color: #d04159;
  font-size: 0.95rem;
  margin-top: 0.49rem;
  display: block;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animation performance */
* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  backface-visibility: hidden;
}

/* Production optimizations */
img {
  image-rendering: auto;
  image-rendering: optimizeQuality;
}

/* Print media improvements */
@media print {
  .navbar,
  .breadcrumb,
  .btn,
  footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .service-card,
  .team-card,
  .blog-card,
  .case-card,
  .price-card {
    transition: none;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .price-card:hover {
    transform: none;
  }
}

/* Blog Section */
#blog {
  padding: 4rem 0;
  background: white;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--light-blue);
}

.blog-content {
  padding: 1.5rem;
}

/* FAQ Section */
#faq {
  padding: 4rem 0;
  background: var(--light-gray);
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
  background: var(--light-blue);
  padding: 1rem 1.5rem;
  margin: 0;
  font-weight: 600;
  color: var(--dark-blue);
  border-radius: 8px 8px 0 0;
}

.faq-answer {
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 0 0 8px 8px;
}

/* Gallery Section */
#gallery {
  padding: 4rem 0;
  background: white;
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-gray);
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background: var(--darker-navy);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.footer-section a {
  color: #c6bdbc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-green);
}

.footer-bottom {
  border-top: 1px solid #545454;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
}

/* Utility Classes */
.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-green); }
.text-accent { color: var(--accent-orange); }
.bg-primary { background-color: var(--primary-blue); }
.bg-secondary { background-color: var(--secondary-green); }
.bg-light-blue { background-color: var(--light-blue); }

/* Image Placeholders */
img[src*=".webp"] {
  background: var(--light-gray);
  border: 2px dashed var(--neutral-gray);
  display: block;
  width: 100%;
  height: auto;
}

/* Section Spacing */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--neutral-gray);
  margin-bottom: 1rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  z-index: 1000;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
  color: #fff;
}

/* Breadcrumbs */
.breadcrumb {
  background: none;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
}

/* Ensure proper list styling reset */
ul {
  padding-left: 1.5rem;
}

ul.list-unstyled {
  padding-left: 0;
  list-style: none;
}

/* Additional responsive image handling */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Service card specific styling */
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Ensure consistent card heights */
.feature-card,
.service-card,
.price-card,
.team-card,
.info-card,
.case-card {
  display: flex;
  flex-direction: column;
}

.feature-card > *,
.service-card > *,
.price-card > *,
.info-card > *,
.case-card > * {
  flex-grow: 0;
  flex-shrink: 0;
}

.feature-card p,
.service-card p,
.info-card p,
.case-card p {
  flex-grow: 1;
} 


/* 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;
    }
}
