:root {
    --primary: #4A00E0;
    --primary-dark: #3900B3;
    --secondary: #00D4FF;
    --secondary-dark: #00A1CC;
    --dark: #0F0F0F;
    --light-dark: #1F1F1F;
    --white: #FFFFFF;
    --light: #F8F9FA;
    --gradient: linear-gradient(135deg, #4A00E0, #8E2DE2);
}

/* Fix for mobile wobbling issue */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Poppins', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
}

.navbar {
    background-color: transparent;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 2rem;
}

.navbar a {
    color: var(--white) !important;
    font-weight: 500;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons .nav-link {
    background-color: var(--secondary);
    color: var(--dark) !important;
    border-radius: 50px;
    padding: 8px 25px !important;
    margin-left: 15px;
}

.auth-buttons .nav-link:hover {
    background-color: var(--secondary-dark);
    color: var(--white) !important;
}

.auth-buttons .nav-link::after {
    display: none;
}

.hero-section {
    background: var(--gradient);
    min-height: calc(100vh - 76px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}

.cta-button {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-left: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.demo-container {
    position: relative;
    margin-top: 2rem;
    max-width: 100%;
}

.demo-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
}

.floating {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.features-section {
    padding: 100px 0;
    background-color: var(--light-dark);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: var(--light-dark);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.1), rgba(142, 45, 226, 0.1));
    border-radius: 15px;
    padding: 2.5rem 2rem;
    color: var(--white);
    text-align: center;
    transition: transform 0.5s, box-shadow 0.5s;
    margin-bottom: 30px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Feature card badge for "Coming Soon" */
.feature-card .feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    transition: all 0.5s;
    background: rgba(0, 212, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card:hover .feature-icon {
    background-color: var(--secondary);
    color: var(--dark);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.7;
}

.how-it-works {
    padding: 100px 0;
    background-color: var(--dark);
}

.step {
    display: flex;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    opacity: 0.8;
    line-height: 1.7;
}

.pricing-section {
    padding: 100px 0;
    background-color: var(--light-dark);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: var(--light-dark);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.pricing-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    border: none;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-header {
    padding: 2rem;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.pricing-price small {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 2rem;
    text-align: center;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.pricing-features .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    width: 100%;
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background-color: var(--secondary);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

/* Coming soon text for pricing tables */
.coming-soon-text {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    vertical-align: middle;
}

.testimonials {
    padding: 100px 0;
    background-color: var(--dark);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.5;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-role {
    opacity: 0.7;
    font-size: 0.9rem;
}

.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.footer {
    background-color: var(--dark);
    padding: 80px 0 30px;
    position: relative;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-text {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.footer-links h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin: 0;
}

/* Ensure all elements stay within viewport width */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Navbar Position Fixed */
body {
    padding-top: 76px; /* Adjust based on your navbar height */
}

/* Mobile Adjustments */

/* Add these CSS fixes to your stylesheet */

/* Improved mobile navbar brand handling */
@media (max-width: 767px) {
    /* Fix for navbar brand in mobile */
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 70%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    /* Make logo smaller on mobile */
    .navbar-brand img {
        height: 40px;
        width: auto;
        margin-right: 8px;
    }
    
    /* Adjust container padding for better mobile fit */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Add padding to ensure hero content doesn't touch edges */
    .hero-content {
        padding: 0 5px;
    }
    
    /* Ensure images properly scale and don't overflow */
    img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Fix column padding */
    .col-md-4, .col-md-6, .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Fix for the hero section on very small screens */
    .hero-section {
        padding-top: 2rem;
    }
    
    /* Reduce button size on mobile */
    .cta-button, .secondary-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Fix navbar toggler positioning */
    .navbar-toggler {
        margin-right: -5px;
    }
    
    /* Fix for demo image */
    .demo-container {
        padding: 0 10px;
    }
    
    /* Fix overflow issues with feature cards */
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    /* Make feature icons smaller on mobile */
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
        max-width: 60%;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    /* Make headings smaller on very small screens */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Adjust spacing for very small screens */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .secondary-button {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Improve padding for sections on small screens */
    .features-section, .how-it-works, .pricing-section, .testimonials {
        padding: 60px 0;
    }
}

/* Replace the original navbar toggler CSS with this improved version */
.navbar-toggler {
    border: none;
    padding: 0.25rem;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease-in-out;
    background: transparent !important;
    margin-right: 0;
}

/* Fix for navbar collapse background overflowing on mobile */
@media (max-width: 991.98px) {
    .navbar > .container {
        position: relative;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .demo-container {
        margin-top: 3rem;
    }
    
    .secondary-button {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .floating {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }

    /* Fix for row margins causing overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

.navbar-toggler {
    border: none;
    color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.alert-success {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background-color: rgba(0, 212, 255, 0.1);
    border-color: var(--secondary);
    color: var(--white);
}

.notification-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-left: 5px;
}

/* Custom Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.25rem;
    width: 44px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    display: block;
    transition: all 0.3s ease-in-out;
    margin: 6px auto;
    border-radius: 3px;
}

.navbar-toggler.collapsed .toggler-icon:nth-child(1) {
    transform: rotate(0);
    transform-origin: center;
}

.navbar-toggler.collapsed .toggler-icon:nth-child(2) {
    opacity: 1;
}

.navbar-toggler.collapsed .toggler-icon:nth-child(3) {
    transform: rotate(0);
    transform-origin: center;
}

.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    transform-origin: center;
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg);
    transform-origin: center;
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

/* Mobile Menu Improvements */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-dark);
        border-radius: 0 0 15px 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        max-width: 100vw;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .auth-buttons .nav-item {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .auth-buttons .nav-link {
        width: 100%;
        text-align: center;
        margin-left: 0;
        border-bottom: none;
    }
    
    .auth-buttons .nav-item:first-child .nav-link {
        background-color: transparent;
        border: 1px solid var(--secondary);
        color: var(--secondary) !important;
        margin-bottom: 0.5rem;
    }
    
    .auth-buttons .nav-item:first-child .nav-link:hover {
        background-color: rgba(0, 212, 255, 0.1);
    }
}