/* TWM Agentic Website - Final Monolithic Replica V9 */
:root {
  --primary: #000064;          /* Navy Blue */
  --accent: #DF9C00;           /* Gold */
  --accent-light: #F9E8B8;     /* Light Gold */
  --coral: #FF5F5F;            /* Risk Alert Red */
  --coral-light: #FFF5F5;
  --bg-body: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.08);
  --shadow-glow: 0 20px 40px -10px rgba(223,156,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--bg-body); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* Typography - Premium Scale Constraints */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');
h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; color: var(--primary); letter-spacing: -0.02em; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }

/* Premium Patterns Overlay System */
.bg-pattern-light { background: url('images/twm-pattern.png') top left/300px repeat; position: relative; }
.bg-pattern-light::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(248, 250, 252, 0.93); z-index: 1; }
.bg-pattern-dark { background: url('images/twm-pattern.png') top left/300px repeat; position: relative; }
.bg-pattern-dark::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0, 0, 100, 0.94); z-index: 1; }
.pattern-content { position: relative; z-index: 2; }
.bg-white { background-color: white !important; color: var(--text-main) !important;}

/* Utilities - Correct Box Model */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.bg-navy { background-color: var(--primary); color: white; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: white; }

/* Square Buttons Restored */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--primary); padding: 14px 32px; border-radius: 4px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px) translate3d(0,0,0); box-shadow: var(--shadow-glow); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; color: var(--primary); border: 2px solid #E2E8F0; padding: 12px 28px; border-radius: 4px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; cursor: pointer; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn-coral { display: inline-flex; align-items: center; gap: 10px; background: var(--coral); color: white; border: none; padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; cursor: pointer; }
.btn-coral:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 95, 95, 0.3); }

