/* ==========================================================================
   ENTERPRISE.CSS - CLIENT PORTAL (DARK THEME)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary-blue: #0ea5e9;
    --light-blue: #38bdf8;
    --dark-bg: #0b1120;     
    --card-bg: rgba(30, 41, 59, 0.6); 
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #cbd5e1;
    --text-heading: #ffffff;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background: var(--dark-bg);
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }

.scaled-content {
    zoom: 0.9;
    -moz-transform: scale(0.9);
    -moz-transform-origin: top center;
    width: 100%;
    padding-top: 100px; 
}

.reveal-on-scroll { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.z-index-top { z-index: 5; position: relative;}

/* --- Navigation --- */
.main-nav {
    position: fixed; 
    top: 0; left: 0; width: 100%; z-index: 1000; 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    background: #0f172a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.logo-img { height: 60px; }
.portal-toggle-container { display: flex; background: rgba(255, 255, 255, 0.05); padding: 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.portal-btn { background: transparent; border: none; padding: 10px 20px; font-weight: 600; color: #94a3b8; border-radius: 6px; transition: all 0.2s ease; text-decoration: none; display: inline-block; }
.portal-btn.active { background: rgba(255, 255, 255, 0.15); color: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: #ffffff; font-weight: 600; font-size: 1.1rem; transition: color 0.2s;}
.nav-links a:hover { color: var(--light-blue); }

/* --- Buttons --- */
.btn { transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 700; border-radius: 8px; text-decoration: none; border: none; max-width: 100%; }
.btn-primary { background: var(--primary-blue); color: white !important; padding: 12px 24px; }
.btn-primary:hover { background: #0284c7; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3); }
.btn-login { background: transparent; color: white !important; border: 2px solid rgba(255,255,255,0.3); padding: 10px 22px; }
.btn-login:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); border-color: var(--light-blue); color: var(--light-blue) !important; }
.btn-large { padding: 16px 36px; font-size: 1.15rem; border-radius: 12px; }

/* --- Global Section Settings --- */
.fullscreen-section { min-height: 85vh; width: 100%; display: flex; align-items: center; justify-content: center; padding: 8rem 5%; position: relative; }
.enterprise-padding { padding: 8rem 5%; position: relative; }
.bg-gray { background: #0f172a; } 
.content-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; z-index: 2; position: relative; }

.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 3.5rem; color: var(--text-heading); margin-bottom: 1.5rem; font-weight: 800; margin-top: 0;}
.section-header p { font-size: 1.3rem; color: var(--text-main); max-width: 900px; margin: 0 auto; line-height: 1.6; }
.badge-pill { background: rgba(14, 165, 233, 0.1); color: var(--primary-blue); padding: 8px 20px; border-radius: 50px; display: inline-block; margin-bottom: 1.5rem; border: 1px solid rgba(14, 165, 233, 0.3); font-weight: 700; }

/* --- Hero & Bottom CTA Areas --- */
.client-enterprise-hero, .client-hero { position: relative; overflow: hidden; background: var(--dark-bg); }
.client-enterprise-hero { border-bottom: 1px solid rgba(255,255,255,0.05); }
.client-hero { border-top: 1px solid rgba(255,255,255,0.05); }

/* --- Animated Ocean Waves for Dark Theme --- */
.true-ocean-waves { position: absolute; bottom: 0; left: 0; width: 100%; height: 400px; overflow: hidden; z-index: 0; pointer-events: none; }
.wave-layer { position: absolute; bottom: 0; left: 0; width: 200vw; height: 100%; background-repeat: repeat-x; background-size: 1000px 100%; transform-origin: bottom; }
.wave-back { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='rgba(30, 58, 138, 0.3)'/%3E%3C/svg%3E"); animation: wave-slide 20s linear infinite; z-index: 1; transform: scaleY(1.4); }
.wave-mid { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='rgba(30, 58, 138, 0.6)'/%3E%3C/svg%3E"); animation: wave-slide 15s linear infinite; z-index: 2; transform: scaleY(1.1); }
.wave-front { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 C250,100 250,0 500,50 C750,100 750,0 1000,50 L1000,150 L0,150 Z' fill='%231e3a8a'/%3E%3C/svg%3E"); animation: wave-slide 10s linear infinite; z-index: 3; transform: scaleY(0.8); }
@keyframes wave-slide { 0% { transform: translateX(0); } 100% { transform: translateX(-1000px); } }

/* --- Agentic & Feature Grids (Dark Mode Cards) --- */
.agentic-services-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.agentic-card, .feature-box { background: var(--card-bg); backdrop-filter: blur(10px); padding: 3rem 2rem; border-radius: 16px; border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s, border-color 0.3s; }
.agentic-card:hover, .feature-box:hover { transform: translateY(-5px); border-color: rgba(14, 165, 233, 0.4); }
.agentic-icon, .feature-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.agentic-card h3, .feature-box h3 { font-size: 1.5rem; color: var(--text-heading); margin: 0 0 1rem; }
.agentic-card p, .feature-box p { color: var(--text-main); line-height: 1.6; font-size: 1.05rem; margin: 0; }

/* --- Interactive Industry Tabs --- */
.industry-interactive-container { display: flex; gap: 4rem; background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 20px; padding: 3rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.industry-sidebar { flex: 0 0 250px; display: flex; flex-direction: column; gap: 1rem; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 2rem; }
.industry-btn { background: transparent; border: 1px solid transparent; text-align: left; padding: 15px 20px; font-size: 1.15rem; font-weight: 600; color: #94a3b8; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; }
.industry-btn:hover { background: rgba(255,255,255,0.05); color: white; }
.industry-btn.active { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.3); color: white; }
.industry-content-area { flex: 1; position: relative; }
.industry-pane { display: none; opacity: 0; animation: fadeInPane 0.4s ease forwards; }
.industry-pane.active { display: block; }
@keyframes fadeInPane { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.industry-pane h3 { font-size: 2.5rem; color: white; margin: 0 0 1rem; }
.industry-pane p { font-size: 1.2rem; color: var(--text-main); line-height: 1.7; margin-bottom: 2.5rem; max-width: 800px; }
.industry-stats { display: flex; gap: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.ind-stat h4 { font-size: 3rem; color: var(--primary-blue); margin: 0 0 0.5rem; font-weight: 800; }
.ind-stat span { font-size: 1rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.cat-link { color: var(--primary-blue); font-weight: 800; text-decoration: none; font-size: 1.2rem; display: inline-block;}
.cat-link:hover { color: white; }

/* --- Process Timeline --- */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; margin-top: 4rem; }
.process-timeline::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.process-step { position: relative; z-index: 1; background: transparent; }
.process-dot { width: 60px; height: 60px; background: var(--primary-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 1.5rem; box-shadow: 0 0 0 10px #0f172a; }
.process-step h4 { text-align: center; font-size: 1.4rem; color: white; margin: 0 0 1rem; }
.process-step p { text-align: center; color: var(--text-main); font-size: 1.05rem; line-height: 1.6; margin: 0;}

/* --- MODALS (Shared Styles) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 17, 32, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container {
    background: #0f172a; border: 1px solid rgba(255,255,255,0.1);
    width: 90%; max-width: 550px; border-radius: 16px; padding: 40px; position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    transform: translateY(20px); transition: transform 0.3s ease;
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 25px; background: transparent; border: none; font-size: 2rem; color: #64748b; cursor: pointer; transition: color 0.2s;}
.modal-close:hover { color: white; }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 2rem; color: white; margin: 0 0 10px; }
.modal-header p { color: #94a3b8; font-size: 1.1rem; margin: 0; }

/* Dashboard Glass Modal Specifics */
.glass-modal { background: rgba(15, 23, 42, 0.65) !important; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.15) !important; max-width: 850px !important; padding: 50px !important; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.05) !important; }
.dashboard-modal-split { display: flex; gap: 40px; margin-top: 40px; align-items: stretch; }
.split-card { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.03); padding: 40px 30px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.3s, background 0.3s; }
.split-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.split-divider { width: 1px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent); }

/* Form Styles */
.modal-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; color: #e2e8f0; font-size: 0.95rem; }
.form-control { padding: 12px 15px; border: 1px solid #334155; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; color: white; background: #1e293b; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }
select.form-control option { background: #1e293b; color: white; }
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.checkbox-group input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary-blue); cursor: pointer; }
.checkbox-group label { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; cursor: pointer; }

/* Footer */
footer { background: #0f172a; border-top: 1px solid rgba(255,255,255,0.05); color: white; text-align: center; padding: 4rem 2rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-weight: 600;}
.footer-links a:hover { color: white; }
footer p { color: #64748b; font-size: 0.95rem; margin: 0;}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .industry-interactive-container { flex-direction: column; gap: 2rem; }
    .industry-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-right: 0; padding-bottom: 2rem; flex-direction: row; flex-wrap: wrap; }
    .industry-stats { flex-wrap: wrap; gap: 2rem; }
    .process-timeline { grid-template-columns: 1fr; gap: 3rem; }
    .process-timeline::before { display: none; }
    .process-dot { box-shadow: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .section-header h2 { font-size: 2.8rem; }
    .dashboard-modal-split { flex-direction: column; gap: 20px; }
    .split-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent); }
    .glass-modal { padding: 30px !important; }
}