/* Color Variables & Custom Styles */
:root {
    --primary-color: #0a192f;
    --accent-color: #fbbf24;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    padding-top: 100px; 
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.fw-black {
    font-weight: 900;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.top-bar {
    background-color: #0b1329; 
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1070 !important;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.72rem; 
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    
    .top-bar .container {
        gap: 4px !important;
    }
    
    .top-contact-info {
        flex-direction: column;
        gap: 2px !important;
    }
    
    body {
        padding-top: 80px;
    }
    
    .navbar {
        top: 31px !important; 
    }

    .navbar-logo {
        margin-top: 12px;
        height: 35px !important;      
    }
}

/* Auto-fading Image Slideshow (4 images, one at a time) */
.img-slideshow {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.img-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    animation: slideshow-fade 16s infinite;
    /* Paused by default -- script.js's IntersectionObserver adds the
       "in-view" class (below) only to whichever .img-slideshow is
       currently visible on screen, so only that one product's slideshow
       is actually animating at any time; every other one sits frozen on
       its current frame instead of cycling in the background. */
    animation-play-state: paused;
}

.img-slideshow.in-view .slide {
    animation-play-state: running;
}

.img-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.img-slideshow .slide:nth-child(2) { animation-delay: 4s; }
.img-slideshow .slide:nth-child(3) { animation-delay: 8s; }
.img-slideshow .slide:nth-child(4) { animation-delay: 12s; }

@keyframes slideshow-fade {
    0% { opacity: 0; }
    3% { opacity: 1; }
    22% { opacity: 1; }
    28% { opacity: 0; }
    100% { opacity: 0; }
}

/* 3-slide variant: 5s per image (15s loop), cross-fade with slow zoom-in / zoom-out */
.img-slideshow.slides-3 .slide {
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
}
.img-slideshow.slides-3 .slide:nth-child(1) { animation-name: slideshow-zoom-in;  animation-delay: 0s; }
.img-slideshow.slides-3 .slide:nth-child(2) { animation-name: slideshow-zoom-out; animation-delay: 5s; }
.img-slideshow.slides-3 .slide:nth-child(3) { animation-name: slideshow-zoom-in;  animation-delay: 10s; }

@keyframes slideshow-zoom-in {
    0%   { opacity: 0; transform: scale(1); }
    4%   { opacity: 1; }
    30%  { opacity: 1; transform: scale(1.12); }
    36%  { opacity: 0; transform: scale(1.14); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes slideshow-zoom-out {
    0%   { opacity: 0; transform: scale(1.14); }
    4%   { opacity: 1; }
    30%  { opacity: 1; transform: scale(1); }
    36%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.14); }
}

/* 2-slide variant: 6s per image (12s loop), fade + zoom in / zoom out; "fill" crops to cover the box */
.img-slideshow.fill .slide {
    object-fit: cover;
}
.img-slideshow.slides-2 .slide {
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
}
.img-slideshow.slides-2 .slide:nth-child(1) { animation-name: slideshow2-zoom-in;  animation-delay: 0s; }
.img-slideshow.slides-2 .slide:nth-child(2) { animation-name: slideshow2-zoom-out; animation-delay: 6s; }

@keyframes slideshow2-zoom-in {
    0%   { opacity: 0; transform: scale(1); }
    5%   { opacity: 1; }
    47%  { opacity: 1; transform: scale(1.12); }
    55%  { opacity: 0; transform: scale(1.14); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes slideshow2-zoom-out {
    0%   { opacity: 0; transform: scale(1.14); }
    5%   { opacity: 1; }
    47%  { opacity: 1; transform: scale(1); }
    55%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.14); }
}

/* 4-slide variant: 4s per image (16s loop), cross-fade with slow zoom-in / zoom-out */
.img-slideshow.slides-4 .slide {
    animation-duration: 16s;
    animation-timing-function: ease-in-out;
}
.img-slideshow.slides-4 .slide:nth-child(1) { animation-name: slideshow4-zoom-in;  animation-delay: 0s; }
.img-slideshow.slides-4 .slide:nth-child(2) { animation-name: slideshow4-zoom-out; animation-delay: 4s; }
.img-slideshow.slides-4 .slide:nth-child(3) { animation-name: slideshow4-zoom-in;  animation-delay: 8s; }
.img-slideshow.slides-4 .slide:nth-child(4) { animation-name: slideshow4-zoom-out; animation-delay: 12s; }

@keyframes slideshow4-zoom-in {
    0%   { opacity: 0; transform: scale(1); }
    3%   { opacity: 1; }
    22%  { opacity: 1; transform: scale(1.12); }
    28%  { opacity: 0; transform: scale(1.14); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes slideshow4-zoom-out {
    0%   { opacity: 0; transform: scale(1.14); }
    3%   { opacity: 1; }
    22%  { opacity: 1; transform: scale(1); }
    28%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.14); }
}

/* 5-slide variant: 4s per image (20s loop), cross-fade with slow zoom-in / zoom-out */
.img-slideshow.slides-5 .slide {
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
}
.img-slideshow.slides-5 .slide:nth-child(1) { animation-name: slideshow5-zoom-in;  animation-delay: 0s; }
.img-slideshow.slides-5 .slide:nth-child(2) { animation-name: slideshow5-zoom-out; animation-delay: 4s; }
.img-slideshow.slides-5 .slide:nth-child(3) { animation-name: slideshow5-zoom-in;  animation-delay: 8s; }
.img-slideshow.slides-5 .slide:nth-child(4) { animation-name: slideshow5-zoom-out; animation-delay: 12s; }
.img-slideshow.slides-5 .slide:nth-child(5) { animation-name: slideshow5-zoom-in;  animation-delay: 16s; }

@keyframes slideshow5-zoom-in {
    0%   { opacity: 0; transform: scale(1); }
    3%   { opacity: 1; }
    18%  { opacity: 1; transform: scale(1.12); }
    22%  { opacity: 0; transform: scale(1.14); }
    100% { opacity: 0; transform: scale(1); }
}
@keyframes slideshow5-zoom-out {
    0%   { opacity: 0; transform: scale(1.14); }
    3%   { opacity: 1; }
    18%  { opacity: 1; transform: scale(1); }
    22%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.14); }
}

