.hero-section {
    position: relative;
    width: 100%;
    padding: 2rem 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 5; 
}

.hero-content {
    width: 100%;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
    margin-inline: auto ;

    max-width: 1200px;

}

.hero-text {
    width: 100%;
    color: var(--light-base);
    order: 2; 
}

.hero-title {
    font-family: var(--primary-font);
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-align: left;

}

.hero-subtitle {
    font-family: var(--secondary-font);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: .5px;
    color: var(--light-mid);
    opacity: .7;
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: left;
}

.hero-button {
    font-family: var(--primary-font);
    padding: 0.875rem 2rem;
    background: var(--accent-primary);
    color: var(--dark-base);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
    cursor: pointer;
    margin: 0;
}

.hero-button:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
}

.hero-button:active {
    background: var(--accent-primary-active);
    transform: translateY(0);
}


.hero-image {
    width: 100%;

    height: 31vh;
    
    display: block;
    object-fit: cover;
    object-position: center;
    
}

/* What we offer section */
.offering-section {
    margin-block-start: 3rem;
    padding: 3rem 2rem;
    margin-block-end: 2rem;
    max-width: 1200px;
    margin-inline: auto;
    position: relative;
    overflow: hidden; 
    background-color: var(--light-base);
}

.offering-description {
    font-family: var(--secondary-font);
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.25rem);
    line-height: 1.6;
    color: var(--dark-base);
    opacity: 0.65;
}

.service-snippets {
    margin-block-start: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}


.tagline {
    font-family: var(--secondary-font);
    font-size: clamp(2rem, 2.5vw + 1rem, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.5rem;
    color: var(--dark-base);
}

.heading-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.snippet {
    font-family: var(--secondary-font);
    padding: 20px;
    max-width: 260px;
    cursor: pointer;
}

.snippet .icon i {
    font-size: 50px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
    margin-bottom: 20px;
    display: block;
}

.snippet:hover .icon i {
    color: var(--dark-base); 
}

.snippet-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--dark-base);
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: var(--secondary-font);
}

.learn-more a {
    display: inline-flex;
    align-items: center;
    font-family: var(--secondary-font);
    color: var(--dark-base);
    text-decoration: none;
}

/* Hidden text */
.learn-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    transition:
        max-width 0.4s ease,
        opacity 0.3s ease,
        margin-right 0.4s ease;
}

/* Reveal on hover */
.snippet:hover .learn-text {
    max-width: 100px;
    opacity: 1;
    margin-right: 10px;
}

/* Arrow animation */
.learn-more i {
    transition: transform 0.3s ease;
}

.snippet:hover .learn-more i {
    transform: translateX(3px);
}


@media (min-width: 700px) {
    .heading-description {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    .heading {
        flex: 1;
        min-width: 300px;
    }
    .offering-description {
        flex: 1.5;
        margin-top: 0;
        padding-top: 0.5rem; /* Aligns with heading */
    }
    .flex-item {
        flex: 1 1 1;
    }
    .flex-item-2 {
        flex: 2 1 2; 
    }
}

@media (min-width: 900px) {
    .hero-section {
        min-height: 60vh;
        max-height: 85vh;
        padding-block: 4rem;
        margin-top: 0;
    }

    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        padding: 0 3.125rem;
        overflow-x: clip;
    }
    
    .hero-text {
        flex: 1;
        text-align: left;
        order: 1; 
        padding-right: 2rem;
        max-width: 600px;
        margin-inline-end: 1rem;
    }
    
    
    .hero-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.2rem);
        margin-bottom: 1.4rem;
    }
    
    .hero-button {
        display: inline-block;
        text-align: center;
    }

    
    .hero-image {
        max-width: 60vh; 
        height: 75vh;
        margin-inline-start: 1rem;
        order: 1;
        display: block;
        object-fit: fill;
        object-position: initial;
    }
    .offering-section {
        padding: 0 3rem;
        margin-block-start: 4rem;
        margin-block-end: 3rem;
    }
    .heading-description {
        gap: 3rem;
    }
    
}

@media (min-width: 1024px) and (orientation: portrait) {
    .hero-content {
        padding-inline: 10rem;
        gap: 3rem;
    }

    .hero-image {
        width: 85%;
        height: 50vh;
    }
    .hero-section{
        align-items: flex-start;
        
    }
    
}

