/* Index Page Specific Styles */

/* Dot Indicators Styling */
.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--nexus-orange) !important;
    opacity: 1 !important;
    border: none !important;
    margin: 0 5px !important;
}

.carousel-indicators button.active {
    background-color: #ffffff !important;
}

.carousel-indicators {
    margin-bottom: 1.3rem !important;
    justify-content: center !important;
    bottom: 0px;
}

/* Move dots slightly up only on mobile as requested */
@media (max-width: 767px) {
    .carousel-indicators {
        margin-bottom: 1.3rem !important;
    }
}


.hero-slide {
    min-height: 80vh;
    padding: 0 0 45px 0;
    margin-top: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {

    .hero-slide {
        padding: 0;
        height: 100%;
    }
}

.hero-slide h1 {
    font-weight: 800 !important;
    line-height: 1.1;
}

@media (max-width: 991.98px) {
    .hero-slide {
        min-height: auto;
        padding: 0 0 40px 0;
    }

    .hero-slide h1 {
        font-size: 2.2rem;
    }
}

.hero-banner-img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333 !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(243, 112, 33, 0.2);
    border-color: var(--nexus-orange) !important;
}

#solutions .border-dark {
    border-width: 2px !important;
    transition: all 0.3s;
}

#solutions .border-dark:hover {
    border-color: var(--nexus-orange) !important;
    background-color: #111;
}

.max-width-800 {
    max-width: 800px;
}

/* Why Choose Sections */
.bg-nexus-black {
    background-color: var(--nexus-black) !important;
}

/* Service Cards Visibility Fix */
.service-card-new,
.why-card {
    color: #333 !important;
    /* Force dark text for all elements */
}

.service-card-new *,
.why-card * {
    color: inherit;
    /* Ensure children don't inherit white from section */
}

.service-card-new h4,
.why-card h5 {
    color: var(--nexus-orange) !important;
}

/* Redesigned Service Cards - Match Reference Image Exact */
.service-card-new {
    border: none !important;
    background: #ffffff !important;
    border-radius: 40px !important;
    padding: 45px 30px 40px !important;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Persistent orange glow border from reference */
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.6),
        0 0 30px rgba(243, 112, 33, 0.3);
    position: relative;
    height: 100%;
}

.service-card-new:hover {
    transform: translateY(-8px);
    /* Intensified glow on hover */
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.9),
        0 0 50px rgba(243, 112, 33, 0.7),
        0 0 80px rgba(243, 112, 33, 0.4);
}

.service-card-new h4 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px !important;
    text-transform: none !important;
    /* Mixed case as per reference */
}

.service-card-new ul {
    padding: 0;
    margin-bottom: 20px !important;
}

