/* --- 1. General Style & Theme --- */
:root {
    --primary-color: #FF2B22;   /* Fire Orange */
    --secondary-color: #2563EB; /* Electric Blue */
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-yellow: #FBBF24;
    --text-color: #333;
    --bg-color: #fff;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lift: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --border-gradient: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; 
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
}

body {
    background-color: #f7f7f7; /* Slightly off-white body BG */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; 
}
body.no-scroll {
    overflow: hidden;
}

section {
    padding: 60px 5%; 
    margin: 0 auto;
    max-width: 1200px;
}

h2.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}
h2.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

p.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}
.hook {
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #555;
}


/* --- 2. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 500;
    margin: 0 5px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: -1;
}
.nav-links a:hover::before {
    transform: translateY(0%);
}
.nav-links a:hover {
    color: var(--bg-color);
}


.hamburger {
    display: none; 
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- HERO SECTION WITH FLOATING ICONS --- */
.hero-section {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    background: linear-gradient(135deg, #ff3131, #0f3d91);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
}

/* Floating icons */
.hero-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-icons span {
    position: absolute;
    font-size: 45px;
    opacity: 0.6;
    animation: floatHero 16s linear infinite;
}

/* Random positions for icons */
.hero-icons span:nth-child(1) { left: 12%; animation-delay: 0s; }
.hero-icons span:nth-child(2) { left: 32%; font-size: 55px; animation-delay: 3s; }
.hero-icons span:nth-child(3) { left: 52%; animation-delay: 6s; }
.hero-icons span:nth-child(4) { left: 72%; font-size: 50px; animation-delay: 9s; }
.hero-icons span:nth-child(5) { left: 92%; animation-delay: 12s; }

@keyframes floatHero {
    0% { transform: translateY(100vh) scale(0.2); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateY(-60vh) scale(1.6); opacity: 0; }
}

/* Text inside hero */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
}

.hero-tagline {
    font-size: 1.6rem;
    margin-top: 10px;
    font-weight: 500;
}

/* Button */
.hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 34px;
    background: #ffffff;
    color: #ff3131;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.08);
    background: #ffecec;
}


/* --- General Card & Section Styling --- */
.section-card {
    padding: 50px;
    margin-bottom: 50px;
    background-color: var(--bg-color);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s;
    position: relative;
}

/* Individual card styling (Problems, Features) */
.card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    background-color: #fcfcfc;
    /* Reverted to the smooth lift transition */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
    border: 1px solid rgba(0,0,0,0.05); 
    height: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.card:hover {
    transform: translateY(-8px); /* Pronounced hover lift effect */
    box-shadow: var(--shadow-lift);
}

/* --- 4. About Section --- */
.about {
    padding-top: 80px;
}
.about-text h2 {
    color: var(--primary-color);
}
.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

/* --- 5. Problems Section (Fire Border Animation) --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Fire Border Animation for Problem Cards */
.problem-card-animated-border {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
    background-color: #fff;
}
.problem-card-animated-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 16px; 
    padding: 5px;
    /* Fire Gradient: Deep Orange, Yellow, Red */
    background: linear-gradient(
        45deg,
        var(--primary-color) 0%,
        var(--accent-yellow) 25%,
        var(--primary-color) 50%,
        var(--accent-red) 75%,
        var(--primary-color) 100%
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    z-index: -1;
    animation: moveFireBorder 4s linear infinite;
}

@keyframes moveFireBorder {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.problem-card-animated-border:hover::before {
    animation-play-state: running; 
}


.problems-grid .card img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}
.problems-grid .card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.problems-grid .card ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
    width: 100%; 
    padding-left: 20px;
}
.problems-grid .card ul li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563EB'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 18px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
}

/* --- 6. Solutions Section --- */
.solutions-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.solution-image-container {
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    text-align: center;
    position: relative;
    padding: 10px;
}

.solution-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%; 
    box-shadow: var(--shadow-medium);
    border: 5px solid var(--primary-color); 
    animation: pulse-orange 2s infinite alternate;
}

@keyframes pulse-orange {
    from {
        box-shadow: 0 0 0 0 rgba(255, 43, 34, 0.7);
    }
    to {
        box-shadow: 0 0 0 15px rgba(255, 43, 34, 0); 
    }
}

/* --- 7. Features Section (Customers & Vendors) with Tabs --- */
.features {
    padding-top: 40px; 
}

.feature-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-button:hover {
    color: var(--secondary-color);
    background-color: #e8e8e8;
}

.tab-button.active {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-light);
}
.tab-button.active:hover {
    background-color: var(--primary-color);
    color: white;
}


.feature-content {
    display: none; 
    padding-top: 20px;
}
.feature-content.active {
    display: block; 
    animation: fadeIn 0.5s ease-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; 
    margin-top: 30px;
}

