/* --- Base Styles & Variables --- */
:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #121220;
    --bg-tertiary: #1A1A2E;
    --color-primary: #1b98e0;
    --color-secondary: #32de84;
    --color-danger: #ff6b6b;
    --color-accent: #9b59b6;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0c0;
    --border-color: #3a476a;
    --header-bg: rgba(10, 10, 20, 0.7);
    --shadow-color: rgba(27, 152, 224, 0.5);
    --glow-shadow: 0 0 15px var(--shadow-color);
    --card-bg: rgba(18, 18, 32, 0.8);
}

/* FIX: Adjusted light theme for better animation visibility */
html[data-theme='light'] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --color-primary: #0056b3; /* Darker blue for contrast */
    --color-secondary: #218838; /* Darker green for contrast */
    --color-accent: #8e44ad; /* Darker accent */
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --border-color: #dee2e6;
    --header-bg: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 86, 179, 0.35); /* Increased opacity for shadow */
    --glow-shadow: 0 5px 20px var(--shadow-color);
    --card-bg: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--bg-primary); 
    color: var(--color-text); 
    line-height: 1.6; 
    overflow-x: hidden; 
    transition: background-color 0.3s, color 0.3s;
}
/* Lightweight Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-primary);
    background-image: linear-gradient(180deg, var(--bg-primary), var(--bg-tertiary));
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* --- Welcome Screen --- */
#welcome-screen { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9998; 
    display: flex; justify-content: center; align-items: center; text-align: center; 
    transition: opacity 0.6s ease-out, visibility 0.6s; opacity: 1; visibility: visible; 
    background: transparent; /* Made transparent to show particle background */
}
.welcome-content { animation: fadeIn 1s ease-in-out; position: relative; z-index: 1; background: rgba(10, 10, 20, 0.5); backdrop-filter: blur(8px); padding: 40px; border-radius: 20px; }
html[data-theme='light'] .welcome-content { background: rgba(255, 255, 255, 0.5); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.welcome-logo { width: 150px; height: 150px; margin-bottom: 20px; border-radius: 50%; box-shadow: 0 0 30px var(--shadow-color); }
.welcome-title { font-size: 2.8rem; color: var(--color-primary); margin-bottom: 10px; }
.welcome-subtitle { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 40px; }
#get-started-btn i { margin-right: 10px; }

/* Initially hide main content */
header, main, footer, #voice-assistant-btn, #chatbot-toggle { display: none; }

/* --- PREMIUM HEADER --- */
header { 
    background-color: transparent; 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0; 
    position: sticky; top: 0; 
    z-index: 1000; width: 100%; 
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background-color: var(--header-bg);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--color-primary); padding: 2px; box-shadow: var(--glow-shadow); animation: pulse-glow 3s infinite alternate; }
@keyframes pulse-glow { from { box-shadow: 0 0 10px var(--shadow-color); } to { box-shadow: 0 0 25px var(--shadow-color); } }
.logo-text { font-size: 1.8rem; font-weight: 700; color: var(--color-text); }
.header-right { display: flex; align-items: center; gap: 20px; }
nav ul { list-style: none; display: flex; gap: 5px; align-items: center; }
nav li { position: relative; }
nav a, .header-btn, .dropdown > button { text-decoration: none; color: var(--color-text); font-weight: 500; transition: color 0.3s ease, transform 0.2s ease; padding: 8px 16px; border-radius: 6px; position: relative; }
nav a:not(.header-btn)::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background-color: var(--color-primary); transition: all 0.3s ease; }
nav a:hover:not(.header-btn)::after { width: 100%; left: 0; }
nav a:hover, .header-btn:hover, .dropdown > button:hover { color: var(--color-primary); transform: translateY(-2px); }
.header-btn { background-color: var(--color-primary); color: white !important; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(27, 152, 224, 0.4); }
html[data-theme='light'] .header-btn { box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3); }
.header-btn:hover { background-color: #167ab5; box-shadow: 0 6px 20px rgba(27, 152, 224, 0.5); color: white !important; }
html[data-theme='light'] .header-btn:hover { background-color: #0056b3; }
.dropdown > button { background: none; border: none; font-family: 'Poppins', sans-serif; font-size: 1rem; cursor: pointer; }
.dropdown > button .fa-chevron-down { margin-left: 5px; font-size: 0.8rem; transition: transform 0.3s ease; }
.dropdown:hover > button .fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, top 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: 100%; }
.dropdown-menu a { display: block; padding: 10px 20px; width: 100%; text-align: left; }
.dropdown-menu a::after { display: none; }
#theme-switcher { background: none; border: none; color: var(--color-text); font-size: 1.5rem; cursor: pointer; padding: 8px; }
.lang-switcher { display: flex; background-color: var(--bg-tertiary); border-radius: 6px; }
.lang-btn { background: none; border: none; color: var(--color-text-muted); padding: 8px 12px; cursor: pointer; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.lang-btn.active { background-color: var(--color-primary); color: white; border-radius: 6px; }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--color-text); font-size: 1.8rem; cursor: pointer; z-index: 1001; }

