/* ============================================================
   Security Factor 365 - Premium Theme Overrides
   Fixes: text visibility, 3D cards, hover effects, shadows
   ============================================================ */

/* Override template colors */
:root {
    --theme-color: #0F766E;
    --theme-color2: #14B8A6;
    --title-color: #1F2937;
    --body-color: #6B7280;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader-bg-one { background: #0F766E !important; }
.preloader-bg-two { background: #134E4A !important; }
.loader-letter { color: #14B8A6 !important; font-family: 'Sora', sans-serif !important; font-weight: 900 !important; }
.loader { border-color: rgba(20,184,166,0.2) !important; border-top-color: #14B8A6 !important; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.sticky-wrapper.sticky { background: rgba(255,255,255,0.98) !important; backdrop-filter: blur(20px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.sticky-wrapper.sticky .header-top { display: none !important; }

/* FIX: Header top bar text - white on dark background */
.header-top,
.header-top .header-links,
.header-top .header-links ul,
.header-top .header-links ul li,
.header-top .header-links ul li a,
.header-top .header-links ul li i,
.header-top .social-links a,
.header-top .social-links .social-title {
    color: rgba(255,255,255,0.75) !important;
}
.header-top .header-links ul li a:hover,
.header-top .social-links a:hover {
    color: #5EEAD4 !important;
}

/* ============================================================
   FIX: ALL TITLES AND TEXT VISIBILITY
   Template overrides that hide our inline text colors
   ============================================================ */

/* Force section titles to be dark on light backgrounds */
.sec-title {
    font-family: 'Sora', sans-serif !important;
    font-weight: 900 !important;
    color: #1F2937 !important;
}

/* White titles inside dark sections */
#score .sec-title,
#sentinel .sec-title,
[style*="0F172A"] .sec-title {
    color: #FFFFFF !important;
}

/* Fix: Architecture box title - white on dark */
#platform h3,
#platform [style*="0F172A"] h3 {
    color: #FFFFFF !important;
}

/* Fix: Architecture layer card titles */
#platform [style*="0F172A"] h5 {
    color: #FFFFFF !important;
}

/* Fix: Architecture layer card text */
#platform [style*="0F172A"] p {
    color: rgba(255,255,255,0.6) !important;
}

/* Sub-title badge */
.sub-title {
    background: rgba(15,118,110,0.1) !important;
    color: #0F766E !important;
    padding: 6px 20px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    display: inline-block !important;
}

/* ============================================================
   BUTTONS - hover with lift + glow
   ============================================================ */
.th-btn {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 12px !important;
}
.th-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 36px rgba(15,118,110,0.4) !important;
}

/* ============================================================
   3D FEATURE CARDS - Scanner Engines, SENTINEL, etc.
   Elevated cards with depth, shadow, and hover animation
   ============================================================ */
.feature-card,
#engines .feature-card,
section .feature-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 36px !important;
    border: 1px solid #F0F0F0 !important;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 10px 24px rgba(0,0,0,0.06) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0F766E, #14B8A6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.1),
        0 8px 16px rgba(15,118,110,0.15) !important;
    border-color: rgba(20,184,166,0.4) !important;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Feature card title */
.feature-card h4 {
    color: #1F2937 !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
}

/* Feature card paragraph */
.feature-card p {
    color: #6B7280 !important;
}

/* ============================================================
   ARCHITECTURE LAYER CARDS (inside dark box)
   ============================================================ */
#platform [style*="border-radius: 16px"][style*="text-align: center"] {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#platform [style*="border-radius: 16px"][style*="text-align: center"]:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3) !important;
}

/* ============================================================
   SCORE PILLAR CARDS (dark section)
   ============================================================ */
#score [style*="border-radius: 16px"][style*="text-align: center"] {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(4px);
}

#score [style*="border-radius: 16px"][style*="text-align: center"]:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(20,184,166,0.2) !important;
    border-color: rgba(20,184,166,0.4) !important;
}

/* Score section titles must be white */
#score h5 { color: #FFFFFF !important; }
#score h2 { color: #FFFFFF !important; }

/* ============================================================
   AI AGENTS - circle icons with hover pulse
   ============================================================ */
#ai [style*="border-radius: 50%"][style*="width: 80px"] {
    transition: all 0.4s ease !important;
}

#ai [style*="padding: 32px"]:hover [style*="border-radius: 50%"][style*="width: 80px"] {
    transform: scale(1.12) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

#ai [style*="padding: 32px"] {
    transition: all 0.35s ease !important;
    border-radius: 20px;
}

#ai [style*="padding: 32px"]:hover {
    background: #F8FAFC !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
    border-radius: 20px;
}

#ai h5 { color: #1F2937 !important; }

/* ============================================================
   SENTINEL SECTION - cards with hover
   ============================================================ */
