:root {
    /* Light Mode Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.08);
    --shadow-lg: rgba(15, 23, 42, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --secondary: #a78bfa;
    --accent: #22d3ee;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
body {
    font-family: Montserrat, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background: var(--background);
}

/* Map Pattern Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.map-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    transform: perspective(1000px) rotateX(20deg) scale(1.2);
    animation: moveGrid 20s linear infinite;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--background) 80%);
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* Content Layout */
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

/* Text Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ==================== TRACKING VISUALIZATION (Right Side) ==================== */
.hero-visualmain {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Device/Phone Frame */
.tracking-device {
    width: 320px;
    height: 657px;
    background: #1e293b;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 25px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 4px solid #334155;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.theme-video {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-video.active {
    opacity: 1;
    position: relative;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #1a202c;
}

/* Map UI Elements */
.map-ui-top {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
}

.status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 4px;
}

.status-time {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Floating Card Overlay */
.floating-card {
    position: absolute;
    background: var(--surface);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    bottom: 60px;
    left: -40px;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.small-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .badge {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0px;
    }

    .hero-text-home {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-stats {
        display: none;
    }

    .hero-visualmain {
        height: 620px;
        /* margin-top: 2rem; */
    }

    .tracking-device {
        transform: rotateY(0);
        width: 280px;
        height: 568px;
    }

    .hero-stats {
        justify-content: center;
    }

}

/* Trusted Clients */
.trusted-clients {
    padding: var(--spacing-2xl) 0;
    background: var(--surface);
    overflow: hidden;
    /* Hides scrollbars */
}

.section-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-2xl);
}

/* Marquee Container */
.marquee-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Gradient Masks (Fades edges) */
.marquee-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-gradient.left {
    left: 0;
    background: linear-gradient(to right, var(--surface), transparent);
}

.marquee-gradient.right {
    right: 0;
    background: linear-gradient(to left, var(--surface), transparent);
}

/* The Sliding Track */
.marquee-track {
    display: flex;
    gap: 4rem;
    /* Space between logos */
    width: max-content;
    animation: scroll 30s linear infinite;
    /* Adjust speed here (30s) */
}

/* Pause animation on hover so users can look at logos */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Logo Styling */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    /* Ensures consistent spacing */
}

.client-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Hover Effect: Full Color & Opacity */
.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

[data-theme="dark"] .client-logo img {
    filter: grayscale(100%) brightness(2);
    opacity: 0.4;
}

[data-theme="dark"] .client-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Infinite Scroll Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .marquee-track {
        gap: 2rem;
        animation-duration: 20s;
    }

    .client-logo img {
        max-height: 30px;
    }
}