/* --- General Section Styles --- */
section { padding: 100px 0; background-color: transparent; position: relative; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 20px; color: var(--color-text); font-weight: 700; }
html[data-theme='light'] .section-title { color: #343a40; }
.section-subtitle { text-align: center; font-size: 1.2rem; max-width: 750px; margin: 0 auto 60px auto; color: var(--color-text-muted); }

/* --- Hero Section --- */
.hero-section { display: flex; align-items: center; justify-content: space-between; gap: 50px; min-height: 90vh; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.hero-content { flex: 1.2; min-width: 300px; }

@keyframes slideUpFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-subheadline, .hero-section .btn {
    opacity: 0; /* Start hidden */
    animation: slideUpFadeIn 0.8s ease-out forwards;
}
.hero-headline { opacity: 1; } /* Made visible for typewriter */
.hero-subheadline { animation-delay: 0.8s; }
.hero-section .btn { animation-delay: 1.1s; }

.hero-headline { 
    font-size: 3.8rem;
    font-weight: 700; line-height: 1.2; margin-bottom: 25px; 
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; 
    text-shadow: 0 0 15px rgba(50, 222, 132, 0.2);
    min-height: 150px;
}
.typewriter-cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    margin-left: 4px;
    background: var(--color-secondary);
    width: 4px;
}
@keyframes blink {
    50% { opacity: 0; }
}
.hero-subheadline { font-size: 1.2rem; color: var(--color-text-muted); max-width: 500px; margin-bottom: 25px;}
.hero-image { flex: 1; text-align: center; min-width: 300px; }
.hero-image .image-frame { 
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-primary)); 
    border-radius: 50%; padding: 10px; display: inline-block; 
    box-shadow: 0 0 50px rgba(27, 152, 224, 0.25); position: relative; 
    animation: float 6s ease-in-out infinite;
}
html[data-theme='light'] .hero-image .image-frame { box-shadow: 0 10px 50px var(--shadow-color); }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
.hero-image .image-frame::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotate 3s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-image img { border-radius: 50%; width: 100%; max-width: 350px; height: auto; display: block; background-color: var(--bg-secondary); }

