/* Neon Theme CSS with Cyberpunk Images */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=VT323&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --neon-pink: #ff0055;
    --neon-cyan: #00e5ff;
    --neon-purple: #bd00ff;
    --text-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

/* CRT Overlay Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.7;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 2px solid var(--neon-cyan);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(120%) brightness(80%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.9) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.terminal-text {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 40px;
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-left: 4px solid var(--neon-cyan);
    display: inline-block;
}

.btn-cyber {
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    color: var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--neon-cyan);
    overflow: hidden;
    transition: 0.5s;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-cyber:hover {
    color: #000;
    background: var(--neon-cyan);
    box-shadow: 0 0 50px var(--neon-cyan);
}

/* Protocols (Services) */
.protocols {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    color: var(--neon-purple);
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 10px var(--neon-purple);
}

.protocols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.protocol-card {
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    height: 250px;
    transition: transform 0.3s;
}

.protocol-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

.card-content {
    padding: 30px;
}

.protocol-card h3 {
    color: var(--neon-pink);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.protocol-card p {
    color: #aeaeae;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    line-height: 1.4;
}

/* Matrix (About) */
.matrix {
    padding: 100px 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, #050505, #111, #050505);
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.matrix-visual {
    position: relative;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

.matrix-visual img {
    width: 100%;
    display: block;
    filter: grayscale(100%) brightness(1.2);
}

.matrix-visual:hover img {
    filter: grayscale(0%);
}

.matrix-code h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--neon-cyan);
}

.stats-bar {
    margin-top: 40px;
}

.stat {
    margin-bottom: 20px;
}

.stat .label {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--neon-pink);
    margin-bottom: 5px;
}

.bar-container {
    width: 100%;
    height: 10px;
    background: #222;
    border: 1px solid #444;
}

.bar {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Archives (Projects) */
.archives {
    padding: 100px 0;
    background: #080808;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.archive-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.archive-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.folder-icon {
    font-size: 2.5rem;
}

.folder-info h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.folder-info p {
    color: #666;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.archive-item:hover .folder-info p {
    color: var(--neon-cyan);
}

/* Uplink (Contact) */
.uplink {
    padding: 100px 0;
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.terminal-header {
    background: #222;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: 10px;
    font-family: monospace;
    color: #aaa;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 30px;
    font-family: 'VT323', monospace;
}

.cmd-line {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
}

.prompt {
    color: var(--neon-cyan);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 180px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    width: 100%;
    padding: 5px 0;
}

.terminal-input:focus {
    outline: none;
}

.btn-execute {
    background: var(--neon-pink);
    color: #fff;
    border: none;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    padding: 10px 30px;
    margin-top: 20px;
    width: 100%;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-execute:hover {
    background: #d40045;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .protocols-grid,
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .matrix-visual {
        order: -1;
        margin-bottom: 30px;
    }
}

/* --- New Animations & Effects --- */

/* 1. Neon Flicker */
@keyframes neon-flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px var(--neon-pink),
            0 0 80px var(--neon-pink),
            0 0 90px var(--neon-pink),
            0 0 100px var(--neon-pink),
            0 0 150px var(--neon-pink);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

.neon-text {
    animation: neon-flicker 1.5s infinite alternate;
}

/* 2. Typewriter Effect */
.typewriter {
    overflow: hidden;
    /* Ensures the content is not revealed until the animation */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto;
    /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em;
    /* Adjust as needed */
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
}

/* The typing effect */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* The typewriter cursor effect */
@keyframes blink-caret {

    from,
    to {
        border-right-color: transparent
    }

    50% {
        border-right-color: var(--neon-cyan);
    }
}

/* 3. Enhanced Card Glow */
.protocol-card::before,
.archive-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.protocol-card:hover::before,
.archive-item:hover::before {
    opacity: 1;
}

/* 4. Glitch Button Hover */
.btn-cyber:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--bg-color);
    background: var(--neon-cyan);
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* 5. Comprehensive Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-white);
}

.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 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-3 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(25px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(61px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(13px, 9999px, 34px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 2px, 0);
    }

    80% {
        clip: rect(54px, 9999px, 12px, 0);
    }

    100% {
        clip: rect(18px, 9999px, 49px, 0);
    }
}

@keyframes glitch-anim-3 {
    0% {
        clip: rect(96px, 9999px, 16px, 0);
    }

    20% {
        clip: rect(8px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(44px, 9999px, 98px, 0);
    }

    80% {
        clip: rect(67px, 9999px, 88px, 0);
    }

    100% {
        clip: rect(34px, 9999px, 13px, 0);
    }
}

/* User_Feedback (Testimonials) */
.feedback {
    padding: 100px 0;
    position: relative;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feedback-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.feedback-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.glitch-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    z-index: 1;
    pointer-events: none;
}

.feedback-card:hover .glitch-border {
    animation: glitch-anim-border 0.5s infinite;
    border-color: var(--neon-pink);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    background-size: cover;
}

.avatar-1 {
    background-image: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=80');
}

.avatar-2 {
    background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=100&q=80');
}

.avatar-3 {
    background-image: url('https://images.unsplash.com/photo-1527980965255-d3b416303d12?auto=format&fit=crop&w=100&q=80');
}

.feedback-text {
    color: #ccc;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-style: italic;
}

.user-id {
    display: block;
    color: var(--neon-purple);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-align: right;
}

/* Data_Dumps (Blog) */
.data-dumps {
    padding: 100px 0;
    position: relative;
}

.dumps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dump-card {
    background: #050505;
    border: 1px solid #222;
    padding: 24px;
    position: relative;
    transition: 0.3s;
}

.dump-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.hex-bg {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l10 6v8l-10 6-10-6V8z' fill='none' stroke='%23333' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.dump-date {
    display: block;
    font-family: 'VT323', monospace;
    color: var(--neon-pink);
    margin-bottom: 10px;
}

.dump-card h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.dump-card p {
    color: #888;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.btn-read {
    display: inline-block;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.btn-read:hover {
    border-color: var(--neon-cyan);
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid var(--neon-cyan);
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--neon-purple);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-white);
    opacity: 0.7;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-white);
    opacity: 0.6;
    transition: 0.3s;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
    opacity: 1;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 20px;
    color: #444;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}