/*
 * Vision Tech Website CSS
 * Brand Colors: Dark Blue (#003366) and Red (#CC0000)
 */

/* Define your Brand Colors for easy reference */
:root {
    --vision-primary: #003366;  /* Dark Blue: Main Branding, Headings, Footer */
    --vision-accent: #CC0000;   /* Red: Call-to-Action, Buttons, Highlights */
    --vision-light-bg: #f8fbfd; /* Very Light Grey/Blue for sections */
}

/* Global Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #070101;
    line-height: 1.6;
    background-color: var(--vision-light-bg);
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    /*padding: 0 10px;*/
}
/*top-bar*/
.top-bar {
    /* Using a dark shade of the primary color for the utility bar */
    background-color:white; 
    color: #003366;
    font-size: 0.85em;
    padding: 9px 0;
    border-bottom: 1px solid #1a2741; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease;
    
}
/* Hide state */
.top-bar.hide {
    transform: translateY(-100%);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

/* Left-side contact info */
.contact-info-left span {
    margin-right: 25px;
    opacity: 0.9;
}

/* Right-side utility navigation */
.utility-nav-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.utility-nav-right li {
    margin-left: 20px;
}

.utility-nav-right a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
    font-weight: 500;
}

.utility-nav-right a:hover {
    color: var(--vision-accent); /* Highlight utility links with accent color */
    opacity: 1;
}
/* =================================== */
/* 2. HEADER (Main Navigation & Dropdowns) - FINAL STYLES */
/* =================================== */
header {
    background-color: #003366;
    padding: 5px 0;
    border-bottom: 2px solid #CC0000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 40px; /* height of top-bar */
    z-index: 1000;
    transition: top 0.4s ease;
}
/* When top-bar hides, header moves up */
header.stick-top {
    top: 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 0; 
    font-weight: normal; 
    color: transparent; 
}
.logo img {
    height: 70px; /* Set the desired logo height */
    width: auto;
    display: block;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and text */
}
.excellence-badge {
    display: flex;
    align-items: center;
    border-left: 2px solid #ddd; /* Vertical divider */
    padding-left: 15px;
    height: 45px; /* Slightly shorter than logo for balance */
}

.ex-years {
    font-size: 32px;
    font-weight: 700;
    color: var(--vision-accent); /* Red color from your :root */
    line-height: 1;
    margin-right: 8px;
}

.ex-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: white; /* Dark blue from your :root */
    letter-spacing: 0.5px;
}
/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .logo-wrapper {
        justify-content: center;
        margin-bottom: 10px;
    }
    .ex-years { font-size: 26px; }
    .ex-text { font-size: 9px; }
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    position: relative; 
}
.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: block;
}
.nav-links li:not(:last-child) {
    margin-right: 30px;
}
.nav-links a:hover, .nav-links a.active {
    color: #CC0000;
    border-bottom: 3px solid var(--vision-accent);
}
.contact-btn {
    background-color: var(--vision-accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.contact-btn:hover {
    background-color: #A00000;
}
/* Dropdown Arrow Icon Styling */
.dropdown-icon {
    font-size: 10px; 
    margin-left: 5px; 
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease; 
    line-height: 1; 
}

/* Rotate the icon when the parent li (which has a dropdown) is hovered */
.nav-links li.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    color: var(--vision-primary);
}
/* Dropdown Menu Styles (FINAL: Arrow & Enhanced Shadow) */
.dropdown-menu {
    list-style: none;
    padding: 5px 0;
    margin: 0;
    position: absolute;
    top: calc(100% + 15px); /* Push down slightly to allow space for the arrow */
    /*left: -20px; */
    min-width: 250px; /* Adjusted width */
    background-color: white;
    border: 1px solid #eee;
    /* Enhanced Shadow for a 3D effect, matching the video */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1050; 
}

/* Arrow Indicator (V-shape) */
.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -8px; /* Position above the menu */
    left: 30px; /* Center it roughly under the main link text */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff; /* White fill */
    z-index: 10;
}

/* Small border for the arrow base, matching the menu border */
.dropdown-menu:after {
    content: '';
    position: absolute;
    top: -9px; 
    left: 29px; 
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #eee; /* Light border color */
    z-index: 9;
}

/* Show the dropdown menu on hover */
header .nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
}

