:root {
    --bg-color: #000000;
    --terminal-bg: #000000;
    --text-color: #c9d1d9;
    --accent-color: #58a6ff;
    --green-color: #2ea043;
    --red-color: #ff5f56;
    --border-color: #1a1a1a;
    --font-stack: 'Fira Code', 'Courier New', Courier, monospace;
}

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

body {
    background: linear-gradient(
        -45deg,
        #000000 0%,
        #1a0033 10%,
        #330066 20%,
        #660099 30%,
        #003366 40%,
        #006666 50%,
        #660033 60%,
        #990033 70%,
        #330033 80%,
        #000033 90%,
        #000000 100%
    );
    background-size: 600% 600%;
    animation: discoBackground 8s ease infinite;
    color: var(--text-color);
    font-family: var(--font-stack);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@keyframes discoBackground {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Security Overlay */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.security-box {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background-color: #000000;
    box-shadow: none;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.security-header {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
    letter-spacing: 2px;
}

.security-content p {
    margin-bottom: 1rem;
    color: #8b949e;
}

.math-question {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 1.5rem 0;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(201, 209, 217, 0.3);
}

.verification-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.security-input {
    background-color: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 10px;
    font-family: var(--font-stack);
    font-size: 1.1rem;
    text-align: center;
    width: 150px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.security-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.verify-btn {
    background: transparent;
    border: 1px solid var(--green-color);
    color: var(--green-color);
    padding: 10px 20px;
    font-family: var(--font-stack);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.verify-btn:hover {
    background-color: rgba(46, 160, 67, 0.1);
    box-shadow: 0 0 15px rgba(46, 160, 67, 0.4);
    text-shadow: 0 0 5px var(--green-color);
}

.status-text {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #8b949e;
    min-height: 1.2em;
}

.blur-content {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.5s ease;
}

.container {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.terminal-window {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 
        0 0 0 1px rgba(88, 166, 255, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(88, 166, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: discoGlow 3s ease-in-out infinite;
}

@keyframes discoGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(88, 166, 255, 0.3),
            0 8px 16px rgba(0, 0, 0, 0.4),
            0 16px 32px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(88, 166, 255, 0.2),
            0 0 80px rgba(88, 166, 255, 0.1);
    }
    33% {
        box-shadow: 
            0 0 0 1px rgba(255, 95, 86, 0.3),
            0 8px 16px rgba(0, 0, 0, 0.4),
            0 16px 32px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 95, 86, 0.2),
            0 0 80px rgba(255, 95, 86, 0.1);
    }
    66% {
        box-shadow: 
            0 0 0 1px rgba(46, 160, 67, 0.3),
            0 8px 16px rgba(0, 0, 0, 0.4),
            0 16px 32px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(46, 160, 67, 0.2),
            0 0 80px rgba(46, 160, 67, 0.1);
    }
}

/* Header */
.terminal-header {
    background-color: #000000;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
    color: #8b949e;
    font-weight: bold;
}

/* Navigation */
.terminal-nav {
    background-color: var(--terminal-bg);
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 15px;
    font-family: var(--font-stack);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-btn.active {
    background-color: rgba(88, 166, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Main Content */
.terminal-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.command-line {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.prompt {
    color: var(--green-color);
    font-weight: bold;
    margin-right: 10px;
}

.command {
    color: var(--accent-color);
}

/* Home Section */
.ascii-art {
    color: var(--accent-color);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .ascii-art {
        font-size: 1rem;
    }
}

.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

.sub-text {
    color: #8b949e;
    margin-top: 10px;
}

.system-msg {
    color: #8b949e;
    font-style: italic;
    font-size: 0.9rem;
}

/* About Section */
.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.comment {
    color: #8b949e;
    font-style: italic;
}

.skill-list {
    list-style-type: none;
    margin-left: 20px;
}

.skill-list li::before {
    content: "- ";
    color: var(--green-color);
}

/* Experience Section */
.job-entry {
    margin-bottom: 30px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    position: relative;
}

.job-entry::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--green-color);
    border-radius: 50%;
}

.job-header {
    margin-bottom: 10px;
}

.date {
    color: #8b949e;
    font-size: 0.9rem;
}

.role {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.company {
    color: var(--text-color);
    font-weight: bold;
}

/* Contact Section */
.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.terminal-form {
    margin-top: 15px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--green-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    font-family: var(--font-stack);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background-color: var(--green-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-stack);
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Footer */
.terminal-footer {
    background-color: #010409;
    padding: 5px 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #8b949e;
}

.status-bar {
    display: flex;
    justify-content: space-between;
}

/* Fixed Music Controls (Outside Terminal) */
.music-controls-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.music-control-btn {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--red-color);
    color: var(--red-color);
    padding: 8px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 95, 86, 0.2);
    width: 36px;
    height: 36px;
}

.music-control-btn:hover {
    background: rgba(255, 95, 86, 0.15);
    border-color: var(--red-color);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 95, 86, 0.4),
        0 0 40px rgba(255, 95, 86, 0.2);
    transform: scale(1.08);
}

.music-control-btn:active {
    transform: scale(0.95);
}

.music-control-btn.playing {
    background: rgba(46, 160, 67, 0.15);
    border-color: var(--green-color);
    color: var(--green-color);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(46, 160, 67, 0.3),
        0 0 40px rgba(46, 160, 67, 0.2);
    animation: musicPulse 2s ease-in-out infinite;
}

.music-control-btn.playing:hover {
    background: rgba(46, 160, 67, 0.25);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(46, 160, 67, 0.5),
        0 0 50px rgba(46, 160, 67, 0.3);
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(46, 160, 67, 0.3),
            0 0 40px rgba(46, 160, 67, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            0 0 35px rgba(46, 160, 67, 0.5),
            0 0 50px rgba(46, 160, 67, 0.3);
    }
}

.music-status {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transition: all 0.3s;
}

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

::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

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