/* Base Styles */
body {
  font-family: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, 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; 
  font-size: 12px; 
}

.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; 
}

/* Carousel Styles */
.hero-carousel {
  margin-top: 0;
}

.carousel-item {
  height: 70vh; /* Reduced from 100vh */
  min-height: 500px; /* Reduced from 600px */
  max-height: 800px; /* Added maximum height */
}

.carousel-item img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
  filter: brightness(0.9); /* Slightly darken images for better text contrast */
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7); /* Darker overlay */
  bottom: 25%;
  padding: 25px 30px;
  border-radius: 8px;
  left: 10%;
  right: 10%;
  text-align: left;
}

.carousel-caption h2 {
  font-size: 2rem; /* Slightly larger */
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-caption p {
  font-size: 1rem; /* Larger paragraph */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}


/* Mission Section */
.mission {
  padding: 72px 0; 
}

.mission h2 {
  font-weight: 700;
  color: #2A5C8A;
  font-size: 1.4rem;
}

.mission .lead {
  font-size: 0.8rem; 
}

/* About Us Section */
.about-us {
  padding: 72px 0; 
}

.about-us h2 {
  color: #2A5C8A;
  font-weight: 700;
  position: relative;
  padding-bottom: 7px; 
  font-size: 1.4rem;
}

.about-us .lead {
  font-size: 0.8rem;
}

.about-us img {
  transition: transform 0.3s;
}

.about-us img:hover {
  transform: scale(1.02);
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
  font-size: 12px; 
}

.project-card .overlay h5,
.project-card .overlay h3 {
  font-size: 0.9rem; 
}

.project-card:hover .overlay {
  transform: translateY(0);
}

/* Services Section Styling */
.services h2 {
  font-size: 1.8rem;
  color: #2A5C8A;
  font-weight: 600;
}

.service-card {
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #2A5C8A;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style-type: none;
  padding-left: 1rem;
}

.service-card ul li {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: #555;
}

.service-card ul li:before {
  content: "•";
  color: #2A5C8A;
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}

.text-primary {
  color: #2A5C8A !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .service-card {
    margin-bottom: 1.5rem;
  }
}

/* Equal height cards */
.row {
  display: flex;
  flex-wrap: wrap;
}

.row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* Footer */
footer {
  padding: 52px 0 22px; 
  font-size: 12px; 
}

footer h5 {
  font-size: 0.9rem;
  margin-bottom: 12px; 
  font-weight: 600;
}

.social-links a {
  transition: all 0.3s;
}

.social-links a:hover {
  transform: translateY(-5px);
  opacity: 0.8;
}

.back-to-top {
  text-decoration: none;
  transition: all 0.3s;
}

.back-to-top:hover {
  color: #0d6efd !important;
}

/* Buttons */
.btn {
  font-size: 12px; 
}

.btn-lg {
  font-size: 14px; 
}

.btn-outline-primary {
  border-color: #2A5C8A;
  color: #2A5C8A;
}

.btn-outline-primary:hover {
  background: #2A5C8A;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-caption {
    bottom: 20%;
    padding: 15px 20px;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 50vh;
    min-height: 300px;
  }
  
  .carousel-caption {
    bottom: 15%;
    left: 5%;
    right: 5%;
  }
  
  .carousel-caption h2 {
    font-size: 1.3rem;
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .carousel-item {
    height: 70vh;
    min-height: 400px;
  }
  
  .carousel-caption {
    bottom: 20%;
    padding: 10px;
  }
  
  .carousel-caption h2 {
    font-size: 1.0rem;
  }
  
  .carousel-caption p {
    font-size: 0.5rem;
  }
  
  .mission h2,
  .about-us h2,
  .services h2 {
    font-size: 1.0rem;
  }
  
  .navbar-brand span {
    display: none;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 60vh;
  }
  
  .mission .lead,
  .about-us .lead {
    font-size: 0.7rem;
  }
}
 /* 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;
  }