/* Style the items within the dropdown */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    color: #000000;
    font-weight: 500;
    font-size: 15px; 
    padding: 10px 20px; 
    display: block; 
    border-bottom: none; 
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--vision-light-bg); 
    color: var(--vision-primary);
}

/* Reset main link hover underline when dropdown is open */
header .nav-links li.has-dropdown:hover > a {
    color: #CC0000;
    border-bottom: 3px solid transparent; 
}
/* =================================== */
/* 3. NEW STYLES: SEPARATOR BAR & MARQUEE */
/* =================================== */

/* 3.1. Separator Bar Style (Accent Line) */
.separator-bar {
    width: 100%;
    height: 5px; /* Thickness of the line */
    background-color: var(--vision-accent); /* Red accent color */
    position: relative; 
    z-index: 999; /* Below the sticky header (1000) */
}

/* 3.2. MARQUEE / SCROLLING OFFER BAR */
.offer-marquee-container {
    background-color: #003366; /* Light background for contrast */
    border-bottom: 1px solid #ddd;
    overflow: hidden; /* Crucial: Hides the content outside the scrolling area */
    padding: 15px 0;
    white-space: nowrap; /* Ensures text stays on one line */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.offer-marquee-container.top-bar-marquee {
    flex-grow: 1; 
    max-width: 65%; /* Limit the width so nav/contact have space */
    height: 100%;
    margin: 0 10px; 
    background-color: transparent; 
    border: none;
    padding: 0; 
    box-shadow: none;
    /* Ensure only horizontal scroll is hidden, not the bar itself */
    overflow: hidden; 
}

.marquee-content {
    display: inline-block;
    /* Start the animation */
    animation: marquee-scroll 30s linear infinite; 
    font-size: 100px;
    font-weight: 600;
    color: var(--vision-primary); /* Dark Blue text */
}
/* NEW: Content style override for Top Bar (Set to white) */
.offer-marquee-container.top-bar-marquee .marquee-content {
    font-size: 1.00em; /* Smaller text */
    font-weight: 500;
    color: #003366; /* TEXT IS NOW WHITE */
}
.marquee-content span {
    margin-right: 50px; /* Space between repeated text */
}

/* Keyframe definition for the scrolling animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0); /* Start off-screen to the right */
    }
    100% {
        transform: translateX(-100%); /* End off-screen to the left (loops) */
    }
}

/* Pause animation when the user hovers over the bar */
.marquee-content:hover {
    animation-play-state: paused;
}

.hero-slider.full-screen-hero {
    /* Critical for full screen and stacking content layers */
    position: relative;
    height: 100vh; /* Takes up the full viewport height */
     min-height: 500px; /* Safety fallback for small screens */
    overflow: hidden;
    padding: 0;
}

/* Slide Container holds the backgrounds */
.hero-slider .slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
}

/* Individual Slide Backgrounds */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth transition for background fading */
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Layering the Content (Stays fixed in the center) */
.slider-content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add a slight dark overlay to make text pop against backgrounds */
    background: rgba(0, 0, 0, 0.2); 
}

/* Content Blocks for each slide */
.slider-content-layer .content {
    /* Hide content blocks that are not active */
    display: none; 
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    /* Fade in/out effect for content */
    opacity: 0;
    transition: opacity 0.5s ease 0.5s; 
}

.slider-content-layer .content.active {
    display: block;
    opacity: 1;
}

.slider-content-layer h1 {
    font-size: 56px;
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
    font-weight: 700;
}

.slider-content-layer p {
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

/* Background images for the slides */
.slide-1 {
    /* Example: TallyPrime image, replace with your actual URL */
    background-image: url('./image/tallyimg5.jpg'); 
}
.slide-2 {
    /* Example: Cloud migration image, replace with your actual URL */
    background-image: url('./image/tallyimg3.jpg'); 
}
.slide-3 {
    /* Example: Mobile access image, replace with your actual URL */
    background-image: url('./image/tallysoft1.jpg'); 
}

/* Primary Button (Use your primary color for high contrast) */
.btn-primary {
    background-color: var(--vision-accent); /* Use accent color for high visibility here */
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #A00000;
}

/* Slider Navigation Arrows (Layered on top) */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 20; /* Higher Z-index than content layer */
    font-size: 24px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
    border-radius: 5px;
}

.slider-nav:hover {
    opacity: 1;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Slider Dots (Indicators) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    bottom: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    cursor: pointer;
    transition: all 10s;
}

