:root {
    --bg-dark: #0a0e1a;
    --bg-card: rgba(13, 17, 28, 0.75);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-green: #00ff88;
    --accent-cyan: #38BDF8;
    --accent-pink: #ff00ff;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --font-mono: 'Courier New', Courier, monospace;
    --font-cyber: 'Orbitron', sans-serif;
    --font-clean: 'Rajdhani', sans-serif;
    --glass-bg: rgba(13, 17, 28, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.3);
    --glow-cyan: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 40px rgba(56, 189, 248, 0.3);
    --glow-pink: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   TERMINAL INTRO COVER PAGE
   ========================================== */
.terminal-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d111c 50%, #0a0e1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.terminal-intro.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.terminal-window {
    width: min(90%, 800px);
    max-height: 70vh;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 136, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: linear-gradient(180deg, #3d3d3d 0%, #2d2d2d 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.red {
    background: #ff5f57;
}

.terminal-btn.yellow {
    background: #ffbd2e;
}

.terminal-btn.green {
    background: #28c840;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #999;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-right: 60px;
}

.terminal-body {
    padding: 20px 25px;
    min-height: 350px;
    max-height: 60vh;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #f0f0f0;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-prompt {
    color: var(--accent-green);
}

.terminal-command {
    color: #fff;
}

.terminal-output {
    color: #a0a0a0;
}

.terminal-success {
    color: var(--accent-green);
}

.terminal-info {
    color: var(--accent-cyan);
}

.terminal-warning {
    color: #ffbd2e;
}

.terminal-highlight {
    color: var(--accent-pink);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--accent-green);
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.skip-intro {
    position: absolute;
    bottom: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-clean);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    animation: fadeInOut 2s infinite;
}

.skip-intro:hover {
    color: var(--accent-green);
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 255, 0.06) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-clean);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Cyberpunk Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Floating Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 15s infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* Mouse-Following Glow Cursor */
.glow-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glow-cursor.active {
    opacity: 1;
}

/* Scanlines and Noise Overlay */
.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.15) 50%,
            rgba(0, 0, 0, 0.15));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
    animation: scanlineFlicker 0.1s infinite;
}

@keyframes scanlineFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.98;
    }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmaQq5NBAAAAACHRSTlMAMwA1MzMzM7O0s14AAAAJElEQVQ4y2NgAAM2CgBjEwownQ2NmE6G6WxoZLiOkcE6RsYAAAxMAsJOexH4AAAAAElFTkSuQmCC');
    opacity: 0.03;
    pointer-events: none;
    z-index: 99;
    animation: noiseMove 0.5s steps(10) infinite;
}

@keyframes noiseMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10px, -10px);
    }
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    z-index: 2;
}

/* Hero Section - Premium Glassmorphism */
.hero-section {
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 20, 10, 0.8) 0%, rgba(13, 17, 28, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated border glow */
.hero-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--accent-green),
            var(--accent-cyan),
            var(--accent-pink),
            var(--accent-cyan),
            var(--accent-green));
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: gradientBorder 8s ease infinite;
    opacity: 0.5;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
    filter: blur(2px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 35px;
}

.avatar {
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
        linear-gradient(135deg, var(--accent-green), var(--accent-cyan), var(--accent-pink)) border-box;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.4));
    transform: scale(1.08) rotate(5deg);
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pet-avatars {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Increased specificity to ensure sizing applies on live site */
.profile-header .pet-avatars .pet-avatar {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.profile-header .pet-avatars .pet-avatar:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.7));
    z-index: 10;
}

.title-block h1 {
    font-family: var(--font-cyber);
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 50%, var(--accent-pink) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-family: var(--font-clean);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 255, 136, 0.5);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-green), 0 0 10px var(--accent-green);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px var(--accent-green), 0 0 30px var(--accent-green);
        transform: scale(1.2);
    }
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.icon-sm {
    width: 20px;
    height: 20px;
}

