/* Cyberpunk 2077 Inspired Styling */
:root {
    --primary-cyan: #00ffff;
    --primary-magenta: #ff0080;
    --primary-yellow: #ffff00;
    --accent-red: #ff0040;
    --accent-green: #00ff40;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --terminal-green: #00ff00;
    --warning-orange: #ff8000;
    --error-red: #ff4040;
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Matrix Background Effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.03) 0%, 
        rgba(255, 0, 128, 0.03) 50%, 
        rgba(255, 255, 0, 0.03) 100%);
    z-index: -1;
    animation: matrixShift 20s ease-in-out infinite;
}

@keyframes matrixShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

/* Hero Section */
.hero-section {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-bottom: 2px solid var(--primary-cyan);
    position: relative;
}

/* Sticky Divider Bar */
.sticky-divider {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-cyan) 20%,
        var(--primary-magenta) 50%,
        var(--primary-cyan) 80%,
        transparent 100%);
    z-index: 1000;
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: stickyGlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticky-divider.visible {
    opacity: 1;
}

@keyframes stickyGlow {
    0%, 100% {
        box-shadow: 0 0 15px var(--primary-cyan);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 25px var(--primary-magenta), 0 0 35px var(--primary-cyan);
        filter: brightness(1.2);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(0, 255, 255, 0.1) 100px
    );
    pointer-events: none;
}

/* Glitch Effect */
.glitch-container {
    position: relative;
    margin-bottom: 2rem;
}

.glitch {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    animation: glitch 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--primary-magenta);
    z-index: -2;
}

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

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

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    90% { transform: translate(2px, 2px); }
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.red {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Terminal Section */
.terminal-section {
    margin-bottom: 4rem;
}

.terminal {
    background: var(--bg-darker);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.terminal-header {
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--primary-cyan) 100%);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

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

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

.terminal-title {
    color: var(--bg-dark);
    font-weight: bold;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--terminal-green);
    font-weight: bold;
}

.command {
    color: var(--primary-cyan);
    margin-left: 0.5rem;
}

.terminal-output {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-cyan);
}

.log-entry {
    margin-bottom: 0.3rem;
}

.log-entry.classified { color: var(--accent-red); }
.log-entry.warning { color: var(--warning-orange); }
.log-entry.status { color: var(--accent-green); }

