/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --terminal-green: #00ff41;
    --glitch-red: #ff003c;
    --purple-accent: #6b46c1;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --glitch-blue: #00ffff;
    --corruption: #ff6b6b;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* CRT Scan Lines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Random Terminal Messages */
.terminal-messages {
    position: fixed;
    z-index: 999;
    pointer-events: none;
}

.message {
    position: absolute;
    font-size: 12px;
    color: var(--terminal-green);
    opacity: 0.7;
    animation: fadeInOut 4s ease-in-out infinite;
}

.message-1 { top: 10%; left: 5%; animation-delay: 0s; }
.message-2 { top: 20%; right: 5%; animation-delay: 1s; }
.message-3 { bottom: 30%; left: 10%; animation-delay: 2s; }
.message-4 { bottom: 20%; right: 15%; animation-delay: 3s; }

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
    overflow: hidden;
}

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    opacity: 0.3;
    animation: static 0.2s linear infinite;
}

@keyframes static {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.megan-container {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.megan-gif {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--terminal-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    animation: meganGlow 3s ease-in-out infinite alternate;
    position: relative;
    transition: filter 0.1s ease;
}

.megan-gif.loop-glitch {
    filter: 
        contrast(1.5) 
        brightness(1.2) 
        hue-rotate(90deg) 
        saturate(2) 
        sepia(0.3);
    animation: loopGlitchEffect 0.3s ease-in-out;
}

.megan-gif.loop-glitch::before {
    animation: loopGlitchOverlay 0.3s ease-in-out;
    opacity: 1;
    z-index: 10;
}

@keyframes loopGlitchOverlay {
    0% { 
        opacity: 0;
        background: linear-gradient(90deg, transparent 50%, rgba(255, 0, 60, 0.3) 50%);
        background-size: 2px 100%;
    }
    25% { 
        opacity: 1;
        background: linear-gradient(90deg, transparent 30%, rgba(255, 0, 60, 0.6) 50%, transparent 70%);
        background-size: 1px 100%;
    }
    50% { 
        opacity: 0.8;
        background: linear-gradient(90deg, transparent 20%, rgba(0, 255, 255, 0.5) 50%, transparent 80%);
        background-size: 3px 100%;
    }
    75% { 
        opacity: 0.6;
        background: linear-gradient(90deg, transparent 40%, rgba(107, 70, 193, 0.4) 50%, transparent 60%);
        background-size: 1px 100%;
    }
    100% { 
        opacity: 0;
        background: linear-gradient(90deg, transparent 50%, rgba(255, 0, 60, 0.1) 50%);
        background-size: 2px 100%;
    }
}

@keyframes loopGlitchEffect {
    0% { 
        filter: contrast(1.5) brightness(1.2) hue-rotate(90deg) saturate(2) sepia(0.3);
        transform: translateX(0);
    }
    25% { 
        filter: contrast(2) brightness(1.5) hue-rotate(180deg) saturate(3) sepia(0.5);
        transform: translateX(-2px);
    }
    50% { 
        filter: contrast(1.8) brightness(0.8) hue-rotate(270deg) saturate(1.5) sepia(0.2);
        transform: translateX(2px);
    }
    75% { 
        filter: contrast(2.2) brightness(1.3) hue-rotate(360deg) saturate(2.5) sepia(0.4);
        transform: translateX(-1px);
    }
    100% { 
        filter: contrast(1) brightness(1) hue-rotate(0deg) saturate(1) sepia(0);
        transform: translateX(0);
    }
}

@keyframes meganGlow {
    0% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.3); }
    100% { box-shadow: 0 0 50px rgba(0, 255, 65, 0.6); }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, rgba(255, 0, 60, 0.2) 50%);
    background-size: 2px 100%;
    opacity: 0;
    animation: glitchOverlay 0.3s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes glitchOverlay {
    0%, 100% { opacity: 0; }
    25% { opacity: 0.8; transform: translateX(-1px); }
    50% { opacity: 1; transform: translateX(1px); }
    75% { opacity: 0.6; transform: translateX(-0.5px); }
}

