:root {
    /* Enhanced Dark theme variables with improved contrast */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-terminal: #0d1117;
    --text-primary: #ffffff;
    --text-secondary: #72b6ff;
    --accent: #00ff88;
    --accent-alt: #ff4757;
    --accent-red: #ff5a6a;
    --accent-cyan: #8be9fd;
    --border: #3a4249;
    --shadow: rgba(0, 0, 0, 0.8);
    --code-bg: #1f2428;
    --comment: #a0adb9;
    --string: #a5d6ff;
    --keyword: #ff4757;
    --function: #50fa7b;
    --variable: #8be9fd;
    --glow: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-red: 0 0 20px rgba(255, 71, 87, 0.5);
    --glow-cyan: 0 0 20px rgba(139, 233, 253, 0.5);
    
    /* Common variables */
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Improved text contrast */

/* Enhance contrast for all text */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

p {
    color: #f0f0f0;
    line-height: 1.7;
}

a {
    font-weight: 500;
}

/* Make content sections more visible */
section {
    position: relative;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Enhance interactive elements */
button, .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    width: 95%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 15px 0;
    position: relative;
    z-index: 2;
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
    transition: all var(--transition-speed);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: bold;
}

.ascii-logo {
    margin: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.nav-links a::before {
    content: '/';
    color: var(--accent);
    margin-right: 5px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 255, 136, 0.02) 100px,
            rgba(0, 255, 136, 0.02) 101px
        );
    animation: circuit-flow 8s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(46, 160, 67, 0.05) 0%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(45deg, rgba(255, 71, 87, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    animation: gradient-shift 10s ease-in-out infinite;
}

/* Tech Grid Overlay */
.hero-section .tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: tech-grid-move 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes tech-grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background: 
            linear-gradient(135deg, rgba(46, 160, 67, 0.05) 0%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(45deg, rgba(255, 71, 87, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    }
    50% {
        background: 
            linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(45deg, rgba(46, 160, 67, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    }
}

/* Faded Cryptonite Logo Background */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8%;
    width: 350px;
    height: 350px;
    background: url('../img/crypto-perfect-2 (1).png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    animation: float-logo 8s ease-in-out infinite, hologram 6s ease-in-out infinite;
    filter: blur(0.3px) brightness(1.3) contrast(1.2) hue-rotate(10deg);
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-60%) rotate(3deg) scale(1.03);
        opacity: 0.20;
    }
    50% {
        transform: translateY(-40%) rotate(-2deg) scale(0.97);
        opacity: 0.10;
    }
    75% {
        transform: translateY(-55%) rotate(1deg) scale(1.01);
        opacity: 0.18;
    }
}

/* Gradient Line */
.hero-section .gradient-line {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(46, 160, 67, 0) 0%, rgba(46, 160, 67, 0.3) 50%, rgba(46, 160, 67, 0) 100%);
    box-shadow: 0 0 8px var(--accent);
    z-index: 1;
    opacity: 0.5;
}

.code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.code-line {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.5;
    white-space: nowrap;
    animation: float 10s infinite linear;
}

.hero-section .content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.prompt-sign {
    color: var(--accent);
    font-size: 2rem;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.name {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    animation: fadeInDown 1s ease;
    position: relative;
    display: inline-block;
    text-transform: lowercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.name::after {
    content: '_';
    animation: blink 1s infinite;
}

.name:hover {
    animation: intense-glitch 0.6s ease;
    color: var(--accent);
}

.name .hacker-alias {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--accent);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.name:hover .original-name {
    opacity: 0;
}

.name:hover .hacker-alias {
    width: 100%;
    opacity: 1;
}

/* Cryptonite Easter Egg */
.cryptonite-easter-egg {
    position: absolute;
    top: -20px;
    right: -60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--glow-red);
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.5));
}

.name:hover .cryptonite-easter-egg {
    opacity: 1;
    transform: scale(1) rotate(360deg);
    animation: float-spin 3s ease-in-out infinite;
}

@keyframes float-spin {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-5px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translateY(2px) rotate(240deg) scale(0.9);
    }
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-secondary);
    animation: fadeInDown 1s ease 0.2s both;
    padding: 5px;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    display: inline-block;
}