.dot.active {
    background-color: var(--vision-accent);
    border-color: var(--vision-accent);
}
/* ============================================
   VIDEO HERO SECTION — NEW
   ============================================ */
.video-hero-section {
    position: relative;
    background: linear-gradient(135deg, #ddeaf7 0%, #f0f8ff 55%, #e6f2fb 100%);
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background subtle pattern */
.video-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(0,51,102,0.06) 0%, transparent 50%),
                      radial-gradient(circle at 85% 20%, rgba(204,0,0,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.video-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 30px 80px;
    width: 100%;
    flex: 1;
}

/* ---- LEFT SIDE ---- */
.video-hero-left {
    flex: 0 0 48%;
    max-width: 560px;
}

.hero-content-wrapper {
    position: relative;
}

.hero-slide-content {
    display: none;
    animation: heroFadeSlideUp 0.55s ease forwards;
}

.hero-slide-content.active {
    display: block;
}

@keyframes heroFadeSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-block;
    background: rgba(204, 0, 0, 0.08);
    border: 1px solid rgba(204, 0, 0, 0.3);
    color: #CC0000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 800;
    color: #003366;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-accent {
    color: #CC0000;
    position: relative;
}

.hero-subtext {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-block;
    background: #CC0000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(204, 0, 0, 0.35);
}

.hero-btn-primary:hover {
    background: #a50000;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(204, 0, 0, 0.5);
}

.hero-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #003366;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid rgba(0,51,102,0.4);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.hero-btn-secondary:hover {
    border-color: #003366;
    background: rgba(0,51,102,0.08);
    transform: translateY(-2px);
}

/* Progress dots */
.hero-progress-dots {
    display: flex;
    gap: 8px;
    margin-top: 36px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 51, 102, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-dot.active {
    background: #CC0000;
    width: 28px;
    border-radius: 4px;
}

/* ---- RIGHT SIDE ---- */
.video-hero-right {
    flex: 0 0 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

/* Animated glow ring behind video */
.video-glow-ring {
    position: absolute;
    inset: -10px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(204,0,0,0.3), rgba(0,51,102,0.2), rgba(204,0,0,0.2));
    filter: blur(18px);
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.5; transform: scale(0.98); }
    to   { opacity: 1;   transform: scale(1.02); }
}

.video-inner-frame {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
    background: #000;
}

.video-inner-frame video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
}

/* Custom video controls */
.video-controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 0 0 16px 16px;
}

.vc-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.vc-btn:hover { color: #CC0000; }

.vc-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.vc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #CC0000, #ff4444);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s linear;
    pointer-events: none;
}

.vc-chapter-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 1px;
    pointer-events: none;
}

/* Floating badges */
.video-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.97);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #003366;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    white-space: nowrap;
    z-index: 10;
    animation: badgeFloat 3s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}

.video-badge-top {
    top: -16px;
    left: -20px;
    animation-delay: 0s;
}

.video-badge-bottom {
    bottom: 50px;
    right: -20px;
    animation-delay: 1.5s;
}

.vb-icon {
    font-size: 14px;
    color: #CC0000;
}

/* Bottom wave */
.hero-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.hero-bottom-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .video-hero-container {
        flex-direction: column;
        padding: 40px 20px 70px;
        gap: 36px;
    }
    .video-hero-left,
    .video-hero-right {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .video-frame-wrapper { max-width: 100%; }
    .video-badge-top  { left: 10px; top: -12px; }
    .video-badge-bottom { right: 10px; bottom: 60px; }
    .video-hero-section { min-height: auto; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 26px; }
    .hero-cta-group { flex-direction: column; }
    .hero-btn-primary,
    .hero-btn-secondary { text-align: center; }
    .video-badge { display: none; }
}

/* ============================================
   END VIDEO HERO SECTION
   ============================================ */

/* Bottom Scrolling Cards Inside Slider */
.slider-bottom-marquee {
    position: absolute;
    bottom: 30px; /* adjust height up/down */
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none; /* allows slider controls to work */
}

.scrolling-cards {
    display: flex;
    gap: 25px;
    animation: scrollCards 10s linear infinite;
    white-space: nowrap;
}

.scroll-card {
    padding: 12px 28px;
    background: #fff;/**#004aad**/
    color: #004aad;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    pointer-events: auto; /* allow hover effect */
    transition: transform 10s ease;
}

