/* General Body and Typography */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text); /* Default text color */
    background-color: var(--light-white);
    scroll-behavior: smooth;
}

/* Color Variables */
:root {
    --primary-green: #4CAF50; /* Main green for accents, buttons */
    --secondary-yellow: #FFEB3B; /* Bright yellow for highlights */
    --accent-orange: #FF9800; /* Warm orange for sections, badges */
    --light-white: #F8F9FA; /* Off-white for light backgrounds */
    --dark-text: #212529; /* Dark grey for main text */
    --light-text: #6c757d; /* Lighter grey for secondary text */
    --header-bg: rgba(33, 37, 41, 0.9); /* Dark overlay for header */
}

/* Ensure default text color is always visible */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
}
p {
    color: var(--dark-text);
}
a {
    color: var(--primary-green);
}
a:hover {
    color: var(--accent-orange);
}

/* Custom Buttons */
.btn-primary-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-primary-green:hover {
    background-color: #388E3C; /* Darker green on hover */
    border-color: #388E3C;
    color: white;
}
.btn-outline-primary-green {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline-primary-green:hover {
    background-color: var(--primary-green);
    color: white;
}
.btn-outline-secondary-yellow {
    color: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline-secondary-yellow:hover {
    background-color: var(--secondary-yellow);
    color: var(--dark-text);
}


/* Header */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(5px);
    z-index: 1030; /* Above most content */
}
.navbar-brand .text-white {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-yellow);
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* Adjust for fixed header */
}
@media screen and (width <576px) {
    .hero-section {
        height: unset;
}
}
.hero-bg-image {
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}
.hero-section .container {
    z-index: 2;
}
.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}
.hero-section .floating-title {
    /* No animation, but can still apply subtle styling */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-section .lead {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.hero-section .bi {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* About Section - Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
}
.timeline-item.left {
    left: 0;
    /* padding-right: 30px; */
}
.timeline-item.right {
    left: 50%;
    /* padding-left: 30px; */
}
@media screen and (width > 767px) {
    .timeline-item.left {
    padding-right: 30px;
}
.timeline-item.right {
    padding-left: 30px;
}

}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary-yellow);
    border: 3px solid var(--primary-green);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.right::after {
    left: -10px;
}
.timeline-content {
    background-color: white;
    border-radius: 8px;
    position: relative;
    padding: 20px;
}
.timeline-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--accent-orange);
}
/* .timeline-item.right .timeline-icon {
    left: 20px;
    right: auto;
} */

/* Services & Industries Sections - Tabs */
.nav-tabs {
    border-bottom: none;
}
.nav-tabs .nav-link {
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(144, 142, 142);
    margin: 0 5px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-tabs .nav-link.active {
    background-color: white;
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-green);
}
.nav-tabs .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--secondary-yellow);
}
.tab-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    color: var(--dark-text);
}
.tab-content ul {
    margin-top: 1rem;
}
.tab-content ul li {
    margin-bottom: 0.5rem;
}

/* Features Section */
.feature-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.feature-box:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
}

/* Team Section */
#team {
    background-color: var(--accent-orange);
}
.team-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}
.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-green);
    margin-bottom: 1rem;
}
/* Chessboard effect for team section */
@media (min-width: 768px) {
    .team-card:nth-child(even) {
        margin-top: 3rem; /* Push down every second card */
    }
    .team-card:nth-child(odd) {
        margin-bottom: 3rem; /* Create space for the pushed-down card */
    }
}
@media (min-width: 992px) {
    .team-card:nth-child(even) {
        margin-top: 5rem;
    }
    .team-card:nth-child(odd) {
        margin-bottom: 5rem;
    }
}


/* Portfolio Section */
.portfolio-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}
.portfolio-item .card-img-top {
    height: 200px;
    object-fit: cover;
}
.portfolio-item .card-body {
    padding: 1.5rem;
}
.modal-content {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.modal-header, .modal-footer {
    border-color: rgba(0,0,0,0.1);
}

/* FAQ Section */
.accordion-item {
    border: none;
    background-color: white;
    border-radius: 8px !important;
    overflow: hidden; /* Ensures shadow is within rounded corners */
}
.accordion-button {
    background-color: white;
    color: var(--dark-text);
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    box-shadow: none !important;
    border-radius: 8px !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-green);
    background-color: var(--light-white);
}
.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}
.accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Gallery Section */
#gallery {
    background-color: var(--accent-orange);
}
.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}
.carousel-caption {
    background-color: rgba(0,0,0,0.6);
    padding: 1rem;
    border-radius: 8px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.carousel-control-prev-icon::before {
    content: "\f13a"; /* Bootstrap icon for chevron-left */
    font-family: "bootstrap-icons";
}
.carousel-control-next-icon::before {
    content: "\f13b"; /* Bootstrap icon for chevron-right */
    font-family: "bootstrap-icons";
}
.carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,0.5);
}
.carousel-indicators .active {
    background-color: white;
}

/* Contact Section */
.contact-form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.contact-form-container .form-control {
    border-color: rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
}
.contact-form-container .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}
.contact-info p {
    font-size: 1.1rem;
}
.contact-info a {
    color: var(--dark-text);
}
.contact-info a:hover {
    color: var(--primary-green);
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: white;
}
.footer a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--secondary-yellow);
}
.footer .social-icons a {
    color: white;
    font-size: 1.5rem;
}
.footer .social-icons a:hover {
    color: var(--primary-green);
}
.footer hr {
    border-color: rgba(255,255,255,0.1);
}
.footer .list-inline-item {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100%;
    max-width: 380px;
    z-index: 1050; /* Above modals if needed, but usually below */
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
    display: none; /* Hidden by default, shown by JS */
}
.cookie-banner .card-body {
    padding: 1.5rem;
}
.cookie-banner .card-title {
    color: var(--dark-text);
}
.cookie-banner .card-text {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Cookie Modal */
#cookieSettingsModal .modal-content {
    border-radius: 8px;
}
#cookieSettingsModal .form-check-label {
    color: var(--dark-text);
}
#cookieSettingsModal .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}
#cookieSettingsModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}
#cookieSettingsModal .badge.bg-success-subtle {
    background-color: rgba(76, 175, 80, 0.1) !important;
    color: var(--primary-green) !important;
}