/* --- Testimonial Slider --- */
#testimonials { background-color: transparent; overflow: hidden; }
.testimonial-slider-container { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; min-height: 450px; perspective: 1500px; }
.testimonial-slider { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.testimonial-slider:active { cursor: grabbing; }
.testimonial-card { 
    position: absolute; left: 0; right: 0; margin: auto;
    width: 80%; max-width: 500px;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px; border-radius: 12px; 
    border: 1px solid var(--border-color); text-align: center; 
    user-select: none; 
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease, box-shadow 0.6s ease;
    opacity: 0;
}
.testimonial-card.active {
    transform: translateX(0) scale(1); opacity: 1; z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 20px var(--shadow-color);
}
.testimonial-card.prev { transform: translateX(-60%) scale(0.8) rotateY(45deg); opacity: 0.4; z-index: 5; }
.testimonial-card.next { transform: translateX(60%) scale(0.8) rotateY(-45deg); opacity: 0.4; z-index: 5; }
.testimonial-card img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--color-primary); margin-bottom: 15px; pointer-events: none; }
.testimonial-card .name { font-weight: 600; font-size: 1.1rem; }
.testimonial-card .location { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.testimonial-card .rating { color: #f1c40f; margin-bottom: 15px; }
.testimonial-card .review-text { font-style: italic; color: var(--color-text-muted); }
.slider-nav { position: absolute; top: 50%; left: 50%; width: 120%; transform: translate(-50%, -50%); display: flex; justify-content: space-between; pointer-events: none; z-index: 20; }
.slider-nav button { pointer-events: all; background-color: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--color-text); width: 45px; height: 45px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.slider-nav button:hover { background-color: var(--color-primary); color: white; transform: scale(1.1); }
.slider-nav button:disabled { opacity: 0.4; cursor: not-allowed; transform: scale(1); }
.slider-dots { text-align: center; margin-top: 25px; }
.slider-dots .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background-color: var(--border-color); margin: 0 6px; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.slider-dots .dot.active { background-color: var(--color-primary); transform: scale(1.3); }
@media (max-width: 992px) { .testimonial-card.prev { transform: translateX(-50%) scale(0.75) rotateY(35deg); } .testimonial-card.next { transform: translateX(50%) scale(0.75) rotateY(-35deg); } .slider-nav { width: 110%; } }
@media (max-width: 768px) { .slider-nav { width: 100%; } .slider-nav button { width: 40px; height: 40px; } }
@media (max-width: 500px) { .slider-nav { display: none; } .testimonial-card.prev, .testimonial-card.next { display: none; } .testimonial-card { width: 95%; } }
.review-form-onpage { margin-top: 60px; }
.star-rating { font-size: 1.8rem; cursor: pointer; color: var(--color-text-muted); }
.star-rating .fa-star { transition: color 0.2s, transform 0.2s; }
.star-rating .fa-star:hover, .star-rating .fa-star.hovered { color: #f1c40f; transform: scale(1.2); }
.star-rating .fa-star.selected { color: #f1c40f; }

/* --- Upgraded Button Style --- */
.btn { 
    display: inline-block; padding: 14px 30px; font-size: 1.1rem; font-weight: 600; 
    color: white; 
    background: linear-gradient(45deg, var(--color-primary), #4e9af1); 
    border: none; border-radius: 8px; cursor: pointer; 
    text-decoration: none; 
    box-shadow: 0 5px 20px rgba(27, 152, 224, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-size: 200% auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease;
}
html[data-theme='light'] .btn { background: linear-gradient(45deg, var(--color-primary), #2a7fff); }
.btn:hover { 
    transform: scale(1.05) translateY(-3px); 
    box-shadow: 0 8px 25px rgba(27, 152, 224, 0.6); 
    background-position: right center;
}
html[data-theme='light'] .btn:hover { box-shadow: 0 8px 25px var(--shadow-color); }
.btn:disabled { background: #555; cursor: not-allowed; opacity: 0.7; }

/* --- Upgraded Card Style with Glowing Border --- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotate-glow { to { --angle: 360deg; } }

.feature-card, .flip-card, .stat-card, .partner-card { position: relative; }

.feature-card, .card-front, .card-back, .stat-card, .agreement-step .step-content, .partner-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* Added background-color transition */
    z-index: 1;
}

.feature-card::before, .flip-card::before, .stat-card::before, .agreement-step .step-content::before, .partner-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: conic-gradient(from var(--angle), var(--color-accent), var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: rotate-glow 4s linear infinite paused;
}

.feature-card:hover, .flip-card:hover, .stat-card:hover, .agreement-step:hover .step-content, .partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.feature-card:hover::before, .flip-card:hover::before, .stat-card:hover::before, .agreement-step:hover .step-content::before, .partner-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

/* --- FIX [2]: Text Visibility on Hover --- */
.feature-card:hover,
.agreement-step:hover .step-content {
    background-color: rgba(18, 18, 32, 0.95); /* More opaque background on hover */
}
html[data-theme='light'] .feature-card:hover,
html[data-theme='light'] .agreement-step:hover .step-content {
    background-color: rgba(255, 255, 255, 0.98); /* Almost solid light color */
}

/* --- Card Flip Effect --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.flip-card { background-color: transparent; perspective: 1000px; border: none; min-height: 250px; }
.card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card:hover .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; }
.card-back { transform: rotateY(180deg); }
.flip-card .icon { font-size: 3rem; color: var(--color-primary); margin-bottom: 15px; }
.flip-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.flip-card p { color: var(--color-text-muted); }

/* --- Feature Card Styles --- */
.feature-card { padding: 30px; text-align: center; }
.feature-card .icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background-color: var(--bg-tertiary); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-text); }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* --- Partner Card Styles (UI FIX) --- */
.partner-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 250px; /* Ensure consistent height */
}
.partner-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}
.partner-card h3 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0;
}
.partner-card .ref-id {
    background-color: var(--bg-tertiary);
    color: var(--color-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Statistics Section --- */
#stats { background-color: transparent; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.stat-card { padding: 25px; text-align: center; display: flex; flex-direction: column; }
.stat-card h3 { margin-bottom: 20px; font-size: 1.2rem; color: var(--color-primary); }
.chart-container { position: relative; width: 100%; flex-grow: 1; display: flex; justify-content: center; align-items: center; min-height: 220px; }
/* --- FIX [1B]: Donut chart text cutoff --- */
.donut-chart { width: 150px; height: 150px; overflow: visible; }
.donut-chart circle { fill: transparent; stroke-width: 15; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.5s ease-out; stroke-linecap: round; }
.donut-chart .background { stroke: var(--bg-tertiary); }
.donut-chart .foreground { stroke: url(#satisfactionGradient); }
.chart-percent { position: absolute; font-size: 2rem; font-weight: 700; transition: transform 0.3s ease; }
.stat-card:hover .chart-percent { transform: scale(1.1); }
#growth-chart-container { cursor: grab; }
#growth-chart-container canvas { display: block; width: 100% !important; height: 100% !important; }
.radar-chart { font-family: sans-serif; font-size: 12px; }
.radar-chart .axis, .radar-chart .level { stroke: var(--border-color); stroke-width: 1; }
.radar-chart .axis-label { fill: var(--color-text-muted); }
.radar-chart .shape { fill: var(--shadow-color); stroke: var(--color-primary); stroke-width: 2; transition: all 1.5s ease-out; }
.bar-chart rect { transition: height 1.5s ease-out, y 1.5s ease-out; }
.bar-chart .bar-label { font-size: 12px; fill: var(--color-text-muted); }
.kpi-container { font-size: 3rem; font-weight: 700; }
.horizontal-bars { width: 100%; padding: 0 10px; }
.h-bar-group { margin-bottom: 15px; }
.h-bar-group label { display: block; text-align: left; margin-bottom: 5px; color: var(--color-text-muted); }
.h-bar-progress { background-color: var(--bg-tertiary); border-radius: 5px; overflow: hidden; }
.h-bar-fill { height: 20px; width: 0; border-radius: 5px; transition: width 1.5s ease-out; background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; animation: progress-bar-stripes 1s linear infinite; }
@keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } }
.stat-card.animate .h-bar-1 { width: 80%; background-color: var(--color-secondary); }
.stat-card.animate .h-bar-2 { width: 65%; background-color: var(--color-primary); }
.stat-card.animate .h-bar-3 { width: 90%; background-color: var(--color-accent); }
/* --- FIX [1A]: Removed transparent-card styling to make Annual Growth card visible by default --- */
/* .stat-card.transparent-card ... (This whole block is now removed) */
@media (min-width: 992px) { .stat-card.span-2 { grid-column: span 2; } }

/* --- Agreement Section Timeline --- */
.agreement-steps { list-style: none; position: relative; padding: 20px 0; }
.agreement-steps::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 4px; background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary)); border-radius: 2px; }
.agreement-step { position: relative; padding-left: 100px; margin-bottom: 50px; }
.agreement-step .step-icon { position: absolute; left: 0; top: 0; width: 80px; height: 80px; background-color: var(--bg-secondary); border: 4px solid var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--color-primary); z-index: 2; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 0 15px var(--shadow-color); }
.agreement-step:hover .step-icon { transform: scale(1.1) rotate(10deg); box-shadow: 0 0 25px var(--shadow-color); }
.agreement-step .step-content { padding: 30px; position: relative; }
.agreement-step:hover .step-content p {
    text-shadow: 0 0 5px rgba(0,0,0,0.5); 
}
html[data-theme='light'] .agreement-step:hover .step-content p {
    text-shadow: none;
}
.agreement-step h3 { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 10px; }
.agreement-step p { color: var(--color-text-muted); }

/* --- FAQ Section --- */
.faq-item { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.faq-question { padding: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* --- Enhanced Footer --- */
footer { background-color: var(--bg-secondary); padding: 60px 0 20px 0; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--color-primary); position: relative; padding-bottom: 10px; }
.footer-section h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--color-primary); }
.footer-section p, .footer-section a { color: var(--color-text-muted); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--color-primary); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-btn { background: none; border: none; color: var(--color-text-muted); padding: 0; font-size: 1rem; font-family: 'Poppins', sans-serif; cursor: pointer; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-tertiary); color: var(--color-text); font-size: 1.1rem; transition: background-color 0.3s, transform 0.3s; }
.social-links a:hover { background-color: var(--color-primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--color-text-muted); font-size: 0.9rem; }