/* Header */
header { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid #eee; padding: 15px 0; transition: all 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.main-logo { max-width: 220px; height: auto; display: block; }
.logo-text { font-family: 'Poppins', sans-serif; color: var(--primary); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; align-items: center; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* Carousel / Sliders */
.carousel-wrapper { position: relative; overflow: hidden; width: 100%; text-align: center; }
.carousel-inner { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-item { min-width: 100%; flex: 1; padding: 0 20px; }
.carousel-controls { position: absolute; top: 50%; left: 0; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 10; padding: 0 5%; pointer-events: none; }
.carousel-btn { background: white; border: 1px solid #eee; color: var(--primary); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; box-shadow: var(--shadow-soft); transition: 0.3s; font-size: 1.2rem; }
.carousel-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; margin-bottom: 30px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--accent); transform: scale(1.2); }

/* Hero Section */
.hero { padding-top: 180px; padding-bottom: 80px; min-height: 80vh; display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; }
.hero-content { width: 100%; max-width: 1100px; margin: 0 auto; }
.eyebrow { display: inline-block; background: var(--accent-light); color: var(--accent); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.hero-badges { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.badge { background: white; border: 1px solid #E2E8F0; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-soft); }

/* Unified Hover Physics */
.hover-card { background: white; padding: 40px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid #eee; transition: all 0.4s ease; transform: translate3d(0,0,0); height: 100%; }
.hover-card:hover { transform: translateY(-8px) translate3d(0,0,0); box-shadow: var(--shadow-glow); border-color: var(--accent) !important; }

/* SOLID GOLD ICONS UPDATE */
.icon-circle { width: 60px; height: 60px; background: var(--accent); color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 20px; border: none; }
.icon-circle-navy { background: var(--accent); color: var(--primary); }

/* Risk Alert & Animations */
@keyframes alert-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.pulse-icon { animation: alert-pulse 2s infinite ease-in-out; }
.risk-alert { background: var(--coral-light); border: 1px solid rgba(255,95,95,0.2); border-radius: var(--radius-lg); padding: 50px; margin-top: 60px; }
.risk-alert h2 { color: var(--coral); margin-bottom: 30px; }
.stat-card { background: white; padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid #eee; transition: all 0.4s ease; }
.hover-card-coral:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); border-color: var(--accent); }
.stat-coral h3 { font-size: 3rem; color: var(--coral); margin-bottom: 5px; line-height: 1; font-weight: 800; }
.stat-coral p { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; margin: 0; }

/* Service Process */
.process-grid { display: flex; justify-content: space-between; gap: 20px; text-align: center; position: relative; margin-top: 40px; }
.process-step { flex: 1; position: relative; z-index: 2; }
.process-number { width: 60px; height: 60px; background: white; border: 2px solid var(--accent); color: var(--primary); font-size: 1.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: var(--shadow-soft); }
.process-grid::after { content: ''; position: absolute; top: 30px; left: 10%; width: 80%; height: 2px; background: #E2E8F0; z-index: 1; }

/* Solutions Gold Checkmarks Injection */
.sol-list li { position: relative; padding-left: 24px; }
.sol-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent); position: absolute; left: 0; top: 8px; font-size: 0.75rem; }

/* Pill Tab UI */
.tab-container { margin-top: 40px; }
.tab-pill-container { display: inline-flex; background: #F1F5F9; border-radius: 6px; padding: 6px; margin-bottom: 40px; border: 1px solid #E2E8F0; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.tab-pill-btn { background: transparent; border: none; padding: 12px 36px; font-size: 1.05rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; color: var(--text-muted); }
.tab-pill-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(0,0,100,0.15); transform: scale(1.02); }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

/* Partner Logos & Badges (Rigid Layout) */
.partner-logo-wrapper { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; min-height: 60px; }
.partner-logo { height: 45px; min-width: 120px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; cursor: pointer; }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
.partner-badge { background: #F1F5F9; color: #64748B; padding: 8px 20px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; border: 1px solid #E2E8F0; transition: all 0.3s ease; cursor: default; }
.partner-badge:hover { background: white; border-color: var(--accent); color: var(--primary); box-shadow: var(--shadow-soft); }

/* Forms & Contact Grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.form-input, .form-textarea { width: 100%; padding: 15px; border: 1px solid #E2E8F0; border-radius: 4px; margin-bottom: 15px; font-family: 'Inter'; font-size: 1rem; transition: border-color 0.3s ease; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(223,156,0,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,100,0.8); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-content { background: white; width: 90%; max-width: 600px; border-radius: var(--radius-lg); padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: 0.2s; }
.close-modal:hover { color: var(--coral); }
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.5s ease; }
.option-btn { width: 100%; text-align: left; padding: 18px 20px; border: 2px solid #E2E8F0; border-radius: 4px; margin-bottom: 15px; background: white; cursor: pointer; font-size: 1.05rem; transition: 0.2s; font-family: 'Inter'; font-weight: 500; color: var(--text-main); }
.option-btn:hover, .option-btn.selected { border-color: var(--accent); background: var(--accent-light); color: var(--primary); font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* Chatbot Widget */
@keyframes ntokozo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(223,156,0,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(223,156,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(223,156,0,0); }
}
@keyframes ntokozo-vibrate {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1.5px, 1.5px); }
  40% { transform: translate(1.5px, -1.5px); }
  60% { transform: translate(-1.5px, -1.5px); }
  80% { transform: translate(1.5px, 1.5px); }
}
#ntokozo-panel { display: none; width: 360px; height: 550px; background: white; border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: fixed; bottom: 100px; right: 30px; z-index: 9999; flex-direction: column; overflow: hidden; border: 1px solid #eee; }
.chat-header { background: var(--primary); padding: 15px 20px; color: white; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; background: var(--bg-body); display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth; }
.chat-bubble { padding: 12px 16px; border-radius: 15px; font-size: 0.95rem; max-width: 85%; line-height: 1.5; }
.bot-bubble { align-self: flex-start; background: white; border: 1px solid #E2E8F0; border-radius: 15px 15px 15px 2px; color: var(--text-main); }
.user-bubble { align-self: flex-end; background: var(--accent); color: var(--primary); font-weight: 500; border-radius: 15px 15px 2px 15px; }
.chat-input { padding: 15px; background: white; border-top: 1px solid #eee; display: flex; gap: 10px; }
#ntokozo-launcher { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; cursor: pointer; z-index: 9998; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#ntokozo-launcher::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; z-index: -1; animation: ntokozo-pulse 2.5s ease-in-out infinite; }
#ntokozo-launcher i { transition: transform 0.3s; }
#ntokozo-launcher:hover { transform: scale(1.05); }
#ntokozo-launcher:hover i { animation: ntokozo-vibrate 0.4s ease-in-out infinite; }

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

/* Footer Styling (Grid Structure Fixed) */
footer { color: white; padding: 80px 20px 30px; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 3rem; align-items: start; max-width: 1200px; margin: 0 auto; }

.footer-col-left { text-align: left; }
.footer-col-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-col-right { text-align: left; }

.footer-links li { margin-bottom: 12px; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.fsp-list li { color: rgba(255,255,255,0.6); margin-bottom: 5px; }
.footer-links a { transition: 0.3s; }
.footer-links a:hover { color: var(--accent); cursor: pointer; }
.legal-link { cursor: pointer; transition: 0.3s; }
.legal-link:hover { color: var(--accent); text-decoration: underline; }
.fsp-text { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 900px; margin: 0 auto; text-align: justify; text-align-last: center; }

@media (max-width: 992px) {
  .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col-left, .footer-col-right { text-align: center; }
  .footer-col-right ul { display: inline-block; text-align: center !important; }
  .process-grid { flex-direction: column; gap: 40px; }
  .process-grid::after { display: none; }
  header .btn-primary { display: none; }
  .carousel-controls { display: none; }
  .logo-text { font-size: 1.1rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 2rem; }
  .stat-coral h3 { font-size: 2.5rem; }
  #ntokozo-panel { width: 90vw; right: 5vw; bottom: 100px; }
  .logo-text { display: none; }
}
/* Grid-5 for credentials section */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
