/* Hacker Theme CSS - Cyberpunk Aesthetic with Multi-Color Scheme */

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

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

body {
    background: #0b0d13;
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Matrix Background - Subtle */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.10;
    z-index: -2;
    pointer-events: none;
    display: block;
}

/* Scanlines - Very Subtle */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 65, 0.02) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    display: none;
}

/* Main Container */
.hacker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Terminal Window */
.terminal-window {
    background: #0b0d13;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    backdrop-filter: none;
}

.terminal-prompt {
    color: #00ff41;
    font-size: 14px;
    margin-bottom: 10px;
}

.lang-switch a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switch a:hover,
.lang-switch .active {
    color: #00ff41;
}

/* Language switcher text distinct on black terminal */
.terminal-window .lang-switch a {
    color: #ff1493; /* distinct text color on black background */
}
.terminal-window .lang-switch a:hover,
.terminal-window .lang-switch .active {
    color: #00ff41;
}

/* Language switcher: green-pink gradient, left-tilted */
.lang-terminal {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00c853 0%, #ff4081 100%);
    color: #fff;
    transform: skew(-8deg);
    box-shadow: 0 0 12px rgba(255, 64, 129, 0.35), 0 0 8px rgba(0, 200, 83, 0.25);
}

.lang-terminal .lang-switch,
.lang-terminal a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.lang-terminal .lang-switch a.active {
    text-decoration: underline;
}

.lang-terminal .translate.glitch-text {
    color: #fff;
}

/* Avatar Section with Multi-Color Gradient */
.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0 !important;
}

.neon-border {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #00ff41, #ff1493, #00bfff, #8a2be2, #00ff41);
    animation: pulse-multicolor 3s infinite;
    width: 110px !important;
    height: 110px !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.hacker-avatar {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

/* Generic avatar image class used across listing pages */
.avatar-img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

@media (max-width: 480px) {
    .neon-border,
    .hacker-avatar,
    .avatar-img {
        width: 96px !important;
        height: 96px !important;
    }
}

@keyframes pulse-multicolor {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
        transform: scale(1);
    }
    25% { 
        box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
        transform: scale(1.01);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
        transform: scale(1.02);
    }
    75% { 
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
        transform: scale(1.01);
    }
}

/* Title with Multi-Color Glow */
.hacker-title {
    text-align: center;
    margin: 15px 0 !important;
}

.hacker-title h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem !important;
    color: #e5e7eb;
    margin: 0;
    letter-spacing: 2px;
}

@keyframes title-glow {
    0%, 100% { 
        text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    }
    33% { 
        text-shadow: 0 0 10px #ff1493, 0 0 20px #ff1493, 0 0 30px #ff1493;
    }
    66% { 
        text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff;
    }
}

/* Navigation with Multi-Color Scheme */
.hacker-nav-container {
    background: #0b0d13;
    border: 1px solid #222;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.terminal-header {
    background: transparent;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    color: #888;
    font-size: 14px;
}

.hacker-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

.hacker-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #222;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

/* Unified hover/active for minimal theme */
.hacker-nav-link:hover,
.hacker-nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: #444;
    color: #ffffff;
}

.nav-icon {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.hacker-nav-link:hover .nav-icon,
.hacker-nav-link.active .nav-icon {
    filter: brightness(1);
}

/* Terminal Prompt */
.terminal-prompt {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.prompt-text {
    color: #00ff41;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Profile Text Readability - Enhanced */
.terminal-content {
    background: transparent;
    border: none;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: none;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    line-height: 1.8;
    background: transparent;
}

.code-line {
    display: flex;
    margin: 8px 0;
}

.line-number {
    color: #666;
    margin-right: 15px;
    min-width: 30px;
    text-align: right;
    user-select: none;
}

.comment {
    color: #888;
}

.text-content {
    color: #ffffff !important;
    font-weight: 400;
}

/* Certifications Container */
.certifications-container {
    background: transparent;
    border: 1px solid #222;
    border-radius: 8px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1200px;
}

.cert-header {
    background: transparent;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #222;
}

.cert-header .terminal-dots {
    align-self: flex-start;
    margin-bottom: 5px;
}

.cert-header .terminal-title {
    margin-bottom: 5px;
}

.cert-header .command {
    color: #00ff41;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.cert-item {
    border-radius: 6px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    flex: 0 1 auto;
}

/* Individual Certification Colors */
.cert-item:nth-child(1) {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid #00ff41;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.2);
}

.cert-item:nth-child(1):hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

.cert-item:nth-child(2) {
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid #ff1493;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.2);
}

.cert-item:nth-child(2):hover {
    background: rgba(255, 20, 147, 0.2);
    border-color: #ff1493;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.cert-item:nth-child(2) a {
    color: #ff1493 !important;
}

.cert-item:nth-child(3) {
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid #00bfff;
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2);
}

.cert-item:nth-child(3):hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: #00bfff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.cert-item:nth-child(3) a {
    color: #00bfff !important;
}

.cert-item:nth-child(4) {
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid #8a2be2;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

.cert-item:nth-child(4):hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.cert-item:nth-child(4) a {
    color: #8a2be2 !important;
}

.cert-item:nth-child(5) {
    background: rgba(255, 105, 180, 0.08);
    border: 1px solid #ff69b4;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.cert-item:nth-child(5):hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.cert-item:nth-child(5) a {
    color: #ff69b4 !important;
}

.cert-item:nth-child(6) {
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid #00ff41;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.2);
}

.cert-item:nth-child(6):hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
}

.cert-item:nth-child(6) a {
    color: #00ff41 !important;
}

.cert-item:nth-child(7) {
    background: rgba(255, 20, 147, 0.08);
    border: 1px solid #ff1493;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.2);
}

.cert-item:nth-child(7):hover {
    background: rgba(255, 20, 147, 0.2);
    border-color: #ff1493;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.cert-item:nth-child(7) a {
    color: #ff1493 !important;
}

/* Contact Links Styling */
.contact-links {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 12px 15px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.contact-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: #00ff41 !important;
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px #00ff41;
}

/* Project Links Styles */
.project-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid #00ff41;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  transform: translateX(5px);
}

