:root {
    --primary-color: #00ff9f; /* Neon Green */
    --bg-dark: #0a0b10;
    --term-bg: rgba(13, 16, 23, 0.95);
    --term-header: #1c1e26;
    --text-main: #e6e6e6;
    --text-dim: #9ba1b0;
    --git-branch: #ff79c6;
    --prompt-user: #00ff9f;
    --prompt-dir: #8be9fd;
    --code-bg: #282a36;
}

@keyframes terminalGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 159, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 159, 0.2); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 159, 0.1); }
}

body {
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 100px 20px 40px 20px;
    background: #0a0b10;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 159, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 233, 253, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

.terminal-window {
    background: var(--term-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 159, 0.2);
    animation: terminalGlow 4s infinite ease-in-out;
}

.terminal-header {
    background: var(--term-header);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 159, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control.close { background: rgba(255, 85, 85, 0.3); }
.control.minimize { background: rgba(241, 250, 140, 0.3); }
.control.maximize { background: rgba(80, 250, 123, 0.3); }


.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #a29bfe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title i {
    color: #fdcb6e;
}

.terminal-body {
    padding: 25px;
    font-size: 1.05rem;
    color: #f8fafc;
    line-height: 1.6;
    height: 550px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--term-header) transparent;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--term-header); border-radius: 3px; }

.prompt { color: var(--prompt-user); font-weight: bold; }
.prompt-dir { color: var(--prompt-dir); }
.prompt-git { color: var(--git-branch); }
.prompt-symbol { color: var(--primary-color); font-weight: bold; }
.command { color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); font-weight: 500; }
.output { margin-bottom: 25px; display: none; }

.neofetch {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.ascii-art {
    color: var(--primary-color);
    white-space: pre;
    font-size: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 0 5px rgba(23, 147, 209, 0.3);
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-item { color: var(--text-main); margin-bottom: 6px; }
.info-key { color: var(--primary-color); font-weight: bold; }

.matrix-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    border-left: 3px solid var(--primary-color);
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.matrix-link i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.matrix-link:hover { background: rgba(255, 255, 255, 0.2); }

.skills-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.pill {
    background: rgba(23, 147, 209, 0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(23, 147, 209, 0.3);
    transition: all 0.2s;
}
.pill:hover { background: rgba(23, 147, 209, 0.3); transform: translateY(-2px); }

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--primary-color);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; } }

.cv-highlight {
    margin-top: 40px;
    animation: fadeIn 1s ease-out;
}

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

.cv-btn {
    background: var(--primary-color);
    color: #0a0b10;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 255, 159, 0.3);
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseGlow 3s infinite ease-in-out;
}

.cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 159, 0.5);
    background: #00ff9f;
    filter: brightness(1.1);
}

.project-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 4px;
    padding: 15px;
    max-width: 500px;
    transition: all 0.3s;
}

.project-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.project-header {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 147, 209, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

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

.services-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    max-width: 600px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.service-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.info-container {
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
}

.info-box {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.links {
    display: none; /* Replaced by footer */
}

footer {
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-links a {
    color: var(--text-dim);
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 12px;
}

.static-cv-link {
    background: rgba(13, 16, 23, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 159, 0.2);
    transition: all 0.2s;
}

.static-cv-link:hover {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.lang-switch {
    position: static;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-main); border-color: var(--primary-color); }

@media (max-width: 768px) {
    body { padding-top: 100px; padding-left: 15px; padding-right: 15px; }
    .terminal-window { border-radius: 8px; }
    .terminal-header { padding: 8px 12px; }
    .neofetch { flex-direction: column; gap: 15px; align-items: center; text-align: center; }
    .top-nav { margin: 0; }
    .terminal-body { height: auto; max-height: 70vh; padding: 12px; font-size: 0.85rem; }
    .ascii-art { font-size: 0.5rem; line-height: 1; }
    .info-list { font-size: 0.8rem; display: inline-block; text-align: left; }
    .cv-btn { width: 100%; justify-content: center; padding: 10px 20px; font-size: 1rem; }
    .info-container { margin-top: 20px; }
    .info-box { padding: 10px 12px; gap: 8px; flex-direction: column; text-align: center; }
    .info-box i { font-size: 1rem; }
    .info-box p { font-size: 0.75rem; }
    .footer-links { gap: 20px; font-size: 1.5rem; }
    .lang-switch { top: 15px; right: 15px; }
    .lang-btn { padding: 6px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .ascii-art { display: none; }
    .terminal-body { font-size: 0.75rem; }
    .prompt, .prompt-git { font-size: 0.7rem; }
    .neofetch { margin-top: 10px; }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.back-link:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.contact-container {
    max-width: 500px;
    width: 100%;
    margin: 40px auto;
    animation: fadeIn 0.8s ease-out;
}

.phonebook-window {
    background: rgba(13, 16, 23, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 159, 0.2);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: terminalGlow 4s infinite ease-in-out;
}

.phonebook-header {
    background: linear-gradient(to bottom, rgba(0, 255, 159, 0.1), transparent);
    padding: 40px 20px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section h1 {
    margin: 15px 0 5px 0;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
}

.phonebook-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    opacity: 0.9;
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), #8be9fd);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.phonebook-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0a0b10;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn i {
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 159, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 255, 159, 0.3);
    transition: all 0.3s;
}

.action-btn span {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.action-btn.save-btn i {
    background: var(--primary-color);
    color: #0a0b10;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.4);
    animation: pulseGlow 2s infinite ease-in-out;
}

.action-btn.save-btn span {
    color: #fff;
    font-weight: 800;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 255, 159, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(0, 255, 159, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 255, 159, 0.4); }
}

.action-btn:hover i {
    background: var(--primary-color);
    color: #0a0b10;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.action-btn:hover span {
    color: #fff;
}

.phonebook-body {
    padding: 20px 0;
}

.info-group {
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group:hover {
    background: rgba(255, 255, 255, 0.02);
}

.info-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value a, .info-value span {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    word-break: break-all;
}

.info-value a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .phonebook-window { border-radius: 0; border-left: none; border-right: none; }
    .avatar-wrapper { width: 100px; height: 100px; }
    .profile-section h1 { font-size: 1.5rem; }
    .action-buttons { gap: 12px; }
    .action-btn i { width: 40px; height: 40px; font-size: 1.1rem; }
    .info-group { padding: 12px 20px; }
}