.terminal-container {
    background-color: var(--bg-terminal);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px var(--shadow), 0 0 20px rgba(0, 255, 136, 0.2);
    animation: fadeInUp 1s ease 0.4s both, cyber-pulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.1) 25%,
        rgba(255, 71, 87, 0.1) 50%,
        rgba(139, 233, 253, 0.1) 75%,
        transparent 100%);
    transform: translateX(-100%);
    animation: terminal-scan 3s ease-in-out infinite;
    pointer-events: none;
}

.terminal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 136, 0.05) 2px,
        rgba(0, 255, 136, 0.05) 4px
    );
    pointer-events: none;
    animation: data-stream 6s linear infinite;
}

@keyframes terminal-scan {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

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

.terminal-dot.red {
    background-color: #ff5f56;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.green {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terminal-typing {
    height: 40px;
    display: flex;
    align-items: center;
    background-color: rgba(13, 17, 23, 0.8);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 0 10px;
    position: relative;
    z-index: 5;
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 10px;
}

.typed-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    position: relative;
    visibility: visible;
    opacity: 1;
    min-height: 1.5em;
    display: inline-block;
}

.typed-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 1px;
    width: 100%;
    height: 100%;
    color: var(--accent-red);
    opacity: 0.4;
    z-index: -1;
    animation: glitch 3s ease-in-out infinite;
}

.typed-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -1px;
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
    opacity: 0.4;
    z-index: -1;
    animation: glitch 3s ease-in-out infinite reverse;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--accent);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    animation: fadeInLeft 1s ease 0.6s both;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.2);
}

.social-links a:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 25%, 
        var(--accent-red) 50%, 
        var(--accent-cyan) 75%, 
        transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: section-line-expand 2s ease-out forwards;
}

@keyframes section-line-expand {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.section-header {
    margin-bottom: 25px;
    position: relative;
}

.section-header h2 {
    font-size: 1.6rem;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: lowercase;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.section-header h2::before {
    content: '$ function ';
    color: var(--comment);
    font-size: 0.9em;
    opacity: 0.7;
}

.section-header h2::after {
    content: '() {';
    color: var(--text-secondary);
    margin-left: 5px;
}

.highlight {
    color: var(--accent);
    margin-right: 10px;
    font-family: 'JetBrains Mono', monospace;
}

/* About Section */
.about-section .content {
    max-width: 800px;
    animation: fadeIn 1s ease;
}

.about-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: fadeIn 1s ease;
    position: relative;
    height: 300px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.03) 25%, 
        transparent 50%, 
        rgba(255, 71, 87, 0.03) 75%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px var(--shadow), 0 0 20px rgba(0, 255, 136, 0.2);
    border-color: var(--accent);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}

.project-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
    text-transform: lowercase;
    font-family: 'JetBrains Mono', monospace;
}

.project-content h3::before {
    content: '>';
    color: var(--accent);
    margin-right: 5px;
    font-weight: bold;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-speed);
    box-shadow: 0 0 5px var(--accent);
}

.project-card:hover h3::after {
    width: 100%;
}

.project-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-stack span {
    background-color: var(--bg-primary);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px var(--shadow);
}

.code-snippet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--code-bg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
    opacity: 0;
}

.project-card:hover .code-snippet {
    transform: translateY(0);
    opacity: 1;
}

.code-snippet pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow-x: auto;
}

.code-snippet code {
    color: var(--text-primary);
}

.code-snippet .comment {
    color: var(--comment);
}

.code-snippet .string {
    color: var(--string);
}

.code-snippet .keyword {
    color: var(--keyword);
}

.code-snippet .function {
    color: var(--function);
}

.code-snippet .variable {
    color: var(--variable);
}

/* Resume Section */
.resume-section .content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 1s ease;
}

.resume-section .cmd-line {
    margin-bottom: 10px;
}

.resume-code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.resume-code .string {
    color: var(--string);
}

.resume-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* Contact Section */
.contact-section .content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}

.contact-terminal {
    background-color: var(--bg-terminal);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.contact-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.1;
    z-index: 1;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.terminal-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.terminal-title::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.terminal-button:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-button:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background-color: #27c93f;
}

.terminal-body {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.terminal-line {
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.terminal-line::before {
    content: '$';
    color: var(--accent);
    margin-right: 10px;
    font-weight: bold;
}

.command {
    color: var(--accent);
    font-weight: 500;
}

.argument {
    color: var(--accent-alt);
    font-style: italic;
    margin-left: 5px;
}

.response {
    color: var(--text-secondary);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    margin-top: 10px;
    position: relative;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.success {
    color: var(--accent);
    animation: fadeIn 0.5s ease;
}

.error {
    color: #ff5555;
    animation: fadeIn 0.5s ease;
}

.contact-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group::before {
    content: attr(data-label);
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: var(--bg-terminal);
    padding: 0 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 10;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(46, 160, 67, 0.3);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(46, 160, 67, 0) 70%);
    transition: all 0.8s ease;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
}

.btn:hover::before {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 10px var(--accent);
}

.email-direct {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border);
    animation: fadeIn 1s ease 0.6s both;
}

.email-direct a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 5px;
}