/* Mixed slideshow (images + video), driven by the small script in product.html */
.mixed-slideshow {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    transition: background-color 0.6s ease;
}
.mixed-slideshow.on-video {
    background-color: #0f172a;
}
.mixed-slideshow .mslide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.mixed-slideshow .mslide.fill {
    object-fit: cover;
}
.mixed-slideshow .mslide.active {
    opacity: 1;
}
.mixed-slideshow .mslide-sound {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.mixed-slideshow.on-video .mslide-sound {
    display: flex;
}
.mixed-slideshow img.mslide.zoom-in  { animation: mslide-zoom-in 6s ease-in-out forwards; }
.mixed-slideshow img.mslide.zoom-out { animation: mslide-zoom-out 6s ease-in-out forwards; }
@keyframes mslide-zoom-in  { from { transform: scale(1); }    to { transform: scale(1.12); } }
@keyframes mslide-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Auto-scrolling Cards Marquee (Right to Left) */
.cards-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.cards-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-rtl 28s linear infinite;
}

.cards-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    flex: 0 0 auto;
    width: 270px;
}

.marquee-card.why-choose-card {
    width: 340px;
}

.marquee-card.testimonial-card {
    width: 360px;
}

.marquee-card.product-showcase-card {
    width: 300px;
}

.marquee-card.home-feature-card {
    width: 320px;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .marquee-card {
        width: 220px;
    }
}

/* Bento Row - gives left & right columns a shared, real height to stretch against */
.bento-row {
    height: 500px;
}

@media (max-width: 991px) {
    .bento-row {
        height: auto;
    }
    .bento-row .col-lg-5 {
        height: auto !important;
    }
    .bento-row .small-card {
        min-height: 210px !important;
    }
}

/* Bento Grid Layout Styles */
.cursor-pointer { 
    cursor: pointer; 
}

.bento-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15) !important;
}

.bento-card .card-img {
    transition: transform 0.6s ease;
}

.bento-card:hover .card-img {
    transform: scale(1.06);
}

.card-gradient {
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 20%, rgba(15,23,42,0.9) 90%);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 30px; 
    left: 0;
    width: 100%;
    z-index: 1050 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}

