/* ===== TELEMATICS PAGE STYLES ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}
/* -----------------------------------------------------------
   GLOBAL RESET
----------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    background: #ffffff;
}
.curtain-overlay {
    background: #3a7afe;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: curtainSlideFade 1.5s ease forwards;
}

@keyframes curtainSlideFade {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }
    80% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-header .container {
    max-width: 1400px;
    margin: auto;
    padding: 15px 30px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



/* -----------------------------------------------------------
   BRANDING
----------------------------------------------------------- */
.branding {
    display: flex;
    align-items: center;
    gap: 12px;

}
.brand-title {
    display: flex;
    align-items: flex-start;
    font-weight: 700;
    color: #04034f;
    font-family: 'Poppins', 'Segoe UI', sans-serif;

    /* Responsive font size */
    font-size: clamp(18px, 2.5vw, 32px);

    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
}

/* Superscript styling */
.brand-sup {
    font-size: 0.45em;          /* scales automatically */
    margin-left: 3px;
    position: relative;
    top: -0.6em;                /* perfect vertical alignment */
    font-weight: 600;
    opacity: 0.9;
}

/* Logo (if used beside text) */
.brand-logo {
    width: clamp(40px, 5vw, 55px);
    height: auto;
    object-fit: contain;
}
 sup {
    font-size: 24px;
    vertical-align: super;
    margin-left: 2px;
}
.since-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 4px;
    color: #030e43;
}

@media (max-width: 480px) {
    .brand-title sup {
        font-size: 20px;     /* reduce superscript size */
        top: -0.4em;         /* fine adjustment */
        position: relative;
    }
}


/* -----------------------------------------------------------
   DESKTOP NAVIGATION
----------------------------------------------------------- */
.nav-menu {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s ease;
    padding-bottom: 4px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
}

/* Store Icons */
.nav-store-item i {
    font-size: 1.3rem;
    color: #1a73e8;
    transition: 0.3s ease;
}

.nav-store-item i:hover {
    transform: scale(1.2);
}



/* -----------------------------------------------------------
   HAMBURGER BUTTON
----------------------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 5px;
    transition: 0.3s;
}



/* -----------------------------------------------------------
   MOBILE OVERLAY (SLIDE PANEL)
----------------------------------------------------------- */

.mobile-overlay {
    position: fixed;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    top: 0;
    right: -100%;
    width: 58%;
    height: 100%;
    background: #ffffffee;
    backdrop-filter: blur(8px);
    padding: 100px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.18);
    transition: right 0.4s ease-in-out;
    z-index: 999;   /* BELOW HEADER */
}

.mobile-overlay.active {
    right: 0;
}

/* Prevent overlay from hiding header */
.main-header {
    z-index: 1000 !important;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    margin: 22px 0;
}

.mobile-links a {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: #04034f;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
}

/* Hover effects */
.mobile-links a:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

.mobile-links a i {
    font-size: 1.35rem;
    color: #1a73e8;
}

.store-dropdown {
    position: relative;
}

.store-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
}

.store-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 6px 0;
    display: none;
}



.store-menu li a:hover {
    background: #f3f6ff;
    color: #1a73e8;
}

.store-dropdown.active .store-menu {
    display: block;
}
.store-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #04034f;
    text-decoration: none;
    font-size: 0.95rem;
}

.app-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}
/* ===============================
   MOBILE DROPDOWN – FONT MATCH FIX
================================ */

/* Main dropdown button (Products, Solutions) */
/* MAIN DROPDOWN (Products, Solutions etc.) */
.mobile-dropbtn {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;                 /* Stronger */
    color: #04034f;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* SUB DROPDOWN (Automotive, Consumer etc.) */
.mobile-sub-dropbtn {
    width: 100%;
    background: #f7f9ff;              /* light background */
    border: none;
    font-size: 1.15rem;               /* slightly smaller */
    font-weight: 600;
    color: #04034f;
    padding: 8px 0 8px 14px;          /* indentation */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* deeper levels */
.mobile-submenu .mobile-sub-dropdown .mobile-sub-dropbtn {
    padding-left: 28px;               /* deeper indent */
    font-size: 1.05rem;
    background: #ffffff;
}

/* Hover effect */
.mobile-dropbtn:hover,
.mobile-sub-dropbtn:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

/* Arrow style difference */
.mobile-dropdown .arrow {
    font-size: 1rem;
}

.mobile-sub-dropdown .arrow {
    font-size: 0.8rem;
}

/* Submenu links */
.mobile-submenu a {
    font-size: 1rem;
    font-weight: 500;
    color: #04034f;
    padding: 8px 0 8px 40px;   /* align with deeper level */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.mobile-submenu a:hover {
    color: #1a73e8;
    transform: translateX(6px);
}

/* icon color */
.mobile-dropbtn i {
    color: #1a73e8;
}

.mobile-dropbtn span.left {
    color: #04034f;
}

/* === DROPDOWN STYLES === */
.dropdown {
    position: relative;
    display: inline-block;
}




.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #222;
    transition: color 0.2s ease;
}

.dropbtn:hover {
    color: #1a73e8;
}

.dropbtn::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.25s ease, border-top-color 0.2s ease;
}

.dropbtn:hover::after,
.dropbtn.open::after {
    border-top-color: #1a73e8;
}

.dropbtn.open::after {
    transform: rotate(180deg);
}

/* === ENHANCED DROPDOWN PANEL === */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08),
                0 4px 8px rgba(0, 0, 0, 0.05);
    list-style: none;
    margin-top: 0; 
    padding: 8px 0;
    z-index: 1001;
     max-height: 320px; 
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    visibility: hidden;
}