.email-direct a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.email-direct a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(46, 160, 67, 0.5);
}

.email-direct a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-content i {
    color: var(--accent);
    margin: 0 3px;
}

/* Enhanced Education Section */
.education-section .education-item {
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.education-header h3 {
    font-size: 1.3rem;
    color: var(--function);
    font-weight: 500;
    position: relative;
}

.education-header h3::before {
    content: 'const ';
    color: var(--keyword);
    font-size: 0.9rem;
}

.education-header h3::after {
    content: ' = {';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-header .duration {
    color: var(--string);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.education-details {
    padding-left: 20px;
    position: relative;
}

.education-details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.education-details p {
    margin: 8px 0;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.education-details .degree::before {
    content: 'degree: "';
    color: var(--keyword);
    font-size: 0.9rem;
}

.education-details .degree::after {
    content: '",';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-details .location::before {
    content: 'location: "';
    color: var(--keyword);
    font-size: 0.9rem;
}

.education-details .location::after {
    content: '",';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-details .cgpa::before {
    content: 'cgpa: ';
    color: var(--keyword);
    font-size: 0.9rem;
}

.education-details .cgpa::after {
    content: ' }';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Enhanced Skills Section with Floating Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: floatIn 0.6s ease-out;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--text-secondary), var(--accent-alt));
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.skill-category:hover::before {
    transform: translateX(100%);
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.skill-category h3 {
    color: var(--function);
    margin-bottom: 18px;
    font-size: 1.1rem;
    text-transform: lowercase;
    position: relative;
}

.skill-category h3::before {
    content: 'class ';
    color: var(--keyword);
    font-size: 0.9rem;
}

.skill-category h3::after {
    content: ' {';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

.skill-items::after {
    content: '}';
    color: var(--text-secondary);
    font-size: 1rem;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.3);
}

/* Enhanced Experience Section */
.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--text-secondary));
}

.experience-item {
    position: relative;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    animation: slideInLeft 0.8s ease-out;
}

.experience-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.experience-header h3 {
    color: var(--function);
    font-size: 1.2rem;
    text-transform: lowercase;
    position: relative;
}

.experience-header h3::before {
    content: 'function ';
    color: var(--keyword);
    font-size: 0.9rem;
}

.experience-header h3::after {
    content: '() {';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-header .duration {
    color: var(--string);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.experience-details .company {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.experience-details .company::before {
    content: 'company: "';
    color: var(--keyword);
    font-size: 0.9rem;
}

.experience-details .company::after {
    content: '",';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-details .location {
    color: var(--comment);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.experience-details .location::before {
    content: 'location: "';
    color: var(--keyword);
    font-size: 0.9rem;
}

.experience-details .location::after {
    content: '",';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-details ul {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.experience-details ul::before {
    content: 'tasks: [';
    color: var(--keyword);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.experience-details ul::after {
    content: '] }';
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 10px;
}

.experience-details li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.experience-details li::before {
    content: '"';
    color: var(--string);
    position: absolute;
    left: 0;
    top: 0;
}

.experience-details li::after {
    content: '",';
    color: var(--string);
}

/* Enhanced Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.achievement-item {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.achievement-item:hover::before {
    transform: scaleX(1);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.achievement-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.achievement-header i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.achievement-header h3 {
    color: var(--function);
    font-size: 1.1rem;
    text-transform: lowercase;
}

.achievement-header h3::before {
    content: 'const ';
    color: var(--keyword);
    font-size: 0.9rem;
}

.achievement-header h3::after {
    content: ' = {';
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievement-item p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.achievement-item ul {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.achievement-item ul::before {
    content: 'achievements: [';
    color: var(--keyword);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.achievement-item ul::after {
    content: '] }';
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-top: 8px;
}

.achievement-item li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.achievement-item li::before {
    content: '"';
    color: var(--string);
    position: absolute;
    left: 0;
    top: 0;
}

.achievement-item li::after {
    content: '",';
    color: var(--string);
}

/* Cryptonite Showcase */
.cryptonite-showcase {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    animation: glow-pulse 3s ease-in-out infinite;
}

.cryptonite-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: var(--glow);
}

.cryptonite-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-red);
}

.team-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: float 2s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) {
    animation-delay: 1s;
}

/* Add the missing blink animation */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Enhanced Glitch Effects with Color Flashes */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
        text-shadow: none;
    }
    2% {
        transform: translate(2px, 0);
        filter: hue-rotate(90deg);
        text-shadow: -2px 0 var(--accent-red), 2px 0 var(--accent-cyan);
    }
    4% {
        transform: translate(-2px, 0);
        filter: hue-rotate(180deg);
        text-shadow: -2px 0 var(--accent-cyan), 2px 0 var(--accent);
    }
    6% {
        transform: translate(0, 2px);
        filter: hue-rotate(270deg);
        text-shadow: 0 -2px var(--accent-red), 0 2px var(--accent-cyan);
    }
    8% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg) saturate(2);
        text-shadow: -3px 0 var(--accent-red), 3px 0 var(--accent-cyan), 0 0 10px var(--accent);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(45deg) contrast(2);
        text-shadow: -2px 0 var(--accent), 2px 0 var(--accent-red);
    }
    12% {
        transform: translate(0);
        filter: hue-rotate(0deg);
        text-shadow: none;
    }
}

/* Color Flash Glitch */
@keyframes color-flash {
    0%, 90%, 100% {
        background-color: transparent;
        color: inherit;
    }
    5% {
        background-color: var(--accent);
        color: var(--bg-primary);
    }
    15% {
        background-color: var(--accent-red);
        color: var(--text-primary);
    }
    25% {
        background-color: var(--accent-cyan);
        color: var(--bg-primary);
    }
}

/* Intense Glitch with Flashes */
@keyframes intense-glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
        background-color: transparent;
        box-shadow: none;
    }
    5% {
        transform: translate(-3px, 2px);
        filter: hue-rotate(90deg) saturate(3);
        background-color: rgba(255, 71, 87, 0.3);
        box-shadow: 0 0 20px var(--accent-red);
    }
    10% {
        transform: translate(3px, -2px);
        filter: hue-rotate(180deg) contrast(2);
        background-color: rgba(0, 255, 136, 0.3);
        box-shadow: 0 0 20px var(--accent);
    }
    15% {
        transform: translate(-2px, -3px);
        filter: hue-rotate(270deg) brightness(2);
        background-color: rgba(139, 233, 253, 0.3);
        box-shadow: 0 0 20px var(--accent-cyan);
    }
    20% {
        transform: translate(2px, 3px);
        filter: hue-rotate(360deg) invert(1);
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 30px #ffffff;
    }
}

/* Matrix Rain Effect */
@keyframes matrix-rain {
    0% {
        transform: translateY(-100vh) rotateX(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateX(360deg);
        opacity: 0;
    }
}

/* Circuit Board Animation */
@keyframes circuit-flow {
    0% {
        background-position: 0% 0%;
        opacity: 0.3;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.7;
    }
    100% {
        background-position: 0% 0%;
        opacity: 0.3;
    }
}

/* Data Stream Effect */
@keyframes data-stream {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Cyber Pulse */
@keyframes cyber-pulse {
    0%, 100% {
        box-shadow: 
            0 0 5px var(--accent),
            0 0 10px var(--accent),
            0 0 15px var(--accent),
            inset 0 0 5px var(--accent);
    }
    50% {
        box-shadow: 
            0 0 10px var(--accent),
            0 0 20px var(--accent),
            0 0 30px var(--accent),
            inset 0 0 10px var(--accent);
    }
}

/* Hologram Effect */
@keyframes hologram {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Binary Rain */
.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.binary-char {
    position: absolute;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    animation: matrix-rain 10s linear infinite;
    opacity: 0.6;
}

.binary-char:nth-child(odd) {
    color: var(--accent-red);
    animation-duration: 15s;
}

.binary-char:nth-child(3n) {
    color: var(--accent-cyan);
    animation-duration: 8s;
}

/* Cool Holographic Effects */
.holographic {
    position: relative;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: holographic-sweep 3s ease-in-out infinite;
}

@keyframes holographic-sweep {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Digital Glitch Effect */
.digital-glitch {
    position: relative;
    overflow: hidden;
}

.digital-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 71, 87, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 255, 136, 0.1) 75%, 
        transparent 100%);
    transform: translateX(-100%);
    animation: glitch-scan 4s linear infinite;
}

@keyframes glitch-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Glitch utility classes */
.glitch-active {
    animation: intense-glitch 0.6s ease-in-out;
}

.glitch-flash {
    animation: color-flash 0.4s ease-in-out;
}

.glitch-subtle {
    animation: glitch 0.3s ease-in-out;
}

/* Screen flash overlay */
@keyframes screen-flash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Neon Glow Text */
.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
    animation: neon-flicker 2s ease-in-out infinite alternate;
}

/* Glitch utility classes */
.glitch-active {
    animation: intense-glitch 0.6s ease-in-out;
}

.glitch-flash {
    animation: color-flash 0.4s ease-in-out;
}

.glitch-subtle {
    animation: glitch 0.3s ease-in-out;
}

/* Screen flash overlay */
@keyframes screen-flash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Matrix Background Enhancement */
.tech-grid-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 233, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 71, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    66% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--accent-red));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-red), var(--accent-cyan));
}