.service-card-new ul li {
    padding-left: 0;
    position: relative;
    font-size: 1rem;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-card-new ul li i {
    display: none;
    /* Hide icons to match reference 2 exactly */
}

.service-card-new .btn-nexus {
    background: linear-gradient(180deg, #f5a623 0%, #e8720c 100%) !important;
    color: #1a1a1a !important;
    border-radius: 50px !important;
    border: none !important;
    padding: 11px 38px !important;
    font-weight: 900 !important;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: auto;
    /* Push button to bottom */
    box-shadow: 0 3px 12px rgba(230, 126, 34, 0.5);
    transition: all 0.3s ease;
}

.service-card-new .btn-nexus:hover {
    background: linear-gradient(180deg, #f6b236 0%, #f0851a 100%) !important;
    transform: scale(1.03);
}

/* Why Choose Slider & Cards */
.why-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    padding: 10px 25px !important;
    /* Minimal top/bottom space as requested */
    max-width: 90%;
    /* For mobile */
    background: white;
    border: 2px solid var(--nexus-orange) !important;
    /* Orange border as per reference */
    border-radius: 50px !important;
    /* Enhanced rounding to match reference 1 */
    text-align: center;
}

.why-card p {
    font-size: 1rem !important;
    color: #000000 !important;
    font-weight: 600 !important;
    line-height: 1.6;
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-color: var(--nexus-orange);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    border: 1px solid var(--nexus-black);
    z-index: 20;
}

/* Custom Slider Arrows - Generic for all sliders */
/* Custom Slider Arrows - Match Reference 1 */
.carousel-control-prev,
.carousel-control-next {
    width: 35px;
    height: 35px;
    background-color: var(--nexus-orange) !important;
    /* Solid orange background */
    border: none !important;
    opacity: 1 !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1) !important;
    /* Force white icon */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Testimonials Section Styling - Exact Match to Gallery Alignment */
#testimonials {
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 70%, #fff0e6 100%);
}

.testimonial-wrapper {
    position: relative;
    padding: 0 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonial-scroller {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* Independent card expansion */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 10px;
}

.testimonial-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    flex: 0 0 calc(50% - 10px);
    /* 2 items per view on desktop for better readability */
    min-width: calc(50% - 10px);
    transition: all 0.3s ease;
}

.testimonial-card {
    background-color: #23140c;
    /* Deep chocolate black from reference image */
    border: 3px solid var(--nexus-orange) !important;
    border-radius: 40px !important;
    padding: 35px 30px;
    min-height: 285px;
    /* Consistent base height before expansion */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item {
    display: flex;
}

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


.testimonial-main {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    text-align: left;
}

.testimonial-img-side {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 20px;
}

.testimonial-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-text-side {
    flex: 1;
}

.testimonial-text {
    color: #ffffff !important;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    max-height: 155px;
    /* Clamp to approx 7 lines */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-text.expanded {
    max-height: 2000px;
    /* Large enough for full content */
}

.testimonial-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.btn-read-more {
    background: linear-gradient(180deg, #f5a623 0%, #e8720c 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    padding: 7px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default, JS will show if needed */
    text-transform: none;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 112, 33, 0.3);
}

.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--nexus-orange) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-control svg {
    stroke: white;
}

.testimonial-control:hover {
    background-color: var(--nexus-black) !important;
    transform: translateY(-50%) scale(1.15);
}

.testimonial-control.prev {
    left: -5px;
}

.testimonial-control.next {
    right: -5px;
}

@media (max-width: 991px) {
    .testimonial-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        display: flex;
    }
}


@media (max-width: 767px) {
    .testimonial-wrapper {
        padding: 0 35px;
    }

    .testimonial-item {
        flex: 0 0 100%;
        /* One card on mobile */
        min-width: 100%;
    }

    .testimonial-card {
        border-radius: 30px !important;
        padding: 25px 15px;
        min-height: 280px;
    }

    .testimonial-footer {
        padding-top: 25px;
    }

    .testimonial-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .testimonial-img-side {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }

    .testimonial-control {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Fix: Ensure step numbers are not clipped */
@media (max-width: 991px) {

    #whyChooseCarousel,
    #whyChooseCarousel .carousel-inner,
    #whyChooseCarousel .carousel-item {
        overflow: visible !important;
    }

    #whyChooseCarousel {
        padding-top: 30px !important;
    }
}

/* Desktop Fix: Still show all 4 but handle controls */
@media (min-width: 992px) {
    #whyChooseCarousel .carousel-inner {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        overflow: visible;
    }

    #whyChooseCarousel .carousel-item {
        display: block !important;
        flex: 0 0 25%;
        margin-right: 0;
        padding: 0 10px;
    }

    #whyChooseCarousel .carousel-indicators {
        display: none !important;
        /* Hide dots on desktop */
    }

    #whyChooseCarousel .carousel-control-prev {
        left: -80px !important;
    }

    #whyChooseCarousel .carousel-control-next {
        right: -80px !important;
    }

    .why-card {
        max-width: 100%;
    }
}

.why-card {
    max-width: 100%;
    /* Fill the 25% column */
}

/* Industry Sectors styling */
.industry-item {
    transition: all 0.3s ease;
}

.industry-icon-box {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background-color: #111111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.industry-icon-box:hover {
    transform: scale(1.1);
    background-color: #000000;
}

.industry-item h2 {
    font-size: 0.85rem;
    line-height: 1.2;
}

#solutions .text-black {
    color: #000000 !important;
}

.why-card h5 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--nexus-black);
}

