/* Terminal Portfolio Styles */
:root {
    --bg-color: #0a0e14;
    --text-color: #5ccfe6;
    --text-secondary: #73b8ff;
    --accent-color: #ffae57;
    --terminal-bg: #0a0e14;
    --terminal-header: #141820;
    --terminal-text: #cbccc6;
    --terminal-prompt: #bae67e;
    --terminal-highlight: #ff3333;
    --terminal-error: #ff3333;
    --terminal-success: #73d0ff;
    --neon-glow: 0 0 10px rgba(255, 174, 87, 0.7), 0 0 20px rgba(255, 174, 87, 0.5), 0 0 30px rgba(255, 174, 87, 0.3);
    --glitch-color-1: #ff3333;
    --glitch-color-2: #5ccfe6;
}

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

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--terminal-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Background grid effect */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(20, 24, 32, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 24, 32, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Terminal Header */
.terminal-header {
    background-color: var(--terminal-header);
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Header scanline effect */
.terminal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(1000%);
    }

    50.1% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

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

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

.close {
    background-color: #ff5f56;
}

.minimize {
    background-color: #ffbd2e;
}

.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 14px;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(115, 184, 255, 0.5);
    position: relative;
}

/* Glitch effect for terminal title */
.terminal-title:hover {
    animation: glitch 0.5s linear infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 0 var(--glitch-color-1), -2px 0 0 var(--glitch-color-2);
    }

    25% {
        text-shadow: -2px 0 0 var(--glitch-color-1), 2px 0 0 var(--glitch-color-2);
    }

    50% {
        text-shadow: 2px 0 0 var(--glitch-color-1), -2px 0 0 var(--glitch-color-2);
    }

    75% {
        text-shadow: -2px 0 0 var(--glitch-color-1), 2px 0 0 var(--glitch-color-2);
    }

    100% {
        text-shadow: 2px 0 0 var(--glitch-color-1), -2px 0 0 var(--glitch-color-2);
    }
}

/* Terminal Body */
#terminal {
    background-color: var(--terminal-bg);
    border: 1px solid #30363d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* CRT flicker effect */
#terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.15;
    }
}

.full-width #terminal {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 10px;
    position: relative;
    z-index: 2;
}

.ascii-art {
    color: var(--accent-color);
    font-size: 8px;
    line-height: 1.2;
    margin-bottom: 15px;
    white-space: pre;
    overflow-x: auto;
    text-shadow: var(--neon-glow);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 174, 87, 0.5);
    }

    50% {
        text-shadow: var(--neon-glow);
    }

    100% {
        text-shadow: 0 0 5px rgba(255, 174, 87, 0.5);
    }
}

.highlight {
    color: var(--terminal-highlight);
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 51, 51, 0.3);
    position: relative;
}

/* Cyberpunk-style highlight effect */
.highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--terminal-highlight), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.highlight:hover::before {
    transform: scaleX(1);
}

.intro-text {
    color: var(--terminal-success);
    font-weight: bold;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px rgba(115, 208, 255, 0);
    }

    50% {
        text-shadow: 0 0 10px rgba(115, 208, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 5px rgba(115, 208, 255, 0);
    }
}

.terminal-prompt {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgba(20, 24, 32, 0.5);
    padding: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    border-left: 2px solid var(--terminal-prompt);
    animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
    0% {
        border-color: var(--terminal-prompt);
    }

    50% {
        border-color: rgba(186, 230, 126, 0.5);
    }

    100% {
        border-color: var(--terminal-prompt);
    }
}

.prompt-user {
    color: var(--terminal-prompt);
    font-weight: bold;
}

.prompt-separator,
.prompt-location {
    color: var(--terminal-text);
}

.prompt-dollar {
    color: var(--terminal-highlight);
    margin-right: 8px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    flex: 1;
    caret-color: var(--terminal-prompt);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

    from,
    to {
        caret-color: transparent;
    }

    50% {
        caret-color: var(--terminal-prompt);
    }
}