/* Enhanced Glitch Effects */
.megan-gif::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 0, 60, 0.1) 0%, 
        transparent 25%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 75%, 
        rgba(107, 70, 193, 0.1) 100%);
    opacity: 0;
    animation: meganGlitch 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 6;
}

@keyframes meganGlitch {
    0%, 90%, 100% { opacity: 0; transform: translateX(0); }
    5% { opacity: 0.8; transform: translateX(-2px); }
    10% { opacity: 0.6; transform: translateX(2px); }
    15% { opacity: 0.9; transform: translateX(-1px); }
    20% { opacity: 0.4; transform: translateX(1px); }
}

.megan-gif::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 60, 0.15) 20%, 
        transparent 40%, 
        rgba(0, 255, 255, 0.15) 60%, 
        transparent 80%, 
        rgba(107, 70, 193, 0.15) 100%);
    opacity: 0;
    animation: meganGlitchVertical 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 7;
}

@keyframes meganGlitchVertical {
    0%, 85%, 100% { opacity: 0; transform: translateY(0); }
    8% { opacity: 0.7; transform: translateY(-1px); }
    12% { opacity: 0.5; transform: translateY(1px); }
    16% { opacity: 0.8; transform: translateY(-0.5px); }
    20% { opacity: 0.3; transform: translateY(0.5px); }
}

.hero-text {
    margin-top: 2rem;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--terminal-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    position: relative;
    display: inline-block;
}

.main-title::before,
.main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.main-title::before {
    animation: titleGlitch1 0.4s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.main-title::after {
    animation: titleGlitch2 0.4s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes titleGlitch1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-3px, 3px);
    }
    25% {
        transform: translate(-5px, 0);
    }
    35% {
        transform: translate(4px, 2px);
    }
    45% {
        transform: translate(-2px, -1px);
    }
}

@keyframes titleGlitch2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(3px, -3px);
    }
    30% {
        transform: translate(6px, 0);
    }
    40% {
        transform: translate(-4px, 3px);
    }
    50% {
        transform: translate(2px, -2px);
    }
}

.typing-text {
    display: inline-block;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--glitch-red);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.terminal-prompt {
    font-size: 1rem;
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', monospace;
}

.blinking-cursor {
    animation: blink 1s infinite;
    color: var(--terminal-green);
}

/* Fog/Mist Background */
.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.fog {
    position: absolute;
    background: linear-gradient(45deg, transparent 0%, rgba(107, 70, 193, 0.1) 50%, transparent 100%);
    border-radius: 50%;
    animation: fogMove 20s linear infinite;
}

.fog-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.fog-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 7s;
}

.fog-3 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes fogMove {
    0% { transform: translateX(0) translateY(0); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: translateX(100px) translateY(-50px); opacity: 0.3; }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--terminal-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
    25% {
        transform: translate(-4px, 0);
    }
    35% {
        transform: translate(3px, 1px);
    }
    45% {
        transform: translate(-1px, -1px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
    30% {
        transform: translate(4px, 0);
    }
    40% {
        transform: translate(-3px, 2px);
    }
    50% {
        transform: translate(1px, -1px);
    }
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.features-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--terminal-green);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
    border-color: var(--glitch-red);
}

.feature-item:hover .feature-glitch {
    opacity: 1;
    animation: featureGlitch 0.5s ease-in-out;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
}

.feature-item h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--terminal-green);
    position: relative;
    display: inline-block;
}

.feature-item h3::before,
.feature-item h3::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.8);
}

