html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui;
    background: #0f1115;
    color: #e6e6e6;
    overflow-x: hidden !important;
    width: 100%;
}

.section {
    padding: 110px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
}

/* NAVBAR */

.navbar {
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.6);
}

.navbar-expand-lg {
    padding: 20px;
}

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 14px 28px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* FEATURES */

.feature-card {
    background: #171a21;
    padding: 30px;
    border-radius: 14px;
    height: 100%;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 34px;
    color: #0d6efd;
    margin-bottom: 10px;
}

/* DEVICES */

.device-area {
    display: flex;
    justify-content: center;
}

.gps-device {
    width: 220px;
    height: 120px;
    background: #1b1f27;
    border-radius: 16px;
    position: relative;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gps-led {
    width: 10px;
    height: 10px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 18px;
    animation: pulse 2s infinite;
}

.dashcam {
    width: 260px;
    height: 110px;
    background: #1a1a1a;
    border-radius: 18px;
    position: relative;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}

.dashcam-lens {
    width: 60px;
    height: 60px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 20px;
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.8);
}

/* MAP DEMO */

.map-demo {
    background: #111;
    border-radius: 14px;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.vehicle {
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    animation: vehicleMove 12s linear infinite;
}

.vehicle:nth-child(2) {
    animation-delay: 3s
}

.vehicle:nth-child(3) {
    animation-delay: 6s
}

section {
    scroll-margin-top: 80px;
}

.counter {
    font-size: 48px;
    font-weight: 800;
    color: #0d6efd;
}

.counter+p {
    opacity: 0.7;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

.gallery-item img {
    transition: 0.4s;
    width: 100%;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.overlay i {
    font-size: 32px;
    color: #fff;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.nav-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.6);
border:none;
color:#fff;
font-size:28px;
width:50px;
height:50px;
border-radius:50%;
cursor:pointer;
z-index:10;
transition:0.3s;
}

.nav-btn:hover{
background:#0d6efd;
}

.prev{
left:10px;
}

.next{
right:10px;
}

.logo-slider{
overflow:hidden;
position:relative;
}

.logo-track{
display:flex;
gap:60px;
width:max-content;
animation:scrollLogos 55s linear infinite;
align-items:center;
}

.logo-track img{
height:85px;
opacity:0.8;
background: white;
transition:0.3s;
padding: 5px 10px;
/* filter:grayscale(100%); */
}

.logo-track img:hover{
opacity:1;
filter:none;
transform:scale(1.1);
}

@keyframes scrollLogos{
0%{
transform:translateX(0);
}
100%{
transform:translateX(-50%);
}
}

@keyframes vehicleMove {
    0% {
        left: -20px;
        top: 50%
    }

    50% {
        left: 50%;
        top: 30%
    }

    100% {
        left: 110%;
        top: 60%
    }
}

/* PRICING */

.pricing-card {
    background: #171a21;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

.price {
    font-size: 46px;
    font-weight: 800;
}

/* CTA */

.cta {
    background: linear-gradient(135deg, #0d6efd, #003fa3);
    padding: 120px 0;
    text-align: center;
}

/* CONTACT */

.contact-box {
    background: #171a21;
    padding: 40px;
    border-radius: 16px;
}

/* FOOTER */

footer {
    background: #0b0d11;
    padding: 70px 0;
}

img {
    max-width: 100% !important;
}

/* ANIMATIONS */

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }

    100% {
        transform: translateY(0)
    }
}

@keyframes pulse {
    0% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }

    100% {
        opacity: 1
    }
}

/* MOBILE */

@media(max-width:768px) {

    .hero h1 {
        font-size: 36px
    }

    .hero {
        text-align: center
    }

    .section {
        padding: 70px 0
    }

    .pricing-card.featured {
        transform: none;
    }

}

.btn-custom, .bg-custom, .cta{
    background-image: linear-gradient(to right, #2c5a8b, #275581, #225078, #1f4a6e, #1c4565);
    border-color: #1c4565 !important;
    color: #ddd;
}

.text-custom {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #2c5a8b, #275581, #225078, #1f4a6e, #1c4565);
}
