/*
Theme Name: Jackson Themes
Theme URI: https://example.com/jackson-themes
Author: Jackson William Davies
Author URI: https://example.com
Description: A custom WordPress theme based on "The Royal Laboratory" design concept.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jackson-themes
*/

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A31F34;
}

/* Tech Grid Background */
.tech-grid {
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Robotic HUD Borders */
.hud-card {
    position: relative;
    background: rgba(15, 15, 17, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* The Bracket Corners */
.hud-card::before,
.hud-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    z-index: 2;
}

.hud-card::before {
    top: -1px;
    left: -1px;
    border-top-color: #555;
    border-left-color: #555;
}

.hud-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom-color: #555;
    border-right-color: #555;
}

.hud-card:hover {
    border-color: #A31F34;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(163, 31, 52, 0.2);
}

.hud-card:hover::before,
.hud-card:hover::after {
    width: 100%;
    height: 100%;
    border-color: #A31F34;
}

/* Scanning Line Animation */
.scan-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #A31F34, transparent);
    position: absolute;
    top: 0;
    left: 0;
    animation: scan 3s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Research File Folder Tab */
.file-tab {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}