/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6366F1;
    --primary-gradient: linear-gradient(90deg, #818CF8, #6366F1);
    
    /* Light Mode Palette */
    --background-main: #FFFFFF;
    --background-alt: #F9FAFB;
    --background-card: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --hover-bg: #F3F4F6;
    --header-bg: rgba(255, 255, 255, 0.8);
    --shadow-rgb: 99, 102, 241;
    --shadow-dark-rgb: 0, 0, 0;
    --danger-color: #EF4444;
    
    --font-family: 'Poppins', sans-serif;
}

html.dark-mode {
    /* Dark Mode Palette */
    --background-main: #111827;
    --background-alt: #1F2937;
    --background-card: #1F2937;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --hover-bg: #374151;
    --header-bg: rgba(17, 24, 39, 0.8);
    --shadow-dark-rgb: 243, 244, 246;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Colorful Background Visuals --- */
.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}
html.dark-mode .background-blob { opacity: 0.2; }
.blob1 {
    height: 500px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, #a855f7, #6366f1);
}
.blob2 {
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -300px;
    background: radial-gradient(circle, #ec4899, #8b5cf6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#expert-modal-form .btn {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.3), 0 0 0 0 rgba(var(--shadow-rgb), 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--shadow-rgb), 0.4), 0 0 0 5px rgba(var(--shadow-rgb), 0);
}

.btn-secondary {
    background-color: var(--background-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 1.2rem; }
.logo svg, .logo img { margin-right: 8px; }
.nav-right-cluster { display: flex; align-items: center; gap: 20px; }
.desktop-nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.desktop-nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.desktop-nav-links a:not(.btn):hover { color: var(--primary-color); }
.desktop-nav-links a.active { color: var(--primary-color); font-weight: 600; border-bottom-color: var(--primary-color); }
.desktop-nav-links .btn-primary {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    background: #7c83f6;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(124, 131, 246, 0.4);
    color: white !important;
}
 .desktop-nav-links .btn-primary:hover {
    background: #6366F1;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.5);
 }

.desktop-nav-links li { position: relative; }
.dropdown-container { position: absolute; top: calc(100% + 25px); left: 50%; transform: translateX(-50%); background-color: var(--background-card); border-radius: 12px; box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb), 0.1); border: 1px solid var(--border-color); padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, top 0.3s ease; z-index: 1001; pointer-events: none; }
.desktop-nav-links li:hover > .dropdown-container { opacity: 1; visibility: visible; top: calc(100% + 20px); pointer-events: auto; }
.dropdown-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 30px; }
.dropdown-menu.cols-2 { grid-template-columns: repeat(2, auto); }
.dropdown-menu.cols-1 { grid-template-columns: 1fr; }
.dropdown-menu a { text-decoration: none; color: var(--text-secondary); font-weight: 500; padding: 8px 12px; display: block; border-radius: 6px; transition: background-color 0.3s ease, color 0.3s ease; white-space: nowrap; }
.dropdown-menu a:hover { background-color: var(--hover-bg); color: var(--primary-color); }

