/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-dark: #020617;
  --bg-panel: #0f172a;
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent: #06b6d4;
  --danger: #ef4444;
  --success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(2, 6, 23, 0.85);
  --max-w: 1200px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; 
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Animation Utility */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) { .reveal { animation: safeShow 0.1s 1s forwards; } }
@keyframes safeShow { to { opacity: 1; transform: translateY(0); } }

/* --- 2. FLOATING TICKER --- */
.ticker-wrap {
  position: relative; top: 0; width: 100%; height: 32px; z-index: 900;
  background: #1e293b; border-bottom: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center;
}
.ticker { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-block; padding: 0 2rem; color: #fbbf24; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* --- 3. HERO SECTION --- */
.hero { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.hero h1 { 
  font-family: 'Outfit', sans-serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.typewriter-text { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.cursor { display: inline-block; width: 3px; background-color: var(--primary); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 50px; font-size: 0.85rem; color: var(--accent); margin-bottom: 20px; }

.cta-group { display: flex; justify-content: center; gap: 15px; }
.btn { padding: 12px 28px; border-radius: 8px; font-weight: 600; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--primary); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* --- 4. MARQUEE --- */
.marquee-section { padding: 40px 0; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); overflow: hidden; }
.marquee-track { display: flex; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: flex; gap: 60px; width: max-content; animation: scroll 40s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-img { height: 40px; width: auto; margin: 0 20px; opacity: 0.7; filter: brightness(0) invert(1); transition: all 0.3s ease; cursor: pointer; }
.partner-img:hover { opacity: 1; filter: none; transform: scale(1.1); }

/* --- 5. SERVICES & GRID --- */
.section { padding: 80px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 2.2rem; margin-bottom: 12px; color: white; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.persona-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 30px; border-radius: 16px; text-align: center; transition: 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.persona-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.persona-card i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.persona-card h3 { color: white; font-family: 'Outfit', sans-serif; margin-bottom: 10px; }
.persona-card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- 6. PROCESS STEPS --- */
.process-steps { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto; position: relative; margin-bottom: 80px; }
.step { text-align: center; position: relative; z-index: 2; width: 200px; }
.step-icon { width: 70px; height: 70px; background: rgba(59,130,246,0.1); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin: 0 auto 20px; transition: 0.3s; }
.step:hover .step-icon { background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.step h4 { color: white; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--text-muted); }
.process-line { position: absolute; top: 35px; left: 0; width: 100%; height: 2px; background: var(--border); z-index: 1; }
/* --- CLIENT STORIES (SLIDER VERSION) --- */
.slider-container {
    max-width: 800px; /* Limits width so reviews are easy to read */
    margin: 0 auto;
    overflow: hidden; /* Hides the slides that are waiting off-screen */
    position: relative;
    padding-bottom: 20px;
}

.review-track {
    display: flex; /* Forces items into a horizontal row */
    width: 100%;
    /* Transition is handled inline in PHP, but adding here helps smoothness */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.review-card {
    min-width: 100%; /* Takes up full width of the container */
    flex-shrink: 0;  /* Prevents the box from getting squished */
    box-sizing: border-box;
    padding: 40px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    margin: 0; /* Remove margin since we use padding inside */
}

/* Review Text Styling */
.review-text {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-author {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.review-role {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Slider Navigation Buttons (Manual Controls) */
.slider-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 10px;
}

.slider-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- 8. RISK WIDGET - *UPDATED* --- */
.health-widget { background: linear-gradient(145deg, #1e293b, #0f172a); border: 1px solid var(--border); border-radius: 20px; padding: 30px; width: 100%; max-width: 500px; margin: 0 auto; text-align: center; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.toggle-label { color: white; font-weight: 500; text-align:left; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(24px); }
.status-box { margin-top: 25px; padding: 15px; border-radius: 8px; font-weight: 700; transition: 0.3s; border:1px solid transparent; }
.status-risk { background: rgba(239, 68, 68, 0.2); color: var(--danger); border-color: var(--danger); }
.status-safe { background: rgba(16, 185, 129, 0.2); color: var(--success); border-color: var(--success); }

/* --- 9. COMPARISON TABLE --- */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare-table th, .compare-table td { padding: 15px; border-bottom: 1px solid var(--border); text-align: center; color: var(--text-muted); }
.compare-table th { color: white; font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.compare-table .fin-col { background: rgba(59, 130, 246, 0.05); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.check { color: var(--success); }
.cross { color: var(--danger); }

/* --- 10. ACCORDION --- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header { width: 100%; padding: 20px 0; background: none; border: none; text-align: left; color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Outfit', sans-serif; }
.accordion-body { max-height: 0; overflow: hidden; transition: 0.3s ease; color: var(--text-muted); font-size: 0.95rem; }
.icon-plus { transition: 0.3s; }
.icon-plus.rotate { transform: rotate(45deg); color: var(--primary); }

/* --- 11. MOBILE & NAV BAR --- */
.mobile-bar { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000; display: none; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.bar-btn { width: 50%; border: none; padding: 16px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bar-call { background: #f1f5f9; color: #0f172a; }
.bar-wa { background: #25D366; color: white; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-item { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-item:hover { color: white; }
.theme-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; padding: 5px 10px; border-radius: 5px; }
.mobile-toggle { display: none; font-size: 1.5rem; color: white; cursor: pointer; }
#navLinks.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--bg-panel); padding: 20px; border-bottom: 1px solid var(--border); }

/* --- 12. FOOTER --- */
footer { background: #0b1121; border-top: 1px solid var(--border); padding: 80px 0 30px; margin-top: auto; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-col h4 { color: white; font-family: 'Outfit', sans-serif; font-size: 1.1rem; margin-bottom: 25px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: all 0.3s ease; display: inline-block; }
.footer-col ul li a:hover { color: var(--primary); transform: translateX(5px); }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 20px; display: inline-block; }
.footer-bottom { margin-top: 60px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* --- 13. MEDIA QUERIES --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .process-steps { flex-direction: column; gap: 40px; }
  .process-line { width: 2px; height: 100%; left: 50%; top: 0; }
  .mobile-bar { display: flex; }
  .partner-img { height: 30px; opacity: 0.8; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  footer { padding: 50px 0 30px; }
  .review-card { padding: 25px 15px; }
  .review-text { font-size: 0.95rem; }
  .health-widget { margin-top: 30px; }
}
