/* Enhanced Cybersecurity Dark Mode Theme - Hacker UI Inspired */
:root {
    /* Dark Hacker Theme Colors */
    --primary-color: #00ff41;
    --secondary-color: #ff0040;
    --accent-color: #ffff00;
    --warning-color: #ff6b00;
    --success-color: #00ff41;
    --error-color: #ff0040;
    
    /* Text Colors */
    --text-color: #00ff41;
    --text-light: #80ff80;
    --text-dark: #004d10;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --card-bg: rgba(0, 20, 0, 0.9);
    --terminal-bg: #001100;
    
    /* Border and Effects */
    --border-color: #00ff41;
    --border-glow: 0 0 10px #00ff41;
    --shadow-glow: 0 0 20px rgba(0, 255, 65, 0.3);
    --shadow-strong: 0 0 30px rgba(0, 255, 65, 0.5);
    
    /* Matrix Effects */
    --matrix-green: #00ff41;
    --matrix-dark: #003d10;
    
    /* Fonts */
    --font-primary: 'Orbitron', monospace;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.1;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--border-glow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: var(--border-glow);
}

.nav-logo i {
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    border-color: var(--border-color);
    box-shadow: var(--border-glow);
    background: rgba(0, 255, 65, 0.1);
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle, .theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: var(--font-primary);
    box-shadow: var(--border-glow);
}

.lang-toggle:hover, .theme-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.theme-toggle {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.cyber-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: var(--border-glow);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: var(--border-glow); }
    50% { box-shadow: var(--shadow-strong); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: var(--border-glow);
}

.highlight.neon-text {
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% { text-shadow: 0 0 20px var(--secondary-color); }
    100% { text-shadow: 0 0 30px var(--secondary-color), 0 0 40px var(--secondary-color); }
}

.typing-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3s steps(50) 1s 1 normal both, blink 1s infinite;
}

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

@keyframes blink {
    50% { border-color: transparent; }
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
    15%, 49% { transform: translate(-2px, -1px); }
}

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

/* Threat Level Indicator */
.threat-level {
    margin-bottom: 2rem;
}

.threat-indicator {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--border-glow);
}

.threat-label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    margin-right: 1rem;
}

.threat-status {
    color: var(--success-color);
    font-weight: 700;
    text-shadow: 0 0 10px var(--success-color);
}

.threat-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.threat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    width: 100%;
    animation: threatScan 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--success-color);
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: var(--border-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: var(--shadow-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cyber Terminal */
.cyber-terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-strong);
    font-family: var(--font-mono);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-color);
}

.terminal-body {
    padding: 1rem;
    min-height: 200px;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt {
    color: var(--primary-color);
    font-weight: 600;
}

.command {
    color: var(--text-white);
}

.output {
    color: var(--text-light);
}

.output.success {
    color: var(--success-color);
}

.output.warning {
    color: var(--warning-color);
}

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

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

/* Dashboard Section */
.dashboard {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: var(--font-primary);
    text-shadow: var(--border-glow);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-widget {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

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

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

/* Profile Widget */
.profile-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-color);
}

.profile-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Skills Matrix */
.skills-matrix {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-light);
    min-width: 150px;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    animation: skillLoad 2s ease-out;
}

@keyframes skillLoad {
    0% { width: 0; }
}

.skill-value {
    font-size: 0.8rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: right;
}

/* Live Stats */
.live-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Threat Map */
.threat-map {
    position: relative;
    height: 200px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.map-grid {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 65, 0.1), transparent);
}

.threat-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.threat-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: threatPulse 2s infinite;
}

.threat-point:nth-child(1) .threat-pulse {
    background: var(--error-color);
    box-shadow: 0 0 10px var(--error-color);
}

.threat-point:nth-child(2) .threat-pulse {
    background: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
}

.threat-point:nth-child(3) .threat-pulse {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

@keyframes threatPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.threat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-light);
}

.threat-level {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.threat-level.high {
    background: var(--error-color);
    color: var(--text-white);
}

.threat-level.medium {
    background: var(--warning-color);
    color: var(--bg-color);
}

.threat-level.low {
    background: var(--success-color);
    color: var(--bg-color);
}

/* Operations Section */
.operations {
    padding: 80px 0;
    background: var(--bg-color);
}

.operations-terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.timestamp {
    color: var(--text-light);
    font-weight: 600;
}

.log-level {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.log-level.success {
    background: var(--success-color);
    color: var(--bg-color);
}

.log-level.warning {
    background: var(--warning-color);
    color: var(--bg-color);
}

.log-level.info {
    background: var(--primary-color);
    color: var(--bg-color);
}

.log-level.error {
    background: var(--error-color);
    color: var(--text-white);
}

.log-message {
    color: var(--text-light);
    flex: 1;
}

/* Arsenal Section */
.arsenal {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.tool-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--success-color);
    color: var(--bg-color);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.contact-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: var(--shadow-strong);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 600;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

