/* Terminal CSS - ZeroDay Kali Linux Simulator */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #00ff00;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo h2 {
    color: #00ff00;
    font-weight: 700;
}

.logo-bracket {
    color: #00ccff;
    font-size: 1.2em;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

/* Terminal Container */
.terminal-container {
    margin-top: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #00ff00;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control-btn.close {
    background: #ff5f56;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #00ff00;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-info {
    color: #00ccff;
    font-size: 0.9rem;
}

/* Terminal Body */
.terminal-body {
    background: #000;
    border: 1px solid #00ff00;
    border-top: none;
    min-height: 70vh;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    position: relative;
}

/* Custom Scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #111;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00ccff;
}

/* ASCII Art */
.ascii-art {
    color: #00ff00;
    font-size: 0.7rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff00;
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 2rem;
}

.welcome-text p {
    margin-bottom: 0.5rem;
}

/* Color Classes */
.green { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
.yellow { color: #ffff00; text-shadow: 0 0 5px #ffff00; }
.blue { color: #00ccff; text-shadow: 0 0 5px #00ccff; }
.red { color: #ff4444; text-shadow: 0 0 5px #ff4444; }
.white { color: #ffffff; }
.gray { color: #888888; }

/* Terminal Output */
.terminal-output {
    margin-bottom: 1rem;
}

.command-line {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.command-prompt {
    color: #00ff00;
}

.command-text {
    color: #ffffff;
}

.command-result {
    color: #00ccff;
    margin-left: 0;
    white-space: pre-wrap;
}

.error-message {
    color: #ff4444;
    margin-left: 0;
}

/* Terminal Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    position: relative;
}

.prompt {
    color: #00ff00;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.user { color: #ff4444; }
.at { color: #ffffff; }
.host { color: #00ff00; }
.separator { color: #ffffff; }
.path { color: #00ccff; }
.dollar { color: #ffffff; }

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
    flex: 1;
    caret-color: transparent;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal Footer */
.terminal-footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #00ff00;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 1rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #00ccff;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    animation: matrix-scan 3s linear infinite;
}

@keyframes matrix-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Command Help Styling */
.help-section {
    margin-bottom: 1rem;
}

.help-title {
    color: #00ff00;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

.help-command {
    color: #00ccff;
    font-weight: bold;
}

.help-description {
    color: #ffffff;
    margin-left: 2rem;
}

/* File System Simulation */
.file-entry {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.file-permissions {
    color: #00ff00;
    margin-right: 1rem;
    width: 10ch;
}

.file-size {
    color: #00ccff;
    margin-right: 1rem;
    width: 8ch;
    text-align: right;
}

.file-date {
    color: #ffff00;
    margin-right: 1rem;
    width: 12ch;
}

.file-name {
    color: #ffffff;
}

.directory {
    color: #00ccff;
    font-weight: bold;
}

.executable {
    color: #00ff00;
    font-weight: bold;
}

/* Network Scan Results */
.scan-result {
    margin-bottom: 0.5rem;
}

.ip-address {
    color: #00ccff;
    font-weight: bold;
}

.port-open {
    color: #00ff00;
}

.port-closed {
    color: #ff4444;
}

.service-name {
    color: #ffff00;
}

/* System Info Display */
.system-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 1rem;
}

.info-label {
    color: #00ff00;
    font-weight: bold;
}

.info-value {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .terminal-body {
        min-height: 60vh;
        max-height: 60vh;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .ascii-art {
        font-size: 0.5rem;
    }
    
    .status-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Animation Effects */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: typing 1s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff00; }
}

/* Security Badge */
.security-badge {
    display: inline-block;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

/* Warning Messages */
.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.info-box {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid #00ccff;
    color: #00ccff;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
} 

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 30px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 26px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
        font-size: 11px;
        padding: 5px 8px;
    }
} 