/* styles.css */

/* -----------------------
   Base / Desktop Styles
------------------------ */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Smooth transition for height, padding, etc. */
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem; /* Desktop padding */
    position: relative;
}

.logo {
    position: absolute; 
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: #004225;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #28a745;
}

/* Full-size Login Button */
.header-login-button {
    background-color: #f0f0f0;
    color: #004225;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header-login-button:hover {
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 66, 37, 0.2);
}

/* The new hidden button for collapsed mobile header */
.header-login-button-collapsed {
    display: none; /* shown only in collapsed mode */
    background-color: #f0f0f0;
    color: #004225;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Hero Section */
#animated-text {
    color: white;
}

#cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em; /* Match cursor height to text */
    background-color: white;
    animation: blink 0.8s infinite step-start;
}

/* Cursor blinking effect */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero {
    background-color: #004225;
    color: white;
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%;
    max-width: 85vw;
    max-height: 80vh;
}

.hero-content {
    text-align: left;
    width: 70%;
    position: relative;
    min-height: 8rem;
}

.hero-content-right {
    text-align: center;
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive font sizing for H1 */
.hero h1 {
    font-size: min(3rem, 10vw); 
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    white-space: pre-line;
    overflow: visible;
}

.left-button {
    position: absolute;
    top: 25rem;
}

.hero .left-button .quote-button {
    background-color: transparent;
    color: #d1d1d1;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: 2px solid #d1d1d1;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(150%);
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.hero .quote-button:hover {
    background-color: #d1d1d1;
    color: #004225;
}

.hero-content-right h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d1d1d1;
    margin-bottom: 1rem;
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    height: 30vh;
    background-color: #d1d1d1;
    margin: 0 2rem;
}

.hero p {
    font-size: 1.125rem;
    color: #d1d1d1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero .quote-button {
    background-color: transparent;
    color: #d1d1d1;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: 2px solid #d1d1d1;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: absolute;
    bottom: -5rem;
    left: 0;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.hero .assessment-button {
    background-color: transparent;
    color: #d1d1d1;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: 2px solid #d1d1d1;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.hero .quote-button:hover,
.hero .assessment-button:hover {
    background-color: #d1d1d1;
    color: #004225;
}

/* Divider Section */
.divider {
    background-color: #f8f9fa;
    padding: 2rem 0;
    width: 100%;
    overflow: visible;
}

/* Divider Image */
.segmentation-image {
    width: 100%;
    padding: 0;
    margin: 0;
}

.segmentation-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Newsletter Section */
.newsletter {
    background-color: #e9ecef;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter input[type="email"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newsletter button {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter-image img {
    height: 200px;
    width: auto;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Additional page-specific styling if needed */
.hero-services {
    background-color: #004225;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-services h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-services p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================
   MOBILE-FRIENDLY MEDIA QUERY
   ========================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.4rem 0.5rem;
        align-items: center;
        position: relative;
    }

    /* Create top row for logo and login button */
    .navbar::before {
        content: "";
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: relative;
        height: 35px;
    }

    .logo {
        position: absolute;
        left: 0.5rem;
        top: 0.4rem;
        transform: none;
        margin-bottom: 0;
    }

    .logo img {
        height: 30px; /* Smaller logo for mobile */
        width: auto;
    }

    .header-login-button {
        position: absolute;
        right: 0.5rem;
        top: 0.4rem;
        margin: 0;
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 0.1rem;
        padding: 0.3rem 0;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }

    .hero {
        /* Increased top padding to prevent overlap with header */
        min-height: 85vh;
    }

    .hero h1{
        font-size: 2rem;
    }
    .hero-container{
        min-height: 65vh;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-height: none;
    }

    .hero-content {

        padding-top: 6rem;
        width: 100%;
        /* margin-bottom: 2rem; */
    }

    .hero-content-right {
        width: 100%;
        /* margin-bottom: 2rem; */
    }

    .vertical-divider {
        display: none;
    }

    /* Collapsed header on mobile */
    .header.mobile-collapsed {
        height: 40px;   /* or whichever smaller height you like */
        overflow: hidden;
    }

    .header.mobile-collapsed .navbar {
        padding: 0 0.5rem; /* remove top/bottom padding to shrink height */
    }

    .header.mobile-collapsed .logo img {
        height: 25px; /* shrink the logo */
    }

    .header.mobile-collapsed .header-login-button {
        display: none; /* hide the big button in collapsed mode, if you like */
    }

    .header.mobile-collapsed .header-login-button-collapsed {
        display: block;
        position: absolute;
        right: 10px;
        top: 5px;
        font-size: 0.7rem; /* smaller text to fit nicely */
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
        background-color: #f0f0f0;
        color: #004225;
        text-decoration: none;
    }

    .header.mobile-collapsed .header-login-button-collapsed:hover {
        background-color: #e0e0e0;
        box-shadow: 0 4px 8px rgba(0, 66, 37, 0.2);
    }
}


/* ======================
   New Carousel CSS
====================== */

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

/* Default: 1 card per screen (mobile) */
.service-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0; 
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: 0.5rem; 
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s, background-color 0.3s;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    opacity: 1;
    background-color: #f8f9fa;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators .dot.active {
    background: #004225;
}

/* Tablet: 2 cards per screen */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-card {
        flex: 0 0 50%;
    }
}

/* Desktop: 3 cards per screen */
@media (min-width: 1025px) {
    .service-card {
        flex: 0 0 33.3333%;
    }
}

/* ---------------------------
   Contact Form Styling
---------------------------- */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  
  .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
  }
  
  .contact-submit-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .contact-submit-button:hover {
    background-color: #218838;
  }
  
