@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;500;700&display=swap');

:root {
    --bg-dark: #050505;
    --panel-bg: rgba(10, 15, 20, 0.85); 
    --accent-cyan: #00f3ff;
    --accent-pink: #ff0055;
    --text-main: #e0e6ed;
    --text-dim: #5c6773;
    --border: 1px solid rgba(0, 243, 255, 0.2);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    height: 100vh;
    overflow: hidden;
}

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

#boot-sequence {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 14px;
    color: var(--accent-cyan);
    transition: opacity 0.5s ease-out;
}

.boot-line { margin-bottom: 5px; opacity: 0; animation: typeLine 0.1s forwards; }

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 60px 1fr;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    gap: 10px;
    padding: 20px;
    opacity: 0; 
    animation: fadeInUI 1s 3s forwards; 
}

header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--panel-bg);
    border: var(--border);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.status-bar {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    display: flex;
    gap: 20px;
}

.blink { animation: flash 1s infinite; }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

aside {
    background: var(--panel-bg);
    border: var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.profile-pic {
    width: 100px;
    height: 100px;
    background: #111;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 2rem;
}

nav button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    width: 100%;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid transparent;
}

nav button:hover, nav button.active {
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
    border-left: 2px solid var(--accent-cyan);
    padding-left: 25px;
    text-shadow: 0 0 8px var(--accent-cyan);
}

main {
    background: var(--panel-bg);
    border: var(--border);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

main::-webkit-scrollbar { width: 8px; }
main::-webkit-scrollbar-track { background: #000; }
main::-webkit-scrollbar-thumb { background: var(--accent-cyan); }

.glitch-wrapper { position: relative; display: inline-block; }
.glitch {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--text-main);
}

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

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

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

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 5px, 0); }
    5% { clip: rect(76px, 9999px, 89px, 0); }
    100% { clip: rect(34px, 9999px, 12px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(55px, 9999px, 2px, 0); }
    5% { clip: rect(12px, 9999px, 86px, 0); }
    100% { clip: rect(9px, 9999px, 21px, 0); }
}

.section-content { display: none; animation: fadeIn 0.5s ease; }
.section-content.active { display: block; }

h2 { color: var(--accent-cyan); border-bottom: 1px solid var(--accent-cyan); padding-bottom: 10px; margin-bottom: 20px; }
p { margin-bottom: 15px; color: #aab; }

.thm-card {
    background: none; 
    border: none;
    padding: 0;
    box-shadow: none;
    max-width: 650px; 
    margin-top: 10px;
}

.thm-card iframe {
    width: 100%;
    height: 120px; 
    border: none;
    display: block;
}

.skills-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    padding: 5px 15px;
    border: 1px solid var(--accent-cyan);
    font-size: 0.9rem;
}

.term-widget {
    background: #000;
    padding: 15px;
    border-left: 3px solid var(--accent-cyan);
    font-family: 'Courier New', Courier, monospace;
    margin-top: 20px;
}
.term-line::before { content: "root@kali:~/projects# "; color: var(--accent-pink); }

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

@media (max-width: 768px) {
    .dashboard { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 0; }
    aside { flex-direction: row; overflow-x: auto; padding: 10px; }
    .profile-pic { display: none; }
    main { padding: 20px; }
}