/* Command output styling */
.command-block {
    margin: 10px 0;
    border-bottom: 1px dotted rgba(203, 204, 198, 0.1);
    padding-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.command-block:hover {
    background-color: rgba(20, 24, 32, 0.3);
    transform: translateX(5px);
}

.command-input {
    color: var(--terminal-prompt);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.command-output {
    padding-left: 15px;
    color: var(--terminal-text);
    line-height: 1.5;
}

/* Project and experience styling */
.project-item,
.experience-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before,
.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    transform: translateY(-100%);
    animation: border-flow 3s ease infinite;
    opacity: 0;
}

.project-item:hover::before,
.experience-item:hover::before {
    opacity: 1;
}

@keyframes border-flow {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.project-item:hover,
.experience-item:hover {
    border-left: 2px solid var(--terminal-highlight);
    background-color: rgba(20, 24, 32, 0.3);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.project-title,
.experience-title {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    display: inline-block;
}

.project-title::after,
.experience-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.project-item:hover .project-title::after,
.experience-item:hover .experience-title::after {
    width: 100%;
}

.project-tech {
    color: var(--terminal-highlight);
    font-style: italic;
    margin-top: 5px;
}

.experience-duration {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
    background-color: var(--terminal-header);
    border-top: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

/* Footer data stream effect */
footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-color) 15%,
            transparent 30%,
            var(--terminal-highlight) 45%,
            transparent 60%,
            var(--terminal-prompt) 75%,
            transparent 90%);
    animation: data-stream 2s linear infinite;
}

@keyframes data-stream {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

footer kbd {
    background-color: #30363d;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 12px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

footer kbd:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

/* Mobile command panel */
#mobile-command-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--terminal-header);
    padding: 15px;
    border-top: 1px solid #30363d;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#mobile-command-panel.hidden {
    transform: translateY(100%);
}

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

#close-panel {
    background: none;
    border: none;
    color: var(--terminal-text);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#close-panel:hover {
    color: var(--terminal-highlight);
    transform: rotate(90deg);
}

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

.cmd-btn {
    background-color: var(--terminal-bg);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cmd-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.3s;
}

.cmd-btn:hover::before {
    left: 100%;
}

.cmd-btn:hover {
    background-color: var(--accent-color);
    color: var(--terminal-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 174, 87, 0.3);
}

.hidden {
    display: none;
}

/* Link styling */
a {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

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

a:hover {
    color: var(--terminal-highlight);
}

a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

a:hover::after {
    content: '↗';
    position: absolute;
    margin-left: 4px;
    font-size: 0.8em;
}

/* Typing animation */
.typing {
    border-right: 2px solid var(--terminal-prompt);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--terminal-prompt);
    }
}

/* Special effects */
.matrix-effect {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.accent {
    color: var(--accent-color);
    font-weight: bold;
    position: relative;
}

/* Neon glow effect */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    }

    to {
        text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 10px var(--accent-color), 0 0 15px var(--accent-color);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        height: 100vh;
    }

    .ascii-art {
        font-size: 6px;
    }

    #mobile-commands {
        display: inline;
        text-decoration: underline;
        cursor: pointer;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Additional Terminator-inspired styles */

/* Boot sequence overlay */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #0f0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

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

.boot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #0f0;
    padding-bottom: 10px;
}

.boot-logo {
    display: flex;
    flex-direction: column;
}

.cyberdyne {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.skynet {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.7);
}

.boot-version {
    font-size: 0.8rem;
    color: #666;
}

.boot-messages {
    height: 300px;
    overflow-y: auto;
    background-color: rgba(0, 30, 0, 0.3);
    border: 1px solid #0f0;
    padding: 10px;
    margin-bottom: 20px;
    font-family: monospace;
    color: #0f0;
}

.boot-progress {
    height: 20px;
    background-color: #111;
    border: 1px solid #0f0;
    margin-bottom: 20px;
    position: relative;
}

.boot-progress-bar {
    height: 100%;
    background-color: #0f0;
    width: 0%;
    transition: width 0.5s ease;
}

.boot-status {
    text-align: center;
    font-size: 1.5rem;
    color: #ff3333;
    font-weight: bold;
}

/* Target acquisition mode */
.target-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.2);
    z-index: 999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(255, 0, 0, 0.1),
            rgba(255, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0) 4px);
}

.target-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    animation: scanner 2s linear infinite;
}

@keyframes scanner {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}

.target-crosshair {
    position: absolute;
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.target-h-line,
.target-v-line {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.7);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.target-h-line {
    width: 100%;
    height: 1px;
    top: 50%;
}

.target-v-line {
    width: 1px;
    height: 100%;
    left: 50%;
}

.target-data {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff3333;
    padding: 10px;
    color: #ff3333;
    font-family: 'Courier New', monospace;
    width: 300px;
}

.target-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.target-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.target-exit {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff3333;
    font-family: 'Courier New', monospace;
}

/* HUD elements */
.hud-elements {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 20px;
}

.hud-item {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* System diagnostics panel */
.diagnostics-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background-color: rgba(10, 14, 20, 0.95);
    border: 1px solid var(--accent-color);
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.diagnostics-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

#close-diagnostics {
    background: none;
    border: none;
    color: var(--terminal-text);
    font-size: 20px;
    cursor: pointer;
}

.diagnostics-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.diagnostics-section {
    margin-bottom: 20px;
}

.diagnostics-section h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.meter {
    height: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--text-secondary);
    position: relative;
    margin-bottom: 10px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--terminal-highlight));
    transition: width 1s ease;
}