.core-service-icon {
  color: #004225 !important;
}

.why-choose-icon {
  color: #000000 !important;
}

.why-choose-us strong {
  color: #004225;
}

/* Enhanced Carousel Navigation Arrows */
#industryCarousel .carousel-control-prev,
#industryCarousel .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

#industryCarousel .carousel-control-prev-icon,
#industryCarousel .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: #004225;
  border-radius: 50%;
  background-size: 50%;
}

#industryCarousel .carousel-control-prev {
  left: -50px;
}

#industryCarousel .carousel-control-next {
  right: -50px;
}

/* Make arrows more visible on hover */
#industryCarousel .carousel-control-prev:hover,
#industryCarousel .carousel-control-next:hover {
  opacity: 1;
}

/* Ensure the carousel container allows for the arrows to be visible */
#services .container {
  position: relative;
  overflow: visible;
  padding: 0 60px;
}

/* Enhanced dot indicators for all carousels */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  position: relative;
  bottom: 0;
  z-index: 10;
}

.carousel-indicators .dot,
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  border: 0;
  opacity: 1;
}

.carousel-indicators .dot.active,
.carousel-indicators .active {
  background-color: #004225;
}

/* Mobile-specific carousel styles */
@media (max-width: 768px) {
  /* Hide navigation buttons on mobile */
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-btn.prev,
  .carousel-btn.next,
  #industryCarousel .carousel-control-prev,
  #industryCarousel .carousel-control-next {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  /* Ensure indicators are always visible on mobile */
  .carousel-indicators,
  #industryCarousel .carousel-indicators {
    display: flex !important;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
  }
  
  /* Style indicator dots for mobile */
  .carousel-indicators .dot,
  .carousel-indicators [data-bs-target],
  #industryCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: #ccc;
    border: 0;
    border-radius: 50%;
    opacity: 1;
  }
  
  .carousel-indicators .active,
  .carousel-indicators .dot.active,
  #industryCarousel .carousel-indicators .active {
    background-color: #004225;
  }
  
  /* Remove side padding that was reserved for arrows */
  #services .container {
    padding: 0 15px;
  }
  
  /* Ensure there's room for the indicators */
  #industryCarousel {
    padding-bottom: 30px;
  }
}

/* Fix for Core Services card layout and button alignment */
.core-services .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.core-services .card-text {
  flex-grow: 1;
}

.core-services .btn {
  margin-top: auto;
  align-self: center;
}

/* Custom styling for Core Services "Learn More" buttons */
.core-services .btn-outline-primary {
  color: #004225;
  border-color: #004225;
}

.core-services .btn-outline-primary:hover,
.core-services .btn-outline-primary:focus,
.core-services .btn-outline-primary:active {
  background-color: #004225;
  border-color: #004225;
  color: white;
}