.project-icon {
  font-size: 24px;
  min-width: 30px;
}

.project-item a {
  color: #00ff41;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  flex: 1;
}

.project-item a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #00ff41;
}

.project-desc {
  color: #888;
  font-size: 12px;
  font-style: italic;
}

/* Empty State Styles */
.empty-state {
  padding: 20px;
}

.empty-message {
  color: #888;
  margin: 10px 0;
}

.error-text {
  color: #ff4444;
  font-weight: bold;
}

.coming-soon {
  color: #00ff41;
  margin: 10px 0;
}

/* Blog specific styles */
.blog-terminal {
    max-width: none;
    width: 100%;
}

.blog-content {
    max-height: none;
    overflow: visible;
}

.blog-header {
    text-align: center;
    margin-bottom: 20px;
}

.blog-header-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.blog-text {
    line-height: 1.6;
    color: #00ff00;
}

.blog-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.blog-image {
    text-align: center;
    margin: 20px 0;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transition: transform 0.3s ease;
}

.blog-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

.warning-box {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.warning-text {
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.highlight {
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.code-terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.code-header {
    background: rgba(0, 255, 0, 0.1);
    padding: 10px;
    border-bottom: 1px solid #00ff00;
}

.code-title {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.code-content {
    padding: 15px;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.code-content .comment {
    color: #888;
}

.code-content .keyword {
    color: #ff6b6b;
    font-weight: bold;
}

.code-content .string {
    color: #ffff00;
}

.code-content .number {
    color: #00ffff;
}

.code-content .boolean {
    color: #ff00ff;
}

.video-container {
    text-align: center;
    margin: 20px 0;
}

.blog-video {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.timeline-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #00ff00;
    border-radius: 5px;
}

.section-title {
    color: #00ffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timeline-item {
    margin: 10px 0;
    padding: 10px;
    border-left: 3px solid #00ff00;
    padding-left: 15px;
}

.timeline-date {
    color: #ffff00;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.cve-links {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid #00ffff;
    border-radius: 5px;
}

.link-item {
    margin: 10px 0;
}

.cve-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.cve-link:hover {
    color: #ffff00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
    text-decoration: underline;
}

.closing-text {
    text-align: center;
    font-style: italic;
    color: #00ffff;
    margin-top: 30px;
    padding: 20px;
    border-top: 2px solid #00ff00;
}
}

.cert-item:hover a {
    color: #ffffff !important;
}

/* Footer */
.footer-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    margin: 40px 0 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.footer-content {
    padding: 20px;
    text-align: center;
}

.glitch-footer {
    color: #888;
    margin-bottom: 15px;
}

.hacker-signature {
    color: #00ff41;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Simple Copyright */
.simple-copyright {
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 14px;
}

/* Custom Footer Message */
.custom-footer-message {
    margin: 20px auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    font-family: 'Fira Code', monospace;
    max-width: 400px;
}

.footer-emoji {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ff69b4;
    text-shadow: 0 0 10px #ff69b4;
}

.footer-text {
    font-size: 16px;
    font-weight: bold;
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    margin-bottom: 5px;
}

.footer-signature {
    font-size: 14px;
    color: #ff1493;
    text-shadow: 0 0 8px #ff1493;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hacker-container {
        padding: 12px;
    }

    .hacker-title h1 {
        font-size: 1.6rem;
    }

    .terminal-window {
        padding: 10px;
        margin: 10px 0;
    }

    .lang-terminal {
        transform: none;
        display: block;
        padding: 6px 10px;
    }

    .lang-terminal .lang-switch,
    .lang-terminal a {
        font-size: 14px;
    }

    .hacker-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
    }

    .hacker-nav-link {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .cert-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Legacy Styles for Compatibility */
.CVElink { color: #00ff41; text-decoration: none; }
.CVElink:hover { color: #4ecdc4; }
.translate { font-weight: bold; }
.list-container { margin: 20px 0; }
.list-page1 { list-style: none; padding: 0; }
.vulnList { margin: 10px 0; }
.code-block { background: rgba(0, 0, 0, 0.8); padding: 15px; border-radius: 6px; }
.yesPar { color: #00ff41; }
.keyword { color: #4ecdc4; font-weight: bold; }

/* Glitch Effect - Subtle */
.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

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

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, -1px); }
    40% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(-1px, -1px); }
}