/* --- Modal Styles --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 20, 0.8); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; border-radius: 0; border: none; overflow: hidden; background: transparent; }
.modal-close { position: fixed; top: 25px; right: 30px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 50%; width: 45px; height: 45px; font-size: 1.8rem; color: var(--color-text-muted); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s, transform 0.3s; }
.modal-close:hover { background-color: var(--color-danger); color: white; transform: rotate(90deg); }
.modal-body { flex-grow: 1; display: flex; justify-content: flex-start; align-items: flex-start; padding: 40px; position: relative; z-index: 1; overflow-y: auto; }

/* --- Form UI/UX Enhancements --- */
.form-container {
    background-color: rgba(18, 18, 32, 0.85);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
}
html[data-theme='light'] .form-container {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}
.form-container::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(145deg, var(--color-primary), var(--color-accent));
}
.form-container .btn, #edit-form .btn { margin-top: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 500; }
.form-group .input-wrapper { position: relative; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--color-text); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
html[data-theme='light'] .form-group input, html[data-theme='light'] .form-group textarea, html[data-theme='light'] .form-group select {
    background-color: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--shadow-color); outline: none; }
.message { text-align: center; padding: 15px; margin: 20px auto; border-radius: 8px; max-width: 600px; border: 1px solid var(--color-danger); background-color: rgba(255, 107, 107, 0.1); color: var(--color-danger); }
.message.success { border-color: var(--color-secondary); background-color: rgba(50, 222, 132, 0.1); color: var(--color-secondary); }
.hidden { display: none; }

