:root {
    --bg-primary: #050505;
    --bg-secondary: #080808;
    --text-primary: #d1d5db;
    --text-heading: #ffffff;
    --border-color: rgba(0, 255, 65, 0.1);
    --card-bg: rgba(255, 255, 255, 0.015);
    --matrix-color: #00FF41;
    --scrollbar-bg: #050505;
    --scrollbar-thumb: #1a1a1a;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== Glassmorphism ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-card:hover {
    border-color: var(--matrix-color);
    background: rgba(0, 255, 65, 0.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 255, 65, 0.05);
    transform: translateY(-8px);
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 65, 0.05);
}

/* ===== Portfolio Items ===== */
.portfolio-item {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

/* ===== Modal System ===== */
#project-modal {
    transition: opacity 0.3s ease;
}

#project-modal.active {
    display: flex;
    opacity: 1;
}

#modal-content-container {
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#project-modal.active #modal-content-container {
    transform: scale(1);
}

/* ===== FAQ Accordion ===== */
.faq-toggle svg.active {
    transform: rotate(180deg);
}

/* ===== Background Logs ===== */
#bg-logs {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.4;
}

/* ===== Glitch / Cyberpunk Button ===== */
.btn-glitch {
    position: relative;
    transition: all 0.3s;
    background: transparent;
    z-index: 1;
    overflow: hidden;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--matrix-color);
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-glitch:hover::before {
    left: 0;
}

.btn-glitch:hover {
    color: var(--bg-primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

/* ===== Marquee Animation ===== */
.marquee-container {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-container:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== Utilities ===== */
.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background-color: var(--matrix-color);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-color);
}

/* Form Autofill Fix */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-secondary) inset !important;
    -webkit-text-fill-color: var(--matrix-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

#theme-toggle svg {
    display: none;
}