.hamburger-menu { display: none; cursor: pointer; background: none; border: none; z-index: 1002; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-primary); transition: all 0.3s ease-in-out; }
.mobile-nav { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background-color: var(--background-main); z-index: 1001; transform: translateX(100%); transition: transform 0.4s ease-in-out; padding: 80px 30px 30px; overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; line-height: 1; color: var(--text-primary); cursor: pointer; z-index: 1003; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.mobile-nav-links > li > a { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 600; color: var(--text-primary); padding: 10px 0; text-decoration: none; }
.mobile-nav-links .arrow { transition: transform 0.3s ease; }
.mobile-nav-links .submenu { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding-left: 15px; }
.mobile-nav-links .submenu a { display: block; padding: 8px 0; text-decoration: none; color: var(--text-secondary); }
.mobile-nav-links > li.active > .submenu { max-height: 600px; /* Adjust as needed */ }
.mobile-nav-links > li.active .arrow { transform: rotate(90deg); }

.theme-switcher { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.theme-switcher .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.theme-switcher .switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(20px); }
html.dark-mode .fa-sun { color: var(--primary-color); }
html:not(.dark-mode) .fa-moon { color: var(--primary-color); }

/* --- Hero Section --- */
.hero { padding: 80px 0; }
.hero-content { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-text h1 { 
    font-size: 3.8rem; 
    line-height: 1.2; 
    font-weight: 800; 
    margin-bottom: 25px; 
    letter-spacing: -1.5px;
    color: var(--text-primary);
}
.hero-text p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-image { flex: 1; display: flex; justify-content: center; }

/* --- App Component CSS in Hero --- */
.app-container {
    width: 100%;
    max-width: 375px;
    background-color: var(--background-card);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(var(--shadow-dark-rgb), 0.15);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.app-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 60px -20px rgba(var(--shadow-dark-rgb), 0.25);
}
.app-header { padding: 32px 24px 16px; display: flex; justify-content: space-between; align-items: center; }
.app-header p { color: var(--text-secondary); font-size: 0.875rem; }
.app-header h1 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.app-user-icon { width: 40px; height: 40px; border-radius: 9999px; background-color: var(--hover-bg); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.app-main { padding: 0 24px 24px; }
.app-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.app-action-btn { background-color: var(--background-main); padding: 16px; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(var(--shadow-dark-rgb), 0.05); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--border-color); cursor: pointer; font-family: 'Poppins', sans-serif; text-align: center; }
.app-action-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(var(--shadow-dark-rgb), 0.1); border-color: var(--primary-color); }
.app-action-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.app-action-btn p { margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.bg-pink { background-color: #FCE7F3; color: #DB2777; } .bg-orange { background-color: #FFEDD5; color: #F97316; } .bg-red { background-color: #FEE2E2; color: #EF4444; } .bg-indigo { background-color: #E0E7FF; color: #4F46E5; }
.app-activity { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.app-notification-modal { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); background-color: var(--text-primary); color: var(--background-main); font-size: 0.875rem; padding: 8px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.app-notification-modal.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.animated-document {
    position: relative;
    font-size: 3rem;
    color: white;
}
.animated-document .fa-certificate,
.animated-document .fa-file-alt {
    animation: popIn 0.8s ease-out forwards;
}
.animated-document .checkmark {
    position: absolute;
    right: -15px;
    bottom: -5px;
    font-size: 1.8rem;
    color: #4ADE80;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: checkmarkAppear 0.5s 0.8s ease-out forwards;
}
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes checkmarkAppear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- START: New styles for the custom image --- */
.app-custom-image-container {
    margin: 14px 4px; /* Matches spacing of original element */
    border-radius: 16px; /* Matches border-radius of original element */
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 10px 15px 15px rgba(var(--shadow-dark-rgb), 0.1);
}
.app-custom-image-container img {
    width: 100%;
    height: auto;
    display: block; /* Removes extra space below the image */
}
/* --- END: New styles for the custom image --- */


.glowing-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    animation: glow 2s infinite;
    transition: all 0.3s ease;
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(var(--shadow-rgb), 0.5), 0 0 10px rgba(var(--shadow-rgb), 0.4); }
    50% { box-shadow: 0 0 15px rgba(var(--shadow-rgb), 0.7), 0 0 25px rgba(var(--shadow-rgb), 0.6); }
}
.slide-to-action {
    position: relative;
    width: 100%;
    background-color: var(--hover-bg);
    border-radius: 25px;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: grab;
    overflow: hidden;
    border: 1px solid var(--border-color);
    user-select: none; /* Prevent text selection while dragging */
}
.slide-to-action .slider-knob {
    position: absolute;
    left: 2px;
    width: 40px;
    height: 40px;
    background: var(--background-card);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(var(--shadow-dark-rgb), 0.1);
    transition: left 0.2s ease-out;
    z-index: 2;
}
.slide-to-action .slider-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 1;
    transition: opacity 0.2s ease-out;
}

/* --- Customer Logos Section --- */
.client-logos-section {
    padding: 60px 0;
    background-color: var(--background-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.client-logos-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logo-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 56px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 900px;
}
.logo-item img {
    height: 35px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s ease;
    opacity: 0.7;
}
.logo-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}
html.dark-mode .logo-item img {
    opacity: 0.5;
    filter: invert(1) grayscale(1);
}
html.dark-mode .logo-item img:hover {
    filter: invert(0) grayscale(0);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.feature-item {
    background-color: var(--background-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--shadow-dark-rgb), 0.08);
}
.feature-item .feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-flex;
    background-color: var(--hover-bg);
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Other Sections --- */
.textured-bg {
    background-color: var(--background-alt);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 2rem 2rem;
}
html.dark-mode .textured-bg {
    background-image: radial-gradient(var(--border-color) 0.5px, transparent 0.5px);
}

/* --- Process Section --- */
.process { background-color: var(--background-main); }
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.process-video {
    position: relative;
    padding-bottom: 56.25%; /* This is a fallback for screens < 992px */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb),0.1);
}
.process-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.process-timeline {
    position: relative;
    padding: 20px 0;
}
.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 20px;
    border-radius: 2px;
}
.timeline-item {
    padding: 0 0 40px 60px;
    position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 10px;
    top: 5px;
    background-color: var(--background-main);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}
