@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Fira Code', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.glitch {
    font-size: 3rem;
    font-weight: 600;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.subtitle {
    font-size: 1.2rem;
    color: #00ccff;
    margin-top: 10px;
    animation: typewriter 3s steps(30) 1s both;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ccff;
}

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

.terminal {
    background: rgba(0, 20, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    position: relative;
}

.terminal::before {
    content: "● ● ●";
    position: absolute;
    top: -15px;
    left: 15px;
    background: #0a0a0a;
    padding: 0 10px;
    color: #ff0000;
    font-size: 0.8rem;
}

.terminal-header {
    color: #00ccff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.terminal-header::before {
    content: "root@kali:~$ ";
    color: #ff0066;
    margin-right: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.skill-card {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 204, 255, 0.1));
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: #00ccff;
}

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

.skill-card:hover::before {
    left: 100%;
}

.skill-title {
    color: #00ccff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skill-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

.skill-description {
    color: #00ff00;
    line-height: 1.6;
}

.interactive-section {
    margin: 40px 0;
}

.hacking-simulator {
    background: #000;
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.sim-header {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.sim-content {
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.8;
}

.sim-line {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ccff);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.cta-button {
    background: linear-gradient(45deg, #ff0066, #00ccff);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.6);
}

.ascii-art {
    color: #00ff00;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    margin: 20px 0;
    white-space: pre;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #00ff00;
    color: #00ccff;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00ccff;
    text-shadow: 0 0 10px #00ccff;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
}