/* Fixed height for Industry Specialty carousel */
#industryCarousel {
  min-height: 400px; /* Adjust this value as needed */
}

#industryCarousel .carousel-inner {
  min-height: 400px; /* Same as parent */
}

#industryCarousel .carousel-item {
  min-height: 400px; /* Same as parent */
}

#industryCarousel .card {
  min-height: 400px; /* Same as parent */
  overflow-y: auto; /* Allow scrolling for content that exceeds the height */
}

/* Past Clients Animated Logo Slider */
.past-clients {
  background-color: #f8f9fa;
  overflow: hidden;
  padding: 40px 0;
}

.client-logo-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.client-logo-slider {
  display: flex;
  width: max-content; /* Ensure it takes up as much space as needed */
  animation: slide 30s linear infinite;
}

/* Each logo slide contains a set of logos */
.logo-slide {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 50px;
  padding: 0 25px;
  animation: none; /* Remove any individual slide animation */
}

.client-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Improved keyframes for seamless sliding */
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Only move by half - the width of one set of logos */
  }
}

/* Pause the animation on hover for better user experience */
.client-logo-container:hover .client-logo-slider {
  animation-play-state: paused;
}

/* Featured Case Studies Section */
.featured-case-studies {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.case-study-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.case-study-content {
    display: flex;
    height: 300px;
}

.case-study-text {
    width: 50%;
    padding: 2rem;
    background-color: #575757;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-image {
    width: 50%;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-label {
    color: #5FDDCD;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-study-industry {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.case-study-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.case-study-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.case-study-link:hover, 
.case-study-link:focus {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .case-study-content {
        flex-direction: column;
        height: auto;
    }
    
    .case-study-text, 
    .case-study-image {
        width: 100%;
    }
    
    .case-study-image {
        height: 200px;
    }
}

/* Mobile Read More Button for Carousel Cards */
/* Mobile card gradient and "Read more" functionality */
@media (max-width: 767.98px) {
    .carousel-card-text-container {
        position: relative;
        max-height: 280px;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .carousel-card-text-container.expanded {
        max-height: 2000px; /* Large enough to show all content */
    }
    
    .card-text-fade {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .expanded .card-text-fade {
        opacity: 0;
    }
    
    .read-more-btn {
        display: block;
        width: 100%;
        text-align: center;
        background: none;
        border: none;
        color: #004225;
        font-weight: 500;
        padding: 8px 0;
        margin-top: 5px;
        cursor: pointer;
    }
    
    .expanded + .read-more-btn .more-text {
        display: none;
    }
    
    .expanded + .read-more-btn .less-text {
        display: inline;
    }
    
    .read-more-btn .less-text {
        display: none;
    }
}

@media (min-width: 768px) {
    .read-more-btn {
        display: none;
    }
}

/* Certification Section */
.certification-badge .bi-patch-check-fill.text-primary,
.certification-badge .bi-award-fill.text-primary,
.certification-badge .bi-shield-fill-check.text-primary {
  color: #004225 !important;
}

/* Any other Bootstrap primary elements */
.text-primary {
  color: #004225 !important;
}

.bg-primary {
  background-color: #004225 !important;
}

.border-primary {
  border-color: #004225 !important;
}

.btn-primary,
.btn-primary.active,
.btn-primary:active,
.btn-primary.focus,
.btn-primary:focus {
  background-color: #004225 !important;
  border-color: #004225 !important;
}

.btn-primary:hover {
  background-color: #003018 !important;
  border-color: #003018 !important;
}

.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary.focus,
.btn-outline-primary:focus {
  color: #004225 !important;
  border-color: #004225 !important;
}

.btn-outline-primary:hover {
  background-color: #004225 !important;
  border-color: #004225 !important;
  color: white !important;
}

/* Override for default Bootstrap blue links */
a {
  color: #004225;
}

a:hover {
  color: #003018;
}

/* Fix for any blue focus or active states */
.btn:focus, .btn.focus,
.btn:active, .btn.active {
  box-shadow: 0 0 0 0.2rem rgba(0, 66, 37, 0.25) !important;
}
  