/* 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;
}

/* Remove black background and extra space for desktop hero section */
@media (min-width: 768px) {
    .hero-slide {
        background-color: transparent !important;
        min-height: auto !important;
        padding: 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;
}

/* --- Premium Production UI Card System --- */
.service-card,
.service-card-new {
    background: #0a0a0a !important;
    /* Deep Premium Background */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 40px !important;
    padding: 40px 30px !important;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    color: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* --- Why Choose Card (Reverted to White Theme) --- */
.why-card {
    background: #ffffff !important;
    /* White Background as requested */
    border: 3px solid var(--nexus-orange) !important; /* Premium orange border like testimonials */
    border-radius: 40px !important;
    padding: 50px 25px 45px !important;
    /* Roomy padding to prevent cropping */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: visible !important;
    /* Crucial for badge and glow visibility */
    color: #1a1a1a !important;
    /* Dark text */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
    /* Space for the badge at top */
    margin-bottom: 20px;
    /* Prevent bottom cropping */
}

/* Mouse-follow glow for why-card */
.why-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, center) var(--mouse-y, center),
            rgba(243, 112, 33, 0.1) 0%,
            rgba(243, 112, 33, 0.03) 40%,
            transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 40px;
}

.why-card:hover::after {
    opacity: 1;
}

.why-card:hover {
    border-color: rgba(243, 112, 33, 0.3) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Ensure text elements within dark cards are properly visible and premium */
.service-card *,
.service-card-new * {
    position: relative;
    z-index: 2;
    color: inherit;
}

.service-card p,
.service-card-new p {
    color: rgba(255, 255, 255, 0.65) !important;
    /* Soft diffused text */
    font-weight: 400 !important;
    line-height: 1.6;
}

.service-card h4,
.service-card-new h4 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 20px !important;
}

/* 🔥 Large Ambient Orange Light Diffusion (Production-Level) */
.service-card::after,
.service-card-new::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Large 800px spread for an atmospheric feel, not a small circle */
    background: radial-gradient(800px circle at var(--mouse-x, center) var(--mouse-y, center),
            rgba(243, 112, 33, 0.18) 0%,
            /* Soft ambient center */
            rgba(243, 112, 33, 0.05) 30%,
            /* Wide diffusion */
            rgba(243, 112, 33, 0.01) 60%,
            /* Barely visible outer rim */
            transparent 100%);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

/* Hover State - Atmospheric & Deep */
.service-card:hover,
.service-card-new:hover {
    transform: none !important;
    border-color: rgba(243, 112, 33, 0.5) !important;
    background: #050505 !important;
    /* Deeper dark on hover for better glow contrast */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(243, 112, 33, 0.03);
}

.service-card:hover::after,
.service-card-new:hover::after {
    opacity: 1;
}

#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;
}

/* Standardized card styling handled in the unified section above */

.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: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    /* Soft white for list items */
    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, #f37021 0%, #d35400 100%) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    border: none !important;
    padding: 11px 38px !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: auto;
    /* Clean shadow for luxury feel */
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card-new .btn-nexus:hover {
    background: linear-gradient(180deg, #ff8c42 0%, #f37021 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
}

/* Card base logic handled above in standardized cards section */

.why-card p {
    font-size: 1.05rem !important;
    color: #1a1a1a !important;
    /* Premium dark text */
    font-weight: 500 !important;
    line-height: 1.6;
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--nexus-orange);
    color: #000000 !important;
    /* Black text as requested */
    border-radius: 50%;
    /* Perfect circular badge */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
    z-index: 20;
    border: 2px solid #ffffff;
    /* Contrast on white card */
}

/* --- Production-Level Reveal Animation --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for cards */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* 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 {
        overflow: hidden !important;
        /* Hide the loop clones on the sides */
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        /* Ensure enough space for shadows */
        position: relative;
    }

    #whyChooseCarousel .carousel-inner {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        overflow: visible !important;
        /* Allow badges to show within the padding */
        transition: transform 0.5s ease-in-out;
    }

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

    #whyChooseCarousel .why-card {
        min-height: 220px !important;
        /* Further reduced for better fit */
        padding: 35px 20px 15px !important;
        /* Reduced top/bottom padding */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        /* Let container padding handle the space */
    }

    #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;
    font-weight: 600 !important;
}

.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;
}

/* Compact Industry Sectors Section for Desktop */
@media (min-width: 992px) {
    #solutions {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    #solutions h1 {
        margin-bottom: 1px !important;
    }

    #solutions h2 {
        margin-bottom: 10px !important;
    }

    #solutions .row {
        --bs-gutter-y: 0.3rem !important;
    }

    #solutions [class*="col-"] {
        margin-bottom: 0.15rem !important;
    }

    #solutions .text-black {
        font-size: 1.5rem;
        font-weight: 500 !important;
        margin-bottom: 10px !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) {
    #solutions {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    #solutions h1 {
        font-size: 1.8rem !important;
        margin-bottom: 5px !important;
    }

    #solutions h2 {
        font-size: 1.05rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }

    #solutions .row {
        --bs-gutter-y: 0.5rem !important;
    }

    #solutions [class*="col-"] {
        margin-bottom: 0 !important;
    }

    .industry-item {
        padding: 5px !important;
    }

    .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: 35px !important;
        /* Increased from 25px */
    }
}

/* .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;

    }
}