/* ---------------------------
   Slim Modern Scrollbar
--------------------------- */

/* Chrome, Edge, Safari */
.dropdown-content::-webkit-scrollbar {
    width: 6px;              /* thinner width */
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent; /* clean look */
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45);
}


/* Firefox */
.dropdown-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}

.dropdown:hover > .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}



/* Show with animation */
/* KEEP DROPDOWN OPEN WHEN HOVERING INSIDE */
/* ===============================
   MOBILE DROPDOWN DEFAULT STATE
================================ */

/* Hide all mobile submenus by default */
.mobile-submenu {
    display: none;
}

/* Show only when active */
.mobile-dropdown.active > .mobile-submenu,
.mobile-sub-dropdown.active > .mobile-submenu {
    display: block;
}


.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

/* Optional: Add subtle icons (using Font Awesome) */
.dropdown-content a::before {
    content: '●';
    color: #1a73e8;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-content a:hover::before {
    opacity: 1;
}

.dropdown-content a:hover {
    background-color: #f0f7ff;
    color: #0d5ab3;
    transform: translateX(4px);
}

/* Divider (optional — for "All Products" header) */
.dropdown-content .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
    margin: 6px 0;
    border: none;
}

/* Optional: Add small subtle label (e.g., “Featured”) */
.dropdown-content .tag {
    font-size: 0.75rem;
    background: #e6f0ff;
    color: #1a73e8;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

/* === SUB-DROPDOWN (2nd LEVEL) === */
.sub-dropdown {
    position: relative;
}

/* Clickable button */
.sub-dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
}

/* Hover only for visual feedback (NOT opening) */
.sub-dropbtn:hover {
    background-color: #f0f7ff;
    color: #0d5ab3;
}

/* Arrow rotation */
.sub-dropdown.active .arrow {
    transform: rotate(180deg);
}

/* Submenu (hidden by default) */
.sub-dropdown-content {
    display: none;
    margin-left: 12px;
    padding-left: 12px;
}

.sub-dropdown.active .sub-dropdown-content {
    display: block;
}

/* Submenu links */
.sub-dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sub-dropdown-content li a:hover {
    background-color: #e6f0ff;
    color: #1a73e8;
    padding-left: 24px;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 991px) {
    .brand-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 813px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .brand-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 45px;
    }

    .brand-title {
        font-size: 0.9rem;
    }
}