.timeline-item:hover::after {
    transform: scale(1.2);
}
.timeline-content {
    position: relative;
}
.timeline-content .timeline-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}
.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Testimonials --- */
.testimonials { background: linear-gradient(180deg, var(--background-main) 0%, var(--background-alt) 100%); }
html.dark-mode .testimonials { background: linear-gradient(180deg, var(--background-main) 0%, #161e2d 100%); }
.card-deck-container { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.testimonial-card { background: var(--background-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); width: 90%; max-width: 500px; position: absolute; transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb),0.08); }
.testimonial-card p { margin-bottom: 25px; color: var(--text-secondary); font-size: 1rem; position: relative; padding-left: 20px; }
.testimonial-card p::before { content: '“'; position: absolute; left: -5px; top: -10px; font-size: 2.5rem; color: var(--primary-color); opacity: 0.5; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.client-info h4 { font-weight: 600; color: var(--text-primary); }
.client-info span { color: var(--text-secondary); font-size: 0.9rem; }
.testimonial-card.active { transform: translate(0, 0) scale(1); opacity: 1; z-index: 3; }
.testimonial-card.next { transform: translate(0, 25px) scale(0.95); opacity: 1; z-index: 2; }
.testimonial-card.prev { transform: translateX(-120%) rotate(-15deg) scale(0.8); opacity: 0; z-index: 1; }
.testimonial-card:not(.active):not(.next):not(.prev) { transform: translate(0, 50px) scale(0.9); opacity: 0; z-index: 1; }
.deck-nav { position: absolute; bottom: -60px; display: flex; gap: 15px; z-index: 5; }
.deck-nav button { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border-color); background-color: var(--background-card); color: var(--primary-color); font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; }
.deck-nav button:hover { background-color: var(--primary-color); color: white; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(var(--shadow-rgb), 0.3); }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question h4 { font-weight: 500; font-size: 1.1rem; color: var(--text-primary); transition: color 0.3s ease; }
.faq-question:hover h4 { color: var(--primary-color); }
.faq-toggle { font-size: 1.5rem; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-top: 15px; color: var(--text-secondary); }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* --- CTA Section --- */
.cta-section {
    padding-top: 0;
    padding-bottom: 100px;
}
.cta-container {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
.cta-container::before, .cta-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}
.cta-container::before {
    width: 250px;
    height: 250px;
    top: -80px;
    right: 20%;
}
.cta-container::after {
    width: 150px;
    height: 150px;
    bottom: -60px;
    left: 10%;
}
.cta-text {
    color: white;
    position: relative;
    z-index: 1;
}
.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px; 
    line-height: 1.2;
}
.btn-light {
    background: white;
    color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-light:hover {
    background: var(--background-alt);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Back to Top & Chat Buttons --- */
#back-to-top-btn { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: var(--primary-gradient); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; }
#back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#chat-toggle-btn { position: fixed; bottom: 80px; right: 20px; width: 60px; height: 60px; background: var(--primary-gradient); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; z-index: 1001; box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.3); transition: transform 0.3s ease; }
#chat-toggle-btn:hover { transform: scale(1.1); }
#chat-window { position: fixed; bottom: 150px; right: 20px; width: 350px; max-width: 90vw; height: 450px; background-color: var(--background-card); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 10px 30px rgba(var(--shadow-dark-rgb),0.1); z-index: 1000; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; }
#chat-window.show { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-header { padding: 15px; background: var(--primary-gradient); color: white; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-header #chat-close-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
.chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-message { padding: 10px 15px; border-radius: 20px; max-width: 80%; line-height: 1.4; }
.chat-message.bot { background-color: var(--hover-bg); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-message.user { background-color: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-footer { padding: 10px; border-top: 1px solid var(--border-color); display: flex; }
.chat-footer input { flex-grow: 1; border: none; padding: 10px; border-radius: 8px; background-color: var(--background-main); color: var(--text-primary); }
.chat-footer input:focus { outline: none; box-shadow: 0 0 0 2px rgba(var(--shadow-rgb), 0.2); }
.chat-footer button { background: none; border: none; color: var(--primary-color); font-size: 1.2rem; cursor: pointer; padding: 0 10px; }
.animate-on-scroll {opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; transition-delay: 0.2s;}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- STYLES FOR ALL MODALS (EXISTING AND NEW) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--shadow-dark-rgb), 0.5);
    z-index: 2000;
    display: none; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content-box {
    background-color: var(--background-card);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(var(--shadow-dark-rgb), 0.15);
    width: 90%;
    max-width: 500px; /* Default max-width */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 715px;
    overflow-y: auto;
}

.modal-content-box.text-left { text-align: left; }
.modal-content-box.text-left h3 { text-align: left;}
.modal-content-box.text-left p, .modal-content-box.text-left li { font-size: 0.95rem; color: var(--text-secondary); }
.modal-content-box.text-left ul { list-style: none; padding-left: 0; }
.modal-content-box.text-left li { margin-bottom: 12px; display: flex; gap: 10px; }
.modal-content-box.text-left li i { color: var(--primary-color); margin-top: 4px; }
.modal-content-box.text-left .modal-subtitle { text-align: center; }

.modal-overlay.show .modal-content-box {
    transform: scale(1);
}

.modal-content-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-content-box form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--background-main);
    color: var(--text-primary);
}
.modal-content-box form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--shadow-rgb), 0.2);
}

