/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  padding-top: 0;
  font-size: 12px; 
  line-height: 1.5;
}

/* Navbar */
.navbar {
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 0; 
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2px 0; 
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  font-size: 12px;
}

/* Page Header */
.page-header {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), 
    rgba(0, 0, 0, 0.3)), 
    url('../images/about-bg-large.jpg') center/cover no-repeat;
  position: relative;
  color: white;
  min-height: 300px; 
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px; 
}

.page-header h1 {
  font-weight: 700;
  font-size: 2rem; 
}

.lead-sm { 
  font-size: 0.8rem; 
  font-weight: 400;
}

/* Icon Box */
.icon-box {
  width: 60px; 
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team Section Styles */
.team-section {
  background-color: #f8f9fa;
}

.divider {
  width: 80px;
  height: 3px;
  background-color: #0d6efd;
  margin: 1rem auto;
}

.team-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
}

.team-member-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-member-img {
  transform: scale(1.05);
}

.card-body h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.card-body a {
  text-decoration: none;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .col-sm-6 {
    max-width: 50%;
    flex: 0 0 50%;
  }
  
  .image-container {
    padding-top: 120%; /* Slightly taller on mobile */
  }
}

@media (max-width: 575.98px) {
  .col-12 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .team-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Testimonials Styles */
.testimonial-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.client-info {
  border-top: 1px solid #eee;
  padding-top: 10px; 
}

.bg-light {
  background-color: #f8f9fa!important;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px; 
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px; 
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0d6efd;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px; 
}

.timeline-year {
  position: absolute;
  left: 0;
  width: 30px; 
  height: 30px;
  background: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transform: translateX(-50%);
  font-size: 0.8rem; 
}

.timeline-content {
  background: white;
  padding: 15px; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  margin-left: 25px; 
}

.timeline-content h4 {
  color: #0d6efd;
  font-size: 1rem; 
}

/* Client Logos */
.grayscale {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.grayscale:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Footer */
footer {
  padding: 40px 0 20px; 
}

footer h5 {
  margin-bottom: 15px; 
  font-weight: 600;
  font-size: 1rem; 
}

.social-links a {
  transition: all 0.3s;
}

.social-links a:hover {
  transform: translateY(-3px); 
  opacity: 0.8;
}

.back-to-top {
  text-decoration: none;
  transition: all 0.3s;
}

.back-to-top:hover {
  color: #0d6efd !important;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .page-header {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.6), 
    rgba(0, 0, 0, 0.3)), 
    url('../images/about-bg-large.jpg') center/cover no-repeat;
  position: relative;
    min-height: 250px; 
    padding: 60px 0 !important; 
    margin-bottom: 30px; 
  }
  
  .page-header h1 {
    font-size: 1.8rem; 
  }
  
  .page-header .lead-sm {
    font-size: 0.7rem; 
  }
  
  .timeline::before {
    left: 15px; 
  }
  
  .timeline-year {
    left: 15px; 
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 50px); 
    margin-left: 30px !important; 
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .page-header {
    min-height: 400px; 
  }
}

@media (min-width: 1200px) {
  .page-header {
    min-height: 500px; 
  }
}

/* Chat Widget Styles */
  .twilio-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    font-family: 'Aktiv Grotesk', sans-serif;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
  }
  
  .twilio-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .chat-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f5f5f5;
  }
  
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
  }
  
  .chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
  }
  
  .chat-bubble.received {
    background: white;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .chat-bubble.sent {
    background: #DCF8C6;
    align-self: flex-end;
  }
  
  .chat-time {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
  }
  
  .chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
  }
  
  .form-group textarea {
    min-height: 80px;
    resize: none;
  }
  
  .send-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
  }
  
  .send-button:hover {
    background: #128C7E;
  }
  
  .chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .chat-toggle:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
  
  .chat-toggle i {
    font-size: 20px;
  }