.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Features Section */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    margin: 0;
}


  .device-showcase {
            padding: 80px 0;
             background: url('../assets/telematics-bg2.avif') no-repeat center center;
            background-size: cover;
        }
        
        .device-container {
            display: flex;
            align-items: center;
            gap: 60px;
            margin-top: 50px;
        }
        
        .device-image {
            flex: 1;
            text-align: center;
        }
        
        .device-image img {
            max-width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            border: 3px solid #e2e8f0;
        }
        
        .device-info {
            flex: 1;
        }
        
        .device-info p {
            font-size: 1.1rem;
            color: #475569;
            line-height: 1.6;
            margin-bottom: 30px;
            }

            .device-info .btn {
            padding: 14px 28px;
            font-size: 1rem;
            }

        .device-info h2 {
            font-size: 2.2rem;
            margin-bottom: 20px;
            color: #0f172a;
        }
        
        .device-specs {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .specs-list {
            list-style: none;
            padding: 0;
        }
        
        .specs-list li {
            padding: 12px 0;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            align-items: flex-start;
        }
        
        .specs-list li:last-child {
            border-bottom: none;
        }
        
        .specs-list i {
            color: var(--primary);
            margin-right: 12px;
            margin-top: 4px;
            font-size: 1.1rem;
        }
        

/* ===============================
   Scroll Reveal Animation
================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay effect */
.reveal-delay {
  transition-delay: 0.3s;
}

/* Floating animation for device image */
.device-image.active img {
  animation: floatDevice 3s ease-in-out infinite alternate;
}

@keyframes floatDevice {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}



        .features-section {
            padding: 80px 0;
            background: white;
            background:url('../assets/telematics-bg3.webp') no-repeat center center;
            background-size: cover;
        }
        
        .section-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            margin: 60px 0;
            width: 80%;
            margin-left: auto;
            margin-right: auto;
        }
        
        .features-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
            
        }
        
        .feature-category {
            background: #f8fafc;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .feature-category h3 {
            color: #04034f;
            margin-bottom: 20px;
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .feature-category ul {
            list-style: none;
            padding: 0;
        }
        
        .feature-category li {
            padding: 8px 0;
            color: #475569;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        
        .feature-category li i {
            color: var(--success);
            margin-top: 4px;
            font-size: 0.9rem;
        }

        
        
        .extra-features {
            padding: 80px 0;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
        }
        
        .extra-features h2 {
            color: white;
            margin-bottom: 20px;
        }
        
        .extra-features .lead {
            color: #cbd5e1;
            max-width: 800px;
            margin: 0 auto 40px auto;
        }
        
        .extra-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .extra-feature-card {
            background: rgba(255, 255, 255, 0.08);
            padding: 25px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }
        
        .extra-feature-card h3 {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .extra-feature-card h3 i {
            color: #3b82f6;
        }
        
        .extra-feature-card p {
            color: #e2e8f0;
            line-height: 1.6;
        }
        


/* ===============================
   3D Flip Reveal Animation (Fixed)
================================ */

.feature-category {
  opacity: 0;
  transform: perspective(1000px) rotateX(35deg) translateY(60px);
  transition: 
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.features-section.animate .feature-category {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

/* Hover effect safely layered */
.features-section.animate .feature-category:hover {
  transform: perspective(1000px) translateY(-8px) scale(1.02);
}



@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}








        /* Device Navigation Cards */
        .device-navigation {
            padding: 60px 0;
            background: url('../assets/telematics-bg-1.avif') no-repeat center center;
            background-size: cover; /* ensures the image fully covers the section */
        }

        
        .navigation-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .navigation-header h2 {
            font-size: 2.5rem;
            color: #0f172a;
            margin-bottom: 1rem;
        }
        
        .navigation-header p {
            color: #64748b;
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .navigation-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .nav-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        
        .nav-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        .nav-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .nav-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #0f172a;
        }
        
        .nav-card p {
            color: #64748b;
            line-height: 1.6;
        }
        
        @media (max-width: 992px) {
            .device-container {
                flex-direction: column;
                text-align: center;
            }
            
            .device-info {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .features-container,
            .extra-features-grid,
            .navigation-cards {
                grid-template-columns: 1fr;
            }
            
            .navigation-header h2 {
                font-size: 2rem;
            }
        }
/* ================================
   Device Navigation Animations
================================ */

/* Initial hidden state */
.navigation-header h2,
.navigation-header p,
.nav-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animate when visible */
.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}





/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.benefits-text {
    flex: 1;
}

.benefits-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #334155;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--success);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 1.2rem;
}

.benefits-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefits-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.benefits-image:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg,#07112a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ------------------- FOOTER ------------------- */
.footer {
  background: #04034f;
  color: #ffffff;
  padding: 50px 20px 20px;
  margin-top: 60px;
  border-top: 3px solid #3a7afe;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
}

.footer-col ul li a:hover {
  color: #3a7afe;
  transform: translateX(5px);
}

/* ------ Social Icons ------ */
.social-icons {
  text-align: center;
  margin-bottom: 15px;
}

.social-icons a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #3a7afe;
  transform: scale(1.2);
}

/* ------ Bottom Text ------ */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #bbbbbb;
}

.footer-bottom p {
  margin-top: 10px;
}
.footer-catalogue {
  margin: 20px 0;
}

.catalogue-btn {
  display: inline-flex;
  gap: 10px;
  padding: 12px 22px;
  background: #1c69ff;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.catalogue-btn i {
  font-size: 16px;
}

.catalogue-btn:hover {
  background: #04034f;
  transform: translateY(-2px);
}




/* Responsive Styles */
@media (max-width: 1024px) {
    .benefits-content {
        flex-direction: column;
        text-align: center;
    }


    .benefits-text {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .benefits-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    
    .section-title,
    .benefits-text h2,
    .cta-section h2 {
        font-size: 2.2rem;
    }

   
    .section-subtitle,
    .cta-section p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
   
    .section-title,
    .benefits-text h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utility Classes */
.mt-1 { margin-top: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* HERO */
.telematics-hero {
    position: relative;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85)),
    url("../assets/telematics-bg.png");
  background-size: cover;
  background-position: center;
  margin-top: 90px;
  padding-top: calc(80px + 10px);
  height: 700px;
  overflow: hidden;
  color: white;
  z-index: 1;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.telematics-hero {
    position: relative;
    overflow: hidden;
}

.telematics-hero .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
}
.telematics-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0.65) 0%, rgba(2,6,23,0.45) 50%, rgba(2,6,23,0.2) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}

