/* ========================================
   ROBOTICS PLATFORM CSS - CONSOLIDATED
   ======================================== */

/* CSS Custom Properties */
:root {
    --nav-pad-y: 10px;
}

/* Scroll-triggered Navigation Styles */
.nav-scroll-triggered {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(1, 35, 69, 0.5) !important; /* 50% transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-scroll-triggered.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-scroll-triggered .nav-link {
    color: #ffffff !important;
}

.nav-scroll-triggered .nav-link:hover {
    color: #00aaff !important;
}

.nav-scroll-triggered .dropdown-arrow {
    stroke: #333 !important;
}

/* Why D-Bot Section Styles */
.why-dbot-section {
    /*background: linear-gradient(135deg, #1a2847 0%, #0f1b2e 50%, #1a2847 100%);*/
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.why-dbot-section::before {
    background: transparent !important;
}

.why-dbot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(26, 40, 71, 0.9);*/
    z-index: 1;
}

.why-dbot-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.whyDbot-h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 80px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    display: block;
    align-content: center;
    margin-right: auto;
    margin-left: auto;
    margin-top: 3rem;
}

/* Full horizontal centering for "Why Delta D-Bot?" heading */
.why-dbot-section .whyDbot-h1 {
  width: auto !important;
  max-width: min(100%, 1100px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 2rem !important; /* small side padding so text doesn't touch edges on mobile */
  text-align: center !important;
  display: block !important;
}
@media (max-width: 680px){
  .why-dbot-section .whyDbot-h1 { font-size: clamp(2.2rem, 8vw, 3.2rem) !important; padding: 0 1.25rem !important; }
}
@media (min-width: 1400px){
  .why-dbot-section .whyDbot-h1 { font-size: 5rem !important; }
}

/* Content wrapper to create left-aligned layout with large margins */
.why-dbot-content-wrapper {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 0 100px; /* Large left and right margins for content */
}

.why-dbot-left-content {
    width: 100%;
    max-width: 800px;
}

.why-dbot-subtitle {
    margin-bottom: 60px;

}

.why-dbot-subtitle h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: left;
}

.green-h1 {
    color: #38b66f !important;
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.margin-left-3vw {
    margin-left: 30vw !important;
}

.subtitle-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #00aaff 0%, #b9eb5f 100%);
    border-radius: 2px;
    margin: 0;
}

.why-dbot-content {
    text-align: left;
}

/* Match dynamic.html description styling for "One Platform Infinite Possibilities" section */
.why-dbot-content .description,
.why-dbot-content .description p,
.content-paragraph {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem) !important;
    line-height: 1.6 !important;
    font-weight: 450 !important;
    letter-spacing: 0.01em !important;
    opacity: .95 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-align: left;
}

.content-paragraph:last-child {
    margin-bottom: 0;
}

/* Green highlight text - keep the green color with gradient effect */
.highlight-green {
    color: #b9eb5f !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #b9eb5f 0%, #a8d954 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1 !important;
}

/* Bottom Navigation Hover Effects */
#bottomNav .nav-link:hover {
    color: #b9eb5f !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) !important;
}

#bottomNav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #255373, #316769, #b9eb5f);
    border-radius: 2px;
    transform: translateX(-50%);
    opacity: 1;
}

#bottomNav .nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

#bottomNav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

#bottomNav .link-lang:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05) !important;
}

#bottomNav.show {
    bottom: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#bottomNav.hide {
    bottom: -100px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(0) !important;
}

/* Carousel Styles */
.deconstructed-card .button-frame {
    position: absolute !important;
    bottom: -130px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    border: 2px solid transparent !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    backdrop-filter: blur(10px) !important;
}

.deconstructed-card .button-frame:hover {
    transform: translateX(-50%) scale(1.05) translateY(-2px) !important;
}

.deconstructed-card .button-frame .icon {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 4px !important;
}

.deconstructed-card .button-frame .icon img {
    width: 16px !important;
    height: 16px !important;
    filter: brightness(0) invert(1) !important;
}

.deconstructed-card .card-image img,
.deconstructed-card .wave-svg {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.deconstructed-card .card-image {
    overflow: hidden !important;
    position: relative !important;
    height: 120% !important;
}

.deconstructed-card {
    position: relative !important;
    margin-bottom: 120px !important;
    overflow: visible !important;
}

/* Banner Styles */
.talk-to-us .banner2 {
    position: relative;
    /* background-image removed; inline HTML sets correct asset */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    padding: 0 !important; /* no extra space so center is exact */
    /* removed offset so navbar overlays hero */
}

.talk-to-us .banner2 .middle-container {
    width: 100%;
    min-height: 100vh !important; /* equal top/bottom space */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Ensure hero (first section) is full width */
.talk-to-us,
.talk-to-us .banner2 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
}

/* Robotics Platform carousel image sizing: 10% smaller and not cropped */
.carousel .deconstructed-card .card-layer.card-image img,
.carousel .deconstructed-card .wave-svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* avoid cropping */
    transform: scale(0.9); /* 10% smaller */
    transition: transform .35s ease;
}