/* Features Section */
/* ==================== INTERACTIVE FEATURES SECTION ==================== */
.interactive-features {
    padding: 5rem 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Module Toggle Buttons - Visible on Mobile */
.module-toggles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.module-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: transparent;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.module-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.module-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Module Content Wrapper */
.module-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.module-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Two-Column Layout */
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* LEFT SIDE: Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    cursor: pointer;
    padding-bottom: 1rem;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.feature-item:hover,
.feature-item.active {
    opacity: 1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.item-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.feature-item.active h3 {
    color: var(--primary);
}

/* Animated Underline Bar */
.item-bar {
    height: 3px;
    width: 50px;
    background: var(--border);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.feature-item:hover .item-bar,
.feature-item.active .item-bar {
    width: 100%;
    background: var(--gradient-primary);
}

/* RIGHT SIDE: Image Preview Window */
.feature-preview {
    position: relative;
}

.preview-window {
    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.preview-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Browser Bar */
.browser-bar {
    background: #e2e8f0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .browser-bar {
    background: #1e293b;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c940;
}

.url-bar {
    background: white;
    margin-left: 0.75rem;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    flex-grow: 1;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .url-bar {
    background: #0f172a;
    color: var(--text-secondary);
}

/* Image Container */
.image-container {
    height: 350px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

[data-theme="dark"] .image-container {
    background: #0f172a;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

/* ==================== MOBILE HORIZONTAL SCROLL (768px) ==================== */
@media (max-width: 768px) {
    .interactive-features {
        padding: 3rem 0 4rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem !important;
        padding: 0 1.25rem;
    }

    .section-description {
        font-size: 0.95rem !important;
        padding: 0 1.25rem !important;
        line-height: 1.5 !important;
    }

    /* Keep module toggles visible */
    .module-toggles {
        gap: 0.75rem;
        padding: 0 1.25rem;
        flex-wrap: nowrap;
        /* Keep in single row */
        overflow-x: auto;
        /* Allow horizontal scroll if needed */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .module-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 16px;
        flex-shrink: 0;
        /* Prevent buttons from shrinking */
    }

    .feature-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Preview stays on top */
    .feature-preview {
        position: sticky;
        top: 80px;
        z-index: 10;
        margin-bottom: 2rem;
        padding: 0 1.25rem;
    }

    .preview-window {
        transform: none;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .browser-bar {
        padding: 0.65rem 0.85rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .url-bar {
        padding: 0.35rem 0.85rem;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        border-radius: 8px;
    }

    .image-container {
        height: 350px;
        border-radius: 0 0 18px 18px;
    }

    /* Horizontal Scroll Container */
    .feature-list {
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1.25rem 1.5rem;
        margin: 0 -1.25rem;
        scrollbar-width: none;
    }

    .feature-list::-webkit-scrollbar {
        display: none;
    }

    /* Feature Cards - Horizontal Scroll Items */
    .feature-item {
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
        padding: 0;
        margin: 0 0.5rem;
        opacity: 1;
        background: var(--background);
        border: 2px solid var(--border);
        border-radius: 20px;
        padding: 1.75rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-item:first-child {
        margin-left: 1.25rem;
    }

    .feature-item:last-child {
        margin-right: 1.25rem;
    }

    .feature-item.active {
        border-color: var(--primary);
        background: rgba(99, 102, 241, 0.05);
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
        transform: scale(1.02);
    }

    .item-header {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }

    .item-number {
        font-size: 1.5rem;
        font-weight: 800;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        opacity: 1;
    }

    .feature-item h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .item-bar {
        width: 100%;
        height: 3px;
        background: var(--border);
        border-radius: 2px;
        margin-top: 0.5rem;
    }

    .feature-item.active .item-bar {
        background: var(--gradient-primary);
    }
}

/* ==================== SMALL MOBILE (480px) ==================== */
@media (max-width: 480px) {
    .interactive-features {
        padding: 2.5rem 0 3.5rem;
    }

    .section-title {
        font-size: 1.65rem;
        padding: 0 1rem;
    }

    .section-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .module-toggles {
        padding: 0 1rem;
        gap: 0.65rem;
    }

    .module-btn {
        padding: 0.8rem 1.25rem;
        font-size: 12px;
    }

    .feature-preview {
        padding: 0 1rem;
    }

    .image-container {
        height: 205px;
    }

    .feature-list {
        padding: 0.5rem 1rem 1.5rem;
        margin: 0 -1rem;
    }

    .feature-item {
        min-width: 90%;
        max-width: 90%;
        padding: 1.5rem 1.25rem;
        margin: 0 0.4rem;
    }

    .feature-item:first-child {
        margin-left: 1rem;
    }

    .feature-item:last-child {
        margin-right: 1rem;
    }

    .item-number {
        font-size: 1.35rem;
    }

    .feature-item h3 {
        font-size: 1.15rem;
    }
}

/* ==================== EXTRA SMALL (360px) ==================== */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.85rem;
    }

    .module-btn {
        padding: 0.75rem 1.25rem;
        font-size: 12px;
    }

    .feature-item {
        min-width: 92%;
        max-width: 92%;
        padding: 1.25rem 1rem;
    }

    .item-number {
        font-size: 1.2rem;
    }

    .feature-item h3 {
        font-size: 1.05rem;
    }

    .image-container {
        height: 160px;
    }
}


/* Integration Section */
/* Section Layout */
.integration-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

.integration-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.integration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Left Side: Text & List */
.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.integration-benefits {
    list-style: none;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.integration-benefits li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.icon-box.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-box.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.integration-benefits strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.integration-benefits p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.mt-4 {
    margin-top: 2rem;
}

/* Right Side: Orbit Visualization */
.integration-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub */
.hub-center {
    position: absolute;
    z-index: 10;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

[data-theme="dark"] .logo-circle {
    background: #1e293b;
    border-color: #334155;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse-ripple 3s infinite;
}

@keyframes pulse-ripple {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Orbiting Apps */
.orbit-container {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 1px dashed var(--border);
    animation: spin 60s linear infinite;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    /* Pivot point */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* App Icon Styling */
.app-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit-item:hover .app-icon {
    transform: scale(1.2);
}

.app-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Positioning Items on the Circle */
/* Using translate to push them out from center to orbit radius (225px) */
/* Rotate reverses the spin animation so icons stay upright */

.item-1 {
    transform: rotate(0deg) translate(225px) rotate(0deg);
}

.item-2 {
    transform: rotate(72deg) translate(225px) rotate(-72deg);
}

.item-3 {
    transform: rotate(144deg) translate(225px) rotate(-144deg);
}

.item-4 {
    transform: rotate(216deg) translate(225px) rotate(-216deg);
}

.item-5 {
    transform: rotate(288deg) translate(225px) rotate(-288deg);
}

/* Keyframes */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* To keep icons upright while container spins, we need to counter-rotate them dynamically 
   OR simpler approach: Don't rotate the container, just animate positions. 
   Here is the simpler CSS-only approach for upright icons: */

.orbit-item {
    animation: counter-spin 60s linear infinite;
}

@keyframes counter-spin {
    from {
        transform: rotate(0deg) translate(225px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate(225px) rotate(-360deg);
    }
}

/* Staggered start positions for items */
.item-1 {
    animation-delay: 0s;
}

.item-2 {
    animation-delay: -12s;
}

.item-3 {
    animation-delay: -24s;
}

.item-4 {
    animation-delay: -36s;
}

.item-5 {
    animation-delay: -48s;
}

/* Responsive */
@media (max-width: 968px) {
    .integration-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .integration-benefits li {
        flex-direction: column;
        align-items: center;
    }

    .orbit-container {
        width: 320px;
        height: 320px;
    }

    /* Adjust orbit radius for mobile */
    @keyframes counter-spin {
        from {
            transform: rotate(0deg) translate(160px) rotate(0deg);
        }

        to {
            transform: rotate(360deg) translate(160px) rotate(-360deg);
        }
    }
}


/* Pricing Section */
/* Section Layout */
.pricing-section {
    padding: var(--spacing-3xl) 0;
    background: var(--surface);
}

/* Pricing Toggle Switch */
/* Container for the toggle row */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Text Labels (Monthly/Annual) */
.toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-tertiary);
    /* Grey by default */
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Active state for text labels (Highlights when selected) */
.toggle-label.active {
    color: var(--text-primary);
    /* Dark/Black when active */
}

/* The Toggle Switch Container */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

/* Hide the default checkbox */
.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The Slider (Background of the switch) */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    /* Default grey background */
    border-radius: 34px;
    transition: background-color 0.3s ease;
}

/* The Circle Knob */
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked State (Annual) - Background turns primary color */
.toggle-input:checked+.toggle-slider {
    background-color: var(--primary);
    /* e.g., #6366f1 */
}

/* Checked State (Annual) - Knob moves right */
.toggle-input:checked+.toggle-slider:before {
    transform: translateX(28px);
}

/* Hover Effect */
.toggle-slider:hover {
    background-color: #cbd5e1;
    /* Slightly darker grey on hover */
}

.toggle-input:checked+.toggle-slider:hover {
    background-color: var(--primary-dark);
    /* Darker primary on hover */
}

/* Save Badge Styling */
.save-badge {
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: 6px;
    border: 1px solid #86efac;
    position: relative;
    top: -1px;
}


/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

/* Pricing Card Styling */
.pricing-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* Featured Card */
.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--background), var(--background)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.4);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Card Header */
.card-header {
    margin-bottom: 2rem;
}

.plan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pricing-card:not(.featured) .plan-icon {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Price Display */
.card-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.amount[data-monthly="Custom"] {
    font-size: 2rem;
}

.period {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* Features List */
.features-list {
    list-style: none;
    text-align: left;
    margin-top: auto;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.features-list i {
    color: #22c55e;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}


/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-primary);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Footer */
/* ==================== MODERN FOOTER ==================== */
.footer-modern {
    background-color: #0f172a;
    /* Dark Slate Background */
    color: #cbd5e1;
    /* Light Grey Text */
    font-size: 0.95rem;
}

/* --- Top Feature Bar --- */
.footer-features {
    background-color: var(--primary);
    /* Brand Color Bar */
    padding: 1.5rem 0;
    color: white;
    position: relative;
    z-index: 10;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.divider-vertical {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

/* --- Main Content --- */
.footer-main {
    padding: 5rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr;
    gap: 4rem;
}

/* Brand Column */
.footer-brand .logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 45px;
}

.brand-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #94a3b8;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    /* background: var(--primary); */
    transform: translateY(-3px);
}

/* Links Columns Group */
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-col h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.link-col ul {
    list-style: none;
    padding: 0;
}

.link-col ul li {
    margin-bottom: 0.75rem;
}

.link-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.link-col a:hover {
    color: var(--primary);
    /* Highlight color on hover */
}

/* Contact Column */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

.contact-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: white;
}

/* --- Footer Bottom --- */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #64748b;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-flex a {
    color: #94a3b8;
    text-decoration: none;
}

.bottom-flex a:hover {
    color: white;
}

.legal-links {
    display: flex;
    gap: 1rem;
}

.sep {
    color: #334155;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .divider-vertical {
        display: none;
        /* Hide dividers on mobile */
    }

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
    }

    .bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links-group {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }
}



/* Section Layout */
.why-choose-section {
    padding-top: 6rem;
    background: var(--surface);
    /* Light gray or dark slate depending on theme */
}

/* Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Comparison Table Wrapper */
.comparison-wrapper {
    background: var(--background);
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 1px solid var(--border);
    overflow-x: auto;
    /* For mobile scrolling */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure readability on mobile */
}

/* Table Headers */
.comparison-table th {
    padding-bottom: 2rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.col-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.col-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.logo-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Table Body */
.comparison-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Feature Column */
.feature-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-name i {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Competitor Column */
.comp-cell {
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Our Column */
.us-cell {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    background: rgba(99, 102, 241, 0.03);
    /* Subtle highlight column */
    border-radius: 8px;
    /* Rounded corners for the 'Our' cells */
}

.text-success {
    color: #22c55e;
    margin-right: 6px;
}

.text-danger {
    color: #ef4444;
    opacity: 0.6;
}

.us-cell.highlight {
    color: #22c55e;
}

/* Trust Stats at Bottom */
.why-trust {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.trust-item {
    text-align: center;
}

.trust-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.trust-item p {
    color: var(--text-secondary);
    font-weight: 600;
}

.trust-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-wrapper {
        padding: 1.5rem;
    }

    .why-trust {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .trust-divider {
        width: 100px;
        height: 1px;
    }
}

/* Active Navigation Link Styling */
/* .nav-link {
    position: relative;
    transition: color 0.3s ease;
} */

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* /* Mobile menu active state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* //dropdoown css */

/* Dropdown Container */
/* ==================== MEGA MENU DROPDOWN ==================== */

/* Dropdown Container */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Rotate arrow when active */
.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px var(--shadow-lg);
    padding: 2rem;
    width: 950px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Show mega menu on hover OR active class */
.dropdown:hover .mega-menu,
.dropdown.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Simple Grid Layout - No Categories */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mega Menu Items */
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mega-item:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateX(5px);
}

/* Icon Styling */
.mega-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Icon Colors - Light Mode */
.mega-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.mega-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.mega-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.mega-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.mega-icon.cyan {
    background: #ecfeff;
    color: #06b6d4;
}

.mega-icon.red {
    background: #fef2f2;
    color: #dc2626;
}

.mega-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.mega-icon.pink {
    background: #fdf2f8;
    color: #ec4899;
}

.mega-icon.teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.mega-icon.yellow {
    background: #fefce8;
    color: #ca8a04;
}

.mega-icon.lime {
    background: #f7fee7;
    color: #65a30d;
}

.mega-icon.amber {
    background: #fef9c3;
    color: #d97706;
}

.mega-icon.violet {
    background: #f5f3ff;
    color: #8b5cf6;
}

.mega-icon.rose {
    background: #fff1f2;
    color: #e11d48;
}

.mega-icon.slate {
    background: #f1f5f9;
    color: #475569;
}

.mega-icon.zinc {
    background: #f4f4f5;
    color: #52525b;
}

.mega-icon.neutral {
    background: #f5f5f5;
    color: #737373;
}

.mega-icon.stone {
    background: #f5f5f4;
    color: #57534e;
}

.mega-icon.sky {
    background: #f0f9ff;
    color: #0284c7;
}

/* Icon Colors - Dark Mode */
[data-theme="dark"] .mega-icon.blue {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .mega-icon.purple {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

[data-theme="dark"] .mega-icon.green {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .mega-icon.orange {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
}

[data-theme="dark"] .mega-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

[data-theme="dark"] .mega-icon.red {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .mega-icon.indigo {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
}

[data-theme="dark"] .mega-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

[data-theme="dark"] .mega-icon.teal {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

[data-theme="dark"] .mega-icon.yellow {
    background: rgba(202, 138, 4, 0.15);
    color: #facc15;
}

[data-theme="dark"] .mega-icon.lime {
    background: rgba(101, 163, 13, 0.15);
    color: #bef264;
}

[data-theme="dark"] .mega-icon.amber {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .mega-icon.violet {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

[data-theme="dark"] .mega-icon.rose {
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185;
}

[data-theme="dark"] .mega-icon.slate {
    background: rgba(71, 85, 105, 0.15);
    color: #94a3b8;
}

[data-theme="dark"] .mega-icon.zinc {
    background: rgba(82, 82, 91, 0.15);
    color: #a1a1aa;
}

[data-theme="dark"] .mega-icon.neutral {
    background: rgba(115, 115, 115, 0.15);
    color: #d4d4d4;
}

[data-theme="dark"] .mega-icon.stone {
    background: rgba(87, 83, 78, 0.15);
    color: #a8a29e;
}

[data-theme="dark"] .mega-icon.sky {
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
}

/* Text Content */
.mega-text {
    flex: 1;
    min-width: 0;
    /* Prevent text overflow */
}

.mega-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mega-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mega Menu Footer */
.mega-menu-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
}

.view-all-link:hover {
    gap: 12px;
}

.view-all-link i {
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        padding: 1.5rem;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dropdown:hover .mega-menu,
    .dropdown.active .mega-menu {
        transform: none;
    }

    .dropdown.active .mega-menu {
        display: block;
    }

    /* Better touch targets on mobile */
    .mega-item {
        padding: 14px;
    }

    .mega-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .mega-menu {
        padding: 1rem;
    }

    .mega-text strong {
        font-size: 0.9rem;
    }

    .mega-text span {
        font-size: 0.8rem;
    }
}

/* Category Sections in Mega Menu */
.mega-menu-category {
    margin-bottom: 2rem;
}

.mega-menu-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Empty State */
.mega-menu-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.mega-menu-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* Adjust grid for categories */
.mega-menu-category .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Dark Mode */
[data-theme="dark"] .category-title {
    color: var(--primary);
    border-bottom-color: var(--border);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .mega-menu-category .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 0.85rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

/* Active feature item in mega menu */
.mega-item.active-feature {
    background: var(--surface);
    border-color: var(--primary);
}

.mega-item.active-feature .mega-icon {
    transform: scale(1.1);
}

.mega-item.active-feature .mega-text strong {
    color: var(--primary);
}

/* ==================== MOBILE MENU STYLES ==================== */

/* Show hamburger button on mobile */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
        display: block;
    }

    /* Hamburger to X animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.5rem;
        margin: 0;
        list-style: none;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Menu Items */
    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    /* Mobile Dropdown */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Mega Menu Mobile */
    .mega-menu {
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 1rem 0;
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .dropdown.active .mega-menu {
        max-height: 2000px;
        opacity: 1;
        visibility: visible;
    }

    .mega-menu-category {
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }

    .mega-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .mega-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1rem;
    }

    .mega-text strong {
        font-size: 0.9rem;
    }

    .mega-text span {
        font-size: 0.8rem;
    }

    /* Hide desktop actions */
    .nav-actions .btn {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;

    }

    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .nav-wrapper {
        padding: 0.75rem 0;
    }

    .nav-links {
        top: 65px;
        padding: 1rem;
        max-height: calc(100vh - 65px);
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .logo img {
        height: 25px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-left: 155px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .nav-links {
        padding: 0.75rem;
    }

    .nav-links a {
        padding: 0.65rem 0;
        font-size: 0.95rem;
    }

    .mega-item {
        padding: 0.5rem;
    }

    .logo img {
        height: 22px;
    }
}

/* ==================== MOBILE FEATURES MENU ==================== */

/* Hide mobile version on desktop */
.mega-menu-mobile {
    display: none;
}

/* Show desktop version on desktop */
.mega-menu-desktop {
    display: block;
}

@media (max-width: 1024px) {

    /* Hide desktop version on mobile */
    .mega-menu-desktop {
        display: none;
    }

    /* Show mobile version on mobile */
    .mega-menu-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* Mobile Feature Item */
    .mobile-feature-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0.5rem;
        border-bottom: 1px solid var(--border);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

    .mobile-feature-item:last-child {
        border-bottom: none;
    }

    .mobile-feature-item:hover,
    .mobile-feature-item:active {
        background: var(--surface);
        padding-left: 1rem;
    }

    /* Mobile Feature Icon */
    .mobile-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: white;
        flex-shrink: 0;
    }

    /* Icon Colors */
    .mobile-feature-icon.blue {
        background: #3b82f6;
    }

    .mobile-feature-icon.purple {
        background: #8b5cf6;
    }

    .mobile-feature-icon.green {
        background: #10b981;
    }

    .mobile-feature-icon.orange {
        background: #f59e0b;
    }

    .mobile-feature-icon.cyan {
        background: #06b6d4;
    }

    .mobile-feature-icon.pink {
        background: #ec4899;
    }

    .mobile-feature-icon.indigo {
        background: #6366f1;
    }

    .mobile-feature-icon.red {
        background: #ef4444;
    }

    .mobile-feature-icon.teal {
        background: #14b8a6;
    }

    .mobile-feature-icon.violet {
        background: #a855f7;
    }

    .mobile-feature-icon.yellow {
        background: #eab308;
    }

    /* Mobile Feature Title */
    .mobile-feature-title {
        flex: 1;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Mobile Arrow */
    .mobile-arrow {
        font-size: 0.85rem;
        color: var(--text-tertiary);
        transition: transform 0.3s ease;
    }

    .mobile-feature-item:hover .mobile-arrow {
        transform: translateX(5px);
        color: var(--primary);
    }

    /* Mega Menu Mobile Adjustments */
    .mega-menu {
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0;
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .dropdown.active .mega-menu {
        max-height: 500px;
        /* Adjust based on number of features */
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    /* Smooth scrollbar for many items */
    .dropdown.active .mega-menu::-webkit-scrollbar {
        width: 4px;
    }

    .dropdown.active .mega-menu::-webkit-scrollbar-track {
        background: var(--surface);
    }

    .dropdown.active .mega-menu::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }

    .dropdown.active .mega-menu::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}

@media (max-width: 768px) {
    .mobile-feature-item {
        padding: 0.85rem 0.5rem;
    }

    .mobile-feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
    }

    .mobile-feature-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mobile-feature-item {
        padding: 0.75rem 0.25rem;
        gap: 0.75rem;
    }

    .mobile-feature-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 1rem;
    }

    .mobile-feature-title {
        font-size: 0.9rem;
    }
}

/* ==================== MOBILE FEATURES MENU ==================== */

/* Hide mobile version on desktop */
/* ==================== MOBILE FEATURES MENU ==================== */

/* Hide mobile version on desktop */
.mega-menu-mobile {
    display: none;
}

/* Show desktop version on desktop */
.mega-menu-desktop {
    display: block;
}

@media (max-width: 1024px) {

    /* Hide desktop version on mobile */
    .mega-menu-desktop {
        display: none;
    }

    /* Show mobile version on mobile */
    .mega-menu-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    /* Mobile Feature Item */
    .mobile-feature-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1rem;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
        background: var(--background);
        border-left: 3px solid transparent;
    }

    .mobile-feature-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1rem;
        right: 1rem;
        height: 1px;
        background: var(--border);
    }

    .mobile-feature-item:last-child::after {
        display: none;
    }

    .mobile-feature-item:hover,
    .mobile-feature-item:active {
        background: var(--surface);
        border-left-color: var(--primary);
    }

    /* Mobile Feature Icon - Use same classes as desktop */
    .mobile-feature-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: white;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease;
    }

    .mobile-feature-item:active .mobile-feature-icon {
        transform: scale(0.95);
    }

    Use the SAME color classes as desktop mega-icon .mobile-feature-icon.blue {
        background: #3b82f6;
    }

    .mobile-feature-icon.purple {
        background: #8b5cf6;
    }

    .mobile-feature-icon.green {
        background: #10b981;
    }

    .mobile-feature-icon.orange {
        background: #f59e0b;
    }

    .mobile-feature-icon.cyan {
        background: #06b6d4;
    }

    .mobile-feature-icon.pink {
        background: #ec4899;
    }

    .mobile-feature-icon.indigo {
        background: #6366f1;
    }

    .mobile-feature-icon.red {
        background: #ef4444;
    }

    .mobile-feature-icon.teal {
        background: #14b8a6;
    }

    .mobile-feature-icon.violet {
        background: #a855f7;
    }

    .mobile-feature-icon.yellow {
        background: #eab308;
    }

    .mobile-feature-icon.lime {
        background: #84cc16;
    }

    .mobile-feature-icon.emerald {
        background: #10b981;
    }

    .mobile-feature-icon.sky {
        background: #0ea5e9;
    }

    .mobile-feature-icon.rose {
        background: #f43f5e;
    }

    .mobile-feature-icon.amber {
        background: #f59e0b;
    }

    /* Mobile Feature Title */
    .mobile-feature-title {
        flex: 1;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.4;
    }

    /* Mobile Arrow */
    .mobile-arrow {
        font-size: 0.9rem;
        color: var(--text-tertiary);
        transition: all 0.2s ease;
    }

    .mobile-feature-item:hover .mobile-arrow,
    .mobile-feature-item:active .mobile-arrow {
        transform: translateX(3px);
        color: var(--primary);
    }

    /* Mega Menu Mobile Adjustments */
    .mega-menu {
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0;
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--background);
    }

    .dropdown.active .mega-menu {
        max-height: 70vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    /* Custom Scrollbar */
    .mega-menu::-webkit-scrollbar {
        width: 6px;
    }

    .mega-menu::-webkit-scrollbar-track {
        background: var(--surface);
    }

    .mega-menu::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 10px;
    }

    .mega-menu::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}

/* Smaller phones */
@media (max-width: 768px) {
    .mobile-feature-item {
        padding: 0.9rem 0.75rem;
        gap: 0.85rem;
    }

    .mobile-feature-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .mobile-feature-title {
        font-size: 0.95rem;
    }

    .mobile-arrow {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mobile-feature-item {
        padding: 0.8rem 0.5rem;
        gap: 0.75rem;
    }

    .mobile-feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
        border-radius: 9px;
    }

    .mobile-feature-title {
        font-size: 0.9rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .mobile-feature-item {
    background: var(--background);
}

[data-theme="dark"] .mobile-feature-item:hover,
[data-theme="dark"] .mobile-feature-item:active {
    background: var(--surface);
}

[data-theme="dark"] .mobile-feature-icon {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.social-btn,
.mob-soc-btn,
.social-link {
    text-decoration: none !important;
}