.feature-card {
    box-shadow: var(--shadow-light);
    background-color: #fcfcfc;
}
.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Centered Icon styling */
.feature-card .feature-icon {
    font-size: 3rem; 
    color: var(--primary-color);
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center; /* Center the icon */
    align-items: center;
    background-color: rgba(255, 43, 34, 0.1); 
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 43, 34, 0.2);
    /* Transition for the icon (to enable the "jump" on click via JS) */
    transition: transform 0.3s ease-out, color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover .feature-icon {
    color: var(--secondary-color);
    background-color: rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.2);
}


/* --- 8. FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 50px auto; 
    padding: 0; 
    box-shadow: none; 
    background-color: transparent;
}

.faq-item {
    margin-bottom: 12px; 
    border: 1px solid #eee;
    border-radius: 10px; 
    box-shadow: var(--shadow-light);
    overflow: hidden;
    background-color: #fff;
}

.faq-question {
    padding: 18px 25px; 
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}
.faq-question:hover {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.faq-toggle-icon {
    font-size: 1.6rem;
    transition: transform 0.3s;
    line-height: 1; 
}
.faq-question.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #f7f7f7;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.faq-answer.active {
    max-height: 300px; 
    padding: 18px 25px;
}

/* --- Apply same animation to Download Section also --- */
.download {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color), #0f3d91);
    box-shadow: var(--shadow-medium);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* DOWNLOAD SECTION (same animation as Coming Soon) */
.download {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color), #0f3d91);
    box-shadow: var(--shadow-medium);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Big Title */
.download-text {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    color: white;
    margin-top: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    z-index: 2;
    position: relative;
}

/* Bigger Tagline */
.download-tagline {
    margin-top: 10px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 600;
    color: #ffffffd9;
    z-index: 2;
    position: relative;
}

.download-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 18px 45px;
    background: #ff2020;     /* 🔥 RED BG */
    color: #ffffff;          /* ❄️ White text */
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 30, 30, 0.6); /* Red glow */
    z-index: 3;
    position: relative;
    animation: popIn 0.7s ease-out forwards;
    opacity: 0;
}

    /* Button Pop Animation */
    animation: popIn 0.7s ease-out forwards;
    opacity: 0;
}

/* Hover Glow */
.download-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.9);
}

/* Button Pop Animation */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* Floating Icons */
.download-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.download-icons span {
    position: absolute;
    display: block;
    font-size: 55px;
    opacity: 0.7;
    animation: floatIcon 14s linear infinite;
}

/* Icon positions */
.download-icons span:nth-child(1) { left: 10%; animation-delay: 0s; }
.download-icons span:nth-child(2) { left: 30%; animation-delay: 3s; font-size: 40px; }
.download-icons span:nth-child(3) { left: 50%; animation-delay: 6s; }
.download-icons span:nth-child(4) { left: 70%; animation-delay: 9s; font-size: 35px; }
.download-icons span:nth-child(5) { left: 90%; animation-delay: 12s; }

/* Floating Animation */
@keyframes floatIcon {
    0% { transform: translateY(100vh) scale(0); opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-50vh) scale(1.5); opacity: 0; }
}



/* --- 10. Footer --- */
footer {
    background-color: #222; 
    color: white;
    padding: 40px 5%;
    box-shadow: var(--shadow-medium) 0px -4px 6px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}
.footer-links h4, .social-links h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-content a {
    color: white;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    position: relative;
    overflow: hidden;
}
.footer-content a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out;
}
.footer-content a:hover::before {
    width: 100%;
}
.footer-content a:hover {
    color: var(--primary-color);
}

.copy {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 20px;
}


/* --- 11. Mobile & Responsiveness --- */
@media (max-width: 900px) {
    section {
        padding: 40px 4%; 
    }
    .section-card {
        padding: 30px;
        margin-bottom: 30px;
    }

    /* Navbar Mobile Layout */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%; 
        max-width: 320px;
        height: 100%;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 20px 30px;
        box-shadow: -8px 0 15px rgba(0, 0, 0, 0.25);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 12px 0;
        margin: 5px 0;
        border-bottom: 1px solid #eee;
        color: var(--text-color);
    }
    .nav-links a::before { 
        display: none;
    }

    /* Hero Section adjustments */
    .hero-content h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    .hero-content p {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }

    /* Solutions Section Mobile Stack */
    .solutions-content {
        flex-direction: column;
        text-align: center;
    }
    .solution-image-container {
        max-width: 80%;
        max-width: 300px;
        margin: 20px auto;
    }

    /* Features Tabs on Mobile */
    .feature-tabs {
        flex-direction: column;
        border-radius: 8px;
    }
    .tab-button {
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 20px;
    }
    .tab-button:last-child {
        border-bottom: none;
    }
    .feature-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }

    /* Footer Mobile Stack */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .social-links a, .footer-links a {
        display: inline-block;
        margin: 0 10px;
    }
}

/* --- 12. Scripts & Animations (Intersection Observer) --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}z