/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    .display-5 {
        font-size: 1.5rem;
    }
    .display-6 {
        font-size: 1.5rem;
    }

    /* Timeline for mobile */
    .timeline::after {
        left: 18px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    .timeline-item::after,
    .timeline-item.right::after {
        left: 10px;
    }
    .timeline-item.right .timeline-icon {
        left: auto;
        right: 20px;
    }
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    .carousel-item img {
        height: 300px;
    }
    .carousel-caption {
        width: 100%;
        bottom: 0;
        left: 0;
        transform: translateX(0);
        border-radius: 0;
    }
    .cookie-banner {
        bottom: 0;
        right: 0;
        max-width: none;
        border-radius: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .team-card:nth-child(odd) {
        margin-bottom: 0; /* Reset for larger screens, as it's handled by specific media queries */
    }
}
/* New styles for .securePolicyGrid and its child elements */

.securePolicyGrid {
    padding-top: 80px; /* Top padding for the section */
    padding-left: 30px; /* Left padding for the section */
    padding-right: 30px; /* Right padding for the section */
    padding-bottom: 80px; /* Bottom padding for the section */
    max-width: 960px; /* Maximum width for content readability */
    margin: 0 auto; /* Center the content block horizontally */
}

.securePolicyGrid h1 {
    font-size: 2.2rem; /* Font size for H1 */
    margin-bottom: 1.5rem; /* Bottom margin for H1 */
    line-height: 1.2; /* Line height for H1 */
    color: var(--dark-text); /* Ensure H1 uses the defined dark text color */
}

.securePolicyGrid h2 {
    font-size: 1.8rem; /* Font size for H2 */
    margin-bottom: 1.2rem; /* Bottom margin for H2 */
    line-height: 1.3; /* Line height for H2 */
    color: var(--dark-text); /* Ensure H2 uses the defined dark text color */
}

.securePolicyGrid h3 {
    font-size: 1.5rem; /* Font size for H3 */
    margin-bottom: 1rem; /* Bottom margin for H3 */
    line-height: 1.4; /* Line height for H3 */
    color: var(--dark-text); /* Ensure H3 uses the defined dark text color */
}

.securePolicyGrid h4 {
    font-size: 1.2rem; /* Font size for H4 */
    margin-bottom: 0.8rem; /* Bottom margin for H4 */
    line-height: 1.5; /* Line height for H4 */
    color: var(--dark-text); /* Ensure H4 uses the defined dark text color */
}

.securePolicyGrid h5 {
    font-size: 1.1rem; /* Font size for H5 */
    margin-bottom: 0.6rem; /* Bottom margin for H5 */
    line-height: 1.6; /* Line height for H5 */
    color: var(--dark-text); /* Ensure H5 uses the defined dark text color */
}

.securePolicyGrid p {
    font-size: 1rem; /* Font size for paragraphs */
    margin-bottom: 1rem; /* Bottom margin for paragraphs */
    line-height: 1.7; /* Line height for paragraphs */
    color: var(--dark-text); /* Ensure paragraphs use the defined dark text color */
}

.securePolicyGrid ul {
    list-style: disc; /* Default disc style for unordered lists */
    margin-bottom: 1rem; /* Bottom margin for unordered lists */
    padding-left: 20px; /* Left padding for list items */
}

.securePolicyGrid ol {
    list-style: decimal; /* Default decimal style for ordered lists */
    margin-bottom: 1rem; /* Bottom margin for ordered lists */
    padding-left: 20px; /* Left padding for list items */
}

.securePolicyGrid ul li,
.securePolicyGrid ol li {
    margin-bottom: 0.5rem; /* Bottom margin for list items */
    line-height: 1.6; /* Line height for list items */
    color: var(--dark-text); /* Ensure list items use the defined dark text color */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .securePolicyGrid {
        padding-top: 60px; /* Adjust top padding for smaller screens */
        padding-left: 15px; /* Adjust side padding for smaller screens */
        padding-right: 15px; /* Adjust side padding for smaller screens */
        padding-bottom: 60px; /* Adjust bottom padding for smaller screens */
    }

    .securePolicyGrid h1 {
        font-size: 1.8rem; /* Smaller H1 for mobile */
    }

    .securePolicyGrid h2 {
        font-size: 1.5rem; /* Smaller H2 for mobile */
    }

    .securePolicyGrid h3 {
        font-size: 1.3rem; /* Smaller H3 for mobile */
    }

    .securePolicyGrid h4 {
        font-size: 1.1rem; /* Smaller H4 for mobile */
    }

    .securePolicyGrid h5 {
        font-size: 1rem; /* Smaller H5 for mobile */
    }

    .securePolicyGrid p {
        font-size: 0.95rem; /* Slightly smaller paragraph text for mobile */
    }
}
.hero-section p {
    color: #ffffffcf;
}
.team-card .badge {
    color: var(--accent-orange);
}
.carousel-caption h5,
.carousel-caption p {
    color: #fff;
}
.footer p {
    color: #ffffff8f;
}