.meter span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.neural-network {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.neural-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(92, 207, 230, 0.2);
    border: 2px solid var(--text-secondary);
    margin: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-node 2s infinite;
}

.neural-node::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 14, 20, 0.9);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    color: var(--accent-color);
    border: 1px solid var(--text-secondary);
}

.neural-node:hover::after {
    opacity: 1;
}

@keyframes pulse-node {
    0% {
        box-shadow: 0 0 5px rgba(255, 174, 87, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 174, 87, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 174, 87, 0.5);
    }
}

.neural-node[data-level="1"] {
    animation-delay: 0.2s;
}

.neural-node[data-level="2"] {
    animation-delay: 0.4s;
}

.neural-node[data-level="3"] {
    animation-delay: 0.6s;
}

.neural-node[data-level="4"] {
    animation-delay: 0.8s;
}

.neural-node[data-level="5"] {
    animation-delay: 1.0s;
}

.neural-node[data-level="6"] {
    animation-delay: 1.2s;
}

.system-logs {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--text-secondary);
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

.log-entry {
    margin-bottom: 5px;
}

.log-time {
    color: var(--text-secondary);
    margin-right: 10px;
}

.log-level {
    display: inline-block;
    padding: 0 5px;
    border-radius: 3px;
    margin-right: 10px;
    font-weight: bold;
}

.log-level.info {
    background-color: #2196F3;
    color: #fff;
}

.log-level.warning {
    background-color: #FF9800;
    color: #000;
}

.log-level.error {
    background-color: #F44336;
    color: #fff;
}

.log-level.success {
    background-color: #4CAF50;
    color: #fff;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Email Form Styles */
.email-form {
    background-color: rgba(10, 14, 20, 0.8);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 0 15px rgba(115, 184, 255, 0.3);
    animation: border-pulse 2s infinite;
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-color);
    font-weight: bold;
}

.email-input,
.email-textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(20, 24, 32, 0.8);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    color: var(--terminal-text);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    /* Ensure inputs are above other elements */
}

.email-input:focus,
.email-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 174, 87, 0.5);
    background-color: rgba(30, 35, 45, 0.9);
    color: #ffffff;
}

.email-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.email-button {
    padding: 8px 16px;
    background-color: var(--terminal-header);
    color: var(--terminal-text);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.email-button:hover {
    background-color: rgba(20, 24, 32, 0.9);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.email-button:hover::before {
    left: 100%;
}

.email-button.cancel {
    background-color: rgba(255, 51, 51, 0.2);
    border-color: var(--terminal-error);
}

.email-button.cancel:hover {
    background-color: rgba(255, 51, 51, 0.3);
}

.email-status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.email-status.error {
    background-color: rgba(255, 51, 51, 0.2);
    color: #ff5151;
    border: 1px solid #ff3333;
}

.email-status.success {
    background-color: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    border: 1px solid #27c93f;
}

.email-status.processing {
    background-color: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
    border: 1px solid #ffbd2e;
    animation: pulse 1.5s infinite;
}

.email-details {
    margin-top: 20px;
}

.email-receipt {
    background-color: rgba(20, 24, 32, 0.8);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.receipt-header {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text-secondary);
}

.receipt-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

.receipt-item span {
    color: var(--text-secondary);
    display: inline-block;
    width: 100px;
}

.receipt-message {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(10, 14, 20, 0.5);
    border-left: 3px solid var(--accent-color);
    white-space: pre-wrap;
}

@keyframes typing-cursor {

    0%,
    100% {
        border-right-color: transparent;
    }

    50% {
        border-right-color: var(--terminal-text);
    }
}

/* Email Redirect Styles */
.email-redirect {
    background-color: rgba(10, 14, 20, 0.8);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 0 15px rgba(115, 184, 255, 0.3);
    animation: border-pulse 2s infinite;
    max-width: 600px;
    text-align: center;
}

.email-redirect p {
    margin-bottom: 15px;
    color: var(--terminal-text);
}

.email-info {
    margin-top: 20px;
}

.email-address {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(20, 24, 32, 0.8);
    border-radius: 4px;
    display: inline-block;
}

.email-link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--terminal-header);
    color: var(--terminal-text);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-top: 10px;
}

.email-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.email-link-button:hover {
    background-color: rgba(20, 24, 32, 0.9);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.email-link-button:hover::before {
    left: 100%;
}

.email-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .email-buttons {
        flex-direction: column;
        gap: 10px;
    }
}