@media (min-width: 1400px) {
    .hero-content{
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

/* Industries Section */
.industries-section {
    padding: 2rem 1rem ;
    background-color: var(--light-base);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.industries-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-title {
    font-family: var(--primary-font);
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark-base);
    margin: 0.5rem 0 1rem;
}

.section-description {
    font-family: var(--secondary-font);
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.2rem);
    line-height: 1.6;
    color: var(--dark-base);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Carousel */
.industries-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.carousel-item {
    display: none;
    align-items: center;
    width: 100%;
    max-width: 900px;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: var(--light-base);
    border-radius: 16px;
    padding: 2rem;
    gap: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 10;
}

.industry-img {
    flex: 0 0 300px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active .industry-img {
    animation: slideInLeft 0.6s ease forwards;
}

.industry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-img:hover img {
    transform: scale(1.05);
}

.industry-content {
    flex: 1;
    padding: 1rem 0;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-item.active .industry-content {
    opacity: 1;
    transform: translateX(0);
    animation: slideInRight 0.6s ease 0.2s forwards;
}

.industry-icon {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.carousel-item.active .industry-icon {
    animation: iconBounce 0.6s ease 0.4s forwards;
}

.industry-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-base);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.industry-text {
    font-family: var(--secondary-font);
    font-size: 1.05rem;
    color: var(--dark-base);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 400px;
}

.carousel-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--light-base);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: var(--accent-primary);
    color: var(--dark-base);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.industries-carousel:hover .carousel-nav {
    opacity: 1;
    visibility: visible;
}

.carousel-slider {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.carousel-slide {
    position: relative;
    height: 8px;
    width: 40px;
    background: var(--light-border);
    border-radius: 4px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-slide:hover {
    background: var(--accent-muted);
    transform: translateY(-2px);
}

.carousel-slide.active {
    background: var(--accent-primary);
    transform: scaleY(1.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 992px) {
    .industries-section {
        padding: 3rem 1rem;
    }
    
    .carousel-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        max-width: 700px;
        gap: 2rem;
    }
    
    .industry-img {
        flex: 0 0 250px;
        width: 100%;
        max-width: 400px;
        height: 220px;
        margin: 0 auto;
    }
    
    .industry-content {
        padding: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .industry-title {
        font-size: 1.6rem;
    }
    
    .industry-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: -20px;
    }
    
    .carousel-nav.next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .industries-section {
        padding: 2.5rem 0.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.2rem);
    }
    
    .carousel-item {
        padding: 1.5rem;
        gap: 1.5rem;
        max-width: 95%;
    }
    
    .industry-img {
        flex: 0 0 200px;
        height: 180px;
        max-width: 350px;
    }
    
    .industry-icon {
        font-size: 1.8rem;
    }
    
    .industry-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .industry-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .carousel-nav {
        display: none; 
    }
    
    .carousel-slider {
        gap: 8px;
        padding: 0.75rem;
    }
    
    .carousel-slide {
        width: 30px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .industries-section {
        padding: 2rem 0.5rem;
    }
    
    .carousel-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .industry-img {
        height: 160px;
        max-width: 300px;
    }
    
    .industry-icon {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .industry-title {
        font-size: 1.3rem;
    }
    
    .industry-text {
        font-size: 0.9rem;
    }
    
    .carousel-slider {
        gap: 6px;
    }
    
    .carousel-slide {
        width: 25px;
        height: 5px;
    }
}

@media (min-width: 1400px) {
    .industries-section {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .carousel-item {
        max-width: 1100px;
        padding: 3rem;
        gap: 3rem;
    }
    
    .industry-img {
        flex: 0 0 350px;
        height: 280px;
    }
    
    .industry-content {
        padding: 1rem 1rem 1rem 0;
    }
    
    .industry-title {
        font-size: 2rem;
    }
    
    .industry-text {
        font-size: 1.1rem;
        max-width: 450px;
    }
}

@media (min-width: 900px) {
    .hero-section {
        min-height: 100vh; /* Full viewport height */
        max-height: none; /* Remove max-height constraint */
        padding-block: 4rem;
        margin-top: 0;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        padding: 0 3.125rem;
        overflow-x: clip;
        margin-top: 0; /* Reset any margin */
    }
}

/* Add this to the existing .hero-section styles */
.hero-section {
    position: relative;
    width: 100%;
    padding: 2rem 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 5;
    margin-top: -80px; /* Negative margin to compensate for gradient-container padding */
    padding-top: 80px; /* Add back the padding */
}

@media (min-width: 900px) {
    .hero-section {
        min-height: 100vh; /* Full viewport height */
        max-height: none; /* Remove max-height constraint */
        padding-block: 4rem;
        margin-top: -80px; /* Maintain negative margin */
        padding-top: 80px; /* Maintain padding */
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        padding: 0 3.125rem;
        overflow-x: clip;
        margin-top: 0; /* Reset any margin */
    }
}

@media (max-width: 991px) {
    .hero-section {
        margin-top: -60px; /* Negative margin for mobile */
        padding-top: 60px; /* Padding for mobile */
    }
}

/* Why Choose Us - Stylized Numbers Version */
.why-choose-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.why-choose-section .container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.feature-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-subtle);
    color: var(--accent-text);
    font-family: var(--primary-font);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: var(--primary-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-base);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.feature-text {
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-base);
    opacity: 0.7;
}

/* Responsive Design */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .why-choose-section {
        padding: 0rem 2rem 5rem;
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .feature-item {
        padding: 0.75rem 0;
    }
    
    .feature-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
}

/* Grid pattern background for all content sections */
.offering-section, 
.industries-section, 
.why-choose-section {
    background-image: 
        linear-gradient(var(--dark-base) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-base) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    background-color: var(--light-base);
    position: relative;
    overflow: hidden;
}

/* Add subtle overlay for the pattern */
.offering-section::before,
.industries-section::before,
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-base);
    opacity: 0.92; /* Lower opacity for more visible pattern */
    z-index: 1;
    pointer-events: none;
}

/* Ensure content stays above the pattern */
.offering-section > *,
.industries-section > *,
.why-choose-section > *,
.offering-section .container,
.industries-section .container,
.why-choose-section .container {
    position: relative;
    z-index: 2;
}

/* Uniform grid pattern for all content */
main {
    position: relative;
    background-color: var(--light-base);
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--dark-base) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-base) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.04; /* Very subtle */
    z-index: 1;
    pointer-events: none;
}

/* Remove individual section patterns */
.offering-section, 
.industries-section, 
.why-choose-section {
    background-image: none;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

/* Remove the overlay from individual sections */
.offering-section::before,
.industries-section::before,
.why-choose-section::before {
    content: none;
}