.modal-content-box form .btn {
    width: 100%;
    margin-top: 5px;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* --- OTP Modal Specific Styles --- */
.otp-hidden { display: none; }
.otp-msg { 
    margin-top: 15px; 
    padding: 12px; 
    border-radius: 8px; 
    font-weight: 500;
    text-align: center;
}
.otp-error { background-color: #FEE2E2; border: 1px solid #FCA5A5; color: #B91C1C; }
.otp-success { background-color: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }

/* --- GST Options/Filing Modal Specific Styles --- */
.modal-lg {
    max-width: 850px; /* Wider modal for grid layout */
}
.gst-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    text-align: left;
}
.gst-option-card {
    background-color: var(--background-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gst-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--shadow-rgb), 0.15);
}
.gst-option-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    min-height: 40px; /* Ensures cards have same height */
}
.gst-option-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1; /* Pushes price/button to bottom */
    margin-bottom: 20px;
}
.price-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-section .original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
}
.price-section .current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.gst-option-card .btn {
    width: 100%;
    padding: 12px;
}

/* --- Document Checklist Modal Styles --- */
.modal-xl {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}
.generator-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--background-card);
    padding: 20px 0;
}
.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-end;
}
.generator-grid label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
    text-align: left;
}
.generator-grid select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--background-main);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
}
.generator-grid button {
    width: 100%;
}
#checklist-results {
    display: none;
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in-out;
    text-align: left;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.results-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}
