/* Proservability Global CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --brand-50: #f0fbfb;
    --brand-100: #dcf5f6;
    --brand-200: #beebee;
    --brand-300: #90dbde;
    --brand-400: #5bc0c5;
    --brand-500: #3ea3a9;
    --brand-600: #34868c;
    --brand-700: #2f6e73;
    --brand-800: #2c5b60;
    --brand-900: #284e52;
    --brand-950: #142f33;
    
    --bg-dark: #0b0f19;
    --bg-card: #0d1321;
    --bg-card-border: rgba(91, 192, 197, 0.1);
    --text-main: #f1f5f9;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-500);
}

/* Glow Effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(91, 192, 197, 0.12);
    transition: box-shadow 0.3s ease;
}
.glow-effect:hover {
    box-shadow: 0 0 30px rgba(91, 192, 197, 0.22);
}
.glow-effect-heavy {
    box-shadow: 0 0 40px rgba(91, 192, 197, 0.3);
}

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

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Interactive Card Transitions */
.hover-card-grow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.hover-card-grow:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 192, 197, 0.4);
    box-shadow: 0 10px 30px -10px rgba(91, 192, 197, 0.15);
}

/* Tech-Grid Utility */
.tech-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

/* ==========================================================================
   Light Mode Theme Overrides (High Contrast & Readability)
   ========================================================================== */

/* Base Styles */
html.light-mode,
html.light-mode body {
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #1e293b !important;
}

/* Global Section Backgrounds */
html.light-mode section {
    background-color: #f8fafc !important;
    background-image: none !important;
    border-color: #e2e8f0 !important;
}

/* Global Background classes override */
html.light-mode .bg-slate-950,
html.light-mode .bg-slate-900,
html.light-mode .bg-[#0b0f19],
html.light-mode .bg-slate-950\/80,
html.light-mode .bg-slate-950\/60,
html.light-mode .bg-slate-950\/20,
html.light-mode .bg-[#0b0f19]\/80 {
    background-color: #ffffff !important;
    background-image: none !important;
}

html.light-mode .bg-slate-900\/50,
html.light-mode .bg-slate-900\/40,
html.light-mode .bg-slate-900\/30 {
    background-color: #f1f5f9 !important;
}

html.light-mode .bg-[#0d1321],
html.light-mode .bg-[#0b0f19] {
    background-color: #f8fafc !important;
}

html.light-mode header {
    background-color: rgba(248, 250, 252, 0.8) !important;
    border-color: #cbd5e1 !important;
}

html.light-mode footer {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

html.light-mode #strategy-bar {
    background-color: #ffffff !important;
    border-color: rgba(91, 192, 197, 0.2) !important;
}

/* Navigation placeholder flash fix */
html.light-mode .h-16.bg-\[\#0b0f19\] {
    background-color: #f8fafc !important;
}

/* Text color overrides */
html.light-mode .text-white,
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode .font-bold.text-white {
    color: #0f172a !important;
}

html.light-mode .text-slate-100 {
    color: #1e293b !important;
}

html.light-mode .text-slate-200,
html.light-mode .text-slate-300,
html.light-mode .text-slate-400 {
    color: #334155 !important;
}

html.light-mode .text-slate-500,
html.light-mode .text-slate-600 {
    color: #64748b !important;
}

/* Card overrides: SRE Tipping Point cards on Homepage */
html.light-mode #tipping-point .grid > div {
    background-color: #ffffff !important;
    background-image: none !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}
html.light-mode #tipping-point .grid > div h3 {
    color: #0f172a !important;
}
html.light-mode #tipping-point .grid > div p,
html.light-mode #tipping-point .grid > div ul,
html.light-mode #tipping-point .grid > div li {
    color: #334155 !important;
}
html.light-mode #tipping-point .grid > div strong {
    color: #0f172a !important;
}
html.light-mode #tipping-point .grid > div .text-red-400\/80 {
    color: #b91c1c !important; /* high contrast dark red */
}
html.light-mode #tipping-point .grid > div .text-amber-400\/80 {
    color: #d97706 !important; /* high contrast dark amber */
}
html.light-mode #tipping-point .grid > div .text-brand-400 {
    color: #0d9488 !important; /* high contrast teal */
}

/* Card 3: The Optimized OSS Sweet Spot Highlight (Tipping Point Option C) */
html.light-mode #tipping-point .grid > div:last-child {
    background-image: linear-gradient(to bottom, rgba(91, 192, 197, 0.08), #ffffff) !important;
    background-color: #ffffff !important;
    border-color: rgba(91, 192, 197, 0.5) !important;
}
html.light-mode #tipping-point .grid > div:last-child h3,
html.light-mode #tipping-point .grid > div:last-child strong {
    color: #115e59 !important; /* dark teal */
}
html.light-mode #tipping-point .grid > div:last-child p,
html.light-mode #tipping-point .grid > div:last-child ul,
html.light-mode #tipping-point .grid > div:last-child li {
    color: #134e4a !important;
}

