:root {
    --bg-color: #0b0c10;
    --primary-color: #9b51e0;
    --secondary-color: #bb6bd9;
    --accent-color: #8e2de2;
    --glow-color: 155, 81, 224;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(31, 40, 51, 0.6);
    --border-color: rgba(var(--glow-color), 0.3);
    --header-height: 70px;
}

[data-theme="green"] {
    --primary-color: #00ff88;
    --secondary-color: #00cc6a;
    --accent-color: #008844;
    --glow-color: 0, 255, 136;
    --border-color: rgba(var(--glow-color), 0.3);
}

.btn-theme {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    transform: scale(1.2) rotate(15deg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid rgba(var(--glow-color), 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}


a {
    text-decoration: none;
    color: var(--primary-color);
}

#matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.purple-letter {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 600;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-height) 8% 0;
    gap: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text>* {
    animation: fadeInUp 0.8s backwards;
}

.hero-text h1 {
    animation-delay: 0.2s;
}

.hero-text .subtitle {
    animation-delay: 0.4s;
}

.hero-text .description {
    animation-delay: 0.6s;
}

.hero-buttons {
    animation-delay: 0.8s;
}

.hero-socials {
    animation-delay: 1s;
}

.hero-text {
    max-width: 600px;
}

.ready-text {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    font-weight: 400;
    min-height: 2.2rem;
}

#typing-effect::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-visual {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(var(--glow-color), 0.5);
    border: 5px solid var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.profile-logo {
    width: 110%;
    height: 110%;
    object-fit: cover;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.content-section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--glow-color), 0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card .project-image-placeholder,
.project-card .card-content {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

.project-card .card-content {
    background-color: var(--card-bg);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(var(--glow-color), 0.2);
}

.project-image-placeholder {
    height: 200px;
    background: linear-gradient(45deg, var(--bg-color), var(--card-bg));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.contact-icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.contact-icon-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease-in-out;
}

.contact-icon-box svg {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease-in-out;
}

.contact-link-text {
    position: absolute;
    bottom: -35px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: var(--card-bg);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.contact-icon-box:hover {
    color: var(--primary-color);
    transform: translateY(-8px);
}

.contact-icon-box:hover .contact-link-text {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin: 50px 8% 0;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}


@media (max-width: 992px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    .hero-buttons,
    .hero-socials {
        justify-content: center;
    }

    .logo-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-icons-wrapper {
        gap: 2.5rem;
    }
}

/* --- NEW FEATURES --- */

/* Custom Cursor */
body {
    cursor: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--secondary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    position: fixed;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

/* GitHub Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stats-container img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stats-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(var(--glow-color), 0.3);
}

/* Terminal Section */
.terminal-window {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #0c0c0c;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background-color: #2d2d2d;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111;
}

.terminal-header span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn-close {
    background-color: #ff5f56;
}

.btn-min {
    background-color: #ffbd2e;
}

.btn-max {
    background-color: #27c93f;
}

.terminal-title {
    color: #999;
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    color: #0f0;
}

.terminal-text {
    margin-bottom: 10px;
    line-height: 1.5;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #0f0;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
    min-width: 0;
}

.terminal-send-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 12px;
    margin-left: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.terminal-send-btn:hover {
    background: var(--secondary-color);
}

.terminal-send-btn:active {
    transform: scale(0.95);
}

.highlight {
    color: #ffbd2e;
}

.terminal-response {
    color: #ccc;
    margin-bottom: 15px;
}

/* Skills Section */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-box {
    margin-bottom: 25px;
}

.skill-box .title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.skill-bar {
    height: 8px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.skill-per {
    position: relative;
    display: block;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 6px;
    width: 0;
    /* Animated via JS */
    transition: width 1.5s ease-in-out;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--card-bg);
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-content h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media screen and (max-width: 600px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0;
    }
}

/* Contact Form */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(var(--bg-secondary-rgb), 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 1rem;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.form-btn:hover {
    box-shadow: 0 0 20px rgba(var(--glow-color), 0.4);
}

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #0b0c10;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.preloader-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-logo span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(var(--glow-color), 0.8);
}

@keyframes preloader-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.preloader-status {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.preloader-dots {
    display: inline-block;
    animation: dots-blink 1.2s step-start infinite;
}

@keyframes dots-blink {

    0%,
    100% {
        opacity: 1;
    }

    33% {
        opacity: 0;
    }

    66% {
        opacity: 0.5;
    }
}

.preloader-bar-wrapper {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.25s ease;
    box-shadow: 0 0 10px rgba(var(--glow-color), 0.7);
}

/* ============================
   SCROLL TO TOP BUTTON
   ============================ */
#scroll-top-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    box-shadow: 0 0 20px rgba(var(--glow-color), 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 0 30px rgba(var(--glow-color), 0.9);
    transform: translateY(-4px);
}

#scroll-top-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================
   TERMINAL ENHANCEMENTS
   ============================ */
.terminal-error {
    color: #ff5f56;
    margin-bottom: 15px;
    font-weight: bold;
}

.terminal-warning {
    color: #ffbd2e;
    margin-bottom: 15px;
}

/* neofetch output */
.neofetch-output {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.neofetch-art {
    color: var(--primary-color);
    white-space: pre;
    line-height: 1.4;
    font-size: 0.75rem;
    text-shadow: 0 0 8px rgba(var(--glow-color), 0.6);
}

.neofetch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #ccc;
    padding-top: 2px;
}

.neofetch-info span {
    display: block;
    line-height: 1.6;
}

.neofetch-key {
    color: var(--primary-color);
    font-weight: bold;
}

.neofetch-separator {
    color: #555;
    margin-bottom: 4px;
}

/* ============================
   LEARNING STATUS
   ============================ */
.learning-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    padding: 10px 20px;
    background: rgba(var(--glow-color), 0.1);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    width: fit-content;
    animation: fadeInUp 0.8s backwards;
    animation-delay: 1.2s;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.status-text strong {
    color: var(--primary-color);
}

/* ============================
   GITHUB CONTRIBUTION
   ============================ */
.github-contribution {
    margin-top: 4rem;
    text-align: center;
}

.subsection-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.contribution-graph-wrapper {
    background: rgba(31, 40, 51, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.contribution-graph-wrapper img {
    max-width: 100%;
    filter: drop-shadow(0 0 5px rgba(var(--glow-color), 0.3));
}

.contribution-graph-wrapper::-webkit-scrollbar {
    height: 6px;
}

.contribution-graph-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* ============================
   EASTER EGG STYLES
   ============================ */
.hacking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hacking-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.hacking-text {
    color: #ff5f56;
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px #ff5f56;
    margin-bottom: 20px;
    text-align: center;
}

.hacking-progress {
    width: 300px;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.hacking-bar {
    height: 100%;
    width: 0%;
    background: #ff5f56;
    box-shadow: 0 0 10px #ff5f56;
}

/* Status & Admin Panel */
.status-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--glow-color), 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    width: fit-content;
    animation: fadeInUp 0.8s backwards 1.2s;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-text strong {
    color: var(--primary-color);
}

.admin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.admin-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.admin-modal h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.admin-modal input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    margin-bottom: 1rem;
    border-radius: 6px;
    outline: none;
}

.admin-modal input:focus {
    border-color: var(--primary-color);
}

.admin-modal-buttons {
    display: flex;
    gap: 10px;
}

/* --- ENHANCED GITHUB STATS --- */
.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(var(--glow-color), 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SYSTEM STATUS DASHBOARD --- */
.status-dashboard {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    background: rgba(var(--glow-color), 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px dashed var(--border-color);
}

.dashboard-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 200px;
}

.dashboard-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.dashboard-item .progress-container {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.dashboard-item .progress-fill {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.dashboard-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(29px, 9999px, 83px, 0); }
    15% { clip: rect(16px, 9999px, 91px, 0); }
    20% { clip: rect(2px, 9999px, 23px, 0); }
    /* ... add more for smoother glitch or keep it simple ... */
    100% { clip: rect(67px, 9999px, 98px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    /* ... */
    100% { clip: rect(12px, 9999px, 45px, 0); }
}

/* --- PASSWORD TESTER --- */
.tester-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tester-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.tester-input-wrapper input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: #fff;
    border-radius: 8px;
    font-family: monospace;
    outline: none;
}

.tester-input-wrapper button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
}

.strength-meter {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px currentColor;
}

.strength-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* --- REBOOT OVERLAY --- */
.reboot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.reboot-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reboot-content {
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.reboot-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.reboot-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.reboot-progress-wrapper {
    height: 2px;
    background: rgba(255,255,255,0.1);
    width: 100%;
}

.reboot-bar {
    height: 100%;
    width: 0;
    background: var(--primary-color);
}


