/* Main stylesheet which can import the partials above */

/* Import Base */
@import url('base/variables.css');
@import url('base/reset.css');
@import url('base/base.css');

/* Import Components */
@import url('components/card.css');
@import url('components/nav.css');
@import url('components/themeToggle.css');
@import url('components/search.css');
@import url('components/info.css');
@import url('components/social.css');
@import url('components/skills.css');
@import url('components/timeline.css');

/* Import Animations */
@import url('animations/fadeIn.css');
@import url('animations/scroll.css');
@import url('animations/spotlight.css');

/* (Optionally, add any overrides or extra styles here) */

/* Light mode global overrides */
body.light {
    background-color: #e3f2fd;
    color: #000000;
}

body.light .card {
    background: rgba(49, 130, 206, 0.1);
}

body.light .nav-button {
    color: #000000;
}

body.light .nav-button.nav-active {
    color: #000000;
    border-left-color: #3182ce;
}

body.light .spotlight {
    background: radial-gradient(circle,
            rgba(49, 130, 206, 0.1) 10%, rgba(250, 250, 250, 0) 90%);
    box-shadow: 0 0 150px rgba(49, 130, 206, 0.048);
}

/* Force text to be black in light mode */
body.light,
body.light p,
body.light span,
body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6,
body.light a,
body.light li,
body.light button,
body.light input,
body.light input::placeholder,
body.light div {
    color: #000000 !important;
}

/* Highlighted text styles */
mark {
    padding: 5px 8px;
    border-radius: 6px;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    box-shadow: 0px 4px 10px rgba(0, 255, 255, 0.7);
    transition: all 0.3s ease-in-out;
    display: inline-block;
    transform: rotate(-2deg);
    animation: highlightPulse 1.5s infinite alternate;
}

mark.active-match {
    background-color: var(--sub-accent-color);
    color: var(--primary-bg);
    padding: 2px 4px;
    border-radius: 4px;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1) rotate(-2deg);
        box-shadow: 0px 4px 10px rgba(0, 255, 255, 0.7);
    }

    100% {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0px 6px 20px rgba(0, 255, 255, 1);
    }
}