/* Cards - Premium Glassmorphism */
.card {
    background: linear-gradient(135deg, rgba(13, 17, 28, 0.85) 0%, rgba(20, 25, 40, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-cyan), var(--accent-pink));
    border-radius: 4px 0 0 4px;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 136, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.card-header h2 {
    font-family: var(--font-cyber);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.card-body {
    padding: 25px;
}

/* Sections Specifics */
.quote-box {
    padding: 20px;
    border-left: 4px solid var(--accent-pink);
    background: rgba(255, 0, 255, 0.05);
    margin: 20px;
}

.quote-box blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 5px;
}

.cat-icon {
    width: 24px;
    height: 24px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 15px;
}

.skill-category li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 0.8rem;
}

.timeline {
    padding: 20px;
}

.job-entry {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.job-entry::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.job-header {
    margin-bottom: 10px;
}

.job-title {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.job-meta {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.job-details ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--accent-green);
    background: rgba(0, 0, 0, 0.5);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-green);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-green);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-bg {
    width: 100px;
    opacity: 0.3;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* PREMIUM FEATURES */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Cursor */
body {
    cursor: crosshair;
}

a,
button,
.contact-item {
    cursor: pointer;
}

/* Glitch Text Effect */
.glitch {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(70px, 9999px, 71px, 0);
        transform: skew(0.04deg);
    }

    10% {
        clip: rect(29px, 9999px, 24px, 0);
        transform: skew(0.14deg);
    }

    15% {
        clip: rect(68px, 9999px, 64px, 0);
        transform: skew(0.76deg);
    }

    20% {
        clip: rect(95px, 9999px, 53px, 0);
        transform: skew(0.96deg);
    }

    25% {
        clip: rect(11px, 9999px, 18px, 0);
        transform: skew(0.48deg);
    }

    30% {
        clip: rect(2px, 9999px, 83px, 0);
        transform: skew(0.95deg);
    }

    35% {
        clip: rect(90px, 9999px, 100px, 0);
        transform: skew(0.64deg);
    }

    40% {
        clip: rect(42px, 9999px, 73px, 0);
        transform: skew(0.43deg);
    }

    45% {
        clip: rect(56px, 9999px, 39px, 0);
        transform: skew(0.55deg);
    }

    50% {
        clip: rect(81px, 9999px, 5px, 0);
        transform: skew(0.85deg);
    }

    55% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.21deg);
    }

    60% {
        clip: rect(28px, 9999px, 51px, 0);
        transform: skew(0.91deg);
    }

    65% {
        clip: rect(96px, 9999px, 92px, 0);
        transform: skew(0.86deg);
    }

    70% {
        clip: rect(48px, 9999px, 73px, 0);
        transform: skew(0.02deg);
    }

    75% {
        clip: rect(40px, 9999px, 23px, 0);
        transform: skew(0.73deg);
    }

    80% {
        clip: rect(83px, 9999px, 4px, 0);
        transform: skew(0.19deg);
    }

    85% {
        clip: rect(67px, 9999px, 50px, 0);
        transform: skew(0.65deg);
    }

    90% {
        clip: rect(14px, 9999px, 12px, 0);
        transform: skew(0.47deg);
    }

    95% {
        clip: rect(51px, 9999px, 89px, 0);
        transform: skew(0.16deg);
    }

    100% {
        clip: rect(79px, 9999px, 16px, 0);
        transform: skew(0.7deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
        transform: skew(0.16deg);
    }

    5% {
        clip: rect(52px, 9999px, 74px, 0);
        transform: skew(0.91deg);
    }

    10% {
        clip: rect(79px, 9999px, 119px, 0);
        transform: skew(0.85deg);
    }

    15% {
        clip: rect(75px, 9999px, 102px, 0);
        transform: skew(0.53deg);
    }

    20% {
        clip: rect(67px, 9999px, 73px, 0);
        transform: skew(0.05deg);
    }

    25% {
        clip: rect(14px, 9999px, 64px, 0);
        transform: skew(0.81deg);
    }

    30% {
        clip: rect(58px, 9999px, 107px, 0);
        transform: skew(0.14deg);
    }

    35% {
        clip: rect(22px, 9999px, 51px, 0);
        transform: skew(0.6deg);
    }

    40% {
        clip: rect(43px, 9999px, 27px, 0);
        transform: skew(0.81deg);
    }

    45% {
        clip: rect(12px, 9999px, 115px, 0);
        transform: skew(0.79deg);
    }

    50% {
        clip: rect(96px, 9999px, 105px, 0);
        transform: skew(0.26deg);
    }

    55% {
        clip: rect(85px, 9999px, 53px, 0);
        transform: skew(0.1deg);
    }

    60% {
        clip: rect(20px, 9999px, 6px, 0);
        transform: skew(0.88deg);
    }

    65% {
        clip: rect(30px, 9999px, 69px, 0);
        transform: skew(0.8deg);
    }

    70% {
        clip: rect(88px, 9999px, 40px, 0);
        transform: skew(0.59deg);
    }

    75% {
        clip: rect(66px, 9999px, 85px, 0);
        transform: skew(0.22deg);
    }

    80% {
        clip: rect(97px, 9999px, 48px, 0);
        transform: skew(0.35deg);
    }

    85% {
        clip: rect(54px, 9999px, 117px, 0);
        transform: skew(0.8deg);
    }

    90% {
        clip: rect(39px, 9999px, 92px, 0);
        transform: skew(0.68deg);
    }

    95% {
        clip: rect(8px, 9999px, 118px, 0);
        transform: skew(0.77deg);
    }

    100% {
        clip: rect(100px, 9999px, 54px, 0);
        transform: skew(0.4deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(0.5deg);
    }

    20% {
        transform: skew(-0.5deg);
    }

    30% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* Card Entrance Animation */
.card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal 0.6s ease-out 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;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Glow Effect */
.card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3), 0 8px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Timeline Node Pulse */
.job-entry::before {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
}

/* Avatar Glow */
.avatar {
    transition: all 0.3s ease;
    object-fit: cover;
}

.avatar:hover {
    filter: drop-shadow(0 0 20px var(--accent-cyan)) drop-shadow(0 0 40px var(--accent-pink));
    transform: scale(1.05);
}

/* Skill List Item Hover */
.skill-category li {
    transition: all 0.2s ease;
}

.skill-category li:hover {
    background: rgba(0, 255, 136, 0.1);
    padding-left: 20px;
    color: var(--accent-green);
}

.skill-category li:hover::before {
    content: '> >';
}

/* Typing Cursor for Bio */
.type-text p:last-child::after {
    content: '|';
    animation: typing-cursor 0.8s infinite;
    color: var(--accent-green);
}

@keyframes typing-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hero Section Parallax-like effect */
.hero-section {
    transition: box-shadow 0.3s ease;
}

.hero-section:hover {
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

/* Button Ripple */
.btn-download {
    position: relative;
    overflow: hidden;
}

.btn-download::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-download:hover::after {
    width: 300px;
    height: 300px;
}

/* Status Badge Typing Effect */
.status-badge {
    animation: statusGlow 3s infinite alternate;
}

@keyframes statusGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

/* Link Underline Animation */
a.contact-item {
    position: relative;
}

a.contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

a.contact-item:hover::after {
    width: 100%;
}

/* HUMAN VERIFICATION MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--accent-green);
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 40px;
    height: 40px;
}

.modal-header h3 {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.challenge-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-box p {
    margin-bottom: 15px;
    color: var(--accent-cyan);
}

.challenge-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.challenge-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.challenge-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

.challenge-btn.correct {
    background: var(--accent-green);
    color: #000;
    animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
    50% {
        transform: scale(1.1);
    }
}

.modal-close {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-pink);
    color: #000;
}

/* Protected Content Styling */
.blur-text {
    filter: blur(3px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blur-text:hover {
    filter: blur(2px);
}

.blur-text.revealed {
    filter: none !important;
}

[data-protected]:not(.verified) {
    cursor: pointer;
}

[data-protected].verified .blur-text {
    filter: none;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        justify-content: center;
    }

    .title-block h1 {
        font-size: 2rem;
    }

    .glitch::before,
    .glitch::after {
        display: none;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}