/* Selection Enhancement */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 60px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-primary);
        padding: 20px 0;
        transition: left var(--transition-speed);
        box-shadow: 0 5px 10px var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-timeline {
        padding-left: 20px;
    }
    
    .experience-item::before {
        left: -28px;
    }
}

/* Cyber Music Player Styles */
.cyber-music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-secondary);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 16px;
    box-shadow: 0 0 16px var(--accent-cyan), 0 0 2px var(--accent);
    font-family: 'JetBrains Mono', monospace;
    min-width: 220px;
    max-width: 320px;
    transition: box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    user-select: none;
}
.cyber-music-player .cmp-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 1rem;
    background: var(--bg-terminal);
    border-radius: 14px;
    box-shadow: 0 2px 8px var(--shadow);
    border-bottom: 1px solid var(--accent-cyan);
}
.cyber-music-player .cmp-song {
    flex: 1;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 4px var(--accent-cyan);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cyber-music-player .cmp-next,
.cyber-music-player .cmp-playpause {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-left: 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.cyber-music-player .cmp-next:hover,
.cyber-music-player .cmp-playpause:hover {
    color: var(--accent-red);
}
.cyber-music-player .cmp-ipod {
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px var(--accent-cyan);
    padding: 18px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    animation: fadeIn 0.3s;
}
.cyber-music-player .cmp-ipod-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    border-radius: 18px;
    box-shadow: 0 0 8px var(--accent-cyan);
    padding: 10px 0 16px 0;
}
.cyber-music-player .cmp-ipod-screen {
    width: 90%;
    background: var(--bg-terminal);
    color: var(--accent);
    border-radius: 10px;
    padding: 10px 0;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 0 6px var(--accent);
    text-shadow: 0 0 4px var(--accent-cyan);
}
.cyber-music-player .cmp-ipod-controls {
    display: flex;
    justify-content: space-between;
    width: 90%;
}
.cyber-music-player .cmp-ipod-controls button {
    background: var(--bg-terminal);
    border: 2px solid var(--accent);
    color: var(--accent-cyan);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    margin: 0 8px;
    box-shadow: 0 0 6px var(--accent-cyan);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cyber-music-player .cmp-ipod-controls button:hover {
    background: var(--accent-cyan);
    color: var(--bg-terminal);
}
@media (max-width: 600px) {
    .cyber-music-player {
        bottom: 10px;
        right: 10px;
        min-width: 160px;
        max-width: 95vw;
    }
}

/* Cool navigation glitch effect */
.nav-links a.nav-glitch {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan), 2px 0 var(--accent-red), -2px 0 var(--accent);
    animation: nav-glitch-anim 0.4s linear;
    position: relative;
}
@keyframes nav-glitch-anim {
    0% { text-shadow: 0 0 0 var(--accent-cyan); }
    20% { text-shadow: 2px 0 var(--accent-red), -2px 0 var(--accent); }
    40% { text-shadow: -2px 0 var(--accent-cyan), 2px 0 var(--accent-red); }
    60% { text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-cyan); }
    80% { text-shadow: 0 0 8px var(--accent-cyan); }
    100% { text-shadow: 0 0 0 var(--accent-cyan); }
}

/* Animated underline for nav links */
.nav-links a {
    position: relative;
    overflow: hidden;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 8px var(--accent-cyan);
    border-radius: 2px;
    opacity: 0.7;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

#destroyer-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,10,10,0.96);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 0.3s;
}
