/* === Global Reset & Overflow FIX === */
body, html {
    overflow-x: hidden; /* 💥 FIX: Prevents Horizontal White Space/Scrolling 💥 */
    width: 100%;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box; /* Ensures padding/border are included in element's total width */
}

*, *:before, *:after {
    box-sizing: inherit; /* Applies box-sizing fix to all elements */
}


/* === Layout Containers === */
.container {
    max-width: 100%;
    width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* === Header & Footer === */
header {
    background-color: #002366;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    background-image: linear-gradient(to bottom, #002366, #001A4D);
}

footer {
    background-color: #0a5c91; 
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* === Headings === */
h1, h2 {
    font-weight: 700;
    text-align: center;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

/* === Buttons (CTA + WhatsApp + Pay) - Consolidated Styles === */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff4d4f, #d32f2f); /* Red/Urgency */
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: all 0.25s ease-in-out;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.cta-button.full-width {
    display: block;
    width: 90%;
    max-width: 520px;
    margin: 12px auto;
    text-align: center;
}

#payBtn {
    background-color: #f0ad4e;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}
#payBtn:hover {
    background-color: #d98c1f;
}

/* === Sections & Boxes === */
.section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.benefits, .demo, .call-to-action, .pricing, .faq, .contact {
    padding: 50px 20px;
}

.price-container { font-family: sans-serif; }
.offer-price {
    color: #d9534f;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5px;
}

/* === Lists === */
ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}
li { margin-bottom: 10px; }

/* === Images & Videos === */
.img-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.img-container img,
.feature img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 20px auto;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === Modal Overlay === */
#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}
#buyForm {
    background-color: #f9f9ff;
    border: 2px solid #00bfff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 25px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}
#buyForm h3 {
    color: #002366;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}
#buyForm input[type="text"],
#buyForm input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
#closeModal {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}


/* === Feature Slider Styles (New) === */
.features {
  display: none; /* Hide old static features section */
}

.features-slider-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0; /* Remove padding here to ensure full viewport use */
  text-align: center;
}

.features-slider {
  display: flex;
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; 
  padding: 0 15px 15px; /* Added internal padding for visual space */
  gap: 15px;
  justify-content: flex-start;
}

.slider-item {
  min-width: calc(85vw - 30px); 
  max-width: calc(85vw - 30px); 
  flex-shrink: 0; 
  scroll-snap-align: start; 
  padding: 10px;
  text-align: center;
}

.slider-item h3 {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #0a5c91;
}

.swipe-hint {
    margin-top: 10px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* Desktop Fix: Show items in a grid/wrap when screen is wide */
@media (min-width: 800px) {
    .features-slider-wrapper {
        padding: 0 20px;
    }
    .features-slider {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        overflow-x: hidden; 
        scroll-snap-type: none;
        gap: 20px;
    }
    .slider-item {
        min-width: auto;
        max-width: none;
        scroll-snap-align: none;
    }
    .swipe-hint {
        display: none;
    }
}
/* === End Feature Slider Styles === */


/* Pulse animation for highlights */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.highlight-pulse {
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
    margin: 10px 0;
}


/* GSTR-9 Table 8A Highlight Box */
.table8a-highlight{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:14px;
    border-radius:12px;
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    box-shadow: 0 6px 20px rgba(18, 38, 63, 0.06);
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(90deg, #ffd54f, #ff9800);
    max-width:980px;
    margin:14px auto;
}

.t8a-icon{
    width:52px;
    height:52px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    background:linear-gradient(135deg,#fff3e0,#ffe0b2);
    box-shadow:0 4px 10px rgba(0,0,0,0.06);
}

.t8a-content{ flex:1; }

.t8a-badge{
    display:inline-block;
    background:#ff6d00;
    color:#fff;
    padding:4px 8px;
    border-radius:6px;
    font-size:12px;
    font-weight:700;
    margin-bottom:8px;
    box-shadow:0 4px 10px rgba(255,107,0,0.12);
}

.table8a-highlight h4{
    margin:0 0 6px 0;
    font-size:1.05rem;
    color:#2b2b2b;
}
.table8a-highlight p{
    margin:0;
    color:#444;
    line-height:1.45;
    font-size:0.95rem;
}

@media (max-width:720px){
    .table8a-highlight{ flex-direction:row; gap:10px; padding:12px; }
    .t8a-icon{ width:44px; height:44px; font-size:20px; border-radius:8px; }
    .table8a-highlight h4{ font-size:1rem; }
    .table8a-highlight{ margin:12px 12px; }
}

/* === Testimonial Section Styles === */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: #f7f9fc;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quote {
    font-style: italic;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.quote::before {
    content: "“";
    font-size: 30px;
    color: #0a5c91;
    line-height: 0;
    vertical-align: middle;
    margin-right: 5px;
    font-weight: 900;
}

.author {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.name {
    display: block;
    font-weight: bold;
    color: #0a5c91;
    font-size: 1.1rem;
}

.designation {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2px;
}

.rating {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.1rem;
}
/* === End Testimonial Styles === */


/* WhatsApp Button Positioning (Moved up for sticky footer) */
.whatsapp-float {
  bottom: 80px; 
  right: 20px;
  position: fixed;
  width: 52px;
  height: 52px;
  background-color: #25D366;
  color: white;
  font-size: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 52px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1EBE5D;
  transform: scale(1.1);
}

/* Footer Fixes */
.footer .social-icons a:hover {
  color: #e63946;
}

/* === Responsive Design (Consolidated) === */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    
    .video-container {
        padding-bottom: 56.25%;
    }
}
/* === FIX: Feature List Spacing (for better readability) === */

.section ul {
    padding: 10px 0;
    gap: 20px 10px; 
}

.section ul li {
    line-height: 1.45; 
    padding: 8px 5px; 
}

/* Optional: Improve spacing for the titles of the features */
.section h2 {
    margin-bottom: 30px; 
}

/* Mobile Alignment Fix (If needed) */
@media (max-width: 600px) {
    .section ul li {
        padding: 8px 10px; 
    }
}

/* === Testimonial Grid to Mobile Slider Fix (Scroll Snap) === */

/* Default: Desktop Grid (3 columns) is fine */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
}

/* 💥 FIX: Mobile Scroll Snapping, Centered, and Full Width 💥 */
@media (max-width: 800px) {
    .testimonial-grid {
        display: flex;
        overflow-x: scroll; 
        scroll-snap-type: x mandatory; 
        
        /* FIX 1: Margin और Padding को साफ़ रखें */
        padding: 0 20px 15px; /* Add some space at the end for smooth scrolling */
        margin: 0; 
        width: 100%;
        
        gap: 15px;
    }

    .testimonial-card {
        /* FIX 2: Width को 100% पर सेट करें और गैप को एडजस्ट करें */
        /* यह लगभग 90% चौड़ाई लेगा ताकि अगले कार्ड का संकेत दिखे */
        min-width: calc(100% - 40px); 
        max-width: calc(100% - 40px);
        
        /* ✅ FIX 3: Center Snap - यह स्नैपिंग को सबसे भरोसेमंद बनाता है */
        scroll-snap-align: center; 
        flex-shrink: 0; 
        margin: 0; 
    }
}