/* ==========================================================================
   Extreme Power Down Mode Overrides (css/power-mode.css)
   Switches index.html and all companion pages into minimal CPU/GPU/RAM mode.
   ========================================================================== */

html.extreme-power-down {
    scroll-behavior: auto !important;
}

html.extreme-power-down *,
html.extreme-power-down *::before,
html.extreme-power-down *::after {
    animation: none !important;
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    will-change: auto !important;
}

/* Remove heavy background particle canvases, smoke, flames, floating widgets, and falling leaves */
html.extreme-power-down #antigravity-particles-canvas,
html.extreme-power-down .particles-bg,
html.extreme-power-down .flame-particle,
html.extreme-power-down .falling-leaf,
html.extreme-power-down .coffee-smoke,
html.extreme-power-down .hand-sideview-graphic,
html.extreme-power-down #nav-active-glow,
html.extreme-power-down #cha-widget-root,
html.extreme-power-down #jam-banner-btn,
html.extreme-power-down #audio-spotlight-overlay,
html.extreme-power-down #useful-tools-support-prompt,
html.extreme-power-down #preloader {
    display: none !important;
}

.power-media-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 0.82rem;
    text-align: center;
}

.writing-power-placeholder {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #141418;
    color: #cbd5e1;
    text-align: center;
}

.writing-power-load-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(79, 199, 255, 0.45);
    background: #1c2430;
    color: #4fc7ff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

/* Simplify main section wrappers and cards on index.html */
html.extreme-power-down body.bg {
    background: #060608 !important;
}

html.extreme-power-down .page-sec-wrapper {
    filter: none !important;
}

html.extreme-power-down .page-sec {
    background-color: #18181b !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

html.extreme-power-down #blood-donation.page-sec {
    background-color: #24171a !important;
}

html.extreme-power-down .nav-carousel-container {
    background: #101014 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Opaque dark fallbacks for modals, overlays, and popups */
html.extreme-power-down .interests-modal-backdrop,
html.extreme-power-down .hire-modal-backdrop,
html.extreme-power-down .cv-preview-modal,
html.extreme-power-down .services-detail-modal,
html.extreme-power-down .service-payment-modal,
html.extreme-power-down .edu-node-modal-backdrop,
html.extreme-power-down .pdf-images-modal-backdrop,
html.extreme-power-down .tool-selector-modal,
html.extreme-power-down .card-modal-overlay,
html.extreme-power-down .skill-project-modal-overlay,
html.extreme-power-down #toolFAQModal {
    background: rgba(10, 10, 14, 0.96) !important;
}

html.extreme-power-down .alphabet-date-popup {
    background: #141418 !important;
}

html.extreme-power-down .skill-tree-container.branches-visible::before {
    background: rgba(10, 14, 20, 0.85) !important;
}

/* Opaque fallbacks for translucent buttons/cards across companion pages */
html.extreme-power-down .home-button-T,
html.extreme-power-down .popup-button-T,
html.extreme-power-down .fullscreen-button-T,
html.extreme-power-down .category-btn,
html.extreme-power-down .home-btn,
html.extreme-power-down .back-btn,
html.extreme-power-down .scroll-btn,
html.extreme-power-down .dump-search-btn,
html.extreme-power-down .theme-toggle-btn,
html.extreme-power-down .headphone-toggle-btn,
html.extreme-power-down .learning-toggle-btn {
    background: #141416 !important;
}

html.extreme-power-down .category-btn.active {
    background: var(--accent-color, #ffdd00) !important;
    color: #000000 !important;
}

html.extreme-power-down .home-button-T:hover,
html.extreme-power-down .popup-button-T:hover,
html.extreme-power-down .fullscreen-button-T:hover {
    background: var(--accent-color, #ffdd00) !important;
    color: #000000 !important;
}

html.extreme-power-down body.light-theme .home-btn,
html.extreme-power-down body.light-theme .back-btn,
html.extreme-power-down body.light-theme .scroll-btn,
html.extreme-power-down body.light-theme .dump-search-btn,
html.extreme-power-down body.light-theme .theme-toggle-btn {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Ensure intro CTA buttons stay immediately visible without keyframe flight */
html.extreme-power-down .download-cv-container .cv-hire-btn,
html.extreme-power-down .projects-btn-wrapper {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Instant visibility for writing/education items without keyframe reveal delays */
html.extreme-power-down #certifications.stack-landing-active .edu-item .tooltip,
html.extreme-power-down #certifications.stack-landing-active .cert-item .tooltip.cert-btn {
    opacity: 1 !important;
}
