/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  padding-top: 0;
  font-size: 12px;
}

/* 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;
  font-size: 12px;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  font-size: 12px; 
}

/* Services Hero */
.services-hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.7), 
    rgba(0, 0, 0, 0.4)), 
    url('../images/services-bg.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; 
}

.services-hero h1 {
  font-size: 1.8rem; 
}

.services-hero .lead {
  font-size: 0.8rem; 
}

/* Service Cards */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px; 
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.service-card h4 {
  font-size: 0.9rem; 
}

.service-card .card-img-top {
  overflow: hidden;
}

.service-card img {
  transition: transform 0.5s;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-features {
  list-style: none;
  padding-left: 0;
  font-size: 11px; 
}

.service-features li {
  margin-bottom: 6px;
}

/* Specialties Section */
.specialty-icon {
  width: 50px; 
  height: 50px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem; 
}

.specialty-item h4 {
  font-size: 0.9rem;
}

.specialty-item p {
  font-size: 11px;
}

/* Portfolio Section */
.portfolio-card {
  transition: all 0.3s;
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
}

.portfolio-card h4 {
  font-size: 0.9rem; 
}

.portfolio-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.portfolio-card img {
  transition: transform 0.5s;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.project-meta {
  margin: 10px 0;
}

.badge {
  font-size: 11px; 
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px; 
  left: 0;
  right: 0;
  height: 2px;
  background: #0d6efd;
  z-index: 1;
}

.process-step {
  width: 18%;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 8px; 
}

.step-number {
  width: 60px; 
  height: 60px; 
  background: #0d6efd;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem; 
  font-weight: bold;
  margin: 0 auto 15px; 
  border: 3px solid white; 
}

.process-step h4 {
  font-size: 0.9rem; 
}

.process-step p {
  font-size: 11px; 
}

/* Headings */
h2 {
  font-size: 1.4rem; 
}

.lead {
  font-size: 0.8rem; 
}

/* Buttons */
.btn {
  font-size: 12px; 
}

.btn-outline-primary {
  padding: 4px 8px; 
}

/* Footer */
footer {
  font-size: 12px; 
}

footer h5 {
  font-size: 0.9rem; 
}

.social-links i {
  font-size: 1.5rem; 
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .process-step {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
  }
  
  .step-number {
    margin-right: 15px; 
    width: 50px; 
    height: 50px;
  }
  
  .specialty-item {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 767px) {
  .services-hero {
    min-height: 250px; 
    margin-bottom: 30px; 
  }
  
  .services-hero h1 {
    font-size: 1.4rem;
  }
  
  .experience-badge {
    width: 60px;
    height: 60px;
    bottom: -8px;
    right: -8px; 
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .services-hero {
    min-height: 300px; 
  }
}

@media (min-width: 1200px) {
  .services-hero {
    min-height: 400px;
  }
}

/* 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;
  }