@media (max-width: 600px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #ffff00;
        box-shadow: 0 2px 10px #222;
        padding: 1em 0;
        gap: 1em;
        z-index: 1002;
    }
    .nav-menu.mobile.open {
        display: flex;
    }
    .main-navbar {
        position: relative;
        flex-direction: row;
    }
    .nav-link {
        font-size: 1.2em;
        padding: 0.7em 1.5em;
        width: 100%;
        text-align: left;
        color: #222 !important;
        font-weight: bold;
    }
    .nav-link.cv-link {
        color: #222 !important;
        background: #fff200;
}
/* Remove conflicting 900px menu styles */
@media (max-width: 900px) {
  .terminal-container {
    max-width: 98vw;
    margin: 10px auto;
    border-radius: 0;
    box-shadow: none;
  }
  .main-navbar {
    flex-direction: column;
    padding: 0.5em 0.5em;
    gap: 0.5em;
  }
  .main-navbar > div {
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
  }
  .profile-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .profile-image {
    width: 140px;
    height: 140px;
  }
  .profile-info {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .project-card-optimized {
    flex-direction: column !important;
    gap: 15px;
    padding: 15px;
    min-height: 0;
  }
  .project-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }
  .modal-content {
    width: 98vw;
    max-width: 98vw;
    margin: 10% auto;
    padding: 5px;
  }
  .terminal-content {
    padding: 10px;
    min-height: 60vh;
  }
  .json-output {
    font-size: 12px;
    padding: 8px;
  }
  .file-listing {
    font-size: 12px;
  }
  .command-input {
    font-size: 14px;
    padding: 3px;
  }
    height: 140px;
  }
  .profile-info {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .project-card-optimized {
    flex-direction: column !important;
    gap: 15px;
    padding: 15px;
    min-height: 0;
  }
  .project-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }
  .modal-content {
    width: 98vw;
    max-width: 98vw;
    margin: 10% auto;
    padding: 5px;
  }
  .terminal-content {
    padding: 10px;
    min-height: 60vh;
  }
  .json-output {
    font-size: 12px;
    padding: 8px;
  }
  .file-listing {
    font-size: 12px;
  }
  .command-input {
    font-size: 14px;
    padding: 3px;
  }
}

@media (max-width: 600px) {
  .terminal-header {
    flex-direction: column;
    padding: 6px 8px;
  }
  .terminal-title {
    font-size: 12px;
  }
  .profile-image {
    width: 90px;
    height: 90px;
  }
  .profile-info h2 {
    font-size: 1.5em;
  }
  .title {
    font-size: 1em;
  }
  .modal-content {
    margin: 18% auto;
    padding: 2px;
  }
  .project-image {
    height: 70px;
  }
  .json-output {
    font-size: 10px;
    padding: 4px;
  }
}
/* Terminal Portfolio Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background: #0a0a0a;
    color: #00ff41;
    overflow-x: hidden;
    line-height: 1.6;
}

.terminal-container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Terminal Header */
.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27ca3f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #c0c0c0;
    font-size: 14px;
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
    min-height: 80vh;
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
}

.terminal-line {
    margin: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.prompt {
    color: #00ff41;
    margin-right: 10px;
    font-weight: 600;
}

.command {
    color: #ffff00;
    font-weight: 500;
}

.terminal-output {
    margin: 15px 0 25px 20px;
    color: #e0e0e0;
}

/* ASCII Art */
.ascii-art {
    color: #00ff41;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.bio-text {
    color: #ffff00;
    font-size: 16px;
    margin-top: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Profile Section */
.profile-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-image {
    position: relative;
    width: 200px;
    height: 200px;
    border: 3px solid #00ff41;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.default-avatar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.real-avatar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
}

.profile-image:hover .default-avatar {
    opacity: 0;
    animation: glitch 0.3s ease-in-out;
}

.profile-image:hover .real-avatar {
    opacity: 1;
    animation: glitchReveal 0.3s ease-in-out;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 0, 0, 0.1) 25%,
        transparent 26%,
        transparent 74%,
        rgba(0, 255, 0, 0.1) 75%,
        transparent 100%
    );
    opacity: 0;
    z-index: 3;
}