.feature-item h3::before {
    animation: featureGlitch1 0.6s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.feature-item h3::after {
    animation: featureGlitch2 0.6s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes featureGlitch1 {
    0%, 90%, 100% {
        transform: translate(0);
    }
    5% {
        transform: translate(-1px, 1px);
    }
    10% {
        transform: translate(1px, -1px);
    }
    15% {
        transform: translate(-3px, 0);
    }
    20% {
        transform: translate(2px, 1px);
    }
    25% {
        transform: translate(-1px, -1px);
    }
}

@keyframes featureGlitch2 {
    0%, 85%, 100% {
        transform: translate(0);
    }
    8% {
        transform: translate(1px, 1px);
    }
    12% {
        transform: translate(-1px, -1px);
    }
    18% {
        transform: translate(3px, 0);
    }
    22% {
        transform: translate(-2px, 2px);
    }
    28% {
        transform: translate(1px, -1px);
    }
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, rgba(255, 0, 60, 0.1) 50%);
    background-size: 4px 100%;
    opacity: 0;
    pointer-events: none;
}

@keyframes featureGlitch {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Lore Section */
.lore {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--terminal-green);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--terminal-green);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background: var(--glitch-red); }
.btn-minimize { background: var(--terminal-green); }
.btn-maximize { background: var(--purple-accent); }

.terminal-title {
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.terminal-title::before,
.terminal-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
}