.carousel .deconstructed-card:hover .card-layer.card-image img,
.carousel .deconstructed-card:hover .wave-svg {
    transform: scale(0.95);
}

/* Scroll Navigation Styles */
#scrollNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#scrollNav.show {
    transform: translateY(0);
    opacity: 1;
}

#scrollNav.hide {
    transform: translateY(-100%);
    opacity: 0;
}

/* Main Navigation Styles */
body > nav {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    box-shadow: none !important;
}

body > nav .nav-link {
    color: white !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 8px 12px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

body > nav .logo img {
    filter: brightness(0) invert(1);
}

body > nav .link-lang img {
    filter: brightness(0) invert(1);
}

body > nav .nav-item:hover .nav-link,
body > nav .nav-item.active .nav-link {
    color: #b9eb5f !important;
    background: rgba(255, 255, 255, 0);
}

/* Ensure nav behaves like index: absolute by default, scroll clone will be fixed */
body > nav.nav-block.nav-transparent{ position: absolute !important; top:0; left:0; right:0; z-index:12000; background:transparent !important; }

/* Match scroll nav height to main nav by inheriting padding/line-height */
nav.nav-scroll-triggered{ padding-top: 10px; padding-bottom: 10px; }
nav.nav-block{ padding-top: 10px; padding-bottom: 10px; }

/* Fix logo tint consistent with index */
nav .logo img{ filter: brightness(0) invert(1); }

/* Remove any unintended offset on the first section */
body > nav + .talk-to-us{ margin-top:0 !important; padding-top:0 !important; }

/* Fix: Make carousel nav buttons reliably clickable and above all layers */
.carousel-controls {
    position: relative !important;
    z-index: 5000 !important; /* above cards and decorative layers */
    pointer-events: auto !important;
}

.carousel-controls .carousel-button {
    position: relative !important;
    z-index: 5010 !important; /* higher than any sibling overlays */
    pointer-events: auto !important;
}

/* Safety: prevent any absolutely-positioned card layers from overlapping the controls row */
.carousel + .carousel-controls, /* direct sibling controls */
.carousel .carousel-controls {
    isolation: isolate !important; /* create new stacking context so inner children sit on top */
}

/* Safety: ensure decorative layers inside cards do not extend into controls area */
.carousel .deconstructed-card .card-layer,
.carousel .deconstructed-card .card-image,
.carousel .deconstructed-card .card-frame,
.carousel .deconstructed-card .bg-grid,
.carousel .deconstructed-card .bg-objects {
    pointer-events: none !important; /* don’t capture clicks outside cards */
}

/* Ensure the entire controls area is not covered by the track container */
.carousel .carousel-track {
    position: relative !important;
    z-index: 1 !important; /* keep track below controls */
}

/* Ensure decorative gradient line doesn’t block clicks */
.carousel-controls::before { pointer-events: none !important; }

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Why D-Bot Section Responsive */
@media (max-width: 1400px) {
    .why-dbot-content-wrapper {
        padding: 0 150px;
    }
}

@media (max-width: 1200px) {
    .why-dbot-container {
        padding: 0 40px;
    }

    .why-dbot-content-wrapper {
        padding: 0 100px;
    }

    .talk-to-us .banner2 {
        min-height: 100vh;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 1099.98px) {
    #bottomNavLinks {
        position: fixed !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.95) !important;
        transition: all 0.3s ease-in-out !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 10002 !important;
        padding-top: 100px !important;
    }

    #bottomNavLinks.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    #bottomNavLinks .nav-item {
        margin: 15px 0 !important;
    }

    #bottomNavLinks .nav-link {
        font-size: 18px !important;
        padding: 10px 20px !important;
        min-height: 40px !important;
    }

    #menuToggleBottom {
        display: flex !important;
    }
}

@media (min-width: 1100px) {
    #menuToggleBottom {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .talk-to-us .banner2 {
        min-height: 80vh;
        /* removed margin-top so nav overlays hero */
    }
}

@media (max-width: 768px) {
    .why-dbot-section {
        padding: 60px 0 80px 0;
    }

    .why-dbot-container {
        padding: 0 30px;
    }

    .why-dbot-content-wrapper {
        padding: 0 20px;
    }

    .whyDbot-h1 {
        margin-bottom: 50px;
    }

    .why-dbot-subtitle {
        margin-bottom: 40px;
    }

    .content-paragraph {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .deconstructed-card .button-frame {
        bottom: -50px !important;
        padding: 10px 20px !important;
        font-size: 0.8rem !important;
    }

    .deconstructed-card {
        margin-bottom: 70px !important;
    }

    .talk-to-us .banner2 {
        min-height: 70vh;
        background-position: center center;
        /* removed margin-top so nav overlays hero */
    }
}

/* Animation for the Why D-Bot section */
.why-dbot-container[data-aos="fade-up"] {
    transition-duration: 0.8s;
}