#sentinel [style*="border-radius: 16px"][style*="padding: 32px"] {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#sentinel [style*="border-radius: 16px"][style*="padding: 32px"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 40px rgba(139,92,246,0.2) !important;
    border-color: rgba(167,139,250,0.4) !important;
}

#sentinel h5 { color: #FFFFFF !important; }

/* ============================================================
   PRICING CARDS - 3D depth + hover
   ============================================================ */
#pricing [style*="border-radius: 20px"] {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#pricing [style*="border-radius: 20px"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12) !important;
}

/* Featured pricing card enhanced */
#pricing .col-lg-4:nth-child(2) [style*="border-radius: 20px"] {
    box-shadow: 0 20px 60px rgba(15,118,110,0.3) !important;
}

#pricing .col-lg-4:nth-child(2) [style*="border-radius: 20px"]:hover {
    transform: translateY(-12px) scale(1.06) !important;
    box-shadow: 0 28px 64px rgba(15,118,110,0.4) !important;
}

/* ============================================================
   HERO SCORE GAUGE - subtle float animation
   ============================================================ */
@keyframes sf-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#hero [style*="backdrop-filter"] {
    animation: sf-float 4s ease-in-out infinite;
}

/* Hero stats counter */
#hero .counter-card h2,
#hero h2[style*="color: #14B8A6"] {
    color: #14B8A6 !important;
}

/* ============================================================
   CTA SECTION - pulse effect on button
   ============================================================ */
@keyframes sf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

section[style*="linear-gradient(135deg, #0F766E"] .th-btn {
    animation: sf-pulse 2.5s infinite;
}

section[style*="linear-gradient(135deg, #0F766E"] .th-btn:hover {
    animation: none;
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3) !important;
}

/* ============================================================
   TAG CHIPS on engine cards
   ============================================================ */
.feature-card [style*="border-radius: 50px"][style*="font-size: 11px"] {
    transition: all 0.3s ease;
}

.feature-card:hover [style*="border-radius: 50px"][style*="font-size: 11px"] {
    transform: scale(1.05);
}

/* ============================================================
   FIX: BUTTONS - Kill template's ugly green glow/corner effect
   The Aior template adds ::before/::after pseudo-elements
   with a neon teal glow. We nuke all of it.
   ============================================================ */
.th-btn::before,
.th-btn::after,
.th-btn span::before,
.th-btn span::after,
a.th-btn::before,
a.th-btn::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Clean button base style */
.th-btn {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.th-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* ============================================================
   FIX: PRICING CARDS
   - Professional text must be readable (white on dark teal)
   - Button styles per card
   ============================================================ */

/* Professional card - force ALL text to be bright white */
#pricing .col-lg-4:nth-child(2) p,
#pricing .col-lg-4:nth-child(2) h3,
#pricing .col-lg-4:nth-child(2) li,
#pricing .col-lg-4:nth-child(2) [style*="font-size: 14px"] {
    color: rgba(255,255,255,0.9) !important;
}

#pricing .col-lg-4:nth-child(2) h3 {
    color: #FFFFFF !important;
}

#pricing .col-lg-4:nth-child(2) p[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(255,255,255,0.75) !important;
}

/* Check icons in Professional card */
#pricing .col-lg-4:nth-child(2) .fa-check {
    color: #5EEAD4 !important;
}

/* Starter "Get Started" button */
#pricing .col-lg-4:nth-child(1) .th-btn {
    background: #F3F4F6 !important;
    color: #374151 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
#pricing .col-lg-4:nth-child(1) .th-btn:hover {
    background: #E5E7EB !important;
    color: #1F2937 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* Professional "Request Demo" button */
#pricing .col-lg-4:nth-child(2) .th-btn {
    background: #FFFFFF !important;
    color: #0F766E !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}
#pricing .col-lg-4:nth-child(2) .th-btn:hover {
    background: #F0FDFA !important;
    color: #0F766E !important;
    box-shadow: 0 8px 28px rgba(15,118,110,0.25) !important;
}

/* Enterprise "Contact Sales" button */
#pricing .col-lg-4:nth-child(3) .th-btn {
    background: #0F172A !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(15,23,42,0.2) !important;
}
#pricing .col-lg-4:nth-child(3) .th-btn:hover {
    background: #1E293B !important;
    box-shadow: 0 8px 24px rgba(15,23,42,0.3) !important;
}

/* Hero buttons fix */
#hero .th-btn {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
#hero .th-btn:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.3) !important;
}

