:root {
    --bg-color: #050508;
    --panel-bg: rgba(10, 11, 18, 0.6);
    --border-color: rgba(0, 242, 254, 0.15);
    --neon-blue: #00f2fe;
    --neon-purple: #4facfe;
    --neon-pink: #ff007f;
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
}


#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    transition: width 0.2s, height 0.2s;
}

#custom-cursor-blur {
    width: 30px;
    height: 30px;
    border: 1px solid var(--neon-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    opacity: 0.5;
}


#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

#word-matrix {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(0, 242, 254, 0.04);
    white-space: nowrap;
    user-select: none;
}


.system-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.glass-panel:hover::before {
    left: 125%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

h1, h2, h3, .mono-text {
    font-family: var(--font-mono);
}

.accent-text {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}


.view-section {
    display: none;
    opacity: 0;
}

.view-section.active {
    display: block;
    opacity: 1;
}


.auth-box {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.auth-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    color: white;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.3);
}

.system-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    width: 100%;
}

.system-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.error-log {
    color: var(--neon-pink);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-align: left;
    border-left: 2px solid var(--neon-pink);
    padding-left: 1rem;
    display: none;
    background: rgba(255, 0, 127, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.loader-sequence {
    display: none;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    color: #27c93f;
}

.loader-line {
    margin-bottom: 0.4rem;
    opacity: 0;
}


.explorer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.explorer-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.explorer-item:hover {
    transform: translateY(-4px);
    background: rgba(0, 242, 254, 0.03);
    border-color: var(--border-color);
}

.explorer-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.explorer-item.folder i { color: #e9a93a; }
.explorer-item.file i { color: #4facfe; }

.explorer-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
}

.explorer-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.nav-back-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-back-btn:hover {
    color: var(--neon-blue);
}


.record-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.metric-block {
    font-family: var(--font-mono);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.status-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #27c93f;
}

.type-container {
    min-height: 120px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-top: 2rem;
}


.terminal-block {
    background: #020204;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.git-log-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.commit-node {
    border-left: 2px solid var(--neon-purple);
    padding-left: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.commit-node::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    position: absolute;
    left: -5px;
    top: 4px;
}

.commit-sha { color: #f07178; }
.commit-msg { color: var(--text-main); }

.terminal-line {
    margin-top: 0.5rem;
    line-height: 1.5;
}
.term-prompt { color: var(--neon-blue); }
.term-out { color: var(--text-muted); }
.term-success { color: #27c93f; }


.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.code-card {
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.code-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.card-top {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-top i { color: var(--text-muted); }
.card-top .fa-cpp { color: #00599c; }
.card-top .fa-python { color: #3776ab; }
.card-top .fa-js { color: #f7df1e; }

.code-display {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    background: rgba(0,0,0,0.3);
}


.timeline-container {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
}

.timeline-node {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-node::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--neon-blue);
}

.timeline-year {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-log {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s;
}

.timeline-log:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 242, 254, 0.2);
}

.log-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.log-preview {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.log-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0px;
    line-height: 1.5;
    border-top: 0px solid rgba(255, 255, 255, 0.05);
    padding-top: 0;
}

.log-log-open .log-details {
    max-height: 200px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top-width: 1px;
}


.closure-block {
    min-height: 180px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.action-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.footer-branding {
    text-align: center;
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ripple {
    position: fixed;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple-out 0.8s ease-out forwards;
    z-index: 9998;
}

@keyframes ripple-out {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 120px; height: 120px; opacity: 0; border-color: var(--neon-purple); }
}

@media(max-width: 600px) {
    .record-metrics { grid-template-columns: 1fr; gap: 1rem; }
    .glass-panel { padding: 1.5rem; }
}

#word-matrix {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 3; 
    pointer-events: none;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 242, 254, 0.15);
    text-shadow: 0 0 6px rgba(0, 242, 254, 0.2);
    white-space: nowrap;
    user-select: none;
    will-change: transform, opacity;
}


.glass-panel {
    z-index: 5;
    position: relative;
}

.floating-word {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 242, 254, 0.25); 
    text-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}



@media screen and (max-width:768px){

    body{
        overflow-x:hidden;
        cursor:auto;
    }

    *{
        cursor:auto !important;
    }

    #custom-cursor,
    #custom-cursor-blur{
        display:none;
    }

    .system-container{
        width:100%;
        padding:20px 12px;
        justify-content:flex-start;
    }

    .glass-panel{
        padding:18px;
        border-radius:12px;
    }

    .panel-header{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        margin-bottom:20px;
    }

    .panel-header span{
        font-size:12px;
        word-break:break-word;
    }

    .auth-title{
        font-size:28px;
        letter-spacing:2px;
    }

    .auth-subtitle{
        font-size:14px;
        line-height:1.6;
    }

    .input-field{
        font-size:18px;
        padding:14px;
    }

    .system-btn{
        padding:14px;
        font-size:14px;
    }



    .explorer-layout{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .explorer-item{
        padding:18px 10px;
    }

    .explorer-item i{
        font-size:34px;
    }

    .explorer-name{
        font-size:13px;
    }

    .explorer-status{
        font-size:11px;
    }



    .record-metrics{
        grid-template-columns:1fr;
        gap:20px;
    }

    .metric-value{
        font-size:30px;
    }

    .check-item{
        font-size:14px;
    }


    .type-container,
    .closure-block{
        font-size:15px;
        line-height:1.8;
        word-break:break-word;
    }

    

    .cards-container{
        grid-template-columns:1fr;
    }

    .code-display{
        font-size:12px;
        white-space:pre-wrap;
        overflow-wrap:break-word;
    }

    

    .timeline-container{
        padding-left:20px;
    }

    .timeline-node::before{
        left:-17px;
    }

    .timeline-year{
        font-size:18px;
    }

    .log-header{
        font-size:12px;
    }

    .log-preview{
        font-size:15px;
    }

    .log-details{
        font-size:13px;
    }

    

    .terminal-block{
        padding:14px;
        overflow-x:auto;
    }

    .terminal-line{
        font-size:12px;
        white-space:pre-wrap;
        word-break:break-word;
    }



    .step-footer{
        flex-direction:column;
        gap:15px;
        align-items:stretch;
    }

    .step-footer .system-btn{
        width:100%;
    }

    .footer-branding{
        font-size:10px;
        letter-spacing:1px;
        padding-bottom:20px;
    }



    .floating-word{
        font-size:11px;
        opacity:.18;
    }

}




@media screen and (max-width:480px){

    .auth-title{
        font-size:22px;
    }

    .glass-panel{
        padding:15px;
    }

    .explorer-layout{
        grid-template-columns:1fr;
    }

    .metric-value{
        font-size:26px;
    }

    .terminal-line{
        font-size:11px;
    }

    .type-container,
    .closure-block{
        font-size:14px;
    }

    .timeline-year{
        font-size:16px;
    }

}