/* SRE Callout Section */
html.light-mode #tipping-point .bg-slate-950.border-slate-800 {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html.light-mode #tipping-point .bg-slate-950.border-slate-800 h3 {
    color: #0f172a !important;
}
html.light-mode #tipping-point .bg-slate-950.border-slate-800 p {
    color: #334155 !important;
}

/* Services page cards overrides */
html.light-mode #offerings .grid > div,
html.light-mode #offerings .hover-card-grow {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
html.light-mode #offerings .grid > div h3,
html.light-mode #offerings .grid > div span {
    color: #0f172a !important;
}
html.light-mode #offerings .grid > div p,
html.light-mode #offerings .grid > div ul,
html.light-mode #offerings .grid > div li {
    color: #334155 !important;
}

/* Syllabus page cards overrides */
html.light-mode #curriculum .grid > div {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
html.light-mode #curriculum .grid > div h3,
html.light-mode #curriculum .grid > div h4 {
    color: #0f172a !important;
}
html.light-mode #curriculum .grid > div p,
html.light-mode #curriculum .grid > div ul,
html.light-mode #curriculum .grid > div li {
    color: #334155 !important;
}

/* Calculator page inputs & outputs overrides */
html.light-mode #calculator .bg-slate-900\/50,
html.light-mode #calculator .bg-slate-950\/80 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
html.light-mode #calculator h2,
html.light-mode #calculator h3,
html.light-mode #calculator label,
html.light-mode #calculator span {
    color: #0f172a !important;
}
html.light-mode #calculator p {
    color: #334155 !important;
}
html.light-mode #calculator #out-setup {
    color: var(--brand-600) !important;
}
html.light-mode #calculator #out-disk {
    color: #0f172a !important;
}
html.light-mode #calculator #out-savings {
    color: #059669 !important; /* dark green savings */
}
html.light-mode #calculator #cost-saas {
    color: #dc2626 !important;
}
html.light-mode #calculator #cost-victoriametrics {
    color: #059669 !important;
}
html.light-mode #calculator .bg-slate-900\/50.p-3 {
    background-color: #f8fafc !important;
}

/* Contact Page form overrides */
html.light-mode #contact .bg-gradient-to-tr {
    background-image: linear-gradient(to top right, #ffffff, rgba(91, 192, 197, 0.08)) !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
html.light-mode #contact h3,
html.light-mode #contact label {
    color: #0f172a !important;
}
html.light-mode #contact p {
    color: #334155 !important;
}

/* Form controls (inputs, select, textarea) */
html.light-mode select,
html.light-mode input[type="text"],
html.light-mode input[type="email"],
html.light-mode textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.light-mode select:focus,
html.light-mode input[type="text"]:focus,
html.light-mode input[type="email"]:focus,
html.light-mode textarea:focus {
    border-color: var(--brand-500) !important;
}
html.light-mode ::placeholder {
    color: #94a3b8 !important;
}

/* Global Border overrides */
html.light-mode .border-slate-800,
html.light-mode .border-slate-800\/80,
html.light-mode .border-slate-700,
html.light-mode .border-slate-900,
html.light-mode .border-slate-900\/60 {
    border-color: #e2e8f0 !important;
}

/* Brand backgrounds & overlays */
html.light-mode .bg-brand-950\/40 {
    background-color: rgba(91, 192, 197, 0.08) !important;
}
html.light-mode .bg-brand-950\/20 {
    background-color: rgba(91, 192, 197, 0.04) !important;
}

html.light-mode .tech-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px) !important;
}

html.light-mode .bg-indigo-500\/10 {
    background-color: rgba(99, 102, 241, 0.08) !important;
}
html.light-mode .bg-brand-500\/10 {
    background-color: rgba(91, 192, 197, 0.08) !important;
}
html.light-mode .bg-emerald-500\/10 {
    background-color: rgba(16, 185, 129, 0.08) !important;
}

html.light-mode .bg-gradient-to-b.from-brand-950\/40.to-slate-950 {
    background-image: linear-gradient(to bottom, rgba(91, 192, 197, 0.08), #ffffff) !important;
    border-color: rgba(91, 192, 197, 0.3) !important;
}

/* Preserve SRE Terminal styling in light mode */
html.light-mode .sre-terminal {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}
html.light-mode .sre-terminal .text-white,
html.light-mode .sre-terminal h4 {
    color: #ffffff !important;
}
html.light-mode .sre-terminal .text-slate-300 {
    color: #cbd5e1 !important;
}
html.light-mode .sre-terminal .text-slate-200 {
    color: #e2e8f0 !important;
}
html.light-mode .sre-terminal .text-slate-400 {
    color: #94a3b8 !important;
}
html.light-mode .sre-terminal .text-slate-500 {
    color: #64748b !important;
}
html.light-mode .sre-terminal .bg-brand-950\/20 {
    background-color: rgba(20, 47, 51, 0.4) !important;
    border-color: rgba(91, 192, 197, 0.1) !important;
}

/* Custom Scrollbar for Light mode */
html.light-mode .custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.light-mode .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
html.light-mode .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-500);
}

