:root {
    --primary: #2b0c3f;
    --primary-light: #4c1175;
    --accent: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.5);
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --bg-dark: #0f0219;
    --bg-card: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Sora', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 2, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 140px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-dark) 30%, rgba(15, 2, 25, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Glass Card Animation */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    animation: floating 6s ease-in-out infinite;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate3d(0, 1, 0, -10deg);
    }

    50% {
        transform: translateY(-20px) rotate3d(0, 1, 0, -15deg);
    }
}

.map-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.tracking-details {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item .value {
    font-size: 0.9rem;
    font-weight: 700;
}

.success {
    color: #4caf50;
}

.car-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
    transform-origin: center;
    /* Animation handled by JS or simple loop */
    transition: all 0.5s ease-out;
    z-index: 10;
}

/* Simulate movement over map */
@keyframes drive-map {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(60px, -40px) rotate(45deg);
    }

    50% {
        transform: translate(120px, 0px) rotate(90deg);
    }

    75% {
        transform: translate(60px, 40px) rotate(135deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Increased height for better view to match text height */
.map-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #1a0b2e;
}

/* Adjust animation specifically for the marker movement */
.car-marker {
    animation: drive-path 8s infinite linear;
}

@keyframes drive-path {
    /* Simple 2D rectangular path simulation */

    /* Top-Left */
    0% {
        top: 30%;
        left: 20%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    /* Move Right */
    25% {
        top: 30%;
        left: 80%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    /* Turn Down */
    26% {
        top: 30%;
        left: 80%;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    /* Move Down */
    50% {
        top: 70%;
        left: 80%;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    /* Turn Left */
    51% {
        top: 70%;
        left: 80%;
        transform: translate(-50%, -50%) rotate(270deg);
    }

    /* Move Left */
    75% {
        top: 70%;
        left: 20%;
        transform: translate(-50%, -50%) rotate(270deg);
    }

    /* Turn Up */
    76% {
        top: 70%;
        left: 20%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Move Up */
    99% {
        top: 30%;
        left: 20%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Loop Reset */
    100% {
        top: 30%;
        left: 20%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}




/* Services */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-header {
    margin-bottom: 60px;
}

.center {
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* CTA Banner */
.cta-banner {
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 80px 0 0;
    background: #08010d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 180px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-gray);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 30px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-btns,
    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: var(--transition);
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-buttons {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features {
    padding: 120px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rounded-img {
    width: 100%;
    border-radius: 30px;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.icon-small {
    min-width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 40px;
}

.stars {
    color: #ffb703;
    margin-bottom: 15px;
}

.user-info {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: white;
}

.user-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* App Promo */
.app-promo {
    padding: 120px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-stores {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.store-badge {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
}

.phone-frame {
    padding: 15px;
    border-radius: 40px;
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame img {
    width: 100%;
    border-radius: 25px;
}

@media (max-width: 992px) {

    .section-grid,
    .app-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-list li {
        text-align: left;
    }
}

/* Plans Section */
.plans {
    padding: 100px 0;
    background: var(--bg-dark);
}

.plans-table-container {
    overflow-x: auto;
    margin-top: 50px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    padding: 20px;
}

.plans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-white);
    text-align: center;
    min-width: 800px;
}

.plans-table th,
.plans-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plans-table th {
    vertical-align: bottom;
    padding-bottom: 30px;
}

.feature-head {
    text-align: left;
    font-size: 1.1rem;
    width: 30%;
    font-weight: 600;
}

.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-gray);
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
}

.period {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 400;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 400;
}

.highlight-col {
    background: rgba(157, 78, 221, 0.1);
    position: relative;
    border-radius: 20px 20px 0 0;
}

/* Rounded corners for highlight column */
.plans-table th.highlight-col {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-top: 1px solid var(--accent-glow);
    border-left: 1px solid var(--accent-glow);
    border-right: 1px solid var(--accent-glow);
}

.plans-table td.highlight-col {
    border-left: 1px solid var(--accent-glow);
    border-right: 1px solid var(--accent-glow);
    background: rgba(157, 78, 221, 0.1);
}

.plans-table tfoot td.highlight-col {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-bottom: 1px solid var(--accent-glow);
    background: rgba(157, 78, 221, 0.1);
}

.recommended {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.4);
}

.check {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
}

.dash {
    color: var(--text-gray);
    font-size: 1.5rem;
    opacity: 0.5;
}

.plans-table tbody tr {
    transition: background 0.3s;
}

.plans-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Adjustments for highlight column hover which is tricky with td background,
   so we might skip hover effect or apply it selectively */
.plans-table tbody tr:hover td.highlight-col {
    background: rgba(157, 78, 221, 0.15);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}