.terminal-title::before {
    animation: terminalGlitch1 0.8s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.terminal-title::after {
    animation: terminalGlitch2 0.8s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes terminalGlitch1 {
    0%, 90%, 100% {
        transform: translate(0);
    }
    5% {
        transform: translate(-1px, 1px);
    }
    10% {
        transform: translate(1px, -1px);
    }
    15% {
        transform: translate(-2px, 0);
    }
    20% {
        transform: translate(3px, 1px);
    }
    25% {
        transform: translate(-1px, -1px);
    }
}

@keyframes terminalGlitch2 {
    0%, 85%, 100% {
        transform: translate(0);
    }
    7% {
        transform: translate(1px, 1px);
    }
    12% {
        transform: translate(-1px, -1px);
    }
    17% {
        transform: translate(2px, 0);
    }
    22% {
        transform: translate(-3px, 2px);
    }
    27% {
        transform: translate(1px, -1px);
    }
}

.terminal-body {
    padding: 2rem;
    min-height: 400px;
}

.terminal-content {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

.line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: typewriter 0.1s ease-in-out forwards;
}

.line:nth-child(1) { animation-delay: 0.5s; }
.line:nth-child(2) { animation-delay: 1s; }
.line:nth-child(3) { animation-delay: 1.5s; }
.line:nth-child(4) { animation-delay: 2s; }
.line:nth-child(5) { animation-delay: 2.5s; }
.line:nth-child(6) { animation-delay: 3s; }
.line:nth-child(7) { animation-delay: 3.5s; }
.line:nth-child(8) { animation-delay: 4s; }
.line:nth-child(9) { animation-delay: 4.5s; }
.line:nth-child(10) { animation-delay: 5s; }
.line:nth-child(11) { animation-delay: 5.5s; }
.line:nth-child(12) { animation-delay: 6s; }
.line:nth-child(13) { animation-delay: 6.5s; }
.line:nth-child(14) { animation-delay: 7s; }

@keyframes typewriter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Technical Specs Section */
.technical-specs {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spec-category {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--terminal-green);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.spec-category:hover {
    border-color: var(--glitch-red);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}

.spec-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: specScan 3s ease-in-out infinite;
}

@keyframes specScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spec-category h3 {
    font-family: 'Orbitron', monospace;
    color: var(--terminal-green);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.spec-category h3::before,
.spec-category h3::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.8);
}

.spec-category h3::before {
    animation: specGlitch1 0.7s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.spec-category h3::after {
    animation: specGlitch2 0.7s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes specGlitch1 {
    0%, 88%, 100% {
        transform: translate(0);
    }
    4% {
        transform: translate(-1px, 1px);
    }
    8% {
        transform: translate(1px, -1px);
    }
    12% {
        transform: translate(-2px, 0);
    }
    16% {
        transform: translate(3px, 1px);
    }
    20% {
        transform: translate(-1px, -1px);
    }
}

@keyframes specGlitch2 {
    0%, 92%, 100% {
        transform: translate(0);
    }
    6% {
        transform: translate(1px, 1px);
    }
    10% {
        transform: translate(-1px, -1px);
    }
    14% {
        transform: translate(2px, 0);
    }
    18% {
        transform: translate(-3px, 2px);
    }
    22% {
        transform: translate(1px, -1px);
    }
}

.spec-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-item:hover {
    border-color: var(--terminal-green);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.spec-item:hover::before {
    left: 100%;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.spec-value {
    color: var(--terminal-green);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--terminal-green);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--terminal-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--glitch-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .megan-gif {
        width: 350px;
        height: 350px;
    }
    
    .features-row {
        flex-direction: column;
        align-items: center;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .spec-label {
        font-size: 0.8rem;
    }
    
    .spec-value {
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .terminal-body {
        padding: 1rem;
    }
    
    .terminal-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .megan-gif {
        width: 300px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Additional Glitch Effects */
.glitch-effect {
    position: relative;
    display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch-effect::before {
    animation: glitch-1 0.3s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.glitch-effect::after {
    animation: glitch-2 0.3s infinite;
    color: var(--glitch-blue);
    z-index: -2;
}

/* Screen Flicker Effect */
@keyframes screenFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

body {
    animation: screenFlicker 0.1s linear infinite;
}

/* Digital Corruption Artifacts */
.corruption {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="corruption"><feTurbulence baseFrequency="0.8" numOctaves="3" result="noise"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23corruption)" opacity="0.05"/></svg>');
    animation: corruption 2s ease-in-out infinite;
}

@keyframes corruption {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.1; }
}

/* Additional Random Corruption Effects */
.random-corruption {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
    background: linear-gradient(45deg, 
        rgba(255, 0, 60, 0.02) 0%, 
        transparent 25%, 
        rgba(0, 255, 255, 0.02) 50%, 
        transparent 75%, 
        rgba(107, 70, 193, 0.02) 100%);
    opacity: 0;
    animation: randomCorruption 4s ease-in-out infinite;
}

@keyframes randomCorruption {
    0%, 80%, 100% { opacity: 0; transform: scale(1) rotate(0deg); }
    10% { opacity: 0.3; transform: scale(1.1) rotate(1deg); }
    20% { opacity: 0.1; transform: scale(0.9) rotate(-1deg); }
    30% { opacity: 0.4; transform: scale(1.05) rotate(0.5deg); }
    40% { opacity: 0.2; transform: scale(0.95) rotate(-0.5deg); }
}

/* Screen Distortion Effect */
.screen-distortion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="distortion"><feTurbulence baseFrequency="0.5" numOctaves="2" result="noise"/><feDisplacementMap in="SourceGraphic" in2="noise" scale="2"/></filter></defs><rect width="100%" height="100%" filter="url(%23distortion)" opacity="0.03"/></svg>');
    opacity: 0;
    animation: screenDistortion 6s ease-in-out infinite;
}

@keyframes screenDistortion {
    0%, 85%, 100% { opacity: 0; }
    15% { opacity: 0.4; }
    25% { opacity: 0.2; }
    35% { opacity: 0.6; }
    45% { opacity: 0.1; }
}

/* Color Shift Glitch */
.color-shift-glitch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 996;
    background: linear-gradient(90deg, 
        rgba(255, 0, 60, 0.05) 0%, 
        rgba(0, 255, 65, 0.05) 33%, 
        rgba(0, 255, 255, 0.05) 66%, 
        rgba(107, 70, 193, 0.05) 100%);
    opacity: 0;
    animation: colorShiftGlitch 5s ease-in-out infinite;
}

@keyframes colorShiftGlitch {
    0%, 90%, 100% { opacity: 0; filter: hue-rotate(0deg); }
    5% { opacity: 0.6; filter: hue-rotate(90deg); }
    10% { opacity: 0.3; filter: hue-rotate(180deg); }
    15% { opacity: 0.8; filter: hue-rotate(270deg); }
    20% { opacity: 0.2; filter: hue-rotate(360deg); }
}

/* Digital Noise Overlay */
.digital-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 995;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.02"/></svg>');
    opacity: 0;
    animation: digitalNoise 3s ease-in-out infinite;
}

@keyframes digitalNoise {
    0%, 70%, 100% { opacity: 0; }
    10% { opacity: 0.4; }
    20% { opacity: 0.1; }
    30% { opacity: 0.6; }
    40% { opacity: 0.2; }
    50% { opacity: 0.3; }
}