.hero-text {
    color: #fff;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 6px 30px rgba(2,6,23,0.6);
}

.hero-text .lead {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 60ch;
    margin-bottom: 22px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(90deg,var(--primary),var(--secondary));
    color: white;
    border: none;
}

.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(37,99,235,0.18); }

.btn-outline {
    background: rgba(255,255,255,0.06);
    color: #e6eefc;
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-media {
    display: flex;
    justify-content: center;
}

.device-mock {
    width: 520px;
    max-width: 100%;
    border-radius: 18px;
    overflow: visible;
    position: relative;
    transform: translateZ(0);
}

.device-mock img {
    /* make the media a true circle with consistent sizing */
    width: 420px;
    height: 420px;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 30px 80px rgba(2,6,23,0.6);
    filter: blur(0.6px);
    transition: filter 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.telematics-image1:hover {
    filter: blur(0);
    transform: scale(1.02);
    box-shadow: 0 32px 90px rgba(2,6,23,0.65);
}

.floating-badge {
    position: absolute;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
}

.badge-1 { top: 12%; left: -6%; animation: floatY 6s ease-in-out infinite; }
.badge-2 { bottom: -5%; right: 40%; animation: floatY 5s ease-in-out infinite; }
.badge-3 { top: 50%; right: 10%; animation: floatY 7s ease-in-out infinite; }

@keyframes floatY {
    0% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-10px) translateX(4px) scale(1.02); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

/* ensure animation classes remain available */
.animate-fade-in-up { opacity: 0; transform: translateY(18px); animation: fadeInUp 0.9s ease-out forwards; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
    .hero-text { text-align: center; }
    .badge-1, .badge-2, .badge-3 { display: none; }
}

/* If header height changes on smaller screens, reduce hero top padding */
@media (max-width: 768px) {
    .telematics-hero { padding-top: 72px; }
}

@media (max-width: 480px) {
    .telematics-hero { padding-top: 64px; }
}

@media (max-width: 560px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text .lead { font-size: 0.98rem; }
    .telematics-hero { min-height: 56vh; }
}
@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 16px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }
}
@media (max-width: 600px) {

    .telematics-hero {
        margin-top: 64px;
        padding-top: 64px;
        min-height: auto;
        overflow-x: hidden;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px 16px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-text .lead {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 🔑 CRITICAL IMAGE FIX */
    .device-mock {
        width: 100%;
    }

    .device-mock img {
        width: 260px;
        height: 260px;
        max-width: 100%;
    }

    /* Disable floating badges on mobile */
    .badge-1,
    .badge-2,
    .badge-3 {
        display: none;
    }
}

/* SECTIONS */
.telematics-section {
  padding: 100px 0;
}

.telematics-section.dark {
  background: #0f172a;
  color: #e5e7eb;
}

.container.narrow {
    padding-top: 150px;
  max-width: 820px;
  margin: auto;
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 25px;
}

/* SPLIT LAYOUT */
.telematics-split {
  padding: 100px 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: center;
}

.telematics-split.reverse .split {
  direction: rtl;
}

.telematics-split.reverse .text,
.telematics-split.reverse .image {
  direction: ltr;
}

.text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.text p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #475569;
}

.telematics-section.dark p {
  color: #cbd5e1;
}

.image img {
    width: 100%;
    max-width: 350px; /* reduce visual size on large screens */
    display: block;
    margin: 0 auto; /* center horizontally */
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .image img { max-width: 100%; }
}



/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  z-index: 1001;
}

/* Header */
.chat-header {
  background: #0b3c52;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-header .status {
  font-size: 12px;
  color: #9effc4;
}

.close-btn {
  font-size: 22px;
  cursor: pointer;
}

/* Body */
.chat-body {
  padding: 15px;
  background: #f4efe8;
}

.chat-message {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Footer */
.chat-footer {
  padding: 15px;
  text-align: center;
}

.start-chat-btn {
  display: block;
  background: #25d366;
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 6px;
}

.start-chat-btn:hover {
  background: #1ebe5d;
}

.chat-footer small {
  color: #777;
}