.scroll-card:hover {
    transform: scale(1.1);
}

@keyframes scrollCards {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* =================================== */
/* 4. SECTION & LAYOUT STYLES (Unchanged) */
/* =================================== */
.section {
    padding: 30px 0;
    text-align: center;
}

.section-light-bg {
    background-color: var(--vision-light-bg);
}

.section-title {
    font-size: 36px;
    color: var(--vision-primary);
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: #0f0e0e;
    max-width: 800px;
    margin: 0 auto 50px;
    margin-bottom: 5px;
}

/* Secondary Button (Accent Color) */
.btn-secondary {
    display: inline-block;
    background-color: var(--vision-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #A00000;
}
.feature-block p {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}
/*6 product and service grid*/
.feature-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px, 1fr ));
    gap: 30px;
    margin-top: 20px;
}
.icon-container{
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
}
.icon-placeholder{
    font-size:30px;
    line-height:1;
    color:#fff;
}
/*static accent colors for icon backgrounds*/
.blue-accent{background-color:#17486e;}
.orange-accent{background-color:#f14713;}
.green-accent{background-color:#4caf50;}
/*feature block styles*/
.feature-block{
    background-color: #fff;
    border-radius:10px;
    border-bottom:4px solid transparent;
    border-top:none;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    padding:30px;
    text-align:center;
    transition:all 0.4s ease-in-out;
    cursor:pointer;
}
/*set specific colored bottom for each card*/
.feature-block:nth-child(1) { border-bottom: 4px solid #0d6ab1; } /* Blue */
.feature-block:nth-child(2) { border-bottom: 4px solid #fa6502; } /* Orange */
.feature-block:nth-child(3) { border-bottom: 4px solid #4CAF50; } /* Green */
/*HOVER EFFECT:CARD LIFT & RED ACCENT TEXT/ICON*/
.feature-block:hover{
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* FULL BACKGROUND COLOR CHANGE AND TEXT COLOR ADJUSTMENT */
.feature-block:nth-child(1):hover { 
    background-color: #0d6ab1; /* Blue - Matches border */
}
.feature-block:nth-child(2):hover { 
    background-color: #fa6502; /* Orange - Matches border */
}
.feature-block:nth-child(3):hover { 
    background-color: #4CAF50; /* Green - Matches border */
}

/* Change Heading and Paragraph text color to white for better contrast on hover */
.feature-block:hover h3, 
.feature-block:hover p,
.feature-block:hover .btn-secondary {
    color: #fff;
}

/* Ensure secondary button retains its background on hover */
.feature-block:hover .btn-secondary {
    background-color: #A00000;
}

/* ICON COLOR CHANGE ON HOVER (Keeps original background color, softens shadow) */
.feature-block:hover .icon-container{
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.feature-block h3{
    font-size: 24px;
    color: var(--vision-primary);
    margin-bottom:15px;
    font-weight: 600;
    transition:color 0.4s ease-in-out;
}


/* =================================== */
/* 7. FLOATING CONTACT WIDGET STYLES */
/* =================================== */

.floating-contact-widget {
    position: fixed;
    bottom: -100px; /* Distance from the bottom of the screen */
    right: 10px; /* Distance from the right edge of the screen */
    z-index: 10000; 
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Ensures links stack neatly above the main button on the right */
}

/* --- Main Toggle Button --- */
.contact-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Accent color: Use a strong red (like a Vision Tech accent) */
    background-color: #dd232a; 
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Stronger shadow for depth */
    transition: transform 0.2s ease, background-color 0.3s;
    
    /* Center the icon (SVG or IMG) using flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-toggle-btn:hover {
    background-color: #A00000; /* Darker red on hover */
    transform: scale(1.05);
}

/* --- Hidden Links Container (The Toggle Area) --- */
.contact-links-hidden {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Initial state: hidden with opacity and slight offset */
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px); 
    transition: all 0.3s ease-out; /* Smooth transition for reveal */
    margin-bottom: 0px; 
}

/* Shown state - triggered by JavaScript's toggle class */
.contact-links-hidden.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-200px); /* Smoothly slide up into view */
}

/* --- Individual Contact Links (WhatsApp/Phone) --- */
.contact-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Space between the two individual links */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.contact-link:hover {
    transform: scale(1.1);
}

/* Specific link colors for branding */
.whatsapp-link {
    background-color: #25D366; /* WhatsApp Green */
}
.whatsapp-link:hover {
    background-color: #03f764;
}
.phone-link {
    background-color: #4bb8e7; /* Standard Blue/Sky Blue for Phone */
}
.phone-link:hover {
    background-color: #0988f0;
}


/* --- Sizing for the IMG/SVG icons inside the buttons --- */
/* If you are using IMG tags (as requested): */
.button-icon {
    width: 28px; 
    height: 28px;
    /* Uncomment and adjust if your source image is not white: */
    filter: brightness(0) invert(1);
}

.link-icon {
    width: 24px;
    height: 24px;
    /* Uncomment and adjust if your source image is not white: */
    filter: brightness(0) invert(1); 
}
/* If you are using the default SVG icons, these styles are still good for sizing: */
.contact-link svg,
.contact-toggle-btn svg {
    width: 28px;
    height: 28px;
}
/*5 Footer */
footer {
    background-color: var(--vision-primary);
    color: #f4f4f4;
    padding: 60px 0 20px;
    font-size: 15px;
    
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

footer .footer-col h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

footer .footer-col p {
    color: #ccc;
    margin-bottom: 10px;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-col ul li {
    margin-bottom: 10px;
}

footer .footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-col ul li a:hover {
    color: var(--vision-accent);
}

footer .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

footer .social-links img {
    width: 30px;
    height: 30px;
    /*filter: invert(100%);*/ 
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/*footer .social-links img:hover {
    opacity: 1;
}*/

.footer-bottom {
    border-top: 1px solid #faf7f7;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}
.footer-bottom .p{
    color: white;
}

/* =================================== */
/* 6. RESPONSIVE DESIGN */
/* =================================== */

@media (max-width: 992px) {
    .slider-content-layer h1 {
        font-size: 40px;
    }
    .slider-content-layer p {
        font-size: 18px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- STATS SECTION STYLES --- */
.stats-section {
    padding: 60px 0;
    background-color: #f8f8ff; /* Light background for contrast */
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
    text-align: center;
    flex-basis: 20%; /* Adjust as needed */
    min-width: 180px; /* Ensure space on small screens */
    margin: 15px 0; 
    flex-basis: 20%;/* Add vertical margin for wrap */
}

/* Icon Container Styles */
.stat-icon {
    display: block;
    margin: 0 auto 10px auto; /* Center the icon block and add space below */
    width: 60px; /* Define a fixed size for the icon area */
    height: 60px;
}

/* Styles for the Image Tag inside the icon container */
.stat-img {
    width: 100%; /* Make the image fill the container */
    height: 100%;
    object-fit: contain; /* Ensures the image scales properly without cropping */
}

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: #007bff; /* Vision Tech blue from the image */
    margin-bottom: 5px;
    line-height: 1;
    display: inline-block; 
}

.plus-sign {
    font-size: 3.5em; 
    font-weight: 700;
    color: #007bff;
    margin-left: -5px; 
    vertical-align: top; 
}

.stat-label {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    display: block; /* Ensure it's on a new line */
    margin-top: 10px; /* Space from number */
}



@media (max-width: 768px) {
    .hero-slider.full-screen-hero {
        min-height: 550px;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info-left {
        margin-bottom: 10px;
    }
    .contact-info-left span {
        margin: 0 10px;
    }
    .utility-nav-right ul {
        justify-content: center;
    }
    
    header .navbar {
        flex-direction: column;
        gap: 15px;
    }
    /* Hide main nav on mobile to simplify header
    header .nav-links {
        display: none; 
    }*/
    
    .section-title {
        font-size: 30px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slider-content-layer h1 {
        font-size: 30px;
    }
    .slider-content-layer p {
        font-size: 16px;
    }
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 15px;
    }
    .utility-nav-right li {
        margin: 0 8px;
    }
    .contact-info-left span {
        display: block;
        margin: 5px 0;
    }
}
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-right {
        width: 100%;
        height: 400px;
    }

    .contact-row {
        flex-direction: column;
    }
}
#backToTopBtn {
  position: fixed;
  bottom: 100px;
  right: 90px;
  background-color: #199223;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background-color: #294ef3;
  transform: scale(1.1);
}

/* =================================== */
/* 8. NEWLY LAUNCHED PRODUCTS SECTION  */
/* =================================== */

.new-launches {
    padding: 80px 0;
    background-color: #ffffff;
}

/* ✅ CENTER TITLE & SUBTITLE */
.new-launches .section-title {
    text-align: center;
    margin-bottom: 10px;
}

.new-launches .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #666;
}


/* The Grid Container */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
    margin-top: 40px;
    padding: 0 15px;
}

/* Individual Product Card */
.launch-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    /* Soft 3D Shadow similar to the video */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

/* Hover Effect: Lift and Deepen Shadow */
.launch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image Area */
.launch-image {
    position: relative;
    height: 220px;
    background-color: #f8fbfd;
    overflow: hidden;
}

.launch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures your Tally screenshots look professional */
    transition: transform 0.5s ease;
}

.launch-card:hover .launch-image img {
    transform: scale(1.1); /* Subtle zoom on hover */
}

/* Floating "New" Badge */
.launch-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--vision-accent); /* Red */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Card Text Content */
.launch-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.launch-info h3 {
    font-size: 22px;
    color: var(--vision-primary); /* Dark Blue */
    margin-bottom: 15px;
    font-weight: 700;
}

.launch-info p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Launch Button Style */
.btn-launch {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--vision-primary);
    border: 2px solid var(--vision-primary);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-launch:hover {
    background-color: var(--vision-primary);
    color: #fff;
}

/* Responsive adjustments for the Launch Grid */
@media (max-width: 768px) {
    .launch-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 0 25px;
    }
}
/* About Us Detailed Section */
/* Centered Blue Heading */
.section-header {
    text-align: center;
    font-weight: 500px;
    height: 10px;
    margin-bottom: 60px;
    margin-top: -100px;
}
.about-us-detailed {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
    bottom: auto;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 120px;
    opacity: 0; /* Hidden by default for animation */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-content { flex: 1.2; }
.about-image { flex: 1; }

.about-tag {
    color: var(--vision-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.about-title {
    font-size: 38px;
    color: var(--vision-primary);
    margin: 15px 0 25px;
    font-weight: 700;
    line-height: 1.2;
}

.about-description {
    font-size: 17px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Reference Image Shape Styling */
.image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.right-shape { border-radius: 0 0 0 150px; } /* Custom curve for top row */
.left-shape { border-radius: 100px 0 100px 0; } /* Custom shape for bottom row */

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* --- ANIMATION LOGIC (REPEATABLE) --- */
.reveal-right { transform: translateX(100px); }
.reveal-left { transform: translateX(-100px); }

.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .about-row, .about-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .reveal-right, .reveal-left { transform: translateY(50px); }
}
/* --- Irregular Diamond-Cut Shape Styling --- */

.office-showcase {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.image-mask-wrapper.diamond-cut-mask {
    position: relative;
    max-width: 900px; /* Reduced slightly to match typical ref image width */
    margin: 40px auto 0; /* Centered with top margin */
    overflow: hidden;
    
    /* * Specific Clip-Path Polygon to replicate the 'Picture 1' effect.
     * The points are uneven to get that 'leaning' diamond cut.
     * Starts mid-left, cuts top-right, extends bottom-right, cuts bottom-left.
     */
    clip-path: polygon(15% 0%, 100% 15%, 85% 100%, 0% 85%);
    
    /* Soft shadow to add depth */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    
    /* Initial state for repeatable animation */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-mask-wrapper img.cut-image {
    width: 100%;
    height: 500px; /* Limits height, maintains aspect ratio */
    object-fit: cover; /* Important to keep interior content aligned */
    display: block;
    
    /* Keeps the image content cut by the main wrapper shape */
    clip-path: inherit; 
}

/* Hover effect: Subtle lift and zoom */
.image-mask-wrapper.diamond-cut-mask:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Repeatable Animation Active State */
.image-mask-wrapper.diamond-cut-mask.reveal-active {
    opacity: 1;
    transform: translateY(0);
}
.custom-shape {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 20px; /* smooth edges */
}
.custom-shape img {
    transition: transform 0.4s ease;
}

.custom-shape:hover img {
    transform: scale(1.05);
}
.custom-shape {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
#about-vision{
    margin-bottom: -100px;
}
/* Responsive adjust: softer cut for mobile */
@media (max-width: 768px) {
    .image-mask-wrapper.diamond-cut-mask {
        clip-path: none;
        border-radius: 20px;
        padding: 0 15px; /* Adds side padding on mobile */
    }
}