.form-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    transition: color 0.3s;
    pointer-events: none;
}
.form-group input { padding-left: 50px; }
.form-group textarea { padding-left: 20px; padding-top: 14px; }
.form-group .input-wrapper:focus-within .input-icon { color: var(--color-primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full-width { grid-column: 1 / -1; }
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* --- Client/Admin Portal Specific Styles --- */
.admin-dashboard { background-color: var(--bg-secondary); padding: 30px; border-radius: 12px; width: 100%; max-width: 1200px; margin: 0 auto; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); }

/* --- FIX & REDESIGN: Admin Panel Tabs --- */
.admin-tab-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    padding: 10px 20px;
    font-size: 1rem; /* Adjusted for consistency */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    border-bottom: none; /* Remove bottom border */
    position: relative;
    top: 1px;
}
.admin-tab-btn:hover {
    background-color: var(--bg-primary);
    color: var(--color-primary);
}
.admin-tab-btn.active {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
    font-weight: 600;
    border-color: var(--border-color);
    border-bottom: 1px solid var(--bg-secondary); /* Hide the main border line under the tab */
}
/* --- END OF FIX --- */

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: tab-fade-in 0.5s ease; }
@keyframes tab-fade-in { from { opacity: 0; } to { opacity: 1; } }

.admin-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;}
.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); text-align: left; }
.admin-table th { font-weight: 600; }
.leads-container { margin-bottom: 40px; }
.lead-card {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}
.lead-card.new-lead {
    border-left-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(50, 222, 132, 0.2);
}
.lead-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.lead-name { font-weight: 600; font-size: 1.2rem; }
.lead-date { font-size: 0.9rem; color: var(--color-text-muted); }
.lead-contact { margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px;}
.lead-contact a { color: var(--color-primary); text-decoration: none; }
.lead-message { background-color: var(--bg-primary); padding: 10px; border-radius: 6px; }
.lead-status-select { background-color: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--color-text); border-radius: 6px; padding: 5px 10px; }

