
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: #00ff41;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: #00ff41;
    color: #000;
}


#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}


.matrix-overlay {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}


.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.glitch {
    font-size: 3rem;
    font-weight: 700;
    color: #00ff41;
    text-shadow:
        0 0 10px #00ff41,
        0 0 20px #00ff41,
        0 0 40px #00ff41,
        0 0 80px #003b00;
    position: relative;
    display: inline-block;
    animation: flicker 4s infinite alternate;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-shift 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 60% 0);
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-shift2 2.5s infinite linear alternate-reverse;
    clip-path: inset(40% 0 0 0);
}

@keyframes glitch-shift {
    0%, 90% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, 2px); }
    98% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-shift2 {
    0%, 88% { transform: translate(0); }
    90% { transform: translate(2px, -1px); }
    93% { transform: translate(-3px, 2px); }
    96% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 10px #00ff41,
            0 0 20px #00ff41,
            0 0 40px #00ff41,
            0 0 80px #003b00;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.tagline {
    font-size: 1.1rem;
    color: #00cc33;
    margin-top: 15px;
    letter-spacing: 3px;
}

.typing {
    border-right: 2px solid #00ff41;
    animation: blink-caret 0.8s step-end infinite;
    display: inline-block;
    padding-right: 5px;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff41; }
}

.contact-bar {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #009926;
}

.contact-bar a {
    color: #00ff41;
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.contact-bar a:hover {
    text-shadow: 0 0 10px #00ff41;
}

.separator {
    margin: 0 12px;
    color: #004d00;
}


.matrix-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #003b00;
    border-bottom: 1px solid #003b00;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.matrix-nav a {
    color: #009926;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #003b00;
    border-radius: 2px;
    transition: all 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.matrix-nav a:hover {
    color: #00ff41;
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 8px #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

/* ===== CARDS ===== */
.card {
    background: rgba(0, 10, 0, 0.85);
    border: 1px solid #003b00;
    border-radius: 4px;
    padding: 35px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: #00ff41;
    box-shadow:
        0 0 15px rgba(0, 255, 65, 0.08),
        inset 0 0 15px rgba(0, 255, 65, 0.02);
}


.card h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.bracket {
    color: #004d00;
}

.card h3 {
    color: #00cc33;
    font-size: 1.05rem;
    margin: 18px 0 10px;
}

.card p {
    color: #00aa2a;
    font-size: 0.92rem;
}


blockquote {
    border-left: 3px solid #00ff41;
    padding: 12px 20px;
    margin-top: 20px;
    color: #009926;
    font-style: italic;
    background: rgba(0, 255, 65, 0.02);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.skill-item {
    padding: 12px 0;
}

.skill-name {
    display: block;
    font-size: 0.9rem;
    color: #00cc33;
    margin-bottom: 6px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: #001a00;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #003b00, #00ff41);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    animation: fillIn 1.5s ease-out;
}

@keyframes fillIn {
    from { width: 0 !important; }
}

.skill-level {
    font-size: 0.75rem;
    color: #006600;
}


.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 6px 0;
    color: #00aa2a;
    font-size: 0.9rem;
    border-bottom: 1px solid #001a00;
    transition: padding-left 0.3s, color 0.3s;
}

.tech-list li:hover {
    padding-left: 8px;
    color: #00ff41;
}

.prompt {
    color: #00ff41;
    margin-right: 8px;
    font-weight: bold;
}


.lang-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.lang-item {
    flex: 1;
    min-width: 180px;
    padding: 15px;
    border: 1px solid #003b00;
    border-radius: 3px;
    text-align: center;
    transition: border-color 0.3s;
}

.lang-item:hover {
    border-color: #00ff41;
}

.lang-name {
    display: block;
    font-size: 1.1rem;
    color: #00ff41;
    margin-bottom: 5px;
}

.lang-level {
    font-size: 0.8rem;
    color: #006600;
}


.timeline {
    border-left: 2px solid #003b00;
    padding-left: 25px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #00ff41;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff41;
}

.timeline-date {
    font-size: 0.8rem;
    color: #006600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content p {
    font-size: 0.88rem;
}


.experience-block {
    padding-bottom: 10px;
}

.date-tag {
    font-size: 0.8rem;
    color: #006600;
    margin-left: 10px;
}

.quote-small {
    margin-top: 15px;
    color: #006600;
    font-size: 0.85rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.project-card {
    border: 1px solid #003b00;
    padding: 20px;
    border-radius: 3px;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: #00ff41;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
}

.project-card h3 {
    margin-top: 0;
}

.tech-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: #00ff41;
    border: 1px solid #004d00;
    padding: 2px 10px;
    border-radius: 2px;
    margin-top: 10px;
    margin-right: 5px;
    letter-spacing: 1px;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #001a00;
    flex-wrap: wrap;
}

.cert-name {
    color: #00cc33;
    font-size: 0.95rem;
}

.cert-source {
    color: #006600;
    font-size: 0.82rem;
}


.cert-year {
    color: #004d00;
    font-size: 0.78rem;
    margin-left: auto;
}


footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #003b00;
    margin-top: 20px;
    color: #004d00;
    font-size: 0.85rem;
}

.green-glow {
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
}


.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #003b00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
    }

    .matrix-overlay {
        padding: 10px;
    }

    .card {
        padding: 22px;
    }

    .hero {
        padding: 50px 15px 30px;
    }

    .contact-bar {
        font-size: 0.78rem;
    }

    .separator {
        display: block;
        margin: 4px 0;
        visibility: hidden;
        height: 0;
    }

    .contact-bar span,
    .contact-bar a {
        display: block;
        margin: 3px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cert-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cert-year {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .matrix-nav a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
