@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #c0c0c0;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Matrix Rain Effect */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Terminal Header */
.terminal-header {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    position: relative;
}

.terminal-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: headerScan 2s linear infinite;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.terminal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: buttonPulse 2s infinite;
}

.terminal-button:nth-child(1) {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
    animation-delay: 0s;
}

.terminal-button:nth-child(2) {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
    animation-delay: 0.2s;
}

.terminal-button:nth-child(3) {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
    animation-delay: 0.4s;
}

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

.prompt {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

.nav-link {
    color: #00ff88;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #00ff88;
    border-radius: 4px;
    font-size: 0.85em;
    background: rgba(0, 255, 136, 0.05);
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Main Content */
.section {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid #404040;
    border-left: 4px solid #00ff88;
    border-radius: 8px;
    padding: 35px 30px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: scanTop 3s linear infinite;
}

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

.section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, transparent);
    opacity: 0.3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2 {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

h1::before, h2::before {
    content: '> ';
    color: #00ff88;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, transparent);
    animation: underlineGrow 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes underlineGrow {
    to { width: 100%; }
}

h1 {
    font-size: 2.5em;
    animation: glitch 3s infinite;
    margin-bottom: 30px;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
}

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

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

.command {
    color: #00ff88;
    margin: 20px 0 15px 0;
    padding: 10px 0;
    position: relative;
    animation: fadeInText 0.5s ease-in;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.command::before {
    content: '$ ';
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

.command::after {
    content: '█';
    color: #00ff88;
    animation: cursorBlink 1s infinite;
    margin-left: 5px;
}

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

.output {
    color: #b8b8b8;
    margin-left: 25px;
    padding: 15px 0;
    line-height: 1.8;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.skill-item {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid #404040;
    padding: 20px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '//';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00ff88;
    opacity: 0.2;
    font-size: 1.5em;
    font-weight: bold;
}

.skill-item:hover {
    background: rgba(45, 45, 45, 0.9);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    transform: translateX(5px);
}

.skill-item:hover::before {
    opacity: 0.5;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.skill-name {
    font-weight: bold;
    margin-bottom: 12px;
    color: #00ff88;
    font-size: 1.05em;
}

.skill-bar {
    background: rgba(64, 64, 64, 0.5);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #505050;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc70);
    box-shadow: 0 0 10px #00ff88;
    animation: fillProgress 2s ease-in-out forwards;
    transform-origin: left;
}

@keyframes fillProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Projects */
.project-card {
    background: rgba(35, 35, 35, 0.8);
    border: 1px solid #404040;
    padding: 25px;
    margin: 20px 0;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.project-card::before {
    content: '[●]';
    position: absolute;
    top: 15px;
    right: 15px;
    color: #00ff88;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::before {
    opacity: 1;
    animation: blinkAnim 1.5s infinite;
}

@keyframes blinkAnim {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.project-card:hover {
    background: rgba(45, 45, 45, 0.9);
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
    transform: scale(1.01);
}

.project-title {
    color: #00ff88;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ff88;
}

.project-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #b8b8b8;
    position: relative;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(0, 255, 136, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.tag::before {
    content: '#';
    color: #00ff88;
    margin-right: 3px;
    opacity: 0.7;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.contact-link {
    color: #00ff88;
    text-decoration: none;
    padding: 14px 24px;
    border: 1px solid #00ff88;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-block;
    background: rgba(0, 255, 136, 0.05);
}

.contact-link:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-3px);
}

/* Boot sequence */
#boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #00ff88;
    animation: fadeOut 1s 3s forwards;
    padding: 40px;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.boot-line {
    margin: 8px 0;
    opacity: 0;
    animation: bootLine 0.1s forwards;
}

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

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 136, 0) 50%,
        rgba(0, 255, 136, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}

/* ASCII Art */
.ascii-art {
    font-size: 0.7em;
    line-height: 1.2;
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
    margin: 25px 0;
    white-space: pre;
    animation: asciiGlow 3s ease-in-out infinite;
}

@keyframes asciiGlow {
    0%, 100% { text-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88; }
    50% { text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 30px #00ff88; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    .section {
        padding: 25px 20px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
