/* General Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-top: 56px; /* Adjusted for fixed navbar */
}

.section-heading {
    margin-top: 0;
    font-weight: 700;
}

/* Background Sections with Overlay */
.page-section-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    color: white;
    padding: 100px 0;
    min-height: calc(100vh - 56px - 60px); /* Adjust based on navbar and footer height */
}

.page-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-section-bg .container {
    position: relative;
    z-index: 2;
}

/* Specific Backgrounds */
.bg-hero {
    background-image: url('../Images/hero-bg.jpg');
}

.bg-about {
    background-image: url('../Images/about-bg.jpg');
}

.bg-platform {
    background-image: url('../Images/platform-bg.jpg');
}

.bg-contact {
    background-image: url('../Images/contact-bg.jpg');
}

/* Contact Page Icons */
#contact .contact-box i {
    color: #007bff; /* Bootstrap primary blue */
    font-size: 1.2rem;
}

/* Platform & Contact Page Enhancements */
.feature-item, .contact-box, .about-text-box {
    background: rgba(255, 255, 255, 0.2); /* Changed to semi-transparent white */
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

@media (max-width: 768px) {
    .feature-item {
        /* Removed margin-bottom here, will be handled by col classes */
    }
    .feature-item:last-child {
        /* Removed margin-bottom here, will be handled by col classes */
    }
}

.about-text-box p {
    font-size: 1.3rem; /* Further increased font size */
    line-height: 1.6;   /* Increased line height */
    font-weight: 300; /* Lighter font weight for better readability */
}

/* Footer */
footer {
    margin-top: auto;
}

/* Home Page Carousel */
.home-carousel {
    overflow: hidden;
    background: #0f172a;
}

.home-carousel .carousel-item {
    position: relative;
}

.home-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 15, 30, 0.64) 0%, rgba(8, 15, 30, 0.28) 48%, rgba(8, 15, 30, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.home-carousel .promo-slide::before {
    background: none;
}

.home-carousel .promo-slide,
.home-carousel .promo-slide .carousel-banner-link {
    background: linear-gradient(90deg, #ff7445 0%, #ff8b58 100%);
}

.home-carousel .carousel-item img {
    width: 100%;
    height: clamp(280px, 44vw, 560px);
    object-fit: cover;
    object-position: center;
}

.home-carousel .promo-slide img {
    object-fit: contain;
}

.carousel-banner-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-carousel-caption {
    left: 8%;
    right: auto;
    bottom: 12%;
    width: min(560px, 56%);
    padding: 24px 26px;
    text-align: left;
    border-radius: 24px;
    background: rgba(6, 14, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.home-carousel-caption h1,
.home-carousel-caption h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
}

.home-carousel-caption p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.caption-kicker {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff6f1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.caption-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
    width: 7%;
    z-index: 3;
}

.home-carousel .carousel-indicators {
    z-index: 3;
}

.home-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border: 0;
    border-radius: 50%;
}

.service-highlight-card {
    border: 1px solid rgba(255, 90, 54, 0.2);
    background: linear-gradient(180deg, #fffaf7 0%, #fff1ea 100%);
    box-shadow: 0 12px 30px rgba(255, 90, 54, 0.08);
}

.service-badge {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 90, 54, 0.12);
    color: #e14a26;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .home-carousel .carousel-item::before {
        background: linear-gradient(180deg, rgba(8, 15, 30, 0.2) 0%, rgba(8, 15, 30, 0.7) 100%);
    }

    .home-carousel .carousel-item img {
        height: min(56vh, 420px);
    }

    .home-carousel-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        padding: 18px 18px 16px;
        border-radius: 18px;
    }

    .home-carousel-caption h1,
    .home-carousel-caption h2 {
        margin: 8px 0 10px;
        font-size: 1.75rem;
    }

    .home-carousel-caption p {
        font-size: 0.98rem;
    }

    .caption-actions {
        gap: 10px;
    }

    .caption-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Navbar Toggler adjustments for smaller screens */
    .navbar-toggler {
        padding: 0.25rem 0.5rem; /* Smaller padding */
        font-size: 0.875rem; /* Smaller font size if text is present */
    }

    .navbar-toggler-icon {
        width: 1.2em; /* Adjust icon width */
        height: 1.2em; /* Adjust icon height */
    }
}