/* NEW: Styles for lead controls */
.lead-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-container { display: inline-flex; align-items: center; gap: 8px; }
.copy-btn { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 0.9rem; transition: color 0.3s, transform 0.2s; padding: 2px 5px;}
.copy-btn:hover { color: var(--color-primary); transform: scale(1.2); }
.lead-phone-number.copied { color: var(--color-secondary); font-weight: 600; }

.action-btn { background: none; border: none; cursor: pointer; font-size: 1rem; margin: 0 5px; }
.edit-btn { color: var(--color-primary); }
.delete-btn { color: var(--color-danger); }
.card-btn { color: var(--color-secondary); }
#edit-modal .modal-content, #confirm-modal .modal-content { background-color: transparent; }
#edit-modal .modal-body { align-items: center; justify-content: center; }
#confirm-modal .modal-content { max-width: 450px; height: auto; text-align: center; padding: 40px; background-color: var(--bg-secondary); border-radius: 12px; }
.data-profile { background-color: var(--bg-tertiary); border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; width: 100%; max-width: 950px; margin: 0 auto 40px auto; }
.profile-header { padding: 30px; display: flex; align-items: center; gap: 20px; background-color: var(--bg-secondary); }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background-color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.profile-info h2 { font-size: 1.5rem; }
.profile-body { padding: 30px; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.field-item label { font-size: 0.9rem; color: var(--color-text-muted); }
.field-item .value { background-color: var(--bg-primary); padding: 10px 15px; border-radius: 8px; }
.animated-agreement { background-color: var(--bg-secondary); color: var(--color-text); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); max-width: 950px; margin: 20px auto; font-family: 'Courier New', Courier, monospace; }
.animated-agreement h2 { text-align: center; color: var(--color-primary); margin-bottom: 20px; }
.agreement-actions { text-align: center; margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.agreement-actions .btn { margin: 0; }

/* --- NEW: V4 Partner Digital Card (Replicates new reference image) --- */
.id-card-v4-wrapper {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}
.id-card-v4 {
    color: var(--color-text);
    background: linear-gradient(175deg, #10121C 50%, #112D3A 100%);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(27, 152, 224, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.id-card-v4 .card-bg-circuits {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://i.ibb.co/6PBFv53/circuit-bg.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}
.id-card-v4-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card-ribbon-v4 {
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    overflow: hidden;
}
.card-ribbon-v4::before {
    content: 'PM PM PM PM';
    position: absolute;
    bottom: 35px; left: 0;
    width: 200%;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    transform: rotate(-45deg) translateY(20px);
    padding: 4px 0;
    letter-spacing: 2px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.card-header-v4 { margin-bottom: 20px; }
.card-header-v4 img { width: 50px; height: 50px; border-radius: 8px; border: 2px solid rgba(27, 152, 224, 0.7); }
.card-header-v4 h2 { font-size: 1.8rem; font-weight: 600; margin-top: 10px; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-header-v4 p { font-size: 1rem; color: #c0c0d0; }

.photo-frame-v4 {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--shadow-color);
}
.photo-frame-v4 img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.partner-name-v4 { font-size: 2.2rem; font-weight: 700; color: #fff; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.partner-ref-id-v4 {
    background-color: rgba(50, 222, 132, 0.2);
    color: var(--color-secondary);
    border: 1px solid rgba(50, 222, 132, 0.4);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 8px 0 12px 0;
}
.partner-title-v4 { font-size: 1rem; font-weight: 500; color: #c0c0d0; margin-bottom: 25px; }

.contact-info-v4 { display: flex; flex-direction: column; gap: 15px; width: 100%; text-align: left; }
.contact-item-v4 { display: flex; align-items: center; gap: 15px; font-size: 1rem; }
.contact-item-v4 i { color: var(--color-primary); width: 20px; text-align: center; font-size: 1.1rem; }
.contact-item-v4 span { word-break: break-all; }

.qr-section-v4 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    background-color: rgba(10, 10, 20, 0.5);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    border: 1px solid var(--border-color);
}
.qr-section-v4 img { width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0; }
.qr-section-v4 p { font-size: 0.95rem; color: #c0c0d0; text-align: left; line-height: 1.4; }

.card-footer-v4 { margin-top: 30px; font-size: 1rem; color: #c0c0d0; }
.card-footer-v4 i { color: var(--color-primary); margin: 0 5px; font-size: 1.1rem; }

.digital-card-actions { margin-top: 30px; text-align: center; }

/* --- Voice Assistant & Chatbot Buttons --- */
#voice-assistant-btn, #chatbot-toggle { 
    position: fixed; 
    bottom: 25px; 
    width: 55px; height: 55px; 
    color: white; border: none; 
    border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    font-size: 1.5rem; cursor: pointer; 
    z-index: 1001; 
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-position 0.5s ease;
    background-size: 200% auto;
}
#voice-assistant-btn { 
    right: 25px; 
    background-image: linear-gradient(45deg, var(--color-primary), #4e9af1); 
    box-shadow: 0 5px 20px rgba(27, 152, 224, 0.4); 
}
#chatbot-toggle {
    right: 95px;
    background-image: linear-gradient(45deg, var(--color-accent), #c37ee6);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

#voice-assistant-btn:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(27, 152, 224, 0.6); background-position: right center; }
#chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(155, 89, 182, 0.6); background-position: right center; }

/* --- AI Chatbot Styles --- */
#chatbot-container { position: fixed; bottom: 95px; right: 95px; width: 90%; max-width: 370px; height: 500px; background-color: var(--bg-secondary); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); z-index: 1000; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.5) translateY(50px); opacity: 0; visibility: hidden; transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s; transform-origin: bottom right; }
#chatbot-container.visible { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.chatbot-header { background-color: var(--bg-tertiary); padding: 15px; text-align: center; font-weight: 600; color: var(--color-primary); border-bottom: 1px solid var(--border-color); }
.chatbot-messages { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 80%; padding: 10px 15px; border-radius: 12px; line-height: 1.4; }
.chat-message.user { background-color: var(--color-primary); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-message.bot { background-color: var(--bg-tertiary); color: var(--color-text); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-message.bot.typing span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: var(--color-text-muted); margin: 0 2px; animation: bounce 1s infinite; }
.chat-message.bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.bot.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chatbot-input-form { display: flex; padding: 10px; border-top: 1px solid var(--border-color); background-color: var(--bg-primary); }
#chatbot-input { flex-grow: 1; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 20px; padding: 10px 15px; color: var(--color-text); font-size: 1rem; }
#chatbot-input:focus { outline: none; border-color: var(--color-primary); }
#chatbot-send { background: var(--color-primary); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; margin-left: 10px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.3s; }
#chatbot-send:hover { background-color: #167ab5; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .mobile-menu-toggle { display: block; }
    .header-right { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg-secondary); flex-direction: column; align-items: stretch; padding: 10px 0; border-top: 1px solid var(--border-color); max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; }
    header.nav-active .header-right { max-height: 500px; padding: 10px 0; }
    nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav li { width: 100%; text-align: center; }
    nav a, .header-btn, .dropdown > button { display: block; padding: 15px; border-radius: 0; border-bottom: 1px solid var(--border-color); width: 100%; }
    .dropdown-menu { position: static; transform: none; width: 100%; box-shadow: none; border: none; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background-color: var(--bg-primary); }
    .dropdown:hover .dropdown-menu { max-height: 500px; }
    .dropdown > button .fa-chevron-down { float: right; }
    nav li:last-child a, .header-btn { border-bottom: none; }
    .lang-switcher { margin: 10px auto; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .section-title { font-size: 2.2rem; }
    .hero-section { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero-content { order: 2; }
    .hero-image { order: 1; }
    .hero-headline { font-size: 2.8rem; min-height: 120px; }
    .hero-subheadline { margin-left: auto; margin-right: auto; }
    .hero-image img { max-width: 280px; }
    .stats-grid { grid-template-columns: 1fr; }
    .agreement-steps::before { left: 20px; }
    .agreement-step { padding-left: 60px; }
    .agreement-step .step-icon { width: 40px; height: 40px; font-size: 1.5rem; left: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .social-links { justify-content: center; }
    .modal-body { padding: 40px 20px; }
    .form-container { padding: 25px; }
    .welcome-title { font-size: 2.2rem; }
    .welcome-subtitle { font-size: 1rem; }
    #chatbot-container { bottom: 95px; right: 15px; width: calc(100% - 30px); max-width: none; height: 60%; }
    #chatbot-toggle { bottom: 20px; right: 85px; }
    #voice-assistant-btn { bottom: 20px; right: 15px; }
    .id-card-v4-wrapper { padding: 0 10px; }
    .partner-name-v4 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.4rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .welcome-logo { width: 120px; height: 120px; }
}

/* Styles for new info pages in modal */
.page-content {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
    max-width: 950px;
}
.page-content h1, .page-content h2, .page-content h3 {
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}
.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.page-content ul, .page-content ol {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 15px;
}
.page-content ul li, .page-content ol li {
    margin-bottom: 10px;
}

/* Styling for content to be downloaded as image */
.agreement-for-image {
    color: #333; /* Dark text for white bg */
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
.agreement-for-image h3, .agreement-for-image h4 {
    color: #0056b3; /* Dark blue for headings */
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.agreement-for-image h3 { text-align: center; border-bottom: 2px solid #dee2e6; }
.agreement-for-image h4 { font-size: 1.2rem; margin-top: 25px; text-align: left; padding-bottom: 5px; }
.agreement-for-image p, .agreement-for-image li { margin-bottom: 12px; line-height: 1.6; color: #555; }
.agreement-for-image strong { color: #212529; font-weight: 600; }
.agreement-for-image ol { padding-left: 20px; }
.agreement-for-image .agreement-details p { margin-bottom: 8px; }