.navbar .nav-link {
    position: relative;
    color: #334155;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: 0.2px;
    padding: 8px 14px !important;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* Thin gold underline that grows in under the label on hover/active --
   same accent color already used for the Call Now button/badges
   elsewhere, so this reads as the same brand highlight, not a new one. */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background-color: #ffc107;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-logo {
    height: 50px;         
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.dropdown-menu {
    z-index: 1060 !important;
}

@keyframes bounce-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

.icon-active-anim {
    animation: bounce-pulse 2s ease-in-out infinite;
    display: inline-block;
}
/* Hero Section */
.hero-video-section {
    min-height: 78vh !important; 
}

.hero-video-section video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.75);  
}

@media (min-width: 768px) {
    .hero-video-section {
        min-height: 70vh;
    }
}

/* Desktops ke liye */
@media (min-width: 992px) {
    .hero-video-section {
        min-height: 78vh !important;
    }
}

.light-watercolor-section {
    background: 
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    background-size: cover;
    background-position: center;
}


.about-hero {
    width: 100%;
    min-height: 40vh; 
    background: linear-gradient(135deg, rgba(62, 128, 228, 0.5), rgba(7, 19, 37, 0.3)), url('/images/aboutbanner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .about-hero {
        min-height: 45vh;
    }
}

/* Desktops ke liye */
@media (min-width: 992px) {
    .about-hero {
        min-height: 50vh;
    }
}

.team-img {
    transition: transform 0.4s ease;
}

.card:hover .team-img {
    transform: scale(1.05);
}

/* contactus*/
/* High-End Rich Contact Banner Styling - Fully Responsive */
.contact-hero-banner {
    background: linear-gradient(135deg, rgba(29, 74, 141, 0.8), rgba(15, 23, 42, 0.7)), url('/images/contactbanner.avif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-hero-banner {
        min-height: 450px;
    }
}

/*service*/
  .service-img-wrapper img {
        transition: transform 0.5s ease;
    }
    .service-img-wrapper:hover img {
        transform: scale(1.05);
    }
    .btn-outline-dark:hover {
        background-color: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #000 !important;
        transform: translateY(-2px);
    }
    .custom-accordion .accordion-button:not(.collapsed) {
        background-color: #fffaf0;
        color: #000 !important;
        box-shadow: none;
    }
    .custom-accordion .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(0,0,0,.125);
    }

/*product*/
 .service-img-wrapper img {
        transition: transform 0.5s ease;
    }
    .service-img-wrapper:hover img {
        transform: scale(1.05);
    }
    .btn-outline-dark:hover {
        background-color: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #000 !important;
        transform: translateY(-2px);
    }
    .custom-accordion .accordion-button:not(.collapsed) {
        background-color: #fffaf0;
        color: #000 !important;
        box-shadow: none;
    }
    .custom-accordion .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(0,0,0,.125);
    }

    /* --- Slide-in Scroll Animations Setup --- */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(40px);
}

/* Active class jab element viewport mein aayega (Intersection Observer ya scroll ke zariye) */
.reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Premium Image & Card Hover Effects --- */
.service-img-wrapper {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

.product-img {
    animation: product-img-zoom 8s ease-in-out infinite;
}

@keyframes product-img-zoom {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Custom Button Hover Style --- */
.custom-hover-btn {
    transition: all 0.3s ease;
}

.custom-hover-btn:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
    transform: translateX(4px);
}

/*whatsapp*/
/* --- Responsive Floating WhatsApp + Call Buttons --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.whatsapp-btn,
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.whatsapp-btn {
    background-color: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.call-btn {
    background-color: #e30613;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

/* Hover Effect (Desktop) */
.whatsapp-btn:hover {
    background-color: #22bf5b;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.call-btn:hover {
    background-color: #c10510;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
}

/* Pulsing Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes call-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(227, 6, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}

.call-btn {
    animation: call-pulse 2s infinite;
}

/* Tooltip Text */
.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background-color: #ffffff;
    color: #333333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-tooltip,
.call-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* --- Mobile Responsiveness Adjustments --- */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .whatsapp-btn,
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-tooltip {
        display: none !important;
    }
}