/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000000;
    color: #e5e5e5;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 14px;
}

/* Boot Sequence */
.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.boot-content {
    max-width: 800px;
    width: 90%;
}

.boot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.boot-logo {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 2px;
}

.boot-time {
    color: #888;
    font-size: 0.9rem;
}

.boot-terminal {
    margin-bottom: 3rem;
    min-height: 300px;
}

.boot-line {
    color: #888;
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: bootFadeIn 0.5s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1s; }
.boot-line:nth-child(3) { animation-delay: 1.5s; }
.boot-line:nth-child(4) { animation-delay: 2s; }
.boot-line:nth-child(5) { animation-delay: 2.5s; }
.boot-line:nth-child(6) { animation-delay: 3s; }
.boot-line:nth-child(7) { animation-delay: 3.5s; }
.boot-line:nth-child(8) { animation-delay: 4s; }
.boot-line:nth-child(9) { animation-delay: 4.5s; }
.boot-line:nth-child(10) { animation-delay: 5s; }
.boot-line:nth-child(11) { animation-delay: 5.5s; }

.boot-final {
    color: #00ff00 !important;
    font-weight: 600;
    animation-delay: 6s !important;
}

@keyframes bootFadeIn {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.boot-status {
    color: #888;
    font-weight: 600;
}

.boot-status.ok {
    color: #00ff00;
}

.boot-status.warning {
    color: #ffaa00;
}

.boot-status.error {
    color: #ff4444;
}

.boot-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.progress-text {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.boot-skip {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

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

/* Background Effects with Parallax */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    will-change: transform;
}

.stars {
    background: transparent;
}

.parallax-stars-far {
    z-index: 1;
    transform-style: preserve-3d;
}

.parallax-stars-mid {
    z-index: 2;
    transform-style: preserve-3d;
}

.parallax-stars-near {
    z-index: 3;
    transform-style: preserve-3d;
}

.parallax-shapes {
    z-index: 4;
    transform-style: preserve-3d;
}

.parallax-particles {
    z-index: 5;
    transform-style: preserve-3d;
}

/* Parallax Element Animations */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(10px) rotate(270deg); }
}