.file-listing {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.permissions { color: var(--text-muted); }
.filename { color: var(--primary-cyan); font-weight: bold; }
.comment { color: var(--text-muted); }

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Interactive Terminal Input */
.terminal-input {
    background: transparent;
    border: none;
    color: var(--primary-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: inherit;
    outline: none;
    width: 100%;
    margin-left: 0.5rem;
}

.terminal-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.terminal-input:focus::placeholder {
    opacity: 0.3;
}

.interactive-line {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 0.2rem 0;
}

.interactive-line:hover {
    background: rgba(0, 255, 255, 0.05);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    animation: matrixShake 0.5s ease-in-out;
}

.interactive-line:hover .terminal-input::placeholder {
    color: var(--primary-cyan);
    opacity: 1;
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes matrixShake {
    0%, 100% { transform: translateX(0) translateY(0); }
    10% { transform: translateX(-1px) translateY(-1px); }
    20% { transform: translateX(1px) translateY(1px); }
    30% { transform: translateX(-1px) translateY(1px); }
    40% { transform: translateX(1px) translateY(-1px); }
    50% { transform: translateX(-2px) translateY(0); }
    60% { transform: translateX(2px) translateY(0); }
    70% { transform: translateX(-1px) translateY(-1px); }
    80% { transform: translateX(1px) translateY(1px); }
    90% { transform: translateX(-1px) translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 5px var(--primary-cyan);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 15px var(--primary-cyan), 0 0 25px var(--primary-cyan);
        opacity: 0.8;
    }
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

/* Bio Section */
.bio-section {
    margin-bottom: 4rem;
}

.bio-content {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    padding: 2rem;
    line-height: 1.8;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-cyan);
    font-weight: bold;
}

.accent {
    color: var(--primary-magenta);
    font-weight: bold;
}

.domain {
    color: var(--primary-yellow);
    font-weight: bold;
    text-decoration: underline;
}

/* Operations Section */
.operations-section {
    margin-bottom: 4rem;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.operation-card {
    background: var(--bg-darker);
    border: 1px solid var(--primary-magenta);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.operation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.operation-card:hover::before {
    left: 100%;
}

.operation-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.operation-card h3 {
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--primary-cyan); font-weight: bold; }
.code-type { color: var(--text-secondary); }

.status-active { color: var(--accent-green); font-weight: bold; }
.status-maintained { color: var(--warning-orange); font-weight: bold; }
.status-production { color: var(--primary-magenta); font-weight: bold; }

.repo-link {
    display: inline-block;
    color: var(--primary-cyan);
    text-decoration: none;
    border: 1px solid var(--primary-cyan);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-top: auto;
    align-self: flex-start;
}

.repo-link:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.stat-card {
    background: var(--bg-darker);
    border: 1px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.github-stats {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Contact Section */
.contact-section {
    margin-bottom: 4rem;
}

.contact-terminal {
    background: var(--bg-darker);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Share Tech Mono', monospace;
}

.contact-line {
    margin-bottom: 1rem;
}

.contact-output {
    padding-left: 1rem;
    border-left: 2px solid var(--accent-green);
}

.connection {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.protocol { color: var(--text-muted); min-width: 40px; }
.address { color: var(--primary-cyan); min-width: 200px; }

.status {
    font-weight: bold;
    min-width: 100px;
}

.status.hijacked { color: var(--accent-red); }
.status.active { color: var(--accent-green); }
.status.encrypted { color: var(--primary-yellow); }

.contact-info {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--primary-cyan);
    padding: 2rem;
    text-align: center;
}

.disclaimer {
    margin-bottom: 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.disclaimer-line {
    margin-bottom: 0.5rem;
}

.tag {
    color: var(--primary-magenta);
    font-weight: bold;
}

.signature {
    margin-bottom: 2rem;
    font-style: italic;
}

.signature p:first-child {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.signature p:last-child {
    color: var(--primary-cyan);
    font-weight: bold;
}

.visitor-counter img {
    border-radius: 4px;
}

/* Visitor Badge Styling */
.visitor-badge-card {
    background: var(--bg-darker);
    border: 1px solid var(--primary-magenta);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.visitor-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.visitor-badge-card:hover::before {
    left: 100%;
}

.visitor-badge-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.visitor-badge-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Share Tech Mono', monospace;
}

.visitor-label {
    color: var(--primary-cyan);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visitor-count {
    color: var(--primary-magenta);
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    
    .container {
        padding: 1rem;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .connection {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .terminal-body {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-magenta);
}

/* Selection Styling */
::selection {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

::-moz-selection {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

/* Cyberpunk 2077 Icon System */
.cp-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin: 0 0.2em;
    position: relative;
    transform: translateY(-2px);
}

.cp-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Authentic PNG Icon Styling */
.cp-icon-img, .authentic-cp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
}

/* Icon hover effects */
.cp-icon:hover svg {
    filter: drop-shadow(0 0 8px var(--primary-cyan));
    transform: scale(1.1);
}

.cp-icon:hover .cp-icon-img,
.cp-icon:hover .authentic-cp-icon {
    filter: brightness(1.4) contrast(1.2) drop-shadow(0 0 8px var(--primary-cyan));
    transform: scale(1.1);
}

/* Section title icons - larger size */
.section-title .cp-icon {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5em;
}

/* Hero section icons */
.subtitle .cp-icon {
    width: 1.1em;
    height: 1.1em;
    margin: 0 0.3em;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* Operation card title icons */
.operation-card h3 .cp-icon {
    width: 1.3em;
    height: 1.3em;
    margin-right: 0.4em;
}

/* Contact info icons */
.contact-info .cp-icon {
    width: 1em;
    height: 1em;
    margin-right: 1.5em;
}

/* Icon color variations for different contexts */
.section-title .cp-icon svg {
    fill: var(--primary-cyan);
}

.operation-card h3 .cp-icon svg {
    fill: var(--primary-magenta);
}

.contact-info .cp-icon svg {
    fill: var(--accent-green);
}

.subtitle .cp-icon svg {
    fill: var(--primary-yellow);
}

.bio-content .cp-icon svg {
    fill: var(--primary-cyan);
}