/* Modern Industrial Theme - Alex Template */

:root {
    --bs-primary: #00B14C; /* Green from logo */
    --bs-primary-rgb: 0, 177, 76;
    --bs-secondary: #34495e; /* Steel Blue/Grey */
    --bs-secondary-rgb: 52, 73, 94;
    --bs-dark: #1a252f; /* Dark Charcoal */
    --bs-dark-rgb: 26, 37, 47;
    --bs-light: #ecf0f1; /* Light Grey */
    --bs-light-rgb: 236, 240, 241;
    --bs-body-font-family: 'Open Sans', sans-serif;
    --bs-heading-font-family: 'Oswald', sans-serif;
    --bs-link-color: #00B14C;
    --bs-link-hover-color: #008f3d;
    --header-height: calc(5rem + 3px);
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-dark);
    padding-top: var(--header-height); /* Navbar height compensation */
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.footer {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: #fff;
    color: var(--bs-dark);
}

/* BUTTONS */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #008f3d;
    --bs-btn-hover-border-color: #008f3d;
    --bs-btn-focus-shadow-rgb: 0, 177, 76;
    font-family: var(--bs-heading-font-family);
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0; /* Square edges for industrial look */
    padding: 0.75rem 1.5rem;
}

.btn-danger {
    /* Using danger as a secondary call to action or similar */
    border-radius: 0;
}

/* NAVBAR */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #fff !important;
    border-bottom: 3px solid var(--bs-primary);
}

.navbar-brand {
    font-family: var(--bs-heading-font-family);
    font-size: 1.75rem;
    color: var(--bs-dark) !important;
}

.nav-link {
    font-family: var(--bs-heading-font-family);
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--bs-dark) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--bs-primary) !important;
}

/* CAROUSEL */
.carousel-item-image {
    height: calc(100vh - var(--header-height));
    min-height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
}

@supports (height: 100dvh) {
    .carousel-item-image {
        height: calc(100dvh - var(--header-height));
    }
}

.carousel-item-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.4); Removed full overlay */
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    padding-bottom: 3rem; /* Space for indicators/aesthetics */
    padding-top: 1.5rem;
}

.carousel-caption h1 {
    /* font-size: 3.5rem;  Controlled by display classes now */
    color: var(--bs-dark);
}

.carousel-control-prev, .carousel-control-next {
    z-index: 11; /* Ensure chevrons are above the caption bar */
}

.carousel-caption p {
    font-size: 1.25rem;
    color: var(--bs-secondary);
}

/* MARKETING / SERVICES */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    border-radius: 0;
    height: 250px;
    object-fit: cover;
}

.card-body {
    background-color: #fff;
    border-top: 3px solid var(--bs-primary);
}

/* ABOUT SECTION */
#about {
    background-color: #fff;
}

#about ul {
    list-style: none;
    padding-left: 0;
}

#about ul li::before {
    content: "\2713"; /* Checkmark */
    color: var(--bs-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* PORTFOLIO */
#portfolio {
    background-color: var(--bs-light);
}

.portfolio-item .card-text {
    font-family: var(--bs-heading-font-family);
    font-size: 1.25rem;
    color: var(--bs-dark);
}

/* TESTIMONIALS */
#testimonials {
    background-color: #fff;
    color: var(--bs-dark);
    padding: 4rem 0;
}

#testimonials .carousel-indicators button {
    background-color: var(--bs-primary);
}

#testimonials .text-muted {
    color: var(--bs-secondary) !important;
}

/* Removed invert filter for white controls, letting them be default (or dark via carousel-dark class) */
.carousel-dark .carousel-control-next-icon,
.carousel-dark .carousel-control-prev-icon {
    /* filter: invert(1) grayscale(100) brightness(200%); */
    /* Use default dark controls for white background */
}

/* CONTACT */
#contact {
    background-color: #fff;
}

.form-floating input, .form-floating textarea {
    border-radius: 0;
    border: 1px solid #ced4da;
}

.form-floating input:focus, .form-floating textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 177, 76, 0.25);
}

/* UTILS */
.bg-blur {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    padding: 1rem;
    display: inline-block;
}

.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid var(--bs-primary);
  width: 30px;
  height: 30px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
    display: none;
}

.lines2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
          line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lines3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
          line-clamp: 3;
  -webkit-box-orient: vertical;
}

.testimonial-container {
    height: 350px; /* Fixed height for the entire testimonial block */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text-wrapper {
    height: 150px; /* Fixed height for the paragraph section */
    display: flex;
    align-items: center; /* Vertically center the text */
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
}

.testimonial-text-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* Default (Mobile) - 5 lines */
            line-clamp: 5;
    text-align: center;
}

@media (min-width: 768px) {
    .testimonial-container {
        height: 280px; /* Reduced height for desktop */
    }

    .testimonial-text-wrapper {
        height: 100px; /* Reduced height for 3 lines */
    }

    .testimonial-text-content {
        -webkit-line-clamp: 3; /* Desktop - 3 lines */
                line-clamp: 3;
    }
}