@keyframes particleDrift {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(180deg); }
    100% { transform: translateX(0) rotate(360deg); }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" result="noise"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    pointer-events: none;
    z-index: 2;
    animation: noise 8s steps(10) infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    30% { transform: translate(3%, -10%); }
    50% { transform: translate(-8%, 2%); }
    70% { transform: translate(8%, 5%); }
    90% { transform: translate(-3%, -8%); }
}

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

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Coffee Button in Navigation */
.coffee-button-container {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

/* Style the Buy Me Coffee button iframe to match theme */
.coffee-button-container iframe {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    transition: border-color 0.3s ease, transform 0.2s ease !important;
}

.coffee-button-container iframe:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.glitch-container {
    position: relative;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 4px;
}

.glitch {
    position: relative;
    animation: glitch 4s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

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

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

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

.hero-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-line, .location-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Terminal Preview */
.terminal-preview {
    width: 400px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27ca3f; }

.terminal-title {
    color: #888;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 16px;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: #888;
    margin-right: 8px;
}

.command {
    color: #ffffff;
}

.typing {
    animation: typing 2s steps(12) infinite;
}

@keyframes typing {
    0%, 50% { width: 0; }
    100% { width: 100%; }
}

.terminal-output {
    margin-top: 12px;
    padding-left: 16px;
}

.output-line {
    color: #888;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.output-line:nth-child(1) { animation-delay: 1s; }
.output-line:nth-child(2) { animation-delay: 1.5s; }
.output-line:nth-child(3) { animation-delay: 2s; }
.output-line:nth-child(4) { animation-delay: 2.5s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Interactive Terminal */
.interactive-terminal {
    cursor: pointer;
}

.interactive-terminal .terminal-body {
    max-height: 280px;
    overflow-y: auto;
}

.terminal-welcome {
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.terminal-history {
    margin-bottom: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    padding: 0;
}

.terminal-cursor {
    color: #ffffff;
    display: inline-block;
    font-weight: 400;
    opacity: 0.3;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.terminal-cursor.focused {
    opacity: 1;
    animation: shadowBlink 1.2s infinite;
    text-shadow:
        0 0 5px #ffffff,
        0 0 10px #ffffff,
        0 0 15px #ffffff,
        0 0 20px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

@keyframes shadowBlink {
    0%, 45% {
        opacity: 1;
        text-shadow:
            0 0 5px #ffffff,
            0 0 10px #ffffff,
            0 0 15px #ffffff,
            0 0 20px rgba(255, 255, 255, 0.8);
    }
    50%, 95% {
        opacity: 0.2;
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow:
            0 0 5px #ffffff,
            0 0 10px #ffffff,
            0 0 15px #ffffff,
            0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.command-output {
    color: #888;
    margin-left: 16px;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.command-output.error {
    color: #ff4444;
}

.command-output.success {
    color: #00ff00;
}

.ascii-art {
    color: #666;
    font-size: 0.7rem;
    line-height: 1;
    white-space: pre;
    text-align: center;
    margin: 16px 0;
}

.easter-egg {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ffff; }
    to { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff; }
}

/* Sections */
section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* About section - reduce top padding to be closer to stats */
.about {
    padding-top: 1rem;
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-title {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 2px;
    background: #333;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: #ffffff;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { left: 0; width: 30%; }
    50% { left: 70%; width: 30%; }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 2rem;
    justify-content: start;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    display: flex;
    flex-direction: column;
    width: 320px;
    height: 270px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    animation: scan-top 4s ease-in-out infinite;
}

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

.project-card:hover {
    border-color: #555;
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}

.project-card.mystery {
    opacity: 0.6;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-status {
    background: #333;
    color: #888;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card .project-status {
    background: #5f1a1a;
    color: #ef4444;
}

.project-card:nth-child(2) .project-status {
    background: #1a4d1a;
    color: #22c55e;
}

.project-card:nth-child(3) .project-status {
    background: #5f5f1a;
    color: #eab308;
}

.project-card.mystery .project-status {
    background: #5f1a1a;
    color: #ef4444;
}

.project-desc {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    color: #888;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.project-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Clickable Project Cards */
.project-card.clickable {
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card.clickable:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: #666;
}

.click-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: #666;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #333;
}

.project-card.clickable:hover .click-hint {
    opacity: 1;
    color: #aaa;
}

.project-card.mystery .click-hint {
    color: #ef4444;
}

/* Project Terminal Modal */
.project-terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.project-terminal-modal.active {
    display: flex;
}

.project-terminal {
    width: 90%;
    max-width: 800px;
    height: 70%;
    background: #000;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    animation: terminalSlideIn 0.4s ease;
    transform-style: preserve-3d;
}

.project-terminal-header {
    background: #111;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-terminal-title {
    color: #888;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-terminal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-terminal-close:hover {
    background: #333;
    color: #fff;
}

.project-terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #000;
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-info-section {
    margin-bottom: 2rem;
}

.project-info-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.project-command {
    color: #888;
    margin-bottom: 0.5rem;
}

.project-output {
    color: #00ff00;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes terminalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #888;
    text-decoration: none;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.contact-method:hover {
    color: #ffffff;
}

.method-icon {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

.method-text {
    font-size: 0.9rem;
}

/* Form */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    padding: 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #555;
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #666;
}

.form-submit {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.form-submit:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.separator {
    margin: 0 0.5rem;
}

.footer-status {
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .coffee-button-container {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .hero {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .terminal-preview {
        width: 100%;
        max-width: 350px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

/* Access Denied Error Notification */
.access-denied-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff3333;
    border-radius: 8px;
    padding: 2rem 3rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(255, 51, 51, 0.5),
        0 0 40px rgba(255, 51, 51, 0.3),
        inset 0 0 20px rgba(255, 51, 51, 0.1);
}

.access-denied-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.glitch-error {
    text-align: center;
    color: #ffffff;
    animation: errorShake 2s infinite;
}

.error-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000;
    animation: glitchText 1s infinite;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ff6666;
    animation: textFlicker 2s infinite;
}

.error-details {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #888;
    opacity: 0.8;
}

.error-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #666;
    opacity: 0.6;
}

/* System Glitch Effect */
body.system-glitch {
    animation: systemGlitch 3s ease-out;
}

@keyframes glitchFade {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes glitchText {
    0%, 90%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translateX(-2px) skew(-5deg);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translateX(2px) skew(5deg);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translateX(-1px) skew(-2deg);
        filter: hue-rotate(270deg);
    }
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes systemGlitch {
    0%, 95%, 100% {
        filter: contrast(1) brightness(1);
    }
    5% {
        filter: contrast(1.2) brightness(1.5) hue-rotate(90deg);
    }
    10% {
        filter: contrast(0.8) brightness(0.8) hue-rotate(180deg);
    }
    15% {
        filter: contrast(1.1) brightness(1.2) hue-rotate(270deg);
    }
}

/* Locked Project Card Styling */
.project-card.locked-project {
    border: 2px solid #444;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.project-card.locked-project .project-status {
    background: #5f1a1a;
    color: #ef4444;
}

.project-card.external-redirect .project-status {
    background: #1a5f1a;
    color: #4ade80;
}

.project-card.locked-project:hover {
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.project-card.locked-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.1), transparent);
    animation: scanLine 3s infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* External Redirect Card Styling */
.project-card.external-redirect {
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card.external-redirect:hover {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #4ade80;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.notification-icon {
    font-size: 1.5rem;
    filter: grayscale(1);
}

.notification-message {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #4ade80;
}

/* Discord copy hover effect */
.copy-discord {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-discord:hover {
    transform: translateY(-2px);
}

.copy-discord:hover .method-text {
    color: #ffffff;
}

/* Coffee Celebration Popup */
.coffee-celebration {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: coffeeSlideIn 0.5s ease-out;
}

.coffee-popup {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #4ade80;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(74, 222, 128, 0.5),
        0 0 40px rgba(74, 222, 128, 0.3);
    animation: coffeeGlow 2s ease-in-out infinite alternate;
}

.coffee-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: coffeeBounce 1s ease-in-out infinite;
}

.coffee-message {
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

@keyframes coffeeSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes coffeeGlow {
    from {
        box-shadow:
            0 0 20px rgba(74, 222, 128, 0.5),
            0 0 40px rgba(74, 222, 128, 0.3);
    }
    to {
        box-shadow:
            0 0 30px rgba(74, 222, 128, 0.8),
            0 0 60px rgba(74, 222, 128, 0.5);
    }
}

@keyframes coffeeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Stats Section */
.stats-section {
    display: flex;
    gap: 20rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 10rem;
    border-top: 0px solid #333;
    width: 100%;
    max-width: 2000px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: lowercase;
}

.stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-value.updating {
    animation: statGlitch 1.5s ease-out;
    position: relative;
    z-index: 10;
}

.stat-value.updating::before {
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff0000;
    animation: glitchLayer1 1.5s ease-out;
    z-index: -1;
}

.stat-value.updating::after {
    content: attr(data-glitch);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #00ffff;
    animation: glitchLayer2 1.5s ease-out;
    z-index: -2;
}

@keyframes glitchLayer1 {
    0%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    10%, 30%, 50%, 70% {
        transform: translateX(-2px);
        opacity: 0.8;
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
        opacity: 0.6;
    }
}

@keyframes glitchLayer2 {
    0%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    15%, 35%, 55%, 75% {
        transform: translateX(3px);
        opacity: 0.7;
    }
    25%, 45%, 65%, 85% {
        transform: translateX(-3px);
        opacity: 0.5;
    }
}

@keyframes statGlitch {
    0% {
        transform: translateX(0) scaleX(1);
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        filter: contrast(1) brightness(1);
    }
    5% {
        transform: translateX(-8px) scaleX(1.2) skew(-15deg);
        color: #ff0000;
        text-shadow:
            4px 0 0 #00ffff,
            -4px 0 0 #ff0000,
            8px 0 0 #ffff00,
            0 0 30px #ff0000;
        filter: contrast(2) brightness(2) saturate(3);
    }
    10% {
        transform: translateX(6px) scaleX(0.8) skew(10deg) scaleY(1.3);
        color: #00ffff;
        text-shadow:
            -3px 0 0 #ff0000,
            3px 0 0 #00ff00,
            -6px 0 0 #ffff00,
            0 0 25px #00ffff;
        filter: contrast(1.5) brightness(0.5) hue-rotate(180deg);
    }
    15% {
        transform: translateX(-4px) scaleX(1.5) skew(-8deg) scaleY(0.7);
        color: #ff00ff;
        text-shadow:
            2px 0 0 #00ffff,
            -2px 0 0 #ffff00,
            4px 0 0 #ff0000,
            0 0 35px #ff00ff;
        filter: contrast(3) brightness(1.8) invert(0.3);
    }
    25% {
        transform: translateX(10px) scaleX(0.6) skew(20deg) scaleY(1.1);
        color: #ffff00;
        text-shadow:
            -5px 0 0 #ff0000,
            5px 0 0 #00ffff,
            0 2px 0 #ff00ff,
            0 -2px 0 #00ff00,
            0 0 40px #ffff00;
        filter: contrast(2.5) brightness(3) saturate(5) hue-rotate(90deg);
    }
    35% {
        transform: translateX(-12px) scaleX(1.8) skew(-25deg) scaleY(0.5);
        color: #00ff00;
        text-shadow:
            6px 0 0 #ff00ff,
            -6px 0 0 #ffff00,
            0 3px 0 #ff0000,
            0 -3px 0 #00ffff,
            0 0 50px #00ff00;
        filter: contrast(4) brightness(2.5) invert(0.7) sepia(1);
    }
    45% {
        transform: translateX(8px) scaleX(0.4) skew(15deg) scaleY(1.6);
        color: #ff8800;
        text-shadow:
            -4px 0 0 #0088ff,
            4px 0 0 #88ff00,
            0 4px 0 #ff0088,
            0 -4px 0 #8800ff,
            0 0 60px #ff8800;
        filter: contrast(3.5) brightness(4) saturate(8) hue-rotate(270deg) blur(1px);
    }
    55% {
        transform: translateX(-15px) scaleX(2.2) skew(-30deg) scaleY(0.3);
        color: #8800ff;
        text-shadow:
            8px 0 0 #ffff00,
            -8px 0 0 #00ffff,
            0 5px 0 #ff0000,
            0 -5px 0 #00ff00,
            0 0 70px #8800ff;
        filter: contrast(5) brightness(0.3) invert(1) saturate(10) blur(2px);
    }
    65% {
        transform: translateX(5px) scaleX(0.9) skew(8deg) scaleY(1.2);
        color: #ff0088;
        text-shadow:
            -3px 0 0 #88ff00,
            3px 0 0 #0088ff,
            0 2px 0 #ffff00,
            0 -2px 0 #ff8800,
            0 0 45px #ff0088;
        filter: contrast(2.8) brightness(2.2) saturate(6) hue-rotate(45deg);
    }
    75% {
        transform: translateX(-6px) scaleX(1.1) skew(-12deg) scaleY(0.9);
        color: #00ff88;
        text-shadow:
            4px 0 0 #ff8800,
            -4px 0 0 #8800ff,
            0 3px 0 #ff0088,
            0 -3px 0 #0088ff,
            0 0 35px #00ff88;
        filter: contrast(2.2) brightness(1.8) saturate(4) hue-rotate(135deg);
    }
    85% {
        transform: translateX(3px) scaleX(1.05) skew(4deg) scaleY(1.05);
        color: #ffffff;
        text-shadow:
            -1px 0 0 #ff0000,
            1px 0 0 #00ffff,
            0 1px 0 #ffff00,
            0 0 25px rgba(255, 255, 255, 0.8);
        filter: contrast(1.8) brightness(1.5) saturate(2);
    }
    95% {
        transform: translateX(-1px) scaleX(1.02) skew(-2deg) scaleY(1.02);
        color: #ffffff;
        text-shadow:
            0.5px 0 0 #ff0000,
            -0.5px 0 0 #00ffff,
            0 0 20px rgba(255, 255, 255, 0.6);
        filter: contrast(1.4) brightness(1.2) saturate(1.5);
    }
    100% {
        transform: translateX(0) scaleX(1) skew(0deg) scaleY(1);
        color: #ffffff;
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.5),
            0 0 25px rgba(255, 255, 255, 0.3);
        filter: contrast(1) brightness(1) saturate(1);
    }
}

/* System Flicker Animation */
@keyframes systemFlicker {
    0%, 100% {
        transform: translateX(0);
    }
    5% {
        transform: translateX(-1px);
    }
    10% {
        transform: translateX(1px);
    }
    15% {
        transform: translateX(-2px);
    }
    20% {
        transform: translateX(2px);
    }
    25% {
        transform: translateX(-1px);
    }
    30% {
        transform: translateX(1px);
    }
    35% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-3px);
    }
    45% {
        transform: translateX(3px);
    }
    50% {
        transform: translateX(-1px);
    }
    55% {
        transform: translateX(1px);
    }
    60% {
        transform: translateX(0);
    }
    65% {
        transform: translateX(-2px);
    }
    70% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-1px);
    }
    80% {
        transform: translateX(1px);
    }
    85% {
        transform: translateX(0);
    }
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-section {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .stat-item {
        gap: 0.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}