/* Nav header button */
.header-button .th-btn {
    padding: 10px 24px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.header-button .th-btn:hover {
    box-shadow: 0 8px 20px rgba(15,118,110,0.3) !important;
}

/* CTA section button */
section[style*="linear-gradient(135deg, #0F766E"] .th-btn {
    background: #FFFFFF !important;
    color: #0F766E !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}
section[style*="linear-gradient(135deg, #0F766E"] .th-btn:hover {
    background: #F0FDFA !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25) !important;
}

/* ============================================================
   SLIDE PANELS (DPO Pattern - Right Sidebar)
   ============================================================ */
.sf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.sf-overlay.open { opacity: 1; pointer-events: all; }

.sf-panel {
    position: fixed;
    top: 0;
    right: -660px;
    width: 640px;
    max-width: 94vw;
    height: 100vh;
    background: #fff;
    z-index: 9010;
    overflow-y: auto;
    box-shadow: -8px 0 48px rgba(0,0,0,0.25);
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-panel.open { right: 0; }

.sf-panel-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0F766E, #134E4A);
    color: #fff;
    padding: 32px 36px 28px;
    z-index: 5;
}
.sf-panel-header h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sf-panel-header p { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; }
.sf-panel-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sf-panel-close:hover { background: rgba(255,255,255,0.25); }

.sf-panel-body {
    padding: 36px;
    color: #1F2937;
}
.sf-panel-body h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1F2937;
    margin-bottom: 12px;
}
.sf-panel-body p { line-height: 1.7; color: #4B5563; font-size: 15px; }
.sf-panel-body ul { padding-left: 20px; margin-top: 8px; }
.sf-panel-body li { margin-bottom: 10px; line-height: 1.6; color: #4B5563; font-size: 14px; }

/* Code blocks inside panels — override template pre { color: #666 } */
.sf-panel-body pre {
    color: #E2E8F0 !important;
    background: transparent !important;
    font-family: 'Courier New', Consolas, monospace !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    line-height: 1.6 !important;
}

/* Tag grid inside panels */
.sf-tag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sf-tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.sf-tag-critical { background: #FEE2E2; color: #DC2626; }
.sf-tag-high { background: #FEF3C7; color: #D97706; }
.sf-tag-medium { background: #DBEAFE; color: #2563EB; }
.sf-tag-info { background: #D1FAE5; color: #059669; }

/* Score table */
.sf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}
.sf-table th {
    background: #F8FAFC;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    border-bottom: 2px solid #E5E7EB;
}
.sf-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F3F4F6;
    color: #4B5563;
}
.sf-table tr:hover { background: #F8FAFC; }

/* Score bars */
.sf-score-bars { margin-top: 12px; }
.sf-score-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4B5563;
}
.sf-score-bar span {
    height: 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 30px;
    flex-shrink: 0;
}

/* Compliance card grid */
.sf-compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.sf-compliance-card {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}
.sf-compliance-card:hover { border-color: #14B8A6; box-shadow: 0 4px 12px rgba(20,184,166,0.1); }
.sf-compliance-card strong { font-size: 14px; color: #1F2937; display: block; margin-bottom: 4px; }
.sf-compliance-card p { font-size: 12px; color: #6B7280; margin: 0; }

/* Agent cards inside panel */
.sf-agent-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.sf-agent-card:hover { border-color: #14B8A6; transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.sf-agent-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.sf-agent-card h5 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; color: #1F2937; }
.sf-agent-card p { font-size: 14px; color: #6B7280; margin: 0; line-height: 1.6; }

/* "Learn more" link on cards */
.sf-learn-more {
    margin-top: 16px;
    color: #0F766E;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.sf-clickable:hover .sf-learn-more { color: #14B8A6; gap: 10px; }

/* Auto "Learn more" on all clickable cards without explicit link */
.sf-clickable::after {
    content: 'Learn more \2192';
    display: block;
    margin-top: 16px;
    color: #0F766E;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s ease;
}
.sf-clickable:hover::after { color: #14B8A6; letter-spacing: 0.5px; }
/* Hide auto when explicit sf-learn-more exists */
.sf-clickable:has(.sf-learn-more)::after { display: none; }

/* Deep dive button */
.sf-deep-dive-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid rgba(20,184,166,0.3);
    border-radius: 50px;
    color: #14B8A6;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.sf-deep-dive-btn:hover {
    background: rgba(20,184,166,0.1);
    border-color: #14B8A6;
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
    .sf-panel { width: 100%; max-width: 100vw; right: -100%; }
    .sf-compliance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    .hero-style6 h1 { font-size: 36px !important; }
    .hero-style6 .hero-text { font-size: 16px !important; }
    #pricing .col-lg-4:nth-child(2) > div { transform: none !important; }
    #hero [style*="backdrop-filter"] { animation: none; }
}

@media (max-width: 767px) {
    .hero-style6 h1 { font-size: 28px !important; }
    .btn-group { flex-direction: column; }
    .btn-group a { width: 100%; text-align: center; }
    .feature-card { padding: 24px !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .sticky-wrapper, #preloader, footer { display: none !important; }
}