.profile-image:hover .glitch-overlay {
    opacity: 1;
    animation: glitchEffect 0.3s ease-in-out;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h2 {
    color: #00ff41;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.title {
    color: #ffff00;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.description {
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #00ff41;
    font-size: 1.5em;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    color: #ffff00;
    transform: translateY(-3px);
    text-shadow: 0 5px 10px rgba(255, 255, 0, 0.3);
}

/* File Listing */
.file-listing {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.file-item {
    display: flex;
    gap: 15px;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(0, 255, 65, 0.1);
    padding-left: 10px;
    border-left: 3px solid #00ff41;
}

.file-item.current .filename {
    color: #ffff00;
    font-weight: bold;
}

.permissions { color: #888; width: 100px; }
.size { color: #00ff41; width: 60px; }
.date { color: #888; width: 120px; }
.filename { color: #e0e0e0; }

.easter-egg:hover .filename {
    color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

/* JSON Output */
.json-output {
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-left: 3px solid #00ff41;
    border-radius: 5px;
    overflow-x: auto;
}

/* Command Input */
.input-line {
    margin-top: 30px;
}

.command-input {
    background: transparent;
    border: none;
    color: #ffff00;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    outline: none;
    flex-grow: 1;
    padding: 5px;
}

.command-input::placeholder {
    color: #666;
}

/* Typing Effect */
.typed-text {
    border-right: 2px solid #00ff41;
    animation: typing 2s steps(15) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

.cursor {
    animation: blink 1s infinite;
    color: #00ff41;
}

/* Falling Cat Animation */
.falling-cat {
    position: fixed;
    font-size: 3em;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s ease;
}

.falling-cat.fall {
    opacity: 1;
    top: calc(100vh - 100px);
    animation: bounce 0.5s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.terminal-style {
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.modal-header {
    background: #2d2d2d;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    color: #00ff41;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.modal-close {
    color: #ff5f56;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff8a80;
}

.modal-body {
    padding: 20px;
    color: #e0e0e0;
}

/* Matrix Background Animation */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto;
    background: transparent;
}

#matrix-canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    background: transparent;
}

/* SOC Info Card */
.soc-info {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    background: rgba(0,255,65,0.05);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,255,65,0.1);
}

/* Enhanced project card animations */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.project-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

/* Optimized Portfolio Layout */
.portfolio-optimized {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.project-card-optimized {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.project-card-optimized:hover {
    border-color: #00ff41;
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

/* Image Left Layout */
.project-card-optimized.image-left {
    flex-direction: row;
}

/* Image Right Layout */
.project-card-optimized.image-right {
    flex-direction: row-reverse;
}

/* New Large Image Layouts */
.project-card-optimized.text-left-image-right {
    flex-direction: row;
}

.project-card-optimized.image-left-text-right {
    flex-direction: row-reverse;
}

.project-image {
    flex: 0 0 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Large Project Images */
.project-image-large {
    flex: 0 0 350px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.project-image-large .project-icon {
    font-size: 4em;
    margin-bottom: 15px;
    z-index: 2;
}

.project-icon {
    font-size: 3em;
    margin-bottom: 10px;
    z-index: 2;
}

.project-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-content {
    flex: 1;
    padding: 0 20px;
}

.project-content .project-title {
    color: #00ff41;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.project-content .project-description {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-content .project-tech {
    color: #ffff00;
    margin-bottom: 20px;
}

/* Security Visual */
.security-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scan-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan 2s infinite;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.dot.critical { background: #ff4444; }
.dot.high { background: #ff8800; }
.dot.medium { background: #ffff00; }
.dot.low { background: #00ff41; }

/* Vulnerability Assessment Visual */
.vuln-assessment-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.network-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.node {
    width: 40px;
    height: 40px;
    border: 2px solid #00ff41;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.1);
    animation: nodeGlow 2s infinite alternate;
}

.node.vulnerable {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
    animation: vulnerablePulse 1s infinite;
}

.scan-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid #00ff41;
    border-radius: 50%;
    animation: scanWave 3s infinite;
}

/* QA Visual */
.qa-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

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

.check-item {
    font-size: 1.2em;
    animation: checkComplete 3s infinite;
}

.check-item.completed {
    color: #00ff41;
}

.check-item.pending {
    color: #666;
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #ffff00);
    width: 65%;
    animation: progressFill 4s infinite;
}

/* SOC Visual */
.soc-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    position: relative;
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
}

.monitor {
    font-size: 2em;
    animation: monitorBlink 2s infinite alternate;
    padding: 10px;
    border: 1px solid #00ff41;
    border-radius: 5px;
    background: rgba(0, 255, 65, 0.1);
}

.alert-indicator {
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    animation: alertPulse 1.5s infinite;
}

.project-subtitle {
    color: #ffff00;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-style: italic;
}

/* Enhanced Visual Elements for Large Images */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.security-item {
    font-size: 1.5em;
    padding: 5px;
    border: 1px solid #00ff41;
    border-radius: 5px;
    background: rgba(0, 255, 65, 0.1);
    animation: securityPulse 2s infinite alternate;
}

.threat-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.threat {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
}

.threat.critical {
    background: #ff4444;
    color: white;
    animation: criticalBlink 1s infinite;
}

.threat.high {
    background: #ff8800;
    color: white;
}

.threat.medium {
    background: #ffff00;
    color: black;
}

.qa-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.metric {
    padding: 5px 10px;
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
    animation: metricGlow 3s infinite alternate;
}

.soc-dashboard {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dashboard-item {
    padding: 5px 10px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    animation: dashboardPulse 2s infinite alternate;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #333;
    padding: 15px 20px;
    z-index: 1000;
    font-family: 'Fira Code', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffff00;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 0, 0.1);
    color: #00ff41;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #ffff00;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(30, 30, 30, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding-top: 50px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .navbar.menu-open .nav-links {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2em;
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border: 2px solid #333;
        background: rgba(0, 0, 0, 0.3);
    }
    
    .nav-links a:hover {
        border-color: #ffff00;
        background: rgba(255, 255, 0, 0.1);
    }
}

/* Ensure no horizontal scrolling */
body {
    overflow-x: hidden;
}

/* Add top margin to body to account for fixed navbar */
body {
    margin-top: 70px;
}

.main-navbar {
    font-family: 'Fira Code', monospace;
    box-shadow: 0 2px 12px rgba(0,255,65,0.07);
    backdrop-filter: blur(2px);
}

.nav-link {
    transition: color 0.2s, background 0.2s;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    margin-right: 0.2em;
}

.nav-link:hover, .nav-link.active {
    background: #222;
    color: #00ff41 !important;
    text-decoration: underline;
}

.cv-link {
    color: #ffff00 !important;
}

.cv-link:hover {
    background: #333;
    color: #00ff41 !important;
}

/* Animations */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 255, 0, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 255, 0, 0.8); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

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

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

@keyframes nodeGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.3); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.7); }
}

@keyframes vulnerablePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 1); }
}

@keyframes scanWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes checkComplete {
    0%, 70% { transform: scale(1); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 65%; }
}

@keyframes monitorBlink {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

@keyframes securityPulse {
    0% { background: rgba(0, 255, 65, 0.1); }
    100% { background: rgba(0, 255, 65, 0.3); }
}

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

@keyframes metricGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.3); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.7); }
}

@keyframes dashboardPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Glitch Animations */
@keyframes glitch {
    0% { transform: translateX(0); opacity: 1; }
    10% { transform: translateX(-2px) scaleY(1.1); opacity: 0.8; }
    20% { transform: translateX(2px) scaleY(0.9); opacity: 0.6; }
    30% { transform: translateX(-1px) scaleY(1.05); opacity: 0.4; }
    40% { transform: translateX(1px) scaleY(0.95); opacity: 0.2; }
    50% { transform: translateX(0) scaleY(1); opacity: 0; }
    100% { transform: translateX(0) scaleY(1); opacity: 0; }
}

@keyframes glitchReveal {
    0% { transform: translateX(0) scaleY(1); opacity: 0; }
    50% { transform: translateX(0) scaleY(1); opacity: 0; }
    60% { transform: translateX(2px) scaleY(0.95); opacity: 0.2; }
    70% { transform: translateX(-1px) scaleY(1.05); opacity: 0.4; }
    80% { transform: translateX(1px) scaleY(0.9); opacity: 0.6; }
    90% { transform: translateX(-2px) scaleY(1.1); opacity: 0.8; }
    100% { transform: translateX(0) scaleY(1); opacity: 1; }
}

@keyframes glitchEffect {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        border-radius: 5px;
    }
    
    .terminal-content {
        font-size: 13px;
    }
    
    .terminal-input {
        font-size: 13px;
    }
    
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .ascii-art {
        font-size: 8px;
        overflow-x: auto;
    }
    
    .file-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .project-card {
        margin: 10px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-optimized.image-left,
    .project-card-optimized.image-right,
    .project-card-optimized.text-left-image-right,
    .project-card-optimized.image-left-text-right {
        flex-direction: column;
        text-align: center;
    }
    
    .project-image {
        flex: 0 0 150px;
        height: 150px;
    }
    
    .project-image-large {
        flex: 0 0 200px;
        height: 200px;
        width: 100%;
    }
    
    .project-content {
        padding: 20px 0 0 0;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        padding: 15px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .profile-info h2 {
        font-size: 2em;
    }
    
    .falling-cat {
        font-size: 2em;
    }
}