.document-card {
    background-color: var(--background-main);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.document-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
}
.doc-item-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}
.doc-item-content p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.doc-item-content span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.alert {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--hover-bg);
    color: var(--text-secondary);
    margin-top: 20px;
}

/* --- START: NEW FOOTER STYLES --- */
footer.new-footer {
    background-color: #111827;
    color: #a0aec0;
    padding: 4rem 2rem;
    font-size: 0.9rem;
}
.new-footer .container {
    max-width: 1280px;
    margin: 0 auto;
}
.new-footer hr {
    border: none;
    height: 1px;
    background-color: #2d3748;
    margin: 2.5rem 0;
}
.new-footer .footer-grid {
    display: grid;
    gap: 2rem;
}
.new-footer .top-grid {
    grid-template-columns: 2fr 1fr 1fr; /* 3 columns for top section */
}
.new-footer .services-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 columns for services */
}
.new-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.new-footer .footer-column li {
    margin-bottom: 0.75rem;
}
.new-footer .footer-column li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.new-footer .footer-column li a:hover {
    color: #ffffff;
}
.new-footer .footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.new-footer .large-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #e2e8f0;
}
.new-footer .footer-subtitle {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.new-footer .footer-subtitle:empty {
    margin-bottom: 1.5rem;
}
.new-footer .about-column .footer-logo {
    margin-bottom: 1.5rem;
}
.new-footer .contact-list li {
    display: flex;
    align-items: flex-start;
}
.new-footer .contact-list .icon {
    margin-right: 0.75rem;
    color: #ffffff;
}
.new-footer .contact-list p {
    margin: 0;
    line-height: 1.6;
}
.new-footer li.spacer a {
    color: transparent;
    pointer-events: none;
}
.new-footer .copyright-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 0.8rem;
}
.new-footer .social-icons a {
    color: #a0aec0;
    text-decoration: none;
    border: 1px solid #4a5568;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.5rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}
.new-footer .social-icons a:hover {
    background-color: #ffffff;
    color: #1a202c;
    border-color: #ffffff;
}
/* --- END: NEW FOOTER STYLES --- */






/* --- Responsive Design --- */
@media (max-width: 1100px) {
    .desktop-nav-links { display: none; }
    .hamburger-menu { display: block; }
}

@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .process-layout { grid-template-columns: 1fr; }
    .process-video { margin-bottom: 40px; }
    .cta-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
}

@media (max-width: 1024px) {
    /* Responsive for new footer */
    .new-footer .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { padding-top: 60px; }
    .hero-text h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
    .testimonial-card { position: relative; margin-bottom: 20px; }
    .card-deck-container { display: block; min-height: unset; }
    .testimonial-card.next, .testimonial-card.prev,
    .testimonial-card:not(.active):not(.next):not(.prev) {
        transform: none;
        opacity: 1;
        position: relative;
        z-index: 1;
    }
    .deck-nav {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
    
    /* Responsive for modals */
    .gst-options-grid, .generator-grid {
        grid-template-columns: 1fr;
    }
    .modal-lg, .modal-xl {
        max-width: 90vw;
    }
     .gst-option-card h4 {
        min-height: auto;
    }
     .results-header { flex-direction: column; gap: 15px; }

    /* Responsive for new footer */
    .new-footer .top-grid {
        grid-template-columns: 1fr;
    }
    .new-footer .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-footer .copyright-section {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.4rem; }
    .section-title h2 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    
    /* Responsive for new footer */
    .new-footer .services-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body { background-color: white !important; }
    body > *:not(.printable-area) { display: none !important; }
    .printable-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
     .modal-content-box {
        box-shadow: none !important;
        border: 1px solid #ccc;
     }
     #docs-modal-overlay {
          background-color: transparent !important;
          overflow: visible !important;
     }
     .modal-close-btn, .results-header button {
          display: none !important;
     }
     p, span, h2, h3, h4, label {
          color: #000 !important;
     }
}