/* Mobile Fix for Industry Sectors text breaking constraint / white space */
@media (max-width: 767.98px) {
    .industry-item h2 {
        font-size: 0.9rem !important;
        /* Smaller text on mobile to avoid row overflow */
        line-height: 1.2;
    }

    .industry-icon-box {
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px !important;
    }

    .industry-icon-box img {
        width: 25px !important;
    }
}

/* .why-card p — normalized above */

/* Photo Gallery Styling - Exact Match to Reference */
#gallery {
    overflow: hidden;
    background-color: #fff;
}

.gallery-wrapper {
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    padding: 20px 10px;
}

.gallery-scroller::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 15px);
    /* Increased size by showing 3 items instead of 4 */
    min-width: calc(33.333% - 15px);
    transition: all 0.3s ease;
}

.gallery-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 40px;
    /* High premium rounding as per reference image */
    overflow: hidden;
    background-color: #f8f8f8;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-box img {
    transform: scale(1.05);
}

/* Gallery Arrows - 40px circular orange */
.gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--nexus-orange) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-control svg {
    stroke: white;
}

.gallery-control:hover {
    background-color: var(--nexus-black) !important;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-control.prev {
    left: -5px;
}

.gallery-control.next {
    right: -5px;
}

/* Responsive Gallery */
@media (max-width: 1199px) {
    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        /* Increased size by showing 2 items instead of 3 */
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 991px) {
    .gallery-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .gallery-wrapper {
        padding: 0 35px;
    }

    .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .gallery-img-box {
        border-radius: 30px;
    }

    .gallery-control {
        width: 35px;
        height: 35px;
    }
}

/* Redundant styles removed - handled by global.css */

/* ============================================
   Contact Section - Pixel-Perfect Reference Match
   ============================================ */
#contact-section {
    background-color: #55524f !important;
}

#contact-section h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 40px !important;
}

.contact-form-wrapper {
    background-color: #111111;
    border: 3px solid var(--nexus-orange);
    border-radius: 40px;
    padding: 50px 40px;
    max-width: 950px;
    margin: 0 auto;
}

.contact-input {
    width: 100%;
    background-color: #ffffff;
    border: 3px solid var(--nexus-orange) !important;
    border-radius: 20px;
    padding: 16px 25px;
    font-size: 1.05rem;
    color: #555;
    transition: all 0.3s;
    outline: none;
    box-shadow: none;
    display: block;
}

.contact-input::placeholder {
    color: #888;
}

.contact-input:focus {
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.4);
    outline: none;
}

.contact-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    color: #888;
}

.contact-select:focus,
.contact-select:not([value='']) {
    color: #333;
}

.contact-textarea {
    resize: none;
    border-radius: 25px !important;
    padding-top: 20px;
}

.btn-contact-submit {
    background: linear-gradient(180deg, #f5a623 0%, #e8720c 100%);
    color: #000000;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 9px 60px;
    /* Decreased height minimally */
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-top: 10px;
    /* Spacing from textarea */
}

.btn-contact-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    #contact-section h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .contact-form-wrapper {
        padding: 35px 20px;
        border-radius: 30px;
    }

    .contact-input {
        padding: 13px 18px;
        font-size: 0.95rem;
    }

    .btn-contact-submit {
        padding: 9px 40px;
        font-size: 1.1rem;
    }
}

/* Gallery Lightbox Styling */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .lightbox-content {
        max-width: 850px;
        width: 100%;
    }

    .lightbox-content img {
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--nexus-orange);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nexus-orange) !important;
    border: none !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: white !important;
    color: var(--nexus-orange) !important;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

@media (max-width: 767px) {

    .lightbox-nav {
        width: 40px;
        height: 40px;
        bottom: 40px;
        top: auto;
        transform: none;
    }

    .lightbox-nav:hover {
        transform: scale(1.1);
    }

    .lightbox-nav.prev {
        left: calc(50% - 60px);
    }

    .lightbox-nav.next {
        right: calc(50% - 60px);
    }

    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }

    .why-card p {
        font-size: 1.1rem !important;
        line-height: 1.3;

    }
}