/**
 * Securera Product Page Dedicated Stylesheet
 * Evasoft Services Pvt. Ltd.
 */

:root {
    --bs-primary: #1842b6;
    --bs-primary-rgb: 24, 66, 182;
    --bs-primary-dark: #13357B;
    --bs-primary-darker: #0b1f49;
    --bs-secondary: #26d48c;
    --bs-secondary-rgb: 38, 212, 140;
    --bs-secondary-dark: #1ab574;
    --bs-dark: #000103;
    --bs-dark-rgb: 0, 1, 3;
    --bs-light: #F8F8F9;
    --bs-light-rgb: 248, 248, 249;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --bs-headings-font-family: 'Saira', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ensure Fonts & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #475569;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Saira', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

/* Specific Section Anchor Scroll Offset */
#overview, #features, #advanced-features, #why-choose, #industries, #advantage {
    scroll-margin-top: 85px;
}

/* Explicit Color Utilities with Fallbacks */
.text-primary {
    color: #1842b6 !important;
}

.text-secondary {
    color: #26d48c !important;
}

.bg-primary {
    background-color: #1842b6 !important;
}

.bg-secondary {
    background-color: #26d48c !important;
}

.bg-dark {
    background-color: #000103 !important;
}

.bg-light {
    background-color: #F8F8F9 !important;
}

.border-primary {
    border-color: #1842b6 !important;
}

.border-secondary {
    border-color: #26d48c !important;
}

/* Button Styles with Explicit Colors */
.btn-primary {
    background-color: #1842b6 !important;
    border-color: #1842b6 !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #13357B !important;
    border-color: #13357B !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #26d48c !important;
    border-color: #26d48c !important;
    color: #ffffff !important;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #1ab574 !important;
    border-color: #1ab574 !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: #26d48c !important;
    border-color: #26d48c !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background-color: #26d48c !important;
    color: #ffffff !important;
}

/* Securera Secondary Sticky Subnav Bar */
.product-header-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(24, 66, 182, 0.1);
    box-shadow: 0 4px 20px rgba(19, 53, 123, 0.08);
    position: sticky;
    top: 0;
    z-index: 990;
    transition: all 0.3s ease;
}

.product-header-bar .navbar-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-header-bar .navbar-brand:hover img {
    transform: scale(1.03);
}

.product-brand-box {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid rgba(24, 66, 182, 0.08);
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.product-brand-box:hover {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(24, 66, 182, 0.12);
}

.product-header-bar .product-nav-link {
    color: #1e293b !important;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: all 0.25s ease;
    margin: 0 4px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.product-header-bar .product-nav-link:hover,
.product-header-bar .product-nav-link.active {
    color: #1842b6 !important;
    background: rgba(38, 212, 140, 0.15);
}

.product-header-bar .btn-book-demo {
    background: linear-gradient(135deg, #26d48c 0%, #1ab574 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 14px rgba(38, 212, 140, 0.4);
    transition: all 0.3s ease;
}

.product-header-bar .btn-book-demo:hover {
    background: linear-gradient(135deg, #1ab574 0%, #138f5a 100%) !important;
    box-shadow: 0 6px 20px rgba(38, 212, 140, 0.55);
    transform: translateY(-2px);
}

/* Securera Product Hero Section */
.product-hero {
    background: linear-gradient(135deg, #0b1f49 0%, #13357B 55%, #0d2861 100%) !important;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(38, 212, 140, 0.18) 0%, rgba(38, 212, 140, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.product-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(24, 66, 182, 0.45) 0%, rgba(24, 66, 182, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Securera Live Dashboard Mockup Widget */
.securera-preview-card {
    background: #0d1728 !important;
    border: 1px solid rgba(38, 212, 140, 0.3) !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(38, 212, 140, 0.18);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.securera-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(38, 212, 140, 0.28);
}

.preview-topbar {
    background: #09101d;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot.red { background: #ff5f56; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #27c93f; }

.live-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #26d48c;
    box-shadow: 0 0 0 0 rgba(38, 212, 140, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(38, 212, 140, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(38, 212, 140, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(38, 212, 140, 0);
    }
}

.db-badge-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.db-badge-node:hover {
    background: rgba(38, 212, 140, 0.12);
    border-color: rgba(38, 212, 140, 0.35);
}

.terminal-feed {
    background: #060b13;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: #94a3b8;
    max-height: 120px;
    overflow-y: hidden;
}

.terminal-feed-line {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature & Architecture Cards */
.feature-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #26d48c;
    border-radius: 12px 0 0 12px;
    transition: height 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(24, 66, 182, 0.14);
    border-color: rgba(38, 212, 140, 0.5);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(24, 66, 182, 0.08) !important;
    color: #1842b6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: #1842b6 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Advanced Features Filtering & Badges */
.filter-btn-group .btn-filter {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #4b5563;
    transition: all 0.3s ease;
    margin: 4px;
    cursor: pointer;
}

.filter-btn-group .btn-filter:hover,
.filter-btn-group .btn-filter.active {
    background: #1842b6 !important;
    color: #ffffff !important;
    border-color: #1842b6 !important;
    box-shadow: 0 4px 12px rgba(24, 66, 182, 0.3);
}

.advanced-feature-item {
    transition: all 0.4s ease;
}

.adv-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
}

/* Why Choose Securera List Items */
.benefit-item {
    background: #ffffff !important;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(6px);
    border-color: #26d48c !important;
    box-shadow: 0 6px 20px rgba(38, 212, 140, 0.2);
}

/* Who Can Use Cards */
.industry-card {
    background: #ffffff !important;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.industry-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1842b6, #26d48c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(24, 66, 182, 0.1);
}

.industry-card:hover::after {
    opacity: 1;
}

.industry-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(38, 212, 140, 0.18) !important;
    color: #198754 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

/* Securera Advantage Pillars */
.advantage-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #26d48c !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fcfefe !important;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #1842b6 0%, #0d2861 60%, #081a3d 100%) !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(38, 212, 140, 0.22) 0%, rgba(38, 212, 140, 0) 70%);
    border-radius: 50%;
}

/* Architecture Pillar Card */
.arch-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.arch-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #26d48c !important;
    transform: translateY(-3px);
}

/* Custom modal styling */
#demoModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

#demoModal .form-control:focus, #demoModal .form-select:focus {
    border-color: #1842b6;
    box-shadow: 0 0 0 0.25rem rgba